Re: [PATCH v3] drm/nouveau: Move irq setup/teardown to pci ctor/dtor

From: Adam Borowski
Date: Thu Jan 25 2018 - 20:21:05 EST


On Thu, Jan 25, 2018 at 06:29:53PM -0500, Lyude Paul wrote:
> This was made apparent by what appeared to be a regression in the
> mainline kernel that started introducing suspend/resume issues for
> nouveau:
>
> a0c9259dc4e1 (irq/matrix: Spread interrupts on allocation)

I'm just a dumb user here, but I confirm:
CPU: AMD Phenom II X6 1055T, GPU: GTX 560 Ti
100% fail to resume GPU on 4.15-rc*, 100% ok with your patch.

And that spinning rust hates being repeatedly powered off and on... :/

> ---
> Changes since v2:
> - Remove teardown, just reuse pci->irq to indicate when we're tearing
> down the driver
>
> drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c | 44 +++++++++++++++++---------
> 1 file changed, 29 insertions(+), 15 deletions(-)

Meow!
--
âââââââ
âââââââ Imagine there are bandits in your house, your kid is bleeding out,
âââââââ the house is on fire, and seven big-ass trumpets are playing in the
âââââââ sky. Your cat demands food. The priority should be obvious...