diff options
| author | James Morse <james.morse@arm.com> | 2026-05-08 19:23:38 +0300 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2026-05-14 11:52:00 +0300 |
| commit | f1caff3335ea6eab88cdc84ec8f2e3c45ca05486 (patch) | |
| tree | 1110ebe97a0e96e28acdb0117adb81b98a1e545e /drivers/gpu/tests/git@radix-linux.su:pub | |
| parent | ccad6001be5c38426ccf45790c411467ad3c03c6 (diff) | |
| download | linux-f1caff3335ea6eab88cdc84ec8f2e3c45ca05486.tar.xz | |
arm_mpam: Fix false positive assert failure during mpam_disable()
mpam_assert_partid_sizes_fixed() is used to document that the caller
doesn't expect the discovered PARTID size to change while it is walking
a list sized by PARTID. Typically the MSC state is not written to until
all the MSC have been discovered and this value is set.
However, if discovering the MSC fails and schedules mpam_disable(),
then the MSC state is written to reset it. In this case the
discovered PARTID size may be become smaller - but only PARTID 0
will be used once resctrl_exit() has been called.
Skip the WARN_ON_ONCE() if mpam_disable_reason has been set.
Fixes: 3bd04fe7d807 ("arm_mpam: Extend reset logic to allow devices to be reset any time")
Cc: <stable@vger.kernel.org>
Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/gpu/tests/git@radix-linux.su:pub')
0 files changed, 0 insertions, 0 deletions
