* [PATCH] drm/i915: inverted brightness quirk for HP 2000 Notebook
@ 2013-08-28 17:38 Rodrigo Vivi
2013-08-28 18:12 ` Daniel Vetter
0 siblings, 1 reply; 4+ messages in thread
From: Rodrigo Vivi @ 2013-08-28 17:38 UTC (permalink / raw)
To: intel-gfx; +Cc: Jani Nikula
01.org forum: https://01.org/linuxgraphics/node/199
Slot: 00:02.0
Class: VGA compatible controller [0300]
Vendor: Intel Corporation [8086]
Device: 2nd Generation Core Processor Family Integrated Graphics Controller [0106]
SVendor: Hewlett-Packard Company [103c]
SDevice: Device [1854]
Rev: 09
Reported-by: Laurent Chardon <laurent.chardon@gmail.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
---
drivers/gpu/drm/i915/intel_display.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index cee9c0d..f1be63b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9975,6 +9975,9 @@ static struct intel_quirk intel_quirks[] = {
/* Acer Aspire 4736Z */
{ 0x2a42, 0x1025, 0x0260, quirk_invert_brightness },
+ /* HP 2000 Notebook */
+ { 0x0106, 0x103c, 0x1854, quirk_invert_brightness },
+
/* Dell XPS13 HD Sandy Bridge */
{ 0x0116, 0x1028, 0x052e, quirk_no_pcm_pwm_enable },
/* Dell XPS13 HD and XPS13 FHD Ivy Bridge */
--
1.8.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: inverted brightness quirk for HP 2000 Notebook
2013-08-28 17:38 [PATCH] drm/i915: inverted brightness quirk for HP 2000 Notebook Rodrigo Vivi
@ 2013-08-28 18:12 ` Daniel Vetter
2013-08-28 18:23 ` Jani Nikula
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Vetter @ 2013-08-28 18:12 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: Jani Nikula, intel-gfx
On Wed, Aug 28, 2013 at 7:38 PM, Rodrigo Vivi <rodrigo.vivi@gmail.com> wrote:
> 01.org forum: https://01.org/linuxgraphics/node/199
>
> Slot: 00:02.0
> Class: VGA compatible controller [0300]
> Vendor: Intel Corporation [8086]
> Device: 2nd Generation Core Processor Family Integrated Graphics Controller [0106]
> SVendor: Hewlett-Packard Company [103c]
> SDevice: Device [1854]
> Rev: 09
>
> Reported-by: Laurent Chardon <laurent.chardon@gmail.com>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
All the inverted brightness machines we've seen have been gen4 and
Acer/Packard Bell. I suspect there's something amiss in our backlight
handling and at least for current platforms I don't want to merge
quirks before we've reasonably proven that we really need them. Which
means someone should show that Windows has specific code for this HP
laptop first ...
One thing I remember is that there's a linearization table in the vbt
somewhere, maybe that does the trick. Or we simply race our driver
against something in the firmware and inverting the brightness here
cures that.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: inverted brightness quirk for HP 2000 Notebook
2013-08-28 18:12 ` Daniel Vetter
@ 2013-08-28 18:23 ` Jani Nikula
2013-08-28 18:46 ` Rodrigo Vivi
0 siblings, 1 reply; 4+ messages in thread
From: Jani Nikula @ 2013-08-28 18:23 UTC (permalink / raw)
To: Daniel Vetter, Rodrigo Vivi; +Cc: intel-gfx
On Wed, 28 Aug 2013, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Wed, Aug 28, 2013 at 7:38 PM, Rodrigo Vivi <rodrigo.vivi@gmail.com> wrote:
>> 01.org forum: https://01.org/linuxgraphics/node/199
>>
>> Slot: 00:02.0
>> Class: VGA compatible controller [0300]
>> Vendor: Intel Corporation [8086]
>> Device: 2nd Generation Core Processor Family Integrated Graphics Controller [0106]
>> SVendor: Hewlett-Packard Company [103c]
>> SDevice: Device [1854]
>> Rev: 09
>>
>> Reported-by: Laurent Chardon <laurent.chardon@gmail.com>
>> Cc: Jani Nikula <jani.nikula@intel.com>
>> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
>
> All the inverted brightness machines we've seen have been gen4 and
> Acer/Packard Bell. I suspect there's something amiss in our backlight
> handling and at least for current platforms I don't want to merge
> quirks before we've reasonably proven that we really need them. Which
> means someone should show that Windows has specific code for this HP
> laptop first ...
Agreed. I'd be wary of adding inverted backlight quirks for anything
other than gen4 Acers (or their other brands).
> One thing I remember is that there's a linearization table in the vbt
> somewhere, maybe that does the trick. Or we simply race our driver
> against something in the firmware and inverting the brightness here
> cures that.
If you get the reporter to dump the i915_opregion file from debugfs, I
could check the table.
Cheers,
Jani.
> -Daniel
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> +41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: inverted brightness quirk for HP 2000 Notebook
2013-08-28 18:23 ` Jani Nikula
@ 2013-08-28 18:46 ` Rodrigo Vivi
0 siblings, 0 replies; 4+ messages in thread
From: Rodrigo Vivi @ 2013-08-28 18:46 UTC (permalink / raw)
To: Jani Nikula, Laurent Chardon; +Cc: intel-gfx
Hi Laurent,
is it possible to get the i915_opregion from your debugfs?
probably under /sys/kernel/debug/dri/0/i915_opregion
Thanks,
Rodrigo.
On Wed, Aug 28, 2013 at 3:23 PM, Jani Nikula <jani.nikula@intel.com> wrote:
> On Wed, 28 Aug 2013, Daniel Vetter <daniel@ffwll.ch> wrote:
>> On Wed, Aug 28, 2013 at 7:38 PM, Rodrigo Vivi <rodrigo.vivi@gmail.com> wrote:
>>> 01.org forum: https://01.org/linuxgraphics/node/199
>>>
>>> Slot: 00:02.0
>>> Class: VGA compatible controller [0300]
>>> Vendor: Intel Corporation [8086]
>>> Device: 2nd Generation Core Processor Family Integrated Graphics Controller [0106]
>>> SVendor: Hewlett-Packard Company [103c]
>>> SDevice: Device [1854]
>>> Rev: 09
>>>
>>> Reported-by: Laurent Chardon <laurent.chardon@gmail.com>
>>> Cc: Jani Nikula <jani.nikula@intel.com>
>>> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
>>
>> All the inverted brightness machines we've seen have been gen4 and
>> Acer/Packard Bell. I suspect there's something amiss in our backlight
>> handling and at least for current platforms I don't want to merge
>> quirks before we've reasonably proven that we really need them. Which
>> means someone should show that Windows has specific code for this HP
>> laptop first ...
>
> Agreed. I'd be wary of adding inverted backlight quirks for anything
> other than gen4 Acers (or their other brands).
>
>> One thing I remember is that there's a linearization table in the vbt
>> somewhere, maybe that does the trick. Or we simply race our driver
>> against something in the firmware and inverting the brightness here
>> cures that.
>
> If you get the reporter to dump the i915_opregion file from debugfs, I
> could check the table.
>
> Cheers,
> Jani.
>
>
>
>> -Daniel
>> --
>> Daniel Vetter
>> Software Engineer, Intel Corporation
>> +41 (0) 79 365 57 48 - http://blog.ffwll.ch
--
Rodrigo Vivi
Blog: http://blog.vivi.eng.br
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-28 18:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-28 17:38 [PATCH] drm/i915: inverted brightness quirk for HP 2000 Notebook Rodrigo Vivi
2013-08-28 18:12 ` Daniel Vetter
2013-08-28 18:23 ` Jani Nikula
2013-08-28 18:46 ` Rodrigo Vivi
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.