From 1e082e7774a52011d95b0091c9024fcfa3ec154f Mon Sep 17 00:00:00 2001 From: Igloo302 Date: Fri, 13 Nov 2026 16:37:46 +0800 Subject: [PATCH] Add the Adreno 831 KGSL chip id 0x44050100 on the A830 entry --- patches/scripts/apply_a8xx_gpus.py | 9 +++++++++ patches/series.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/patches/scripts/apply_a8xx_gpus.py b/patches/scripts/apply_a8xx_gpus.py index f0b8449..d513859 100644 --- a/patches/scripts/apply_a8xx_gpus.py +++ b/patches/scripts/apply_a8xx_gpus.py @@ -65,6 +65,15 @@ ) replace(DEVICES, A829_PROPS, A829_PROPS + ' disable_gmem = True,\n', 'A829 disable_gmem') +if '0x44050100' not in Path(DEVICES).read_text(): + replace( + DEVICES, + ' GPUId(chip_id=0x44050001, name="Adreno (TM) 830"), # KGSL\n', + ' GPUId(chip_id=0x44050001, name="Adreno (TM) 830"), # KGSL\n' + ' GPUId(chip_id=0x44050100, name="Adreno (TM) 831"), # KGSL\n', + 'A831 KGSL chip_id 0x44050100 on the A830 entry', + ) + for chip_id, name in (('0x44041430', '845'), ('0x44051431', '850')): if chip_id not in Path(DEVICES).read_text(): replace( diff --git a/patches/series.json b/patches/series.json index 995e7e6..39e4bdf 100644 --- a/patches/series.json +++ b/patches/series.json @@ -20,7 +20,7 @@ "android", "linux" ], - "summary": "A810 / A829 / A845 / A850 KGSL chip IDs, A810 / A829 disable_gmem, plus the A825 entry" + "summary": "A810 / A829 / A831 / A845 / A850 KGSL chip IDs, A810 / A829 disable_gmem, plus the A825 entry" }, { "file": "scripts/apply_a8xx_cat4_rpt.py",