Re: [PATCH] drm/rockchip: vop2: Reset the AXI master in vop2_enable()

From: Chaoyi Chen

Date: Tue Dec 01 2026 - 20:40:16 EST


Hi Tim, Cristian,

On 12/2/2026 7:29 AM, Cristian Ciocaltea wrote:
> Hi,
>
> On 12/2/26 12:42 AM, Tim Surber wrote:
>> Hi Chaoyi,
>>
>> On 11/26/26 03:15, Chaoyi Chen wrote:
>>> On 11/26/2026 4:45 AM, Tim Surber wrote:
>>>> static void vop2_disable(struct vop2 *vop2)
>>>> {
>>>> - vop2_reset_assert_deassert(vop2, vop2->axi_rst);
>>>> -
>>>> rockchip_drm_dma_detach_device(vop2->drm, vop2->dev);
>>>
>>> This looks great. But what happens if you place
>>> vop2_reset_assert_deassert() after rockchip_drm_dma_detach_device()?
>>
>> That works as well.
>>
>> Would you prefer it this way?
>
> I also verified this approach with over 500 cycles of Tim's reproducer script,
> as well as with manual modetests, and didn't notice regressions or visual issues.
>
> I'd prefer it for keeping the reset in the disable path as initially intended
> and leaving the enable sequence untouched.
>

Thank you very much for your testing. This confirms that performing
a reset before IOMMU-related operations may corrupt the IOMMU's own state.

@Tim, could you make the changes as Cristian suggested? Thank you.

--
Best,
Chaoyi