Commit 832ee64d authored by Rob Clark's avatar Rob Clark

drm/msm/adreno: Remove GPU name

No real need to have marketing names in the kernel.
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/549757/
parent fa0f4d07
...@@ -24,7 +24,6 @@ static const struct adreno_info gpulist[] = { ...@@ -24,7 +24,6 @@ static const struct adreno_info gpulist[] = {
{ {
.rev = ADRENO_REV(2, 0, 0, 0), .rev = ADRENO_REV(2, 0, 0, 0),
.revn = 200, .revn = 200,
.name = "A200",
.fw = { .fw = {
[ADRENO_FW_PM4] = "yamato_pm4.fw", [ADRENO_FW_PM4] = "yamato_pm4.fw",
[ADRENO_FW_PFP] = "yamato_pfp.fw", [ADRENO_FW_PFP] = "yamato_pfp.fw",
...@@ -35,7 +34,6 @@ static const struct adreno_info gpulist[] = { ...@@ -35,7 +34,6 @@ static const struct adreno_info gpulist[] = {
}, { /* a200 on i.mx51 has only 128kib gmem */ }, { /* a200 on i.mx51 has only 128kib gmem */
.rev = ADRENO_REV(2, 0, 0, 1), .rev = ADRENO_REV(2, 0, 0, 1),
.revn = 201, .revn = 201,
.name = "A200",
.fw = { .fw = {
[ADRENO_FW_PM4] = "yamato_pm4.fw", [ADRENO_FW_PM4] = "yamato_pm4.fw",
[ADRENO_FW_PFP] = "yamato_pfp.fw", [ADRENO_FW_PFP] = "yamato_pfp.fw",
...@@ -46,7 +44,6 @@ static const struct adreno_info gpulist[] = { ...@@ -46,7 +44,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(2, 2, 0, ANY_ID), .rev = ADRENO_REV(2, 2, 0, ANY_ID),
.revn = 220, .revn = 220,
.name = "A220",
.fw = { .fw = {
[ADRENO_FW_PM4] = "leia_pm4_470.fw", [ADRENO_FW_PM4] = "leia_pm4_470.fw",
[ADRENO_FW_PFP] = "leia_pfp_470.fw", [ADRENO_FW_PFP] = "leia_pfp_470.fw",
...@@ -57,7 +54,6 @@ static const struct adreno_info gpulist[] = { ...@@ -57,7 +54,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(3, 0, 5, ANY_ID), .rev = ADRENO_REV(3, 0, 5, ANY_ID),
.revn = 305, .revn = 305,
.name = "A305",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a300_pm4.fw", [ADRENO_FW_PM4] = "a300_pm4.fw",
[ADRENO_FW_PFP] = "a300_pfp.fw", [ADRENO_FW_PFP] = "a300_pfp.fw",
...@@ -68,7 +64,6 @@ static const struct adreno_info gpulist[] = { ...@@ -68,7 +64,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(3, 0, 6, 0), .rev = ADRENO_REV(3, 0, 6, 0),
.revn = 307, /* because a305c is revn==306 */ .revn = 307, /* because a305c is revn==306 */
.name = "A306",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a300_pm4.fw", [ADRENO_FW_PM4] = "a300_pm4.fw",
[ADRENO_FW_PFP] = "a300_pfp.fw", [ADRENO_FW_PFP] = "a300_pfp.fw",
...@@ -79,7 +74,6 @@ static const struct adreno_info gpulist[] = { ...@@ -79,7 +74,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(3, 2, ANY_ID, ANY_ID), .rev = ADRENO_REV(3, 2, ANY_ID, ANY_ID),
.revn = 320, .revn = 320,
.name = "A320",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a300_pm4.fw", [ADRENO_FW_PM4] = "a300_pm4.fw",
[ADRENO_FW_PFP] = "a300_pfp.fw", [ADRENO_FW_PFP] = "a300_pfp.fw",
...@@ -90,7 +84,6 @@ static const struct adreno_info gpulist[] = { ...@@ -90,7 +84,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(3, 3, 0, ANY_ID), .rev = ADRENO_REV(3, 3, 0, ANY_ID),
.revn = 330, .revn = 330,
.name = "A330",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a330_pm4.fw", [ADRENO_FW_PM4] = "a330_pm4.fw",
[ADRENO_FW_PFP] = "a330_pfp.fw", [ADRENO_FW_PFP] = "a330_pfp.fw",
...@@ -101,7 +94,6 @@ static const struct adreno_info gpulist[] = { ...@@ -101,7 +94,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(4, 0, 5, ANY_ID), .rev = ADRENO_REV(4, 0, 5, ANY_ID),
.revn = 405, .revn = 405,
.name = "A405",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a420_pm4.fw", [ADRENO_FW_PM4] = "a420_pm4.fw",
[ADRENO_FW_PFP] = "a420_pfp.fw", [ADRENO_FW_PFP] = "a420_pfp.fw",
...@@ -112,7 +104,6 @@ static const struct adreno_info gpulist[] = { ...@@ -112,7 +104,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(4, 2, 0, ANY_ID), .rev = ADRENO_REV(4, 2, 0, ANY_ID),
.revn = 420, .revn = 420,
.name = "A420",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a420_pm4.fw", [ADRENO_FW_PM4] = "a420_pm4.fw",
[ADRENO_FW_PFP] = "a420_pfp.fw", [ADRENO_FW_PFP] = "a420_pfp.fw",
...@@ -123,7 +114,6 @@ static const struct adreno_info gpulist[] = { ...@@ -123,7 +114,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(4, 3, 0, ANY_ID), .rev = ADRENO_REV(4, 3, 0, ANY_ID),
.revn = 430, .revn = 430,
.name = "A430",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a420_pm4.fw", [ADRENO_FW_PM4] = "a420_pm4.fw",
[ADRENO_FW_PFP] = "a420_pfp.fw", [ADRENO_FW_PFP] = "a420_pfp.fw",
...@@ -134,7 +124,6 @@ static const struct adreno_info gpulist[] = { ...@@ -134,7 +124,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 0, 6, ANY_ID), .rev = ADRENO_REV(5, 0, 6, ANY_ID),
.revn = 506, .revn = 506,
.name = "A506",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -152,7 +141,6 @@ static const struct adreno_info gpulist[] = { ...@@ -152,7 +141,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 0, 8, ANY_ID), .rev = ADRENO_REV(5, 0, 8, ANY_ID),
.revn = 508, .revn = 508,
.name = "A508",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -169,7 +157,6 @@ static const struct adreno_info gpulist[] = { ...@@ -169,7 +157,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 0, 9, ANY_ID), .rev = ADRENO_REV(5, 0, 9, ANY_ID),
.revn = 509, .revn = 509,
.name = "A509",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -187,7 +174,6 @@ static const struct adreno_info gpulist[] = { ...@@ -187,7 +174,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 1, 0, ANY_ID), .rev = ADRENO_REV(5, 1, 0, ANY_ID),
.revn = 510, .revn = 510,
.name = "A510",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -202,7 +188,6 @@ static const struct adreno_info gpulist[] = { ...@@ -202,7 +188,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 1, 2, ANY_ID), .rev = ADRENO_REV(5, 1, 2, ANY_ID),
.revn = 512, .revn = 512,
.name = "A512",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -219,7 +204,6 @@ static const struct adreno_info gpulist[] = { ...@@ -219,7 +204,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 3, 0, 2), .rev = ADRENO_REV(5, 3, 0, 2),
.revn = 530, .revn = 530,
.name = "A530",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -238,7 +222,6 @@ static const struct adreno_info gpulist[] = { ...@@ -238,7 +222,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(5, 4, 0, ANY_ID), .rev = ADRENO_REV(5, 4, 0, ANY_ID),
.revn = 540, .revn = 540,
.name = "A540",
.fw = { .fw = {
[ADRENO_FW_PM4] = "a530_pm4.fw", [ADRENO_FW_PM4] = "a530_pm4.fw",
[ADRENO_FW_PFP] = "a530_pfp.fw", [ADRENO_FW_PFP] = "a530_pfp.fw",
...@@ -256,7 +239,6 @@ static const struct adreno_info gpulist[] = { ...@@ -256,7 +239,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 1, 0, ANY_ID), .rev = ADRENO_REV(6, 1, 0, ANY_ID),
.revn = 610, .revn = 610,
.name = "A610",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a630_sqe.fw", [ADRENO_FW_SQE] = "a630_sqe.fw",
}, },
...@@ -268,7 +250,6 @@ static const struct adreno_info gpulist[] = { ...@@ -268,7 +250,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 1, 8, ANY_ID), .rev = ADRENO_REV(6, 1, 8, ANY_ID),
.revn = 618, .revn = 618,
.name = "A618",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a630_sqe.fw", [ADRENO_FW_SQE] = "a630_sqe.fw",
[ADRENO_FW_GMU] = "a630_gmu.bin", [ADRENO_FW_GMU] = "a630_gmu.bin",
...@@ -279,7 +260,6 @@ static const struct adreno_info gpulist[] = { ...@@ -279,7 +260,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 1, 9, ANY_ID), .rev = ADRENO_REV(6, 1, 9, ANY_ID),
.revn = 619, .revn = 619,
.name = "A619",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a630_sqe.fw", [ADRENO_FW_SQE] = "a630_sqe.fw",
[ADRENO_FW_GMU] = "a619_gmu.bin", [ADRENO_FW_GMU] = "a619_gmu.bin",
...@@ -292,7 +272,6 @@ static const struct adreno_info gpulist[] = { ...@@ -292,7 +272,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 3, 0, ANY_ID), .rev = ADRENO_REV(6, 3, 0, ANY_ID),
.revn = 630, .revn = 630,
.name = "A630",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a630_sqe.fw", [ADRENO_FW_SQE] = "a630_sqe.fw",
[ADRENO_FW_GMU] = "a630_gmu.bin", [ADRENO_FW_GMU] = "a630_gmu.bin",
...@@ -305,7 +284,6 @@ static const struct adreno_info gpulist[] = { ...@@ -305,7 +284,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 4, 0, ANY_ID), .rev = ADRENO_REV(6, 4, 0, ANY_ID),
.revn = 640, .revn = 640,
.name = "A640",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a630_sqe.fw", [ADRENO_FW_SQE] = "a630_sqe.fw",
[ADRENO_FW_GMU] = "a640_gmu.bin", [ADRENO_FW_GMU] = "a640_gmu.bin",
...@@ -318,7 +296,6 @@ static const struct adreno_info gpulist[] = { ...@@ -318,7 +296,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 5, 0, ANY_ID), .rev = ADRENO_REV(6, 5, 0, ANY_ID),
.revn = 650, .revn = 650,
.name = "A650",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a650_sqe.fw", [ADRENO_FW_SQE] = "a650_sqe.fw",
[ADRENO_FW_GMU] = "a650_gmu.bin", [ADRENO_FW_GMU] = "a650_gmu.bin",
...@@ -332,7 +309,6 @@ static const struct adreno_info gpulist[] = { ...@@ -332,7 +309,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 6, 0, ANY_ID), .rev = ADRENO_REV(6, 6, 0, ANY_ID),
.revn = 660, .revn = 660,
.name = "A660",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a660_sqe.fw", [ADRENO_FW_SQE] = "a660_sqe.fw",
[ADRENO_FW_GMU] = "a660_gmu.bin", [ADRENO_FW_GMU] = "a660_gmu.bin",
...@@ -357,7 +333,6 @@ static const struct adreno_info gpulist[] = { ...@@ -357,7 +333,6 @@ static const struct adreno_info gpulist[] = {
}, { }, {
.rev = ADRENO_REV(6, 8, 0, ANY_ID), .rev = ADRENO_REV(6, 8, 0, ANY_ID),
.revn = 680, .revn = 680,
.name = "A680",
.fw = { .fw = {
[ADRENO_FW_SQE] = "a630_sqe.fw", [ADRENO_FW_SQE] = "a630_sqe.fw",
[ADRENO_FW_GMU] = "a640_gmu.bin", [ADRENO_FW_GMU] = "a640_gmu.bin",
......
...@@ -1105,14 +1105,11 @@ int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev, ...@@ -1105,14 +1105,11 @@ int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev,
speedbin = 0xffff; speedbin = 0xffff;
adreno_gpu->speedbin = (uint16_t) (0xffff & speedbin); adreno_gpu->speedbin = (uint16_t) (0xffff & speedbin);
gpu_name = adreno_gpu->info->name;
if (!gpu_name) {
gpu_name = devm_kasprintf(dev, GFP_KERNEL, "%d.%d.%d.%d", gpu_name = devm_kasprintf(dev, GFP_KERNEL, "%d.%d.%d.%d",
rev->core, rev->major, rev->minor, rev->core, rev->major, rev->minor,
rev->patchid); rev->patchid);
if (!gpu_name) if (!gpu_name)
return -ENOMEM; return -ENOMEM;
}
adreno_gpu_config.ioname = "kgsl_3d0_reg_memory"; adreno_gpu_config.ioname = "kgsl_3d0_reg_memory";
......
...@@ -61,7 +61,6 @@ extern const struct adreno_reglist a660_hwcg[], a690_hwcg[]; ...@@ -61,7 +61,6 @@ extern const struct adreno_reglist a660_hwcg[], a690_hwcg[];
struct adreno_info { struct adreno_info {
struct adreno_rev rev; struct adreno_rev rev;
uint32_t revn; uint32_t revn;
const char *name;
const char *fw[ADRENO_FW_MAX]; const char *fw[ADRENO_FW_MAX];
uint32_t gmem; uint32_t gmem;
u64 quirks; u64 quirks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment