[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aYpn74JYNIR5Kr-9@hal-station>
Date: Mon, 9 Feb 2026 18:04:15 -0500
From: Hamza Mahfooz <someguy@...ective-light.com>
To: Christian König <christian.koenig@....com>
Cc: dri-devel@...ts.freedesktop.org,
Timur Kristóf <timur.kristof@...il.com>,
Michel Dänzer <michel.daenzer@...lbox.org>,
Xaver Hugl <xaver.hugl@....org>,
Harry Wentland <harry.wentland@....com>,
Leo Li <sunpeng.li@....com>, Rodrigo Siqueira <siqueira@...lia.com>,
Alex Deucher <alexander.deucher@....com>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Ivan Lipski <ivan.lipski@....com>,
Kenneth Feng <kenneth.feng@....com>, Alex Hung <alex.hung@....com>,
Tom Chung <chiahsuan.chung@....com>, Melissa Wen <mwen@...lia.com>,
Michel Dänzer <mdaenzer@...hat.com>,
Fangzhi Zuo <Jerry.Zuo@....com>, amd-gfx@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] drm: introduce KMS recovery mechanism
On Mon, Feb 09, 2026 at 10:35:05AM +0100, Christian König wrote:
> > + /**
> > + * @page_flip_timeout:
> > + *
> > + * This optional hook is called if &drm_crtc_commit.flip_done times out,
> > + * and can be used by drivers to attempt to recover from a page flip
> > + * timeout.
> > + */
> > + void (*page_flip_timeout)(struct drm_crtc *crtc);
>
> As far as I can see a callback is clearly not the right approach.
>
> The drm_atomic_helper_wait_for_flip_done() helper is called by the driver, isn't it?
>
> So what we need is just to give an error code back to the driver.
>
I guess we could just have the function return -ETIMEOUT, but then
drivers wouldn't know which crtc is timing out and AFAIK drivers aren't
supposed to touch `drm_crtc_commit`s so they don't really have a
sanctioned means to figure that out on their own.
Powered by blists - more mailing lists