diff options
| author | Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> | 2025-01-29 13:40:09 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 04:30:15 -0800 |
| commit | 639fc79f84f3cc0646c55157d12e97ae86223324 (patch) | |
| tree | c852c3ab385a6ef0b5fea60c0d3b4404b81631de /scripts/patch-kernel | |
| parent | 6e254503a3883c74f76a4474841b181e0ef00df9 (diff) | |
| download | linux-639fc79f84f3cc0646c55157d12e97ae86223324.tar.gz linux-639fc79f84f3cc0646c55157d12e97ae86223324.tar.bz2 linux-639fc79f84f3cc0646c55157d12e97ae86223324.zip | |
accel/ivpu: Fix error handling in recovery/reset
[ Upstream commit 41a2d8286c905614f29007f1bc8e652d54654b82 ]
Disable runtime PM for the duration of reset/recovery so it is possible
to set the correct runtime PM state depending on the outcome of the
`ivpu_resume()`. Don’t suspend or reset the HW if the NPU is suspended
when the reset/recovery is requested. Also, move common reset/recovery
code to separate functions for better code readability.
Fixes: 27d19268cf39 ("accel/ivpu: Improve recovery and reset support")
Cc: stable@vger.kernel.org # v6.8+
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250129124009.1039982-4-jacek.lawrynowicz@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
