[PATCH v2 06/10] iommu/arm-smmu-v3: Remove strtab_base/cfg

Nicolin Chen nicolinc at nvidia.com
Mon Jun 10 19:36:20 PDT 2024


On Mon, Jun 10, 2024 at 09:31:15PM -0300, Jason Gunthorpe wrote:
> These values can be computed from the other values already stored in the
> config. Move the calculation to arm_smmu_write_strtab() and do it directly
> before writing the registers.
> 
> This moves all the logic to calculate the two registers into one function
> from three and saves an unimportant 16 bytes from the arm_smmu_device.
> 
> Suggested-by: Nicolin Chen <nicolinc at nvidia.com>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>

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



More information about the linux-arm-kernel mailing list