stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
@ 2016-01-17 19:28 Ilia Mirkin
  2016-01-19 10:22 ` Jiri Slaby
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ilia Mirkin @ 2016-01-17 19:28 UTC (permalink / raw)
  To: stable; +Cc: nouveau@lists.freedesktop.org, Hans de Goede, Ben Skeggs

Hello,

I'd like to recommend backporting this commit:

commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Thu Jul 23 17:20:12 2015 +0200

    drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c

This disables MSI by default on G72 (NV46) devices where it's
apparently a bit buggy. We have a later patch which turns MSI back on
with a quirk, but it isn't extremely necessary for these devices, and
disabling (or, rather, not enabling) MSI is a pretty safe thing to do.

The patch went upstream in 4.3-rc1, however I believe that there are
still a number of kernels between 3.12 (where MSI was first enabled by
default - commit a27e56996) and 4.2 (inclusive) which are still being
maintained. To those maintainers, please consider including this in
your trees.

Cheers,

  -ilia

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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-01-17 19:28 Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf Ilia Mirkin
@ 2016-01-19 10:22 ` Jiri Slaby
  2016-01-19 11:03   ` Ilia Mirkin
  2016-01-27 14:24 ` Luis Henriques
  2016-03-01  5:58 ` Greg KH
  2 siblings, 1 reply; 8+ messages in thread
From: Jiri Slaby @ 2016-01-19 10:22 UTC (permalink / raw)
  To: Ilia Mirkin, stable
  Cc: nouveau@lists.freedesktop.org, Hans de Goede, Ben Skeggs

Hi,

On 01/17/2016, 08:28 PM, Ilia Mirkin wrote:
> I'd like to recommend backporting this commit:
> 
> commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
> Author: Hans de Goede <hdegoede@redhat.com>
> Date:   Thu Jul 23 17:20:12 2015 +0200
> 
>     drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c
> 
> This disables MSI by default on G72 (NV46) devices where it's
> apparently a bit buggy. We have a later patch which turns MSI back on
> with a quirk, but it isn't extremely necessary for these devices, and
> disabling (or, rather, not enabling) MSI is a pretty safe thing to do.
> 
> The patch went upstream in 4.3-rc1, however I believe that there are
> still a number of kernels between 3.12 (where MSI was first enabled by
> default - commit a27e56996) and 4.2 (inclusive) which are still being
> maintained. To those maintainers, please consider including this in
> your trees.

But it needs
commit fa8c9ac72fe0bcdf5bc7cc84e85cc2a1af53f9fd
Author: Ilia Mirkin <imirkin@alum.mit.edu>
Date:   Wed Feb 5 14:33:02 2014 -0500

    drm/nv4c/mc: nv4x igp's have a different msi rearm register

    See https://bugs.freedesktop.org/show_bug.cgi?id=74492

which is only in 3.14. So I cannot take it into 3.12.

thanks,
-- 
js
suse labs

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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-01-19 10:22 ` Jiri Slaby
@ 2016-01-19 11:03   ` Ilia Mirkin
  2016-01-19 13:53     ` Jiri Slaby
  2016-01-26 18:14     ` Kamal Mostafa
  0 siblings, 2 replies; 8+ messages in thread
From: Ilia Mirkin @ 2016-01-19 11:03 UTC (permalink / raw)
  To: Jiri Slaby
  Cc: stable, nouveau@lists.freedesktop.org, Hans de Goede, Ben Skeggs

On Tue, Jan 19, 2016 at 5:22 AM, Jiri Slaby <jslaby@suse.cz> wrote:
> Hi,
>
> On 01/17/2016, 08:28 PM, Ilia Mirkin wrote:
>> I'd like to recommend backporting this commit:
>>
>> commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
>> Author: Hans de Goede <hdegoede@redhat.com>
>> Date:   Thu Jul 23 17:20:12 2015 +0200
>>
>>     drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c
>>
>> This disables MSI by default on G72 (NV46) devices where it's
>> apparently a bit buggy. We have a later patch which turns MSI back on
>> with a quirk, but it isn't extremely necessary for these devices, and
>> disabling (or, rather, not enabling) MSI is a pretty safe thing to do.
>>
>> The patch went upstream in 4.3-rc1, however I believe that there are
>> still a number of kernels between 3.12 (where MSI was first enabled by
>> default - commit a27e56996) and 4.2 (inclusive) which are still being
>> maintained. To those maintainers, please consider including this in
>> your trees.
>
> But it needs
> commit fa8c9ac72fe0bcdf5bc7cc84e85cc2a1af53f9fd
> Author: Ilia Mirkin <imirkin@alum.mit.edu>
> Date:   Wed Feb 5 14:33:02 2014 -0500
>
>     drm/nv4c/mc: nv4x igp's have a different msi rearm register
>
>     See https://bugs.freedesktop.org/show_bug.cgi?id=74492
>
> which is only in 3.14. So I cannot take it into 3.12.

Doh! I could have sworn that this commit was also backported, but I
guess not. I did a big more digging, a few results:

(a) v3.12 didn't actually have MSI enabled by default. It got turned
off in one of the rc's, and didn't get turned back on until v3.13. So
Jiri, you're all good (for 3.12 at least). Sorry about the wrong
version endpoints in my comment.

(b) For 3.13 stable, if such a tree exists, it wouldn't hurt to then
include both fa8c9ac72fe0bcdf5bc7cc84e85cc2a1af53f9fd as well as
4761703bd04bbdf56396d264903cc5a1fdcb3c01 (drm/nv4c/mc: disable msi) --
that one was, in fact, backported, but I guess only to 3.14. [And
without that second one, the original commit wouldn't have the desired
effect -- we want to disable MSI there, not actually flip it to the
nv4c msi rearm method.]

In case of tl;dr, my recommendation is to backport into 3.13:

fa8c9ac72fe0bcdf5bc7cc84e85cc2a1af53f9fd
4761703bd04bbdf56396d264903cc5a1fdcb3c01
0a363e85cdafbceeee6a49b91c604d0d4d070dc7

In that order. This should avoid buggy MSI on the nv4x IGPs as well as
NV46 (G72).

Starting with v3.14, you should only need
0a363e85cdafbceeee6a49b91c604d0d4d070dc7, since presumably
4761703bd04bbdf56396d264903cc5a1fdcb3c01 will have already been
backported.

Cheers,

  -ilia

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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-01-19 11:03   ` Ilia Mirkin
@ 2016-01-19 13:53     ` Jiri Slaby
  2016-01-26 18:14     ` Kamal Mostafa
  1 sibling, 0 replies; 8+ messages in thread
From: Jiri Slaby @ 2016-01-19 13:53 UTC (permalink / raw)
  To: Ilia Mirkin
  Cc: stable, nouveau@lists.freedesktop.org, Hans de Goede, Ben Skeggs

On 01/19/2016, 12:03 PM, Ilia Mirkin wrote:
> (a) v3.12 didn't actually have MSI enabled by default. It got turned
> off in one of the rc's, and didn't get turned back on until v3.13. So
> Jiri, you're all good (for 3.12 at least). Sorry about the wrong
> version endpoints in my comment.

Ok, thanks for confirmation!

-- 
js
suse labs

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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-01-19 11:03   ` Ilia Mirkin
  2016-01-19 13:53     ` Jiri Slaby
@ 2016-01-26 18:14     ` Kamal Mostafa
  1 sibling, 0 replies; 8+ messages in thread
From: Kamal Mostafa @ 2016-01-26 18:14 UTC (permalink / raw)
  To: Ilia Mirkin
  Cc: Jiri Slaby, stable, nouveau@lists.freedesktop.org, Hans de Goede,
	Ben Skeggs

On Tue, 2016-01-19 at 06:03 -0500, Ilia Mirkin wrote:
> > On 01/17/2016, 08:28 PM, Ilia Mirkin wrote:
> >> I'd like to recommend backporting this commit:
> >>
> >> commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
> >> Author: Hans de Goede <hdegoede@redhat.com>
> >> Date:   Thu Jul 23 17:20:12 2015 +0200
> >>
> >>     drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c
> >>
[...]
> In case of tl;dr, my recommendation is to backport into 3.13:
> 
> fa8c9ac72fe0bcdf5bc7cc84e85cc2a1af53f9fd
> 4761703bd04bbdf56396d264903cc5a1fdcb3c01
> 0a363e85cdafbceeee6a49b91c604d0d4d070dc7

Thanks Ilia -- I'll queue up those three for 3.13-stable, and just the
last one for 3.19-stable and 4.2-stable.

 -Kamal


> In that order. This should avoid buggy MSI on the nv4x IGPs as well as
> NV46 (G72).
> 
> Starting with v3.14, you should only need
> 0a363e85cdafbceeee6a49b91c604d0d4d070dc7, since presumably
> 4761703bd04bbdf56396d264903cc5a1fdcb3c01 will have already been
> backported.
> 
> Cheers,
> 
>   -ilia
> --
> To unsubscribe from this list: send the line "unsubscribe stable" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-01-17 19:28 Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf Ilia Mirkin
  2016-01-19 10:22 ` Jiri Slaby
@ 2016-01-27 14:24 ` Luis Henriques
  2016-03-01  5:58 ` Greg KH
  2 siblings, 0 replies; 8+ messages in thread
From: Luis Henriques @ 2016-01-27 14:24 UTC (permalink / raw)
  To: Ilia Mirkin
  Cc: stable, nouveau@lists.freedesktop.org, Hans de Goede, Ben Skeggs

On Sun, Jan 17, 2016 at 02:28:13PM -0500, Ilia Mirkin wrote:
> Hello,
> 
> I'd like to recommend backporting this commit:
> 
> commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
> Author: Hans de Goede <hdegoede@redhat.com>
> Date:   Thu Jul 23 17:20:12 2015 +0200
> 
>     drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c
> 
> This disables MSI by default on G72 (NV46) devices where it's
> apparently a bit buggy. We have a later patch which turns MSI back on
> with a quirk, but it isn't extremely necessary for these devices, and
> disabling (or, rather, not enabling) MSI is a pretty safe thing to do.
> 
> The patch went upstream in 4.3-rc1, however I believe that there are
> still a number of kernels between 3.12 (where MSI was first enabled by
> default - commit a27e56996) and 4.2 (inclusive) which are still being
> maintained. To those maintainers, please consider including this in
> your trees.
> 

Thank you Ilia, I'm queuing it for the 3.16 kernel as well.

Cheers,
--
Lu�s

> Cheers,
> 
>   -ilia
> --
> To unsubscribe from this list: send the line "unsubscribe stable" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-01-17 19:28 Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf Ilia Mirkin
  2016-01-19 10:22 ` Jiri Slaby
  2016-01-27 14:24 ` Luis Henriques
@ 2016-03-01  5:58 ` Greg KH
  2016-03-01  6:19   ` Willy Tarreau
  2 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2016-03-01  5:58 UTC (permalink / raw)
  To: Ilia Mirkin
  Cc: stable, nouveau@lists.freedesktop.org, Hans de Goede, Ben Skeggs

On Sun, Jan 17, 2016 at 02:28:13PM -0500, Ilia Mirkin wrote:
> Hello,
> 
> I'd like to recommend backporting this commit:
> 
> commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
> Author: Hans de Goede <hdegoede@redhat.com>
> Date:   Thu Jul 23 17:20:12 2015 +0200
> 
>     drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c

It doesn't apply to 3.14-stable at all :(

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

* Re: Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf
  2016-03-01  5:58 ` Greg KH
@ 2016-03-01  6:19   ` Willy Tarreau
  0 siblings, 0 replies; 8+ messages in thread
From: Willy Tarreau @ 2016-03-01  6:19 UTC (permalink / raw)
  To: Greg KH
  Cc: Ilia Mirkin, stable, nouveau@lists.freedesktop.org, Hans de Goede,
	Ben Skeggs

On Tue, Mar 01, 2016 at 05:58:44AM +0000, Greg KH wrote:
> On Sun, Jan 17, 2016 at 02:28:13PM -0500, Ilia Mirkin wrote:
> > Hello,
> > 
> > I'd like to recommend backporting this commit:
> > 
> > commit 0a363e85cdafbceeee6a49b91c604d0d4d070dc7
> > Author: Hans de Goede <hdegoede@redhat.com>
> > Date:   Thu Jul 23 17:20:12 2015 +0200
> > 
> >     drm/nouveau/nv46: Change mc subdev oclass from nv44 to nv4c
> 
> It doesn't apply to 3.14-stable at all :(

I just checked, the path to the file changed, in 3.14 you need to
replace "/nvkm/" with "/core/". However given that all entries in
the switch/case are nearly identical, there are great chances for
this patch to be applied at the wrong positioni (it targets 0x46),
I guess someone who owns this hardware should provide the backport
after testing it to ensure it applies at the right position and
really works.

Willy

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

end of thread, other threads:[~2016-03-01  6:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-17 19:28 Recommendation for cherry-pick between 3.12 and 4.2: 0a363e85cdaf Ilia Mirkin
2016-01-19 10:22 ` Jiri Slaby
2016-01-19 11:03   ` Ilia Mirkin
2016-01-19 13:53     ` Jiri Slaby
2016-01-26 18:14     ` Kamal Mostafa
2016-01-27 14:24 ` Luis Henriques
2016-03-01  5:58 ` Greg KH
2016-03-01  6:19   ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).