Summary: | [hsw bisected regression] Chromebook loses backlight control in 3.15 | ||
---|---|---|---|
Product: | DRI | Reporter: | Scot Doyle <lkml14> |
Component: | DRM/Intel | Assignee: | Scot Doyle <lkml14> |
Status: | CLOSED FIXED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> |
Severity: | critical | ||
Priority: | high | CC: | intel-gfx-bugs, james.ausmus |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Description
Scot Doyle
2014-06-09 04:10:28 UTC
Either the bios is incorrect on your machine, or we are interpreting that version of the bios incorrectly. If it is just a bad bios, you will need to quirk. Caused by commit c675949ec58ca50d5a3ae3c757892f1560f6e896 Author: Jani Nikula <jani.nikula@intel.com> Date: Wed Apr 9 11:31:37 2014 +0300 drm/i915: do not setup backlight if not available according to VBT There are plenty of machines that have a dedicated EC for backlight control, and break if we provide a backlight interface and touch the backlight registers. The way to provide the information to the kernel is the VBT. How would this problem be fixed on my machine? Do I need to submit a patch to enable a "quirk mode" for it? Or maybe there is already a kernel command line option that solves this problem? How would this problem be fixed on my machine? Do I need to submit a patch to enable a quirk mode for it? Or maybe there is already a kernel command line option that solves this problem? An Acer C720 user has confirmed this diagnostic patch has restored their backlight functionality that disappeared in 3.15. The Acer C720 is another Haswell generation Chromebook that uses coreboot with seabios. Please attach /sys/kernel/debug/dri/0/i915_opregion. I think we need to treat this as a regression and fix it one way or another. Same bisect result but likely different fix required: https://bugzilla.kernel.org/show_bug.cgi?id=77831 /sys/kernel/debug/dri/0/i915_opregion has length 0 bytes under both 3.14.4 (where backlight works) and 3.15.0 (where it doesn't). Just for the record (in regard to the kernel.org bugzilla report) apple_bl isn't loaded on the chromebook. Hmm, please attach dmesg with drm.debug=0xe module parameter set all the way from boot. Please attach the dump produced by intel_bios_dumper tool from the intel-gpu-tools package: http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/ Created attachment 101189 [details]
dmesg output with drm.debug=0xe, acer c720 3.15
Created attachment 101190 [details]
intel bios dump, acer c720, 3.15
Is the patch in the first post the best there is at the moment? Created attachment 101223 [details] [review] Revert "drm/i915: do not setup backlight if not available according to VBT" (In reply to comment #14) > Is the patch in the first post the best there is at the moment? If you want to run a patched system, the attached patch is better. I am still hesitant to merge it, as it will regress a load of other systems. Still trying to figure out a better alternative. Created attachment 101229 [details]
vbios for 3.14 with working backlight
Created attachment 101230 [details]
vbios for 3.15 with no backlight control
Created attachment 101231 [details]
dmesg for 3.15 with no backlight control
It looks like the chromebooks aren't adding the backlight control because the VBT size check passes but the VBT says there is no backlight. Do we know of any other machines besides the chromebooks with this exact problem? If not, maybe a quirk would be the best approach? I think I know how to identify the machines in question. (In reply to comment #19) > It looks like the chromebooks aren't adding the backlight control because > the VBT size check passes but the VBT says there is no backlight. Yes. Either the VBT is wrong or we're interpreting the VBT wrong. I'm still waiting on an enquiry about the latter possibility. Chromebooks generally don't have fully configured VBTs, so we'll probably need a DMI match table for them, or some other detection method. Starting with the BYT chromebooks, the VBTs will have a bit more info, but we still rely on the OEMs to program it, so it'll likely only have the bare minimum set of info required to get Chrome up and running with the Chrome kernel, so there may be missing or uninitialized fields relative to a typical PC. Jani, do you have a preference as to who writes the patch? Here's some DMI information for Haswell Chromebook laptops. DMI_BIOS_VENDOR all four laptops = "coreboot" DMI_PRODUCT_NAME Acer C720 = "Peppy" Dell Chromebook 11 = "Wolf" HP Chromebook 14 = "Falco" Toshiba CB35 = "Leon" As far as I can tell, those are the only four Haswell Chromebooks. I'm working on a patch. If anyone with an HP 14 Chromebook or Dell 11 Chromebook would like to help, please post the output from: sudo dmidecode|grep Product sudo lspci -vnn|grep -A 10 "Graphics Controller" Created attachment 101813 [details] [review] Patch against Linux 3.16-rc2 Created attachment 101814 [details] [review] Patch against drm-intel-nightly Looking for testers for the patch posted today (either against 3.16-rc2 or drm-intel-nightly) by users of Acer C720, Dell 11, HP 14, and Toshiba CB35 Chromebooks. Thanks! Scot, please submit your patch (against drm-intel-nightly) to the intel-gfx mailing list for a wider audience. Thanks. Created attachment 101879 [details]
dmidecode/product & lscpi/vga
macbook 4,1 also affected. Comment on attachment 101879 [details]
dmidecode/product & lscpi/vga
kernel 3.13.x all works
kernel 3.14.x black screen at kernel boot time, but restored by init programs
kernel 3.15.x screen to full bright and not backlight
(In reply to comment #29) > Created attachment 101879 [details] > dmidecode/product & lscpi/vga damocles, have you seen https://bugzilla.kernel.org/show_bug.cgi?id=77831 ? Patches applied to drm-intel-fixes |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.