[PATCH v8 5/6] iommu/arm-smmu-v3: Add in-kernel support for NVIDIA Tegra241 (Grace) CMDQV
Nicolin Chen
nicolinc at nvidia.com
Wed Jun 12 11:50:09 PDT 2024
On Wed, Jun 12, 2024 at 09:29:25AM -0300, Jason Gunthorpe wrote:
> On Tue, May 28, 2024 at 01:09:53AM -0700, Nicolin Chen wrote:
>
> > +/* MMIO helpers */
> > +#define REG_CMDQV(_cmdqv, _regname) \
> > + ((_cmdqv)->base + TEGRA241_CMDQV_##_regname)
> > +#define REG_VINTF(_vintf, _regname) \
> > + ((_vintf)->base + TEGRA241_VINTF_##_regname)
> > +#define REG_VCMDQ_PAGE0(_vcmdq, _regname) \
> > + ((_vcmdq)->page0 + TEGRA241_VCMDQ_##_regname)
> > +#define REG_VCMDQ_PAGE1(_vcmdq, _regname) \
> > + ((_vcmdq)->page1 + TEGRA241_VCMDQ_##_regname)
>
> This looks OK now
>
> I didn't see any thing else really important in this patch
>
> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
>
> > +static inline int cmdqv_write_config(struct tegra241_cmdqv *cmdqv, u32 regval)
> > +{
> > + return tegra241_cmdqv_write_config(cmdqv,
> > + cmdqv->base + TEGRA241_CMDQV_CONFIG,
> > + cmdqv->base + TEGRA241_CMDQV_STATUS,
> > + regval, "CMDQV: ", NULL);
>
> However it would be good to go and fix these case to use the REG_xx
> macros, I noticed several.
Will respin a v9. Thanks!
Nicolin
More information about the linux-arm-kernel
mailing list