From: sashiko-bot@kernel.org
To: "Rob Clark" <robin.clark@oss.qualcomm.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/msm/a6xx: Split out a7xx/a8xx device tables
Date: Fri, 09 Oct 2026 13:36:10 +0000 [thread overview]
Message-ID: <sashiko-outbox-165650@kernel.org> (raw)
In-Reply-To: <20261009131927.551319-3-robin.clark@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] drm: missing weight index 0 in a810_pwrup_reglist_regs
- [Low] drm: a640_gbif declared as extern in C file instead of shared header
--
commit 417ccf9a602a6ae58f1d68b6bfbd7ec7f4880b14
Author: Rob Clark <robin.clark@oss.qualcomm.com>
drm/msm/a6xx: Split out a7xx/a8xx device tables
This commit splits the Adreno GPU device tables into separate a7xx and a8xx
catalog files. It moves hardware configuration arrays and structs to these new
files to organize generation without conflicts across GPU generations.
> --- /dev/null
> +++ b/drivers/gpu/drm/msm/adreno/a7xx_catalog.c
> @@ -0,0 +1,496 @@
[ ... ]
> +#include "a6xx_gpu.h"
> +#include "a6xx.xml.h"
> +#include "a6xx_gmu.xml.h"
> +
> +extern const struct adreno_reglist a640_gbif[];
> +
[Severity: Low]
Is it intentional to declare a640_gbif as an extern array directly inside
a7xx_catalog.c?
This bypasses type checking across translation units and causes
-Wmissing-prototypes and -Wmissing-declarations warnings on W=1 builds. It
is generally preferred to put shared declarations in a common header like
a6xx_gpu.h instead of placing ad-hoc externs inside C files.
> --- /dev/null
> +++ b/drivers/gpu/drm/msm/adreno/a8xx_catalog.c
> @@ -0,0 +1,1847 @@
[ ... ]
> +static const uint32_t a810_pwrup_reglist_regs[] = {
> + REG_A6XX_UCHE_MODE_CNTL,
[ ... ]
> + REG_A7XX_SP_READ_SEL,
> + REG_A6XX_TPL1_NC_MODE_CNTL,
> + REG_A6XX_TPL1_DBG_ECO_CNTL,
> + REG_A6XX_TPL1_DBG_ECO_CNTL1,
> + REG_A8XX_TPL1_BICUBIC_WEIGHTS_TABLE(1),
> + REG_A8XX_TPL1_BICUBIC_WEIGHTS_TABLE(2),
> + REG_A8XX_TPL1_BICUBIC_WEIGHTS_TABLE(3),
[Severity: Medium]
Does this sequence intentionally omit index 0 for the bicubic weights table?
The a810_pwrup_reglist_regs array is used to restore critical hardware state
on power-up for the A810 GPU. The bicubic weights table initialization in
this array skips REG_A8XX_TPL1_BICUBIC_WEIGHTS_TABLE(0), directly jumping to
index 1.
Other GPUs (like a830, a840, a850, and a750) correctly include index 0 in
their power-up lists. Missing the 0th index here means the weight will not
be restored during power-up or preemption, potentially leading to
unpredictable bicubic filtering behavior or data corruption on the GPU.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009131927.551319-1-robin.clark@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-10-09 13:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 13:19 [PATCH 0/2] drm/msm: Split a6xx/a7xx/a8xx device tables Rob Clark
2026-10-09 13:19 ` [PATCH 1/2] drm/msm/a6xx: Move a702/a704 to a6xx list Rob Clark
2026-10-09 13:19 ` [PATCH 2/2] drm/msm/a6xx: Split out a7xx/a8xx device tables Rob Clark
2026-10-09 13:36 ` sashiko-bot [this message]
2026-10-09 18:55 ` Akhil P Oommen
2026-10-09 20:38 ` Rob Clark
2026-10-09 23:09 ` Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-165650@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.