> On 8 Jul 2026, at 08:43, Onur Özkan <[email protected]> wrote:
> 
> Previous reset may leave the reset completed IRQ set which can make the
> poll return too early.
> 
> Clear the IRQ first so the driver waits for the current reset to
> complete.
> 
> Signed-off-by: Onur Özkan <[email protected]>
> ---
> drivers/gpu/drm/tyr/driver.rs | 3 +++
> 1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
> index c5063b2be94d..90d6cd988cd2 100644
> --- a/drivers/gpu/drm/tyr/driver.rs
> +++ b/drivers/gpu/drm/tyr/driver.rs
> @@ -86,6 +86,9 @@ pub(crate) struct TyrDrmRegistrationData<'bound> {
> }
> 
> fn issue_soft_reset(dev: &Device, iomem: &IoMem<'_>) -> Result {
> +    // Clear any stale reset IRQ state before issuing a new soft reset.
> +    iomem.write_reg(GPU_IRQ_CLEAR::zeroed().with_reset_completed(true));
> +
>     iomem.write_reg(GPU_COMMAND::reset(ResetMode::SoftReset));
> 
>     poll::read_poll_timeout(
> -- 
> 2.51.2
> 

Little has changed from v1 IIUC, where Boris gave his r-b already. I think
you can carry over the tag.

Reviewed-by: Daniel Almeida <[email protected]>

Reply via email to