Bug 72491
Summary: | acpi backlight does not expose full brightness on Haswell-ULT | ||
---|---|---|---|
Product: | ACPI | Reporter: | Nico Schottelius (nico-bugzilla.kernel.org) |
Component: | Power-Video | Assignee: | Aaron Lu (aaron.lu) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | aaron.lu, mike.cloaked, solenskiner |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.13.6-1-ARCH | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
acpidump
dmesg Restore backlight conversion precision |
Description
Nico Schottelius
2014-03-19 17:54:04 UTC
acpidump and dmesg please. Created attachment 130081 [details]
acpidump
Created attachment 130091 [details]
dmesg
Let me know if you need any further information. Cheers, Nico Oh I see, it's my bad. It's caused by commit: commit 22505b82a2800bddb67908522833bef96dd15845 Author: Aaron Lu <aaron.lu@intel.com> Date: Fri Aug 2 09:16:03 2013 +0800 drm/i915: avoid brightness overflow when doing scale Where to avoid a integer overflow, I modified the backlight level scale code: /* scale to hardware */ - level = level * freq / max; + if (freq < max) + level = level * freq / max; + else + level = freq / max * level; And the freq=937, max=255, level=255, yields the result=765. We lose some precision here. Looks like simply using an u64 should solve this problem. Will prepare a patch later. Created attachment 130151 [details]
Restore backlight conversion precision
Please test this patch, thanks.
ping ... compiling (seriously) bugzilla-daemon@bugzilla.kernel.org [Mon, Mar 31, 2014 at 05:55:05AM +0000]: > https://bugzilla.kernel.org/show_bug.cgi?id=72491 > > --- Comment #7 from Aaron Lu <aaron.lu@intel.com> --- > ping > > -- > You are receiving this mail because: > You reported the bug. Works fine! Patch sent out to mailing list for review: http://lists.freedesktop.org/archives/intel-gfx/2014-April/044350.html I am not sure if the bug I filed at https://bugs.freedesktop.org/show_bug.cgi?id=78200 is a dup of this bug or not? Also I filed that against systemd which may well be the wrong component and perhaps it should have been for acpi? Fix pushed to drm-intel-fixes (and drm-intel-nightly) as commit 721e82c08c1afd6b47367b0e0c4a62140b0667f3 Author: Aaron Lu <aaron.lu@intel.com> Date: Mon May 12 16:55:45 2014 +0800 drm/i915: restore backlight precision when converting from ACPI Thanks for the report and the fix. It appears we fixed Mike's issue in comment #11 too, so all is well. (Fingers crossed.) *** Bug 84911 has been marked as a duplicate of this bug. *** |