Skip to contentSkip to conversation

drm/msm: update adreno firmware path in MODULE_FIRMWARE

PATCH In review Nicolas Dechesne 5 participants 6 messages Nov 23, 2017 3 messages not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: update adreno firmware path in MODULE_FIRMWARE

The preferred location for Adreno firmware files is now in qcom/ subfolder, especially now that we are adding some of them in linux-firmware.

---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/msm/adreno/adreno_device.c +8 -8
index 05022ea2a007..3c1d23b9ddc3 100644
@@ -90,14 +90,14 @@ static const struct adreno_info gpulist[] = {
 	},
 };
 
-MODULE_FIRMWARE("a300_pm4.fw");
-MODULE_FIRMWARE("a300_pfp.fw");
-MODULE_FIRMWARE("a330_pm4.fw");
-MODULE_FIRMWARE("a330_pfp.fw");
-MODULE_FIRMWARE("a420_pm4.fw");
-MODULE_FIRMWARE("a420_pfp.fw");
-MODULE_FIRMWARE("a530_fm4.fw");
-MODULE_FIRMWARE("a530_pfp.fw");
+MODULE_FIRMWARE("qcom/a300_pm4.fw");
+MODULE_FIRMWARE("qcom/a300_pfp.fw");
+MODULE_FIRMWARE("qcom/a330_pm4.fw");
+MODULE_FIRMWARE("qcom/a330_pfp.fw");
+MODULE_FIRMWARE("qcom/a420_pm4.fw");
+MODULE_FIRMWARE("qcom/a420_pfp.fw");
+MODULE_FIRMWARE("qcom/a530_fm4.fw");
+MODULE_FIRMWARE("qcom/a530_pfp.fw");
 
 static inline bool _rev_match(uint8_t entry, uint8_t id)
 {
Signature · 6 lines
2.15.0

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

A message that is not in the archive (sent off-list or not yet received): 20171123103249.7827-1-nicolas.dechesne-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 5 lines · Nicolas Dechesne

The preferred location for Adreno firmware files is now in qcom/ subfolder, especially now that we are adding some of them in linux-firmware.

Thanks, I was wondering if we should perhaps list both old and new paths? I'm not sure, maybe we don't need to care about dracut or initrd generation for the legacy case (since mostly there you are using fastboot).

Also, I noticed we are missing a few a5xx fw files, but perhaps that should be fixed with a separate patch.

Either way,

Quoted 32 lines
---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/msm/adreno/adreno_device.c +8 -9
index 05022ea2a007..3c1d23b9ddc3 100644
@@ -90,14 +90,14 @@ static const struct adreno_info gpulist[] = {
        },
 };
 
-MODULE_FIRMWARE("a300_pm4.fw");
-MODULE_FIRMWARE("a300_pfp.fw");
-MODULE_FIRMWARE("a330_pm4.fw");
-MODULE_FIRMWARE("a330_pfp.fw");
-MODULE_FIRMWARE("a420_pm4.fw");
-MODULE_FIRMWARE("a420_pfp.fw");
-MODULE_FIRMWARE("a530_fm4.fw");
-MODULE_FIRMWARE("a530_pfp.fw");
+MODULE_FIRMWARE("qcom/a300_pm4.fw");
+MODULE_FIRMWARE("qcom/a300_pfp.fw");
+MODULE_FIRMWARE("qcom/a330_pm4.fw");
+MODULE_FIRMWARE("qcom/a330_pfp.fw");
+MODULE_FIRMWARE("qcom/a420_pm4.fw");
+MODULE_FIRMWARE("qcom/a420_pfp.fw");
+MODULE_FIRMWARE("qcom/a530_fm4.fw");
+MODULE_FIRMWARE("qcom/a530_pfp.fw");
 
 static inline bool _rev_match(uint8_t entry, uint8_t id)
 {
--
Quoted 2 lines

2.15.0

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

#3 lore raw
Quoted 5 lines · Rob Clark
Quoted 3 lines · Nicolas Dechesne

The preferred location for Adreno firmware files is now in qcom/ subfolder, especially now that we are adding some of them in linux-firmware.

Quoted 7 lines
Quoted 2 lines

Thanks, I was wondering if we should perhaps list both old and new paths? I'm not sure, maybe we don't need to care about dracut or initrd generation for the legacy case (since mostly there you are using fastboot).

I've been going back and forth on that too. and i decided to ignore the legacy paths... alternatively we could use the legacy paths for a3xx and the new path for a5xx since we have links for a3xx files... but i thought it was too much noise..

Quoted 3 lines

Also, I noticed we are missing a few a5xx fw files, but perhaps that should be fixed with a separate patch.

as you want. I can include them if you prefer and resend.

Quoted 39 lines

Either way,

Quoted 34 lines
---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/msm/adreno/adreno_device.c +8 -9
index 05022ea2a007..3c1d23b9ddc3 100644
@@ -90,14 +90,14 @@ static const struct adreno_info gpulist[] = {
        },
 };
 
-MODULE_FIRMWARE("a300_pm4.fw");
-MODULE_FIRMWARE("a300_pfp.fw");
-MODULE_FIRMWARE("a330_pm4.fw");
-MODULE_FIRMWARE("a330_pfp.fw");
-MODULE_FIRMWARE("a420_pm4.fw");
-MODULE_FIRMWARE("a420_pfp.fw");
-MODULE_FIRMWARE("a530_fm4.fw");
-MODULE_FIRMWARE("a530_pfp.fw");
+MODULE_FIRMWARE("qcom/a300_pm4.fw");
+MODULE_FIRMWARE("qcom/a300_pfp.fw");
+MODULE_FIRMWARE("qcom/a330_pm4.fw");
+MODULE_FIRMWARE("qcom/a330_pfp.fw");
+MODULE_FIRMWARE("qcom/a420_pm4.fw");
+MODULE_FIRMWARE("qcom/a420_pfp.fw");
+MODULE_FIRMWARE("qcom/a530_fm4.fw");
+MODULE_FIRMWARE("qcom/a530_pfp.fw");
 
 static inline bool _rev_match(uint8_t entry, uint8_t id)
 {
--

2.15.0

A message that is not in the archive (sent off-list or not yet received): CAP71WjzsBLHwz4bE2QQ3BK1Rz5u-Pg6Xh2dPcGfSCoLVPkJYEA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#5 lore raw
Quoted 20 lines · Nicolas Dechesne
Quoted 5 lines · Rob Clark
Quoted 3 lines · Nicolas Dechesne

The preferred location for Adreno firmware files is now in qcom/ subfolder, especially now that we are adding some of them in linux-firmware.

Quoted 7 lines
Quoted 2 lines

Thanks, I was wondering if we should perhaps list both old and new paths? I'm not sure, maybe we don't need to care about dracut or initrd generation for the legacy case (since mostly there you are using fastboot).

I've been going back and forth on that too. and i decided to ignore the legacy paths... alternatively we could use the legacy paths for a3xx and the new path for a5xx since we have links for a3xx files... but i thought it was too much noise..

Quoted 1 line
Quoted 4 lines
Quoted 2 lines

Also, I noticed we are missing a few a5xx fw files, but perhaps that should be fixed with a separate patch.

as you want. I can include them if you prefer and resend.

Whenever I've added MODULE_FIRMWARE information I've listed only the first-choice firmware paths.

initramfs-tools will warn when including a module if some of the listed firmware is not available, so listing multiple paths for the same firmware will likely mean it always warns about one of them.

Ben.

Signature · 2 lines
Ben Hutchings
When in doubt, use brute force. - Ken Thompson

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

A message that is not in the archive (sent off-list or not yet received): 1511456951.14687.73.camel-/[email protected]

#7 lore raw
Quoted 24 lines · Ben Hutchings
Quoted 23 lines · Nicolas Dechesne
Quoted 5 lines · Rob Clark
Quoted 3 lines · Nicolas Dechesne

The preferred location for Adreno firmware files is now in qcom/ subfolder, especially now that we are adding some of them in linux-firmware.

Quoted 7 lines
Quoted 2 lines

Thanks, I was wondering if we should perhaps list both old and new paths? I'm not sure, maybe we don't need to care about dracut or initrd generation for the legacy case (since mostly there you are using fastboot).

I've been going back and forth on that too. and i decided to ignore the legacy paths... alternatively we could use the legacy paths for a3xx and the new path for a5xx since we have links for a3xx files... but i thought it was too much noise..

Quoted 3 lines

Also, I noticed we are missing a few a5xx fw files, but perhaps that should be fixed with a separate patch.

Quoted 9 lines
Quoted 1 line

as you want. I can include them if you prefer and resend.

Whenever I've added MODULE_FIRMWARE information I've listed only the first-choice firmware paths.

initramfs-tools will warn when including a module if some of the listed firmware is not available, so listing multiple paths for the same firmware will likely mean it always warns about one of them.

Ok, that sounds like good reason to not to list legacy paths.

BR,
-R
_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

#8 lore raw
In reply to Nicolas Dechesne
Quoted 20 lines · Nicolas Dechesne
Quoted 5 lines · Rob Clark
Quoted 3 lines · Nicolas Dechesne

The preferred location for Adreno firmware files is now in qcom/ subfolder, especially now that we are adding some of them in linux-firmware.

Quoted 7 lines
Quoted 2 lines

Thanks, I was wondering if we should perhaps list both old and new paths? I'm not sure, maybe we don't need to care about dracut or initrd generation for the legacy case (since mostly there you are using fastboot).

I've been going back and forth on that too. and i decided to ignore the legacy paths... alternatively we could use the legacy paths for a3xx and the new path for a5xx since we have links for a3xx files... but i thought it was too much noise..

Quoted 1 line
Quoted 4 lines
Quoted 2 lines

Also, I noticed we are missing a few a5xx fw files, but perhaps that should be fixed with a separate patch.

as you want. I can include them if you prefer and resend.

I think based on what Ben pointed out, let's not include legacy paths. But if you could send an additional patch to add the missing a5xx fw that would be appreciated

BR,
-R

Quoted 34 lines
Quoted 34 lines

Either way,

Quoted 29 lines
---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/msm/adreno/adreno_device.c +8 -8
index 05022ea2a007..3c1d23b9ddc3 100644
@@ -90,14 +90,14 @@ static const struct adreno_info gpulist[] = {
        },
 };
 
-MODULE_FIRMWARE("a300_pm4.fw");
-MODULE_FIRMWARE("a300_pfp.fw");
-MODULE_FIRMWARE("a330_pm4.fw");
-MODULE_FIRMWARE("a330_pfp.fw");
-MODULE_FIRMWARE("a420_pm4.fw");
-MODULE_FIRMWARE("a420_pfp.fw");
-MODULE_FIRMWARE("a530_fm4.fw");
-MODULE_FIRMWARE("a530_pfp.fw");
+MODULE_FIRMWARE("qcom/a300_pm4.fw");
+MODULE_FIRMWARE("qcom/a300_pfp.fw");
+MODULE_FIRMWARE("qcom/a330_pm4.fw");
+MODULE_FIRMWARE("qcom/a330_pfp.fw");
+MODULE_FIRMWARE("qcom/a420_pm4.fw");
+MODULE_FIRMWARE("qcom/a420_pfp.fw");
+MODULE_FIRMWARE("qcom/a530_fm4.fw");
+MODULE_FIRMWARE("qcom/a530_pfp.fw");
 
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/msm/adreno/adreno_device.c +0 -1
 static inline bool _rev_match(uint8_t entry, uint8_t id)
 {
--

2.15.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel