mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
cpuhp callbacks aren't the only time the MSC configuration may need to be reset. Resctrl has an API call to reset a class. If an MPAM error interrupt arrives it indicates the driver has misprogrammed an MSC. The safest thing to do is reset all the MSCs and disable MPAM. Add a helper to reset RIS via their class. Call this from mpam_disable(), which can be scheduled from the error interrupt handler. Signed-off-by: James Morse <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Ben Horgan <[email protected]> Reviewed-by: Gavin Shan <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Reviewed-by: Shaopeng Tan <[email protected]> Tested-by: Fenghua Yu <[email protected]> Tested-by: Shaopeng Tan <[email protected]> Tested-by: Peter Newman <[email protected]> Tested-by: Carl Worth <[email protected]> Tested-by: Gavin Shan <[email protected]> Tested-by: Zeng Heng <[email protected]> Tested-by: Hanjun Guo <[email protected]> Signed-off-by: Ben Horgan <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>