freedreno: Include speedbin fallback in 730 chipid to fix probing
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 25 Sep 2023 14:30:44 +0000 (16:30 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 15:00:58 +0000 (15:00 +0000)
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 730 chip id to make it probe correctly.
Keep the existing entry for the downstream KGSL driver.

This is essentially the same as Commit 6067aba9e6db ("freedreno: Include
speedbin fallback in 740 chipid to fix probing"), except for the older
core.

Fixes: cd3719be7d09 ("freedreno: Fully define a730 and a740 device properties")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25375>

src/freedreno/common/freedreno_devices.py

index 6ff76b1..81d5f04 100644 (file)
@@ -684,7 +684,8 @@ add_gpus([
     ))
 
 add_gpus([
-        GPUId(chip_id=0x07030001, name="FD730"),
+        GPUId(chip_id=0x07030001, name="FD730"), # KGSL, no speedbin data
+        GPUId(chip_id=0xffff07030001, name="FD730"), # Default no-speedbin fallback
     ], A6xxGPUInfo(
         CHIP.A7XX,
         a6xx_gen4,