2013-04-09 12:38:44

by Josh Boyer

[permalink] [raw]
Subject: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

Upstream commit 01e3a8feb40e54b962a20fa7eb595c5efef5e109

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=31522#c35
[Note: There are more than one broken setups in the bug. This fixes one.]
Reported-by: Martins <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
---
drivers/gpu/drm/i915/intel_display.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e6e4df7..6292677 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8899,6 +8899,12 @@ static struct intel_quirk intel_quirks[] = {
/* Acer Aspire 5734Z must invert backlight brightness */
{ 0x2a42, 0x1025, 0x0459, quirk_invert_brightness },

+ /* Acer/eMachines G725 */
+ { 0x2a42, 0x1025, 0x0210, quirk_invert_brightness },
+
+ /* Acer/eMachines e725 */
+ { 0x2a42, 0x1025, 0x0212, quirk_invert_brightness },
+
/* Acer Aspire 4736Z */
{ 0x2a42, 0x1025, 0x0260, quirk_invert_brightness },
};
--
1.8.1.4


2013-04-09 14:12:08

by Jani Nikula

[permalink] [raw]
Subject: Re: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

On Tue, 09 Apr 2013, Josh Boyer <[email protected]> wrote:
> Upstream commit 01e3a8feb40e54b962a20fa7eb595c5efef5e109

This patch seems to be the above commit and

commit 1ffff60320879830e469e26062c18f75236822ba
Author: Jani Nikula <[email protected]>
Date: Tue Jan 22 12:50:34 2013 +0200

drm/i915: add quirk to invert brightness on eMachines G725

squashed together. There's a separate bug for that too:
https://bugs.freedesktop.org/show_bug.cgi?id=59628

I think both are okay for stable, but by the stable rules you should
probably split this up, with the appropriate upstream references in
both. Or do whatever the stable team tells you to do. ;)

BR,
Jani.

>
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=31522#c35
> [Note: There are more than one broken setups in the bug. This fixes one.]
> Reported-by: Martins <[email protected]>
> Signed-off-by: Jani Nikula <[email protected]>
> Signed-off-by: Daniel Vetter <[email protected]>
> ---
> drivers/gpu/drm/i915/intel_display.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index e6e4df7..6292677 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -8899,6 +8899,12 @@ static struct intel_quirk intel_quirks[] = {
> /* Acer Aspire 5734Z must invert backlight brightness */
> { 0x2a42, 0x1025, 0x0459, quirk_invert_brightness },
>
> + /* Acer/eMachines G725 */
> + { 0x2a42, 0x1025, 0x0210, quirk_invert_brightness },
> +
> + /* Acer/eMachines e725 */
> + { 0x2a42, 0x1025, 0x0212, quirk_invert_brightness },
> +
> /* Acer Aspire 4736Z */
> { 0x2a42, 0x1025, 0x0260, quirk_invert_brightness },
> };
> --
> 1.8.1.4

2013-04-09 14:22:36

by Josh Boyer

[permalink] [raw]
Subject: Re: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

On Tue, Apr 09, 2013 at 05:12:18PM +0300, Jani Nikula wrote:
> On Tue, 09 Apr 2013, Josh Boyer <[email protected]> wrote:
> > Upstream commit 01e3a8feb40e54b962a20fa7eb595c5efef5e109
>
> This patch seems to be the above commit and
>
> commit 1ffff60320879830e469e26062c18f75236822ba
> Author: Jani Nikula <[email protected]>
> Date: Tue Jan 22 12:50:34 2013 +0200
>
> drm/i915: add quirk to invert brightness on eMachines G725
>
> squashed together. There's a separate bug for that too:
> https://bugs.freedesktop.org/show_bug.cgi?id=59628

Oh... that actually does seem to be the case. I did a cherry-pick
of just the commit I mentioned on top of 3.8.6 and it seems I resolved
the conflict by including in changes for both. The conflict came up as:

<<<<<<< HEAD
/* Acer Aspire 4736Z */
{ 0x2a42, 0x1025, 0x0260, quirk_invert_brightness },
=======
/* Acer/eMachines G725 */
{ 0x2a42, 0x1025, 0x0210, quirk_invert_brightness },

/* Acer/eMachines e725 */
{ 0x2a42, 0x1025, 0x0212, quirk_invert_brightness },
>>>>>>> 01e3a8f... drm/i915: add quirk to invert brightness on eMachines e725

Thanks for catching that.

> I think both are okay for stable, but by the stable rules you should
> probably split this up, with the appropriate upstream references in
> both. Or do whatever the stable team tells you to do. ;)

Yeah. I'm happy to split them up and send them out separately. Or if
Greg wants to just list both upstream commit IDs with a single backport,
that would also be fine.

josh

2013-04-10 02:34:38

by Ben Hutchings

[permalink] [raw]
Subject: Re: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

On Tue, 2013-04-09 at 10:22 -0400, Josh Boyer wrote:
> On Tue, Apr 09, 2013 at 05:12:18PM +0300, Jani Nikula wrote:
> > On Tue, 09 Apr 2013, Josh Boyer <[email protected]> wrote:
> > > Upstream commit 01e3a8feb40e54b962a20fa7eb595c5efef5e109
> >
> > This patch seems to be the above commit and
> >
> > commit 1ffff60320879830e469e26062c18f75236822ba
> > Author: Jani Nikula <[email protected]>
> > Date: Tue Jan 22 12:50:34 2013 +0200
> >
> > drm/i915: add quirk to invert brightness on eMachines G725
> >
> > squashed together. There's a separate bug for that too:
> > https://bugs.freedesktop.org/show_bug.cgi?id=59628
>
> Oh... that actually does seem to be the case. I did a cherry-pick
> of just the commit I mentioned on top of 3.8.6 and it seems I resolved
> the conflict by including in changes for both. The conflict came up as:
>
> <<<<<<< HEAD
> /* Acer Aspire 4736Z */
> { 0x2a42, 0x1025, 0x0260, quirk_invert_brightness },
> =======
> /* Acer/eMachines G725 */
> { 0x2a42, 0x1025, 0x0210, quirk_invert_brightness },
>
> /* Acer/eMachines e725 */
> { 0x2a42, 0x1025, 0x0212, quirk_invert_brightness },
> >>>>>>> 01e3a8f... drm/i915: add quirk to invert brightness on eMachines e725
>
> Thanks for catching that.
>
> > I think both are okay for stable, but by the stable rules you should
> > probably split this up, with the appropriate upstream references in
> > both. Or do whatever the stable team tells you to do. ;)
>
> Yeah. I'm happy to split them up and send them out separately. Or if
> Greg wants to just list both upstream commit IDs with a single backport,
> that would also be fine.

I cherry-picked the following series for Debian:

[pre-3.8]
7bd90909bbf9 drm/i915: panel: invert brightness via parameter
4dca20efb1a9 drm/i915: panel: invert brightness via quirk
5a15ab5b93e4 drm/i915: panel: invert brightness acer aspire 5734z
5f85f176c2f1 DRM/i915: Add QUIRK_INVERT_BRIGHTNESS for NCR machines.
[post-3.8]
1ffff6032087 drm/i915: add quirk to invert brightness on eMachines G725
01e3a8feb40e drm/i915: add quirk to invert brightness on eMachines e725
5559ecadad5a drm/i915: add quirk to invert brightness on Packard Bell NCL20

Should these all be applied to the various 3.x.y stable branches?

Ben.

--
Ben Hutchings
The program is absolutely right; therefore, the computer must be wrong.


Attachments:
signature.asc (828.00 B)
This is a digitally signed message part

2013-04-10 09:37:40

by Jani Nikula

[permalink] [raw]
Subject: Re: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

On Wed, 10 Apr 2013, Ben Hutchings <[email protected]> wrote:
> I cherry-picked the following series for Debian:
>
> [pre-3.8]
> 7bd90909bbf9 drm/i915: panel: invert brightness via parameter
> 4dca20efb1a9 drm/i915: panel: invert brightness via quirk
> 5a15ab5b93e4 drm/i915: panel: invert brightness acer aspire 5734z
> 5f85f176c2f1 DRM/i915: Add QUIRK_INVERT_BRIGHTNESS for NCR machines.
> [post-3.8]
> 1ffff6032087 drm/i915: add quirk to invert brightness on eMachines G725
> 01e3a8feb40e drm/i915: add quirk to invert brightness on eMachines e725
> 5559ecadad5a drm/i915: add quirk to invert brightness on Packard Bell NCL20
>
> Should these all be applied to the various 3.x.y stable branches?

Acked-by: Jani Nikula <[email protected]>

2013-04-22 01:03:44

by Ben Hutchings

[permalink] [raw]
Subject: Re: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

On Wed, 2013-04-10 at 12:37 +0300, Jani Nikula wrote:
> On Wed, 10 Apr 2013, Ben Hutchings <[email protected]> wrote:
> > I cherry-picked the following series for Debian:
> >
> > [pre-3.8]
> > 7bd90909bbf9 drm/i915: panel: invert brightness via parameter
> > 4dca20efb1a9 drm/i915: panel: invert brightness via quirk
> > 5a15ab5b93e4 drm/i915: panel: invert brightness acer aspire 5734z
> > 5f85f176c2f1 DRM/i915: Add QUIRK_INVERT_BRIGHTNESS for NCR machines.
> > [post-3.8]
> > 1ffff6032087 drm/i915: add quirk to invert brightness on eMachines G725
> > 01e3a8feb40e drm/i915: add quirk to invert brightness on eMachines e725
> > 5559ecadad5a drm/i915: add quirk to invert brightness on Packard Bell NCL20
> >
> > Should these all be applied to the various 3.x.y stable branches?
>
> Acked-by: Jani Nikula <[email protected]>

Queued up for 3.2, thanks.

Ben.

--
Ben Hutchings
Klipstein's 4th Law of Prototyping and Production:
A fail-safe circuit will destroy others.


Attachments:
signature.asc (828.00 B)
This is a digitally signed message part