Re: [Intel-gfx] [PATCH v2] drm/i915: handle uncore spinlock when not available

2023-10-23 Thread Jani Nikula
On Mon, 23 Oct 2023, "Coelho, Luciano" wrote: > On Mon, 2023-10-23 at 12:11 +0300, Jani Nikula wrote: >> On Mon, 23 Oct 2023, Luca Coelho wrote: >> > The uncore code may not always be available (e.g. when we build the >> > display code with Xe), so we can't always rely on having the uncore's >> >

Re: [Intel-gfx] [PATCH v2] drm/i915: handle uncore spinlock when not available

2023-10-23 Thread Coelho, Luciano
On Mon, 2023-10-23 at 12:11 +0300, Jani Nikula wrote: > On Mon, 23 Oct 2023, Luca Coelho wrote: > > The uncore code may not always be available (e.g. when we build the > > display code with Xe), so we can't always rely on having the uncore's > > spinlock. > > > > To handle this, split the spin_lo

Re: [Intel-gfx] [PATCH v2] drm/i915: handle uncore spinlock when not available

2023-10-23 Thread Jani Nikula
On Mon, 23 Oct 2023, Luca Coelho wrote: > The uncore code may not always be available (e.g. when we build the > display code with Xe), so we can't always rely on having the uncore's > spinlock. > > To handle this, split the spin_lock/unlock_irqsave/restore() into > spin_lock/unlock() followed by a

[Intel-gfx] [PATCH v2] drm/i915: handle uncore spinlock when not available

2023-10-23 Thread Luca Coelho
The uncore code may not always be available (e.g. when we build the display code with Xe), so we can't always rely on having the uncore's spinlock. To handle this, split the spin_lock/unlock_irqsave/restore() into spin_lock/unlock() followed by a call to local_irq_save/restore() and create wrapper