Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] drm/v3d: V3D 3.x OVRTMUOUT bit reported on V3D 4.2 in v3d_v3d_debugfs_ident() - [Low] drm/v3d: stale V3D 3.3 and 4.1 deprecation notice in v3d_drv.c DOC comment --
commit 24570297f583283eb9b4a58e9c2e78e6081f77f1 Author: Maíra Canal <[email protected]> drm/v3d: Remove V3D 3.3 and 4.1 support This commit removes support for the deprecated V3D 3.3 and V3D 4.1 GPUs, along with their device tree compatibles, GCA and bridge reset registers, and V3D 3.x performance counter handling. > diff --git a/drivers/gpu/drm/v3d/v3d_debugfs.c > b/drivers/gpu/drm/v3d/v3d_debugfs.c > index 634cc796ba232..938622c730d04 100644 > --- a/drivers/gpu/drm/v3d/v3d_debugfs.c > +++ b/drivers/gpu/drm/v3d/v3d_debugfs.c [ ... ] > @@ -210,8 +194,6 @@ static int v3d_v3d_debugfs_ident(struct seq_file *m, void > *unused) > if (v3d->ver <= V3D_GEN_42) { > seq_printf(m, " BCG int: %d\n", > (ident2 & V3D_IDENT2_BCG_INT) != 0); > - } > - if (v3d->ver < V3D_GEN_41) { > seq_printf(m, " Override TMU: %d\n", > (misccfg & V3D_MISCCFG_OVRTMUOUT) != 0); > } [Severity: Low] Should the "Override TMU" line (along with the misccfg read in v3d_v3d_debugfs_ident() and V3D_MISCCFG_OVRTMUOUT in v3d_regs.h) be removed instead of folded into the v3d->ver <= V3D_GEN_42 block? As noted in commit a7dde1b7a5c9 ("drm/v3d: Don't try to set OVRTMUOUT on V3D 4.x."), V3D_MISCCFG_OVRTMUOUT only existed on V3D 3.x, and this patch drops the corresponding write from v3d_init_core(). Keeping it here causes v3d_ident on V3D 4.2 to report a V3D 3.x bit that does not exist on V3D 4.x hardware, and the new "/* Only V3D 4.x */" comment above V3D_MISCCFG_OVRTMUOUT in v3d_regs.h is also inaccurate. [ ... ] > diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c > index b790be8a7face..0551e9abf17ea 100644 > --- a/drivers/gpu/drm/v3d/v3d_drv.c > +++ b/drivers/gpu/drm/v3d/v3d_drv.c [ ... ] > @@ -421,18 +392,6 @@ static int v3d_platform_drm_probe(struct platform_device > *pdev) > */ > WARN_ON(v3d->ver != gen); > > - /* V3D 3.3 and V3D 4.1 has had no in-tree userspace since Mesa > - * dropped support in 2024 (MR#25851) and they have no known users. > - * Due to that, support is scheduled for removal in the next release. > - */ > - if (v3d->ver <= V3D_GEN_41) { > - dev_warn(dev, > - "V3D %u.%u support is deprecated and will be removed " > - "in the next kernel release. If you rely on this > hardware, " > - "please report it to > [email protected].\n", > - v3d->ver / 10, v3d->ver % 10); > - } > - > v3d->cores = V3D_GET_FIELD(ident1, V3D_HUB_IDENT1_NCORES); [Severity: Low] Should the deprecation paragraph in the "DOC: Broadcom V3D Graphics Driver" comment at the top of drivers/gpu/drm/v3d/v3d_drv.c also be removed now that V3D 3.3 and 4.1 support is gone? drivers/gpu/drm/v3d/v3d_drv.c: ... * This driver supports the Broadcom V3D 4.2 and 7.1 GPUs. * * Support for V3D 3.3 and 4.1 GPUs is deprecated and it will be removed * in the next kernel release. ... -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
