Re: [PATCH] drm/nouveau: don't attempt to schedule hpd_work on headless cards

2024-06-07 Thread Vasily Khoruzhick
On Thu, Jun 6, 2024 at 6:37 PM Dave Airlie wrote: > > readding original poster Thanks, Dave! Ben, please keep me on CC, since I'm not subscribed to either nouveau or dri-devel mailing lists. > On Wed, 29 May 2024 at 09:57, Ben Skeggs wrote: > > > diff --git a/drivers/gpu/drm/nouveau/nouveau_c

Re: [PATCH] drm/nouveau: don't attempt to schedule hpd_work on headless cards

2024-06-06 Thread Dave Airlie
readding original poster On Wed, 29 May 2024 at 09:57, Ben Skeggs wrote: > > On 29/5/24 07:52, Vasily Khoruzhick wrote: > > > If the card doesn't have display hardware, hpd_work and hpd_lock are > > left uninitialized which causes BUG when attempting to schedule hpd_work > > on runtime PM resume.

Re: [PATCH] drm/nouveau: don't attempt to schedule hpd_work on headless cards

2024-05-28 Thread Ben Skeggs
On 29/5/24 07:52, Vasily Khoruzhick wrote: If the card doesn't have display hardware, hpd_work and hpd_lock are left uninitialized which causes BUG when attempting to schedule hpd_work on runtime PM resume. Hi, Good catch, thank you for looking at this.  A couple of initial comments below:

[PATCH] drm/nouveau: don't attempt to schedule hpd_work on headless cards

2024-05-28 Thread Vasily Khoruzhick
If the card doesn't have display hardware, hpd_work and hpd_lock are left uninitialized which causes BUG when attempting to schedule hpd_work on runtime PM resume. Fix it by adding headless flag to DRM and skip any hpd if it's set. Fixes: ae1aadb1eb8d ("nouveau: don't fail driver load if no displ