lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8e40e6468e9cf03138a512550f1e519e.squirrel@webmail.greenhost.nl>
Date:	Fri, 11 Mar 2011 02:30:04 +0100 (CET)
From:	"Indan Zupancic" <indan@....nu>
To:	"Keith Packard" <keithp@...thp.com>
Cc:	"Takashi Iwai" <tiwai@...e.de>,
	"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
	"DRI mailing list" <dri-devel@...ts.freedesktop.org>,
	"Alex Riesen" <raa.lkml@...il.com>,
	"Tino Keitel" <tino.keitel@...ei.de>,
	"Linus Torvalds" <torvalds@...ux-foundation.org>, stable@...nel.org
Subject: Re: [PATCH] drm/i915: Revive combination mode for backlight control

On Thu, March 10, 2011 20:36, Keith Packard wrote:
> On Thu, 10 Mar 2011 14:02:12 +0100, Takashi Iwai <tiwai@...e.de> wrote:
>> +			val &= ~1;
>
> The reason for this is that some ancient platforms wire this bit to
> be "go to max backlight", or at least that's why this was in the 2D
> driver from which this code was derived.

If that is the case, then shouldn't it be at the end, after val *= lbpc?
I know it doesn't make much difference, as multiplying with an even number
always gives an even result, but it would make the intention clearer and
give a more precise result.

What about gen 3? Does it support combination mode too?

If you can confirm that there are no gen 2 systems with ASLE support,
we can remove the gen 2 check and only touch the PWM register, as the
ASLE code is the only one that changes the brightness. The panel code
only saves and restores it, and LBPC is saved and restored by the
BIOS already. Then those weird gen 2 quirks can be removed.

(Something for 2.6.39 perhaps.)

It's sad that something as simple as backlight control needs so much
code.

Greetings,

Indan


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ