Re: [PATCH 4/4] drm/msm/a6xx: Import a680 hwcg sequence from kgsl
From: Rob Clark
Date: Fri Nov 06 2026 - 23:49:46 EST
On Mon, Nov 2, 2026 at 5:39 PM Val Packett <val@xxxxxxxxxxxx> wrote:
>
> On 11/2/26 10:13 PM, Val Packett wrote:
>
> > The initialization sequence for a680 differs from a640 in a few places.
> > Match downstream by using this a680 specific one.
> >
> > Signed-off-by: Val Packett <val@xxxxxxxxxxxx>
> > ---
> > drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 56 ++++++++++++++++++++++-
> > 1 file changed, 55 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c
> > index 6c154792cb07..48197a54984c 100644
> > --- a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c
> > +++ b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c
> > @@ -9,6 +9,7 @@
> > #include "adreno_gpu.h"
> > #include "a6xx_gpu.h"
> > #include "a6xx.xml.h"
> > +#include "a6xx_gmu.xml.h"
> > [..]
>
> (As sashiko confirms it's not a good idea to try to write the gmu regs
> from here, shouldn't've gotten lazy and assumed it would work anyway..)
>
> I can make the gmu driver write these on init, but would like to know if
> they even do anything interesting, and whether the entire hwcg sequence
> is worth it…
vaguely related to [1].. I guess I'd suggest to do something like that
for now. Longer term still tbd but dt gmu vs gpu split makes tables
generated from hw view of the world run into these quirks. Longer
term we'll do something to clean this up, but not sure which route yet
BR,
-R
[1] https://patchwork.freedesktop.org/patch/767327/?series=176505&rev=7