[PATCH v4 4/8] iommu/arm-smmu-v3: move stall_enabled to the cd table

Nicolin Chen nicolinc at nvidia.com
Fri Aug 4 16:32:27 PDT 2023


On Thu, Aug 03, 2023 at 12:32:32AM +0800, Michael Shavit wrote:
 
> This controls whether CD entries will have the stall bit set when
> writing entries into the table.

It'd be nicer to spare a few more lines here -- something like
this yet feel free to rephrase:

The stall bit of a CD entry should follow the master->stall_enabled and
has an inverse relationship with the STE.S1STALLD bit.

Also, a domain should be able to share between two masters, even if they
have different stall_enabled configurations, in which case, two masters
should have two sets of CD tables, i.e. having two different CD entries
for the same domain holding a CD.

So, move the "stall_enabled" out of domain to cd_table. It then controls
whether CD entries will have the stall bit set when writing entries into
the table.

> Signed-off-by: Michael Shavit <mshavit at google.com>
> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

With that,
Reviewed-by: Nicolin Chen <nicolinc at nvidia.com>

And btw, you should probably put your Signed-off-by at the end
the commit log, i.e. behind "Reviewed-by", meaning you created/
updated the commit, and then signed it off.

Nicolin



More information about the linux-arm-kernel mailing list