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: cd3719be7d ("freedreno: Fully define a730 and a740 device properties")
Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25204>
This commit is contained in:
Konrad Dybcio
2023-09-13 14:29:02 +02:00
committed by Marge Bot
parent d48f2469be
commit 6067aba9e6

View File

@@ -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,