Ratelimit and improve formatting. v2:
- Use a single ratelimit state as suggested by Joe Perches, except I chose to move it up to dmar_fault() so that it includes the "handling fault status reg" pr_err and we can avoid collecting entries for logging if we don't plan to print them. - Added reformatting changes suggested by Joe Perches. - While there is clearly more that could be done with disabling fault handling for specific context entries on storm and sending errors to drivers, this makes a marked improvement on its own. Thanks, Alex --- Alex Williamson (2): iommu/vt-d: Ratelimit fault handler iommu/vt-d: Improve fault handler error messages drivers/iommu/dmar.c | 47 +++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 20 deletions(-)