DRM/Intel Black screen after grub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Fix Released
|
High
|
|||
linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
According to the following bug there's still no fix available for Ubuntu.
The problem is reproducible using Lenovo IdeaPad D330-10IGM, probably only the N4000 based models (I've tried with N5000 and the screen is rotated to the left and I need xradr to rotate it yet it's not blank).
https:/
I just wanted to make sure that the patch is included in Ubuntu, I can help with testing.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #1 |
In freedesktop.org Bugzilla #108826, Lakshminarayana-vudum (lakshminarayana-vudum) wrote : | #2 |
Miroslaw, How often you see this issue? CAn you reproduce this issue?
Can you attach cat /sys/kernel/
Imre, any comments here?
In freedesktop.org Bugzilla #108826, Imre-deak (imre-deak) wrote : | #3 |
Miroslaw, could you post a dmesg log booting with drm.debug=0x1e ?
I see that there's a suspend followed by a second kernel boot with the nomodeset kernel parameter. Is that some kexec thing? nomodeset will disable the i915 driver:
Nov 21 20:25:43 qq-ETP101WL64 kernel: [ 117.478108] [drm:gen9_
Nov 21 20:25:43 qq-ETP101WL64 kernel: [ 117.743131] PM: suspend entry (deep)
Nov 21 20:26:59 qq-ETP101WL64 kernel: [ 0.000000] microcode: microcode updated early to revision 0x28, date = 2018-05-22
Nov 21 20:26:59 qq-ETP101WL64 kernel: [ 0.000000] Linux version 4.20.0-994-generic (kernel@tangerine) (gcc version 8.2.0 (Ubuntu 8.2.0-9ubuntu1)) #201811202101 SMP Wed Nov 21 02:04:29 UTC 2018
Nov 21 20:26:59 qq-ETP101WL64 kernel: [ 0.000000] Command line: BOOT_IMAGE=
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #4 |
I think you see second boot because I had to boot device with the nomodeset parameter second time ( then screen is working but this is software mode ) to copy data log from /var/log ...because without this parameter the screen is black ( only backlight works ) .
I forgot to remove second log data from kernel.log file .
In freedesktop.org Bugzilla #108826, Jani-nikula (jani-nikula) wrote : | #5 |
(In reply to Lakshmi from comment #1)
> Can you attach cat /sys/kernel/
It's a MIPI DSI panel, that file is not relevant.
In freedesktop.org Bugzilla #108826, Jani-saarinen-g (jani-saarinen-g) wrote : | #6 |
I see our GLK DSI on CI generally happy on BAT:
https:/
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #7 |
This is MIPI DSI panel - yes
Device is a tablet ..so works on battery - yes
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #8 |
Do you need more details ?
In freedesktop.org Bugzilla #108826, Imre-deak (imre-deak) wrote : | #9 |
(In reply to Miroslaw from comment #7)
> Do you need more details ?
Could you provide the dmesg log booting with drm.debug=0x1e? Please capture the log right after booting, when the screen is blank.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #10 |
Created attachment 142580
drm.debug=0x1e
log with param drm.debug=0x1e
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #11 |
Did that start to happen only with recent kernel? Can you please also attach kernel log with drm.debug with a working kernel?
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #12 |
There is no working kernel .
I tested from 4.15 up to 4.20-rc1 ... akways the same - black screen after grub ( backlight works ) .
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #13 |
Hi
Any ideas how to fix it ?
In freedesktop.org Bugzilla #108826, Jani-nikula (jani-nikula) wrote : | #14 |
One idea for debugging this:
1) boot *without* loading i915
2) get register dump using intel_reg (from the igt-gpu-tools [1])
3) modprobe i915 (presumably screen goes black at this point)
4) repeat the register dump
Alas I think intel_reg dump still falls short for MIPI DSI register dumps. Someone from our side should provide a register spec file to use with intel_reg to include all the relevant registers. (One of the reasons we're not dumping the DSI registers by default is that reading them hangs the machine if DSI isn't properly powered and clocks enabled.)
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #15 |
Hi
I'm trying to compile igt-gpu-tools for debugging
but have problems with dependencies
Dependency xmlrpc found: NO
Dependency xmlrpc_util found: NO
Dependency xmlrpc_client found: NO
Dependency xv found: NO
Program rst2man-3 found: NO
I can't find those dependencies ...
I'm trying to build it on Ubuntu 18.04 what system are you using for it ?
Thank for help
In freedesktop.org Bugzilla #108826, Jani-saarinen-g (jani-saarinen-g) wrote : | #16 |
+ Petri and Arek to comment deps.
In freedesktop.org Bugzilla #108826, Jani-saarinen-g (jani-saarinen-g) wrote : | #17 |
Miroslaw, have you read README.md. Does it help?
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #18 |
Reading readme was the first thing what I did .
I installed all dependencies from readme.md.
But still missing
Dependency xmlrpc found: NO
Dependency xmlrpc_util found: NO
Dependency xmlrpc_client found: NO
Dependency xv found: NO
Program rst2man-3 found: NO
I tried installed those missing by myself but can't find it .
As I said - I'm using Ubuntu 18.04 ... maybe is not compatible. What system are you using for build this app ? .
In freedesktop.org Bugzilla #108826, Petri-latvala (petri-latvala) wrote : | #19 |
(In reply to Miroslaw from comment #14)
> Hi
>
> I'm trying to compile igt-gpu-tools for debugging
> but have problems with dependencies
>
> Dependency xmlrpc found: NO
> Dependency xmlrpc_util found: NO
> Dependency xmlrpc_client found: NO
> Dependency xv found: NO
> Program rst2man-3 found: NO
>
> I can't find those dependencies ...
> I'm trying to build it on Ubuntu 18.04 what system are you using for it ?
>
> Thank for help
Those dependencies are for Chamelium support (xmlrpc), intel-gpu-overlay (xv) and man pages (rst2man-3).
xmlrpc in Debian and Ubuntu are old enough to not have pkg-config support. The NO you're seeing for them is not finding its pkg-config files. If those fail, the build system is using xmlrpc-config.
Overlay has two variants, with xv or with xlib.
rst2man-3 is a binary in Fedora for its python3 version. On Ubuntu, rst2man is used.
In a nutshell: All those missing dependencies are for particular variants, and even if you don't have the other variants, the disabled build artifacts are not related to the intel_reg tool.
The Debian packages that are used in gitlab CI should also work for Ubuntu, check out Dockerfile.debian.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #20 |
Created attachment 142638
igt-gpu-tools - dump i915.modeset=
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #21 |
Created attachment 142639
igt-gpu-tools - dump fully_working_
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #22 |
I added 2 dumps from igt-gpu-tools
command : intel_reg dump
Without loaded gpu driver and with working gpu driver.
Of course with working gpu driver I have black screen.
If you need more data please ask.
Thanks
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #23 |
So
Any ideas ? ;-)
Thanks
In freedesktop.org Bugzilla #108826, Jani-nikula (jani-nikula) wrote : | #24 |
Just to double check, are you booting in UEFI mode and not in legacy BIOS mode?
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #25 |
I'm sure on 100 % - booting from UEFI
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #26 |
And no legacy BIOS mode.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #27 |
So do I got any support about my problem ?
In freedesktop.org Bugzilla #108826, Lakshminarayana-vudum (lakshminarayana-vudum) wrote : | #28 |
Jani, attached register dumps are helpful?
In freedesktop.org Bugzilla #108826, Jani-nikula (jani-nikula) wrote : | #29 |
(In reply to Lakshmi from comment #27)
> Jani, attached register dumps are helpful?
See comment #13.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #30 |
(In reply to Jani Nikula from comment #28)
> (In reply to Lakshmi from comment #27)
> > Jani, attached register dumps are helpful?
>
> See comment #13.
I did dumps and attached here ...
What's you want now ?
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #31 |
Apart from that your team has the tablet in the hands - Etab pro .
Thanks for any solution .
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #32 |
Can you try the most recent drm-tip kernel? Yesterday I tried to boot from Ubuntu Live CD, the 4.15 kernel which is included obviously didn't work(blank screen as mentioned), however once I've substituted that kernel to 4.20.0-rc7, I could see the kernel boot messages and modesetting worked.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #33 |
PS: I tried all mentioned above with E Tab pro.
In freedesktop.org Bugzilla #108826, Jani-saarinen-g (jani-saarinen-g) wrote : | #34 |
HI,
So you are saying that latest RC7 worked on that tablet and no black screen?
> -----Original Message-----
> From: intel-gfx-bugs [mailto:<email address hidden>] On
> Behalf Of <email address hidden>
> Sent: torstai 27. joulukuuta 2018 11.00
> To: <email address hidden>
> Subject: [Bug 108826] [GLK DSI] Black screen after grub - Ubuntu 18.04 - kernel
> latest tip 21.11.2018
>
> Comment # 32 <https:/
> on bug 108826 <https:/
> Stanislav Lisovskiy <mailto:<email address hidden>>
> PS: I tried all mentioned above with E Tab pro.
>
> _______
>
> You are receiving this mail because:
>
> * You are on the CC list for the bug.
> * You are the assignee for the bug.
> * You are the QA Contact for the bug.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #35 |
I could see a modeset during boot and kernel messages as well as Ubuntu logo. It didn't boot further(couldn't find init) as I didn't update LiveCD filesystem which is squashfs, however I'm pretty sure it will boot, if I will do that. I will try to install Ubuntu to flash drive completely and then try with the recent kernel to confirm this.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #36 |
I try the new kernel in 4th of January ...as I'm on holiday now .
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #37 |
> Stanislav Lisovskiy 2018-12-27 10:52:19 UTC
> I could see a modeset during boot and kernel
> messages as well as Ubuntu logo. It didn't boot
> further (couldn't find init) as I didn't update
> LiveCD filesystem which is squashfs, however I'm
> pretty sure it will boot, if I will do that. I
> will try to install Ubuntu to flash drive
> completely and then try with the recent kernel to
> confirm this.
Hi
I tested full 4.20 kernel ( not rc )
Still black screen is like it was ...
Nothing changed ...
Tomorrow I will test newst tlp kernel kernel .
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #38 |
(In reply to Miroslaw from comment #36)
> > Stanislav Lisovskiy 2018-12-27 10:52:19 UTC
> > I could see a modeset during boot and kernel
> > messages as well as Ubuntu logo. It didn't boot
> > further (couldn't find init) as I didn't update
> > LiveCD filesystem which is squashfs, however I'm
> > pretty sure it will boot, if I will do that. I
> > will try to install Ubuntu to flash drive
> > completely and then try with the recent kernel to
> > confirm this.
>
> Hi
>
> I tested full 4.20 kernel ( not rc )
>
> Still black screen is like it was ...
> Nothing changed ...
> Tomorrow I will test newst tlp kernel kernel .
Ok, I will check it again then.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #39 |
Hi
...so did you check it again ? ... another week passed :-/
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #40 |
Created attachment 143247
Attached pic showing logo after grub
94 comments hidden Loading more comments | view all 174 comments |
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #135 |
Created attachment 144392
DSN
(In reply to Stanislav Lisovskiy from comment #132)
> Miroslaw, do you happen to have any other documents for Microtech Etab?
> Would be nice to see the actual schematics..
Hi Stanislav, in attached you can find all the docs showing connections between PCBA and all the rest. I hope you can find a solution quickly, because this is the last issue we have to solve before to make available the Linux systems on the e-tab Pro.
Please let us know.
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #136 |
Created attachment 144393
Allegro
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #137 |
Created attachment 144394
Schematic TOP
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #138 |
Created attachment 144395
Schematic BOT
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #139 |
(In reply to Microtech from comment #134)
> Created attachment 144392 [details]
> DSN
>
> (In reply to Stanislav Lisovskiy from comment #132)
> > Miroslaw, do you happen to have any other documents for Microtech Etab?
> > Would be nice to see the actual schematics..
>
> Hi Stanislav, in attached you can find all the docs showing connections
> between PCBA and all the rest. I hope you can find a solution quickly,
> because this is the last issue we have to solve before to make available the
> Linux systems on the e-tab Pro.
> Please let us know.
I checked the schematics - pins look correct(i.e GPIO 135 is reset, GPIO 144 power and GPIO 145 is backlight). I guess we might be missing something in vbt and/or during port initilization stage. Do you have any documents containing more precise panel initialization sequence? I mean exact sequence of command which is expected by this panel, for example exact DCS commands need to be sent for example.
The pdf attached by Miroslaw has power-on, power-off sequence which matches what we doing already, however there is no dcs command description.
I also checked Windows driver - MIPI DSI initilization looks roughly the same, however as I'm not familiar with that codebase which is quite big, it might take a lot of time to figure out some minor differences. I would say the best way to go would be to get exact example initilization sequence from panel vendor and then compare everything what we send to that.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #140 |
Also I found that restarting the device without i915 driver and then loading it manually still works, even without those pins.
However if I do suspend even without i915, can't get anything except backlight afterwards. Also if I disable suspend in BIOS it works fine then.
To me it looks like there is something either related to acpi management or panel initialization sequence not mentioned in vbt is missing here.
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #141 |
(In reply to Stanislav Lisovskiy from comment #139)
> Also I found that restarting the device without i915 driver and then loading
> it manually still works, even without those pins.
> However if I do suspend even without i915, can't get anything except
> backlight afterwards. Also if I disable suspend in BIOS it works fine then.
>
> To me it looks like there is something either related to acpi management or
> panel initialization sequence not mentioned in vbt is missing here.
We asked to the panel supplier the exact description of DCS Command. I hope to reply you soon. However, in your opinion which is the solution?
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #142 |
(In reply to Microtech from comment #140)
> (In reply to Stanislav Lisovskiy from comment #139)
> > Also I found that restarting the device without i915 driver and then loading
> > it manually still works, even without those pins.
> > However if I do suspend even without i915, can't get anything except
> > backlight afterwards. Also if I disable suspend in BIOS it works fine then.
> >
> > To me it looks like there is something either related to acpi management or
> > panel initialization sequence not mentioned in vbt is missing here.
>
> We asked to the panel supplier the exact description of DCS Command. I hope
> to reply you soon. However, in your opinion which is the solution?
Well currently one solution is to disable suspend in BIOS and disable access to the gpio pins 3 and 6. Then at least device is fully usable.. However I guess we still need to figure out the reason why this is happening.
If everything is correct in panel initialization then most likely this is related to acpi.
Also it is pretty weird that suspending device even without i915 makes it unusable for i915 driver afterwards. I would say that there is some issue related to acpi management or bios.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #143 |
Disabling suspend mode is not a solution for us at all...
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #144 |
Also when I look at the schematics file("DSN") in the attachment at page 34, where it describes LCD panel pins connections - those don't match with the pin numbers in panel doc pdf itself "1200+1920IPS-
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #145 |
One more interesting finding is that gpio index 5 seems to control display just a same way as backlight pin 4, moreover they both need to be set as 1 in order for display to work. However that doesn't seem to help with suspend issue anyway.
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #146 |
Hello Stanislav. I have some questions and observations with regards to pinctrl/gpio.
Based on https:/
So I checked further and found in /sys/kernel/
...
pin 46 (PCIE_CLKREQ2_B): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (PCIE_CLKREQ3_B): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 48 (HV_DDI0_DDC_SDA): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 49 (HV_DDI0_DDC_SCL): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 50 (HV_DDI1_DDC_SDA): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 51 (HV_DDI1_DDC_SCL): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 52 (PANEL0_VDDEN): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 53 (PANEL0_BKLTEN): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 54 (PANEL0_BKLTCTL): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 55 (HV_DDI0_HPD): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 56 (HV_DDI1_HPD): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 57 (HV_EDP_HPD): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 58 (GPIO_134): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 59 (GPIO_135): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 60 (GPIO_136): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 61 (GPIO_137): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 62 (GPIO_138): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 63 (GPIO_139): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 64 (GPIO_140): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (GPIO_141): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (GPIO_142): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (GPIO_143): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (GPIO_144): (MUX UNCLAIMED) INT3453:01:420
pin 69 (GPIO_145): (MUX UNCLAIMED) INT3453:01:421
pin 70 (GPIO_146): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (LPC_ILB_SERIRQ): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 72 (LPC_CLKOUT0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (LPC_CLKOUT1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
...
Take a look at pins 52 and 53, then at 68 and 69. I also did the following:
# cat /sys/kernel/
gpiochip3: GPIOs 297-331, parent: platform/
gpiochip2: GPIOs 332-351, parent: platform/
gpio-336 ( |0000:00:02.0 ) out hi
gpiochip1: GPIOs 352-431, parent: platform/
gpio-420 ( |0000:00:02.0 ) out hi
gpio-421 ( |0000:00:02.0 ) out hi
gpiochip0: GPIOs 432-511, parent: platform/
(420-352 == 68)
I think that somehow the device we use devm_gpiod_
I also tried manually writing to pins 52 and 53 using sysfs, which unfortunately does nothing. I think, at least for my device, it's important to do this in conjunction with MIPI_SEQ_
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #147 |
Ah nevermind again. I looked at https:/
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #148 |
Hmmm, so GPIOs 144-145 is for panel 1 (i.e. PNL1_VDDEN,
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #149 |
Multiplexing/Muxing (or lack of) could be the culprit. However the topic is way above my head, and the mux tables in https:/
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #150 |
(In reply to Mark Wynn Garcia from comment #147)
> Hmmm, so GPIOs 144-145 is for panel 1 (i.e. PNL1_VDDEN,
> 128-129 is for panel 0 (i.e. PNL0_VDDEN,
> using panel 1...
As I understand Panel 0 is reserved for eDP just as correspondent GPIOs and panel 1 is for DSI. This is visible from DSN schematics file. Some of the signal lines are shared though, there could be an issue with that however I don't see anything suspicious so far.
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #151 |
(In reply to Stanislav Lisovskiy from comment #141)
> (In reply to Microtech from comment #140)
> > (In reply to Stanislav Lisovskiy from comment #139)
> > > Also I found that restarting the device without i915 driver and then loading
> > > it manually still works, even without those pins.
> > > However if I do suspend even without i915, can't get anything except
> > > backlight afterwards. Also if I disable suspend in BIOS it works fine then.
> > >
> > > To me it looks like there is something either related to acpi management or
> > > panel initialization sequence not mentioned in vbt is missing here.
> >
> > We asked to the panel supplier the exact description of DCS Command. I hope
> > to reply you soon. However, in your opinion which is the solution?
>
> Well currently one solution is to disable suspend in BIOS and disable access
> to the gpio pins 3 and 6. Then at least device is fully usable.. However I
> guess we still need to figure out the reason why this is happening.
> If everything is correct in panel initialization then most likely this is
> related to acpi.
> Also it is pretty weird that suspending device even without i915 makes it
> unusable for i915 driver afterwards. I would say that there is some issue
> related to acpi management or bios.
Hi Stanislav, thanks for your efforts.
I remember you that under Windows everything works perfectly. If the problem is BIOS or Acpi management inside the BIOS, then Windows 10 shouldn't work.
Maybe you have some other solution?
At the end you have the best document ever in your hands : the tablet!
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #152 |
Hi,
Sorry for a long reply. I'm currently on vacation. Yes it works on Windows, I checked with codebase to which I have access and DSI/VBT code looks pretty much same. However I'm still not able to compare with their GPIO and ACPI code. It looks like we are lacking initialization of something or may be GPIO mapping is not completely correct. However I checked with our pinctrl developer person and from his point of view everything looks correct.
I have found that there are other controlable pins which affect DSI display, not mentioned in VBT or manual, which makes me believe there is something else we need to make it work. Unfortunately without exact pin description and initialization sequences any hardware is a "blackbox". That is why I asked for more detailed init description from panel vendor. I guess they should have it anyway for panel testing purposes. I will be back on 17th and start working on it immediately.
In freedesktop.org Bugzilla #108826, Sinequanon (sinequanon) wrote : | #153 |
(In reply to Stanislav Lisovskiy from comment #151)
> Hi,
>
> Sorry for a long reply. I'm currently on vacation. Yes it works on Windows,
> I checked with codebase to which I have access and DSI/VBT code looks pretty
> much same. However I'm still not able to compare with their GPIO and ACPI
> code. It looks like we are lacking initialization of something or may be
> GPIO mapping is not completely correct. However I checked with our pinctrl
> developer person and from his point of view everything looks correct.
> I have found that there are other controlable pins which affect DSI display,
> not mentioned in VBT or manual, which makes me believe there is something
> else we need to make it work. Unfortunately without exact pin description
> and initialization sequences any hardware is a "blackbox". That is why I
> asked for more detailed init description from panel vendor. I guess they
> should have it anyway for panel testing purposes. I will be back on 17th and
> start working on it immediately.
Hi, just so you know, I also have a D330-10IGM (N5000 1200x1920 version), so if you need any testing, I will follow this bug thread.
Just to confirm that the latest Windows driver (26.20.100.6890) works "out of the box" (previous versions complained that they are not certified for this device). For proper screen rotation and touchscreen operation you still need separate drivers (Bosch rotation sensor and Goodix touchpanel).
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #154 |
Created attachment 144615
d330 efifb pin dump
Hello Stanislav. So I found out about efifb and tried it with nomodeset and the screen works nicely, albeit with i915 essentially disabled and no backlight control. I thought the unadulterated GPIO states set by the EFI could be useful so I attached the pinctrl dumps.
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #155 |
I looked further into the docs regarding multiplexing, specifically...
Table 3-52.Northwest Community Mapping (TXE and Direct IRQ), important to see the note below the table:
https:/
9.365 Event Trigger Output Enable (EVOUTEN_0)—Offset 210h
29.367 Event Trigger Mapping (EVMAP_0)—Offset 220h
https:/
And found a similar-sounding EFI implementation for broxton in
It could be that i915 is wreaking havoc on the registers involved which are already properly set by EFI.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #156 |
(In reply to Mark Wynn Garcia from comment #153)
> Created attachment 144615 [details]
> d330 efifb pin dump
>
> Hello Stanislav. So I found out about efifb and tried it with nomodeset and
> the screen works nicely, albeit with i915 essentially disabled and no
> backlight control. I thought the unadulterated GPIO states set by the EFI
> could be useful so I attached the pinctrl dumps.
Does suspend/resume work then? Currently, unfortunately I have another stuff which has more priority, so I had to stop investigating for some while, however it is very nice that you continue your research.
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #157 |
It's unclear if suspend/resume through lid closing/opening is working on this mode. Once I open back from closing the backlight doesn't turn on. I also tried playing music while closing (which causes the music to cease) and once I open the lid it resumes playing for a very brief moment. Suspend/resume wasn't actually a problem when i915 was normally loaded.
In freedesktop.org Bugzilla #108826, Fabio-rifici (fabio-rifici) wrote : | #158 |
(In reply to Stanislav Lisovskiy from comment #151)
> Hi,
>
> Sorry for a long reply. I'm currently on vacation. Yes it works on Windows,
> I checked with codebase to which I have access and DSI/VBT code looks pretty
> much same. However I'm still not able to compare with their GPIO and ACPI
> code. It looks like we are lacking initialization of something or may be
> GPIO mapping is not completely correct. However I checked with our pinctrl
> developer person and from his point of view everything looks correct.
> I have found that there are other controlable pins which affect DSI display,
> not mentioned in VBT or manual, which makes me believe there is something
> else we need to make it work. Unfortunately without exact pin description
> and initialization sequences any hardware is a "blackbox". That is why I
> asked for more detailed init description from panel vendor. I guess they
> should have it anyway for panel testing purposes. I will be back on 17th and
> start working on it immediately.
Hi Stanislav, any news for us?
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #159 |
(In reply to Microtech from comment #157)
> (In reply to Stanislav Lisovskiy from comment #151)
> > Hi,
> >
> > Sorry for a long reply. I'm currently on vacation. Yes it works on Windows,
> > I checked with codebase to which I have access and DSI/VBT code looks pretty
> > much same. However I'm still not able to compare with their GPIO and ACPI
> > code. It looks like we are lacking initialization of something or may be
> > GPIO mapping is not completely correct. However I checked with our pinctrl
> > developer person and from his point of view everything looks correct.
> > I have found that there are other controlable pins which affect DSI display,
> > not mentioned in VBT or manual, which makes me believe there is something
> > else we need to make it work. Unfortunately without exact pin description
> > and initialization sequences any hardware is a "blackbox". That is why I
> > asked for more detailed init description from panel vendor. I guess they
> > should have it anyway for panel testing purposes. I will be back on 17th and
> > start working on it immediately.
>
> Hi Stanislav, any news for us?
Hi, unfortunately I had to do other things for last 2 weeks, however I will get back to this asap.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #160 |
Looks like I got some additional clue of what can be the reason. I have discovered that if I disable part of DSI initilizations in i915 driver(mainly pll divisor init), touching those GPIO pins doesn't harm anymore.
Which might mean that it is simply some configuring issue and once we do reset/power on, those wrong values are taken into use. If we don't modify those then they stay the way as set by BIOS.
Just figured this out, have to leave now. Will continue tommorrow.
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #161 |
This is really encouraging to hear. Please do send us the patches as soon as they're ready so we can test them.
So I guess this class of problems can be more or less fixed by tracing state changes that essentially causes a modeset from the BIOS-set states.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #162 |
(In reply to Mark Wynn Garcia from comment #160)
> This is really encouraging to hear. Please do send us the patches as soon as
> they're ready so we can test them.
>
> So I guess this class of problems can be more or less fixed by tracing state
> changes that essentially causes a modeset from the BIOS-set states.
Currently I still try to figure what exactly breakes it - there is plenty of things being configured.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #163 |
So update regarding recent findings(see comment above):
Pll escape clock divisers seem to get initialized incorrectly for GeminiLake platform - problem is that in spec those need to be written as 1 shifted(<<) by amount of the divisor itself. While in a driver we write those just as is.
However that seems not all, because there are other places where escape clocks are used and probably need to be fixed.
Once I will finally identify all the issues - I will send a patch to mailing list and also attach it here.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #164 |
I have a good news. So after fixing escape clock div init it now works. I can also suspend/resume Etab without any issues. I have sent a patch to mailing list and also attached it here.
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #165 |
Created attachment 144752
Fix escape clock pll divisor init
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #166 |
This is amazing! I'm now building drm-tip with the patch and will send results as soon as I finish testing. Thank you very much!
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #167 |
I have to test it as well ;-) ... later let you know ...
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #168 |
So I tested it and the screen and backlight now works! However I still encounter some issues:
- Suspend/Resume still doesn't seem to power up the screen properly. Only the backlight turns on.
- When soft rebooting (e.g. systemctl reboot), grub and splash screen properly shows, but will always fail on initial modeset.
- There are rare cases when the screen on initial modeset fails even on normal power on (i.e. not from reboot).
- I can sometimes force screen power on to fail by repeatedly turning it off and on through xrandr.
But overall the fix makes everything so much better. I guess there's still a couple of cases we haven't checked, but I'm happy to start with this fix.
In freedesktop.org Bugzilla #108826, mirek koc (mirek190) wrote : | #169 |
I made tests
- screen works during boot kernel and later Ubuntu !
- Suspend/Resume .. WORKS ! finally
.. make some more tests tomorrow but seems works finally proper !
Great job after 6 months ;-D
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #170 |
(In reply to Mark Wynn Garcia from comment #167)
> So I tested it and the screen and backlight now works! However I still
> encounter some issues:
> - Suspend/Resume still doesn't seem to power up the screen properly. Only
> the backlight turns on.
That might mean you either have somewhat different hardware or kernel source tree... Or we might need to search for some other typo ;)
>
> But overall the fix makes everything so much better. I guess there's still a
> couple of cases we haven't checked, but I'm happy to start with this fix.
(In reply to Miroslaw from comment #168)
> I made tests
>
> - screen works during boot kernel and later Ubuntu !
> - Suspend/Resume .. WORKS ! finally
>
> .. make some more tests tomorrow but seems works finally proper !
> Great job after 6 months ;-D
Great to hear that :) I have ended up comparing each and every register write with default values set by BIOS.
In freedesktop.org Bugzilla #108826, Markwynngarcia (markwynngarcia) wrote : | #171 |
Is it possible to also publish the PRM for Gemini Lake, like in https:/
I'd like to investigate the remaining issues in my device. I suspect it has something to do with https:/
In freedesktop.org Bugzilla #108826, David Santamaría Rogado (howl) wrote : | #172 |
I have tested this patch in a Hans de Goede test kernel to solve other bugs at the same time and makes dsi output work as expected. So I think this bug could be marked as solved and report other bugs separately as there are more issues with this convertible, like keyboard not working after suspend resume...
People using Fedora 30 could give a try https:/
In freedesktop.org Bugzilla #108826, David Santamaría Rogado (howl) wrote : | #173 |
One advice for those with still problems, check you don't have set kernel parameters like nomodeset o gfxpayload or similar.
At booting, there is a warning just after loading the firmware i915/glk_
In freedesktop.org Bugzilla #108826, Stanislav-lisovskiy (stanislav-lisovskiy) wrote : | #174 |
Based on comment from reporter Miroslaw:
> I made tests
> - screen works during boot kernel and later Ubuntu !
> - Suspend/Resume .. WORKS ! finally
> .. make some more tests tomorrow but seems works finally proper !
> Great job after 6 months ;-D
Closing this particular bug to avoid generalizing it to some common GLK DSI issue discussion. Those who still have issues - please file another bugs - that would make analyzing them and classification easier.
Changed in linux: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Created attachment 142557
kernel log
The screen after the grub is getting black ( backlight is still working ).
System is booting normally - after that backlight screen is working .. and black all the time.
I can control brightness by shortcuts.
If connect HDMI cable then on the new via HDMI the screen works perfect but on the device screen is still black unfortunately .
I attached the kernel.
- edid from windows 10
Monitor ....... ..... AUO ------- ------- ------ ....... .... 1.4 ------- ------- ------ ....... ....... .... n/a
Model name............... WLY-10102FHD
Windows description...... Generic PnP Monitor
Manufacturer.
Plug and Play ID......... AUO17D8
Serial number............ n/a
Manufacture date......... 2013, ISO week 11
Filter driver............ None
-----
EDID revision.
Input signal type........ Digital
Color bit depth.......... 8 bits per primary color
Color encoding formats... RGB 4:4:4, YCrCb 4:4:4
Screen size.............. 140 x 220 mm (10,3 in)
Power management......... Active off/sleep
Extension blocs.......... None
-----
DDC/CI.
Color characteristics ....... . Rx 0,625 - Ry 0,340 ....... Bx 0,148 - By 0,063
Default color space...... sRGB
Display gamma............ 3,55
Red chromaticity.
Green chromaticity....... Gx 0,285 - Gy 0,605
Blue chromaticity.
White point (default).... Wx 0,281 - Wy 0,309
Additional descriptors... None
Thanks for any help.