drm/msm/adreno: Remove MODULE_FIRMWARE()'s
Subsystems (4)
PATCH 1/1 drm/msm/adreno: Remove MODULE_FIRMWARE()'s
From: Rob Clark <[email protected]>
The driver handles the case where gpu fw is not in the initrd. OTOH it doesn't always handle the case where _some_ fw is in the initrd, but others are not. In particular the zap fw tends to be signed with an OEM specific key, so the paths/names differ across devices with the same SoC/GPU, so we cannot sanely list them with MODULE_FIRMWARE().
So MODULE_FIRMWARE() just ends up causing problems without actually solving anything. Remove them!
--- drivers/gpu/drm/msm/adreno/a2xx_catalog.c | 5 ----- drivers/gpu/drm/msm/adreno/a3xx_catalog.c | 5 ----- drivers/gpu/drm/msm/adreno/a4xx_catalog.c | 3 --- drivers/gpu/drm/msm/adreno/a5xx_catalog.c | 9 --------- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 11 ----------- 5 files changed, 33 deletions(-)
drivers/gpu/drm/msm/adreno/a2xx_catalog.c +0 -5
@@ -45,8 +45,3 @@ static const struct adreno_info a2xx_gpus[] = { } };DECLARE_ADRENO_GPULIST (a2xx); - -MODULE_FIRMWARE ("qcom/leia_pfp_470.fw" ); -MODULE_FIRMWARE ("qcom/leia_pm4_470.fw" ); -MODULE_FIRMWARE ("qcom/yamato_pfp.fw" ); -MODULE_FIRMWARE ("qcom/yamato_pm4.fw" );
drivers/gpu/drm/msm/adreno/a3xx_catalog.c +0 -5
@@ -85,8 +85,3 @@ static const struct adreno_info a3xx_gpus[] = { } };DECLARE_ADRENO_GPULIST (a3xx); - -MODULE_FIRMWARE ("qcom/a300_pm4.fw" ); -MODULE_FIRMWARE ("qcom/a300_pfp.fw" ); -MODULE_FIRMWARE ("qcom/a330_pm4.fw" ); -MODULE_FIRMWARE ("qcom/a330_pfp.fw" );
drivers/gpu/drm/msm/adreno/a4xx_catalog.c +0 -3
@@ -45,6 +45,3 @@ static const struct adreno_info a4xx_gpus[] = { } };DECLARE_ADRENO_GPULIST (a4xx); - -MODULE_FIRMWARE ("qcom/a420_pm4.fw" ); -MODULE_FIRMWARE ("qcom/a420_pfp.fw" );
drivers/gpu/drm/msm/adreno/a5xx_catalog.c +0 -9
@@ -150,12 +150,3 @@ static const struct adreno_info a5xx_gpus[] = { } };DECLARE_ADRENO_GPULIST (a5xx); - -MODULE_FIRMWARE ("qcom/a530_pm4.fw" ); -MODULE_FIRMWARE ("qcom/a530_pfp.fw" ); -MODULE_FIRMWARE ("qcom/a530v3_gpmu.fw2" ); -MODULE_FIRMWARE ("qcom/a530_zap.mdt" ); -MODULE_FIRMWARE ("qcom/a530_zap.b00" ); -MODULE_FIRMWARE ("qcom/a530_zap.b01" ); -MODULE_FIRMWARE ("qcom/a530_zap.b02" ); -MODULE_FIRMWARE ("qcom/a540_gpmu.fw2" );
drivers/gpu/drm/msm/adreno/a6xx_catalog.c +0 -11
@@ -1092,17 +1092,6 @@ static const struct adreno_info a6xx_gpus[] = { };DECLARE_ADRENO_GPULIST (a6xx); -MODULE_FIRMWARE ("qcom/a615_zap.mbn" ); -MODULE_FIRMWARE ("qcom/a619_gmu.bin" ); -MODULE_FIRMWARE ("qcom/a630_sqe.fw" ); -MODULE_FIRMWARE ("qcom/a630_gmu.bin" ); -MODULE_FIRMWARE ("qcom/a630_zap.mbn" ); -MODULE_FIRMWARE ("qcom/a640_gmu.bin" ); -MODULE_FIRMWARE ("qcom/a650_gmu.bin" ); -MODULE_FIRMWARE ("qcom/a650_sqe.fw" ); -MODULE_FIRMWARE ("qcom/a660_gmu.bin" ); -MODULE_FIRMWARE ("qcom/a660_sqe.fw" ); -static const struct adreno_reglist a702_hwcg[] = { {REG_A6XX_RBBM_CLOCK_CNTL_SP0 ,0x22222222 }, {REG_A6XX_RBBM_CLOCK_CNTL2_SP0 ,0x02222220 },
Signature · 1 line
2.49.0
Quoted 8 lines · Rob Clark
From: Rob Clark <[email protected]>
The driver handles the case where gpu fw is not in the initrd. OTOH it doesn't always handle the case where _some_ fw is in the initrd, but others are not. In particular the zap fw tends to be signed with an OEM specific key, so the paths/names differ across devices with the same SoC/GPU, so we cannot sanely list them with
MODULE_FIRMWARE().
Quoted 5 lines
So
MODULE_FIRMWARE()just ends up causing problems without actually solving anything. Remove them!Signed-off-by Rob Clark <[email protected]>---
it's probably the best decision to avoid all the mess..
Konrad