[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f89025f7-8db9-19d1-53dc-4eb5899db5ce@quicinc.com>
Date: Fri, 31 Jan 2025 10:37:02 -0700
From: Jeffrey Hugo <quic_jhugo@...cinc.com>
To: Lizhi Hou <lizhi.hou@....com>, <ogabbay@...nel.org>,
<dri-devel@...ts.freedesktop.org>
CC: <linux-kernel@...r.kernel.org>, <min.ma@....com>, <max.zhen@....com>,
<sonal.santan@....com>, <king.tam@....com>,
<mario.limonciello@....com>
Subject: Re: [PATCH] accel/amdxdna: Refactor hardware context destroy routine
On 1/24/2025 10:35 AM, Lizhi Hou wrote:
> It is required by firmware to wait up to 2 seconds for pending commands
> before sending the destroy hardware context command. After 2 seconds
> wait, if there are still pending commands, driver needs to cancel them.
>
> So the context destroy steps need to be:
> 1. Stop drm scheduler. (drm_sched_entity_destroy)
> 2. Wait up to 2 seconds for pending commands.
> 3. Destroy hardware context and cancel the rest pending requests.
> 4. Wait all jobs associated with the hwctx are freed.
> 5. Free job resources.
>
> Signed-off-by: Lizhi Hou <lizhi.hou@....com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@...cinc.com>
Powered by blists - more mailing lists