Module: Mesa
Branch: main
Commit: 6067aba9e6dbc3bacc50a4b44f7fdccb76b64ebf
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6067aba9e6dbc3bacc50a4b44f7fdccb76b64ebf

Author: Konrad Dybcio <[email protected]>
Date:   Wed Sep 13 14:29:02 2023 +0200

freedreno: Include speedbin fallback in 740 chipid to fix probing

The kernel exposes CHIP_ID, which consists of:

[63:48] const 0 / reserved
[47:32] speedbin (default 0xffff)
[31:0 ] actual gpu chip ID

Fix the 740 chip id to make it probe correctly.
Keep the existing entry for the downstream KGSL driver.

Fixes: cd3719be7d09 ("freedreno: Fully define a730 and a740 device properties")
Reported-by: Neil Armstrong <[email protected]>
Signed-off-by: Konrad Dybcio <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25204>

---

 src/freedreno/common/freedreno_devices.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/freedreno/common/freedreno_devices.py 
b/src/freedreno/common/freedreno_devices.py
index 99093cd9727..6ff76b1d8c4 100644
--- a/src/freedreno/common/freedreno_devices.py
+++ b/src/freedreno/common/freedreno_devices.py
@@ -739,7 +739,8 @@ add_gpus([
 
 add_gpus([
         GPUId(740), # Deprecated, used for dev kernels.
-        GPUId(chip_id=0x43050a01, name="FD740"),
+        GPUId(chip_id=0x43050a01, name="FD740"), # KGSL, no speedbin data
+        GPUId(chip_id=0xffff43050a01, name="FD740"), # Default no-speedbin 
fallback
     ], A6xxGPUInfo(
         CHIP.A7XX,
         a6xx_gen4,

Reply via email to