All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
@ 2017-04-18 12:50 gregkh
  0 siblings, 0 replies; 10+ messages in thread
From: gregkh @ 2017-04-18 12:50 UTC (permalink / raw)
  To: imirkin, bskeggs, gregkh; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From f94773b9f5ecd1df7c88c2e921924dd41d2020cc Mon Sep 17 00:00:00 2001
From: Ilia Mirkin <imirkin@alum.mit.edu>
Date: Sat, 18 Mar 2017 16:23:10 -0400
Subject: drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one

From: Ilia Mirkin <imirkin@alum.mit.edu>

commit f94773b9f5ecd1df7c88c2e921924dd41d2020cc upstream.

The NV4A (aka NV44A) is an oddity in the family. It only comes in AGP
and PCI varieties, rather than a core PCIE chip with a bridge for
AGP/PCI as necessary. As a result, it appears that the MMU is also
non-functional. For AGP cards, the vast majority of the NV4A lineup,
this worked out since we force AGP cards to use the nv04 mmu. However
for PCI variants, this did not work.

Switching to the NV04 MMU makes it work like a charm. Thanks to mwk for
the suggestion. This should be a no-op for NV4A AGP boards, as they were
using it already.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70388
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
@@ -714,7 +714,7 @@ nv4a_chipset = {
 	.i2c = nv04_i2c_new,
 	.imem = nv40_instmem_new,
 	.mc = nv44_mc_new,
-	.mmu = nv44_mmu_new,
+	.mmu = nv04_mmu_new,
 	.pci = nv40_pci_new,
 	.therm = nv40_therm_new,
 	.timer = nv41_timer_new,


Patches currently in stable-queue which might be from imirkin@alum.mit.edu are

queue-4.9/drm-nouveau-mpeg-mthd-returns-true-on-success-now.patch
queue-4.9/drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-06-12 13:38         ` Ilia Mirkin
@ 2017-06-12 13:43           ` Greg Kroah-Hartman
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2017-06-12 13:43 UTC (permalink / raw)
  To: Ilia Mirkin; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Mon, Jun 12, 2017 at 09:38:47AM -0400, Ilia Mirkin wrote:
> On Mon, Jun 12, 2017 at 9:25 AM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Tue, May 23, 2017 at 11:30:44AM +0200, Greg Kroah-Hartman wrote:
> >> On Mon, May 22, 2017 at 07:49:50PM -0400, Ilia Mirkin wrote:
> >> > On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
> >> > > Hi Greg,
> >> > >
> >> > > This patch appears to have misapplied. I'm not sure why cherry-pick
> >> > > got it wrong, but this is meant to go in the nv4a_chipset definition,
> >> > > not nv44_chipset.
> >> > >
> >> > > This comment also applies to the 4.4 and 4.11 cherry-picks you just did.
> >> >
> >> > Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
> >> > made it into v4.11. However by then it appears to have also made it
> >> > into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
> >> > drm merge into v4.12. So now you have two versions of the same commit
> >> > and are trying to cherry-pick both.
> >>
> >> Why in the world would you include the same patch in two different trees
> >> with two different git ids?  I'm _really_ starting to hate the drm
> >> trees...
> >>
> >> > I'm guessing it's also the reason why your cherrypick of my other
> >> > commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).
> >>
> >> That would make sense, but again, why is this happening?
> >>
> >> > And I might note that
> >> > "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
> >> > already there before, so didn't make it into your "4.9-stable patches"
> >> > commit on the stable-queue git tree.
> >>
> >> Ok, so what should i do here?  Drop all of the nouveau patches?  Some of
> >> them?  Which ones were wrong?
> >>
> >> totally confused and grumpy,
> >
> > Still confused, I guess all is ok in the stable trees?  Not according to
> > some bug reports we are getting, 4.4 seems broken,
> 
> Pointer? I'd be highly surprised if anyone were to run into the issue
> that my patch was addressing ("using old hardware"), or that my fix
> had caused problems for anyone. However I can confirm that the MMU
> pointer is set properly in the 4.4 tree for both the NV44 and NV44A
> chips.

See:
	Subject: [4.4.70 REGRESSION] Nouveau hangs up at boot

posted to lkml for details.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-06-12 13:25       ` Greg Kroah-Hartman
@ 2017-06-12 13:38         ` Ilia Mirkin
  2017-06-12 13:43           ` Greg Kroah-Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: Ilia Mirkin @ 2017-06-12 13:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Mon, Jun 12, 2017 at 9:25 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Tue, May 23, 2017 at 11:30:44AM +0200, Greg Kroah-Hartman wrote:
>> On Mon, May 22, 2017 at 07:49:50PM -0400, Ilia Mirkin wrote:
>> > On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
>> > > Hi Greg,
>> > >
>> > > This patch appears to have misapplied. I'm not sure why cherry-pick
>> > > got it wrong, but this is meant to go in the nv4a_chipset definition,
>> > > not nv44_chipset.
>> > >
>> > > This comment also applies to the 4.4 and 4.11 cherry-picks you just did.
>> >
>> > Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
>> > made it into v4.11. However by then it appears to have also made it
>> > into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
>> > drm merge into v4.12. So now you have two versions of the same commit
>> > and are trying to cherry-pick both.
>>
>> Why in the world would you include the same patch in two different trees
>> with two different git ids?  I'm _really_ starting to hate the drm
>> trees...
>>
>> > I'm guessing it's also the reason why your cherrypick of my other
>> > commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).
>>
>> That would make sense, but again, why is this happening?
>>
>> > And I might note that
>> > "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
>> > already there before, so didn't make it into your "4.9-stable patches"
>> > commit on the stable-queue git tree.
>>
>> Ok, so what should i do here?  Drop all of the nouveau patches?  Some of
>> them?  Which ones were wrong?
>>
>> totally confused and grumpy,
>
> Still confused, I guess all is ok in the stable trees?  Not according to
> some bug reports we are getting, 4.4 seems broken,

Pointer? I'd be highly surprised if anyone were to run into the issue
that my patch was addressing ("using old hardware"), or that my fix
had caused problems for anyone. However I can confirm that the MMU
pointer is set properly in the 4.4 tree for both the NV44 and NV44A
chips.

Note that there's a totally unrelated issue in the patch series ending
in https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/gpu/drm/nouveau?h=linux-4.4.y&id=e4add1cf6b4154804350c3385c6d447cff3570de
but Ben is aware of that issue and has a patch. I suspect it should be
making its way to stable-land ... eventually? On the bright side, that
code was broken before too and led to kernel thread deadlocks on some
hardware.

Cheers,

  -ilia

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-05-23  9:30     ` Greg Kroah-Hartman
  2017-05-23 14:04       ` Ilia Mirkin
@ 2017-06-12 13:25       ` Greg Kroah-Hartman
  2017-06-12 13:38         ` Ilia Mirkin
  1 sibling, 1 reply; 10+ messages in thread
From: Greg Kroah-Hartman @ 2017-06-12 13:25 UTC (permalink / raw)
  To: Ilia Mirkin; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Tue, May 23, 2017 at 11:30:44AM +0200, Greg Kroah-Hartman wrote:
> On Mon, May 22, 2017 at 07:49:50PM -0400, Ilia Mirkin wrote:
> > On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
> > > Hi Greg,
> > >
> > > This patch appears to have misapplied. I'm not sure why cherry-pick
> > > got it wrong, but this is meant to go in the nv4a_chipset definition,
> > > not nv44_chipset.
> > >
> > > This comment also applies to the 4.4 and 4.11 cherry-picks you just did.
> > 
> > Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
> > made it into v4.11. However by then it appears to have also made it
> > into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
> > drm merge into v4.12. So now you have two versions of the same commit
> > and are trying to cherry-pick both.
> 
> Why in the world would you include the same patch in two different trees
> with two different git ids?  I'm _really_ starting to hate the drm
> trees...
> 
> > I'm guessing it's also the reason why your cherrypick of my other
> > commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).
> 
> That would make sense, but again, why is this happening?
> 
> > And I might note that
> > "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
> > already there before, so didn't make it into your "4.9-stable patches"
> > commit on the stable-queue git tree.
> 
> Ok, so what should i do here?  Drop all of the nouveau patches?  Some of
> them?  Which ones were wrong?
> 
> totally confused and grumpy,

Still confused, I guess all is ok in the stable trees?  Not according to
some bug reports we are getting, 4.4 seems broken, oh well, hopefully
everyone is using newer kernel releases...

if you still want me to do something here, please let me know.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-05-23 14:04       ` Ilia Mirkin
@ 2017-05-23 14:20         ` Greg Kroah-Hartman
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2017-05-23 14:20 UTC (permalink / raw)
  To: Ilia Mirkin; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Tue, May 23, 2017 at 10:04:58AM -0400, Ilia Mirkin wrote:
> On Tue, May 23, 2017 at 5:30 AM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Mon, May 22, 2017 at 07:49:50PM -0400, Ilia Mirkin wrote:
> >> On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
> >> > Hi Greg,
> >> >
> >> > This patch appears to have misapplied. I'm not sure why cherry-pick
> >> > got it wrong, but this is meant to go in the nv4a_chipset definition,
> >> > not nv44_chipset.
> >> >
> >> > This comment also applies to the 4.4 and 4.11 cherry-picks you just did.
> >>
> >> Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
> >> made it into v4.11. However by then it appears to have also made it
> >> into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
> >> drm merge into v4.12. So now you have two versions of the same commit
> >> and are trying to cherry-pick both.
> >
> > Why in the world would you include the same patch in two different trees
> > with two different git ids?  I'm _really_ starting to hate the drm
> > trees...
> 
> This question may be above my pay-grade (I'm just a lowly occasional
> contributor), but I believe the situation is that first the change
> goes into drm-next, and then is cherry-picked into drm-fixes. I
> haven't checked that this is what happened though. Nor am I
> sufficiently plugged into linux kernel development processes to know
> what the proper way to handle that situation would be, if any.
> Something to address with Ben Skeggs and Dave Airlie, I suppose.

It seems that the i915 model of putting duplicate patches in different
branches is seeping over into other drm driver trees :(

The people involved with that know my position there, it's a pain in the
ass for people like me, for reasons exactly like you are seeing here.
Thanks for helping out with this.

> >> I'm guessing it's also the reason why your cherrypick of my other
> >> commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).
> >
> > That would make sense, but again, why is this happening?
> >
> >> And I might note that
> >> "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
> >> already there before, so didn't make it into your "4.9-stable patches"
> >> commit on the stable-queue git tree.
> >
> > Ok, so what should i do here?  Drop all of the nouveau patches?  Some of
> > them?  Which ones were wrong?
> 
> Looking at e.g.
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-4.9
> 
> I can say unequivocally that
> "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" is
> wrong in all three of your queues (4.4, 4.9, 4.11). Please drop it.

Ok, now all dropped.

thanks again for catching this and letting me know what to do,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-05-23  9:30     ` Greg Kroah-Hartman
@ 2017-05-23 14:04       ` Ilia Mirkin
  2017-05-23 14:20         ` Greg Kroah-Hartman
  2017-06-12 13:25       ` Greg Kroah-Hartman
  1 sibling, 1 reply; 10+ messages in thread
From: Ilia Mirkin @ 2017-05-23 14:04 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Tue, May 23, 2017 at 5:30 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Mon, May 22, 2017 at 07:49:50PM -0400, Ilia Mirkin wrote:
>> On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
>> > Hi Greg,
>> >
>> > This patch appears to have misapplied. I'm not sure why cherry-pick
>> > got it wrong, but this is meant to go in the nv4a_chipset definition,
>> > not nv44_chipset.
>> >
>> > This comment also applies to the 4.4 and 4.11 cherry-picks you just did.
>>
>> Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
>> made it into v4.11. However by then it appears to have also made it
>> into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
>> drm merge into v4.12. So now you have two versions of the same commit
>> and are trying to cherry-pick both.
>
> Why in the world would you include the same patch in two different trees
> with two different git ids?  I'm _really_ starting to hate the drm
> trees...

This question may be above my pay-grade (I'm just a lowly occasional
contributor), but I believe the situation is that first the change
goes into drm-next, and then is cherry-picked into drm-fixes. I
haven't checked that this is what happened though. Nor am I
sufficiently plugged into linux kernel development processes to know
what the proper way to handle that situation would be, if any.
Something to address with Ben Skeggs and Dave Airlie, I suppose.

>
>> I'm guessing it's also the reason why your cherrypick of my other
>> commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).
>
> That would make sense, but again, why is this happening?
>
>> And I might note that
>> "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
>> already there before, so didn't make it into your "4.9-stable patches"
>> commit on the stable-queue git tree.
>
> Ok, so what should i do here?  Drop all of the nouveau patches?  Some of
> them?  Which ones were wrong?

Looking at e.g.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-4.9

I can say unequivocally that
"drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" is
wrong in all three of your queues (4.4, 4.9, 4.11). Please drop it.

AFAIK the others should be good, but they're not my patches.

Cheers,

  -ilia

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-05-22 23:49   ` Ilia Mirkin
@ 2017-05-23  9:30     ` Greg Kroah-Hartman
  2017-05-23 14:04       ` Ilia Mirkin
  2017-06-12 13:25       ` Greg Kroah-Hartman
  0 siblings, 2 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2017-05-23  9:30 UTC (permalink / raw)
  To: Ilia Mirkin; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Mon, May 22, 2017 at 07:49:50PM -0400, Ilia Mirkin wrote:
> On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
> > Hi Greg,
> >
> > This patch appears to have misapplied. I'm not sure why cherry-pick
> > got it wrong, but this is meant to go in the nv4a_chipset definition,
> > not nv44_chipset.
> >
> > This comment also applies to the 4.4 and 4.11 cherry-picks you just did.
> 
> Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
> made it into v4.11. However by then it appears to have also made it
> into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
> drm merge into v4.12. So now you have two versions of the same commit
> and are trying to cherry-pick both.

Why in the world would you include the same patch in two different trees
with two different git ids?  I'm _really_ starting to hate the drm
trees...

> I'm guessing it's also the reason why your cherrypick of my other
> commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).

That would make sense, but again, why is this happening?

> And I might note that
> "drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
> already there before, so didn't make it into your "4.9-stable patches"
> commit on the stable-queue git tree.

Ok, so what should i do here?  Drop all of the nouveau patches?  Some of
them?  Which ones were wrong?

totally confused and grumpy,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-05-22 22:57 ` Ilia Mirkin
@ 2017-05-22 23:49   ` Ilia Mirkin
  2017-05-23  9:30     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: Ilia Mirkin @ 2017-05-22 23:49 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Ben Skeggs, # 3.9+, stable-commits

On Mon, May 22, 2017 at 6:57 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
> Hi Greg,
>
> This patch appears to have misapplied. I'm not sure why cherry-pick
> got it wrong, but this is meant to go in the nv4a_chipset definition,
> not nv44_chipset.
>
> This comment also applies to the 4.4 and 4.11 cherry-picks you just did.

Aha, I see what happened. f94773b9f5ecd1df7c88c2e921924dd41d2020cc
made it into v4.11. However by then it appears to have also made it
into drm-next as ac799acaa4d8db4f7dcd968b15c9596c80a4677f and thus the
drm merge into v4.12. So now you have two versions of the same commit
and are trying to cherry-pick both.

I'm guessing it's also the reason why your cherrypick of my other
commit failed (ad01a91a820cd9f0d880c407bf556b67298dcc93).

And I might note that
"drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch" was
already there before, so didn't make it into your "4.9-stable patches"
commit on the stable-queue git tree.

  -ilia

>
> Thanks,
>
>   -ilia
>
> On Mon, May 22, 2017 at 1:04 PM,  <gregkh@linuxfoundation.org> wrote:
>>
>> This is a note to let you know that I've just added the patch titled
>>
>>     drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one
>>
>> to the 4.9-stable tree which can be found at:
>>     http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>>
>> The filename of the patch is:
>>      drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch
>> and it can be found in the queue-4.9 subdirectory.
>>
>> If you, or anyone else, feels it should not be added to the stable tree,
>> please let <stable@vger.kernel.org> know about it.
>>
>>
>> From ac799acaa4d8db4f7dcd968b15c9596c80a4677f Mon Sep 17 00:00:00 2001
>> From: Ilia Mirkin <imirkin@alum.mit.edu>
>> Date: Sat, 18 Mar 2017 16:23:10 -0400
>> Subject: drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one
>>
>> From: Ilia Mirkin <imirkin@alum.mit.edu>
>>
>> commit ac799acaa4d8db4f7dcd968b15c9596c80a4677f upstream.
>>
>> The NV4A (aka NV44A) is an oddity in the family. It only comes in AGP
>> and PCI varieties, rather than a core PCIE chip with a bridge for
>> AGP/PCI as necessary. As a result, it appears that the MMU is also
>> non-functional. For AGP cards, the vast majority of the NV4A lineup,
>> this worked out since we force AGP cards to use the nv04 mmu. However
>> for PCI variants, this did not work.
>>
>> Switching to the NV04 MMU makes it work like a charm. Thanks to mwk for
>> the suggestion. This should be a no-op for NV4A AGP boards, as they were
>> using it already.
>>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70388
>> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
>> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
>> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>
>> ---
>>  drivers/gpu/drm/nouveau/nvkm/engine/device/base.c |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
>> +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
>> @@ -584,7 +584,7 @@ nv44_chipset = {
>>         .i2c = nv04_i2c_new,
>>         .imem = nv40_instmem_new,
>>         .mc = nv44_mc_new,
>> -       .mmu = nv44_mmu_new,
>> +       .mmu = nv04_mmu_new,
>>         .pci = nv40_pci_new,
>>         .therm = nv40_therm_new,
>>         .timer = nv41_timer_new,
>>
>>
>> Patches currently in stable-queue which might be from imirkin@alum.mit.edu are
>>
>> queue-4.9/drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
  2017-05-22 17:04 gregkh
@ 2017-05-22 22:57 ` Ilia Mirkin
  2017-05-22 23:49   ` Ilia Mirkin
  0 siblings, 1 reply; 10+ messages in thread
From: Ilia Mirkin @ 2017-05-22 22:57 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Ben Skeggs, # 3.9+, stable-commits

Hi Greg,

This patch appears to have misapplied. I'm not sure why cherry-pick
got it wrong, but this is meant to go in the nv4a_chipset definition,
not nv44_chipset.

This comment also applies to the 4.4 and 4.11 cherry-picks you just did.

Thanks,

  -ilia

On Mon, May 22, 2017 at 1:04 PM,  <gregkh@linuxfoundation.org> wrote:
>
> This is a note to let you know that I've just added the patch titled
>
>     drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one
>
> to the 4.9-stable tree which can be found at:
>     http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>
> The filename of the patch is:
>      drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch
> and it can be found in the queue-4.9 subdirectory.
>
> If you, or anyone else, feels it should not be added to the stable tree,
> please let <stable@vger.kernel.org> know about it.
>
>
> From ac799acaa4d8db4f7dcd968b15c9596c80a4677f Mon Sep 17 00:00:00 2001
> From: Ilia Mirkin <imirkin@alum.mit.edu>
> Date: Sat, 18 Mar 2017 16:23:10 -0400
> Subject: drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one
>
> From: Ilia Mirkin <imirkin@alum.mit.edu>
>
> commit ac799acaa4d8db4f7dcd968b15c9596c80a4677f upstream.
>
> The NV4A (aka NV44A) is an oddity in the family. It only comes in AGP
> and PCI varieties, rather than a core PCIE chip with a bridge for
> AGP/PCI as necessary. As a result, it appears that the MMU is also
> non-functional. For AGP cards, the vast majority of the NV4A lineup,
> this worked out since we force AGP cards to use the nv04 mmu. However
> for PCI variants, this did not work.
>
> Switching to the NV04 MMU makes it work like a charm. Thanks to mwk for
> the suggestion. This should be a no-op for NV4A AGP boards, as they were
> using it already.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70388
> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> ---
>  drivers/gpu/drm/nouveau/nvkm/engine/device/base.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
> @@ -584,7 +584,7 @@ nv44_chipset = {
>         .i2c = nv04_i2c_new,
>         .imem = nv40_instmem_new,
>         .mc = nv44_mc_new,
> -       .mmu = nv44_mmu_new,
> +       .mmu = nv04_mmu_new,
>         .pci = nv40_pci_new,
>         .therm = nv40_therm_new,
>         .timer = nv41_timer_new,
>
>
> Patches currently in stable-queue which might be from imirkin@alum.mit.edu are
>
> queue-4.9/drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree
@ 2017-05-22 17:04 gregkh
  2017-05-22 22:57 ` Ilia Mirkin
  0 siblings, 1 reply; 10+ messages in thread
From: gregkh @ 2017-05-22 17:04 UTC (permalink / raw)
  To: imirkin, bskeggs, gregkh; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From ac799acaa4d8db4f7dcd968b15c9596c80a4677f Mon Sep 17 00:00:00 2001
From: Ilia Mirkin <imirkin@alum.mit.edu>
Date: Sat, 18 Mar 2017 16:23:10 -0400
Subject: drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one

From: Ilia Mirkin <imirkin@alum.mit.edu>

commit ac799acaa4d8db4f7dcd968b15c9596c80a4677f upstream.

The NV4A (aka NV44A) is an oddity in the family. It only comes in AGP
and PCI varieties, rather than a core PCIE chip with a bridge for
AGP/PCI as necessary. As a result, it appears that the MMU is also
non-functional. For AGP cards, the vast majority of the NV4A lineup,
this worked out since we force AGP cards to use the nv04 mmu. However
for PCI variants, this did not work.

Switching to the NV04 MMU makes it work like a charm. Thanks to mwk for
the suggestion. This should be a no-op for NV4A AGP boards, as they were
using it already.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70388
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
@@ -584,7 +584,7 @@ nv44_chipset = {
 	.i2c = nv04_i2c_new,
 	.imem = nv40_instmem_new,
 	.mc = nv44_mc_new,
-	.mmu = nv44_mmu_new,
+	.mmu = nv04_mmu_new,
 	.pci = nv40_pci_new,
 	.therm = nv40_therm_new,
 	.timer = nv41_timer_new,


Patches currently in stable-queue which might be from imirkin@alum.mit.edu are

queue-4.9/drm-nouveau-mmu-nv4a-use-nv04-mmu-rather-than-the-nv44-one.patch

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-06-12 13:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 12:50 Patch "drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one" has been added to the 4.9-stable tree gregkh
2017-05-22 17:04 gregkh
2017-05-22 22:57 ` Ilia Mirkin
2017-05-22 23:49   ` Ilia Mirkin
2017-05-23  9:30     ` Greg Kroah-Hartman
2017-05-23 14:04       ` Ilia Mirkin
2017-05-23 14:20         ` Greg Kroah-Hartman
2017-06-12 13:25       ` Greg Kroah-Hartman
2017-06-12 13:38         ` Ilia Mirkin
2017-06-12 13:43           ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.