Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-15 Thread Qiang Yu
On Mon, Apr 14, 2025 at 9:19 PM Erico Nunes wrote: > > On Thu, Apr 10, 2025 at 4:04 PM Christian König > wrote: > > > > Am 10.04.25 um 15:56 schrieb Qiang Yu: > > This prevents applications with multiple contexts from running into a > > race condition between running tasks and context d

Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-14 Thread Erico Nunes
On Thu, Apr 10, 2025 at 4:04 PM Christian König wrote: > > Am 10.04.25 um 15:56 schrieb Qiang Yu: > This prevents applications with multiple contexts from running into a > race condition between running tasks and context destroy when > terminating. > > > If implementing flush c

Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-10 Thread Christian König
Am 10.04.25 um 15:56 schrieb Qiang Yu: > On Thu, Apr 10, 2025 at 8:35 PM Christian König > wrote: >> Am 10.04.25 um 11:33 schrieb Qiang Yu: >>> On Tue, Apr 8, 2025 at 11:48 PM Erico Nunes wrote: With this callback implemented, a terminating application will wait for the sched entity to

Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-10 Thread Qiang Yu
On Thu, Apr 10, 2025 at 8:35 PM Christian König wrote: > > Am 10.04.25 um 11:33 schrieb Qiang Yu: > > On Tue, Apr 8, 2025 at 11:48 PM Erico Nunes wrote: > >> With this callback implemented, a terminating application will wait for > >> the sched entity to be flushed out to the hardware and cancel

Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-10 Thread Christian König
Am 10.04.25 um 11:33 schrieb Qiang Yu: > On Tue, Apr 8, 2025 at 11:48 PM Erico Nunes wrote: >> With this callback implemented, a terminating application will wait for >> the sched entity to be flushed out to the hardware and cancel all other >> pending jobs before destroying its context. > We do f

Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-10 Thread Qiang Yu
On Tue, Apr 8, 2025 at 11:48 PM Erico Nunes wrote: > > With this callback implemented, a terminating application will wait for > the sched entity to be flushed out to the hardware and cancel all other > pending jobs before destroying its context. We do flush when file release in lima_ctx_mgr_fini

Re: [PATCH 1/1] drm/lima: implement the file flush callback

2025-04-08 Thread Christian König
Am 08.04.25 um 17:46 schrieb Erico Nunes: > With this callback implemented, a terminating application will wait for > the sched entity to be flushed out to the hardware and cancel all other > pending jobs before destroying its context. > This prevents applications with multiple contexts from runnin