From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: andrey.arapov@nixaid.com
Cc: linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org,
amd-gfx@lists.freedesktop.org,
"Alex Deucher" <alexander.deucher@amd.com>,
Christian =?unknown-8bit?B?S8O2bmln?= <christian.koenig@amd.com>
Subject: Re: Lenovo ThinkVision X1 27" USB-C occasionally hangs the kernel (usbhid) and isn't setting a proper resolution when USB 3.0 (FHD) switched to USB 2.0 (UHD)
Date: Wed, 11 Apr 2018 14:17:57 +0300 [thread overview]
Message-ID: <20180411111757.GD7517@kuha.fi.intel.com> (raw)
In-Reply-To: <20180411110929.GC7517@kuha.fi.intel.com>
On Wed, Apr 11, 2018 at 02:09:29PM +0300, Heikki Krogerus wrote:
> On Wed, Apr 11, 2018 at 08:28:44AM +0000, andrey.arapov@nixaid.com wrote:
> > Thank you for the insights, Heikki!
> >
> > Please find the acpi.dump.tgz file is a attached.
> >
> > I do not have the USBC* and INT3515* devices,
>
> OK. That means we don't have any way to interface with the USB Type-C
> ports directly unfortunately. The ports are quite simply not visible
> to us. We can't do anything from USB side.
>
> The problem is in any case a graphics problem, so maybe it's better to
> let those guys take a look at this. I think this MacBook Pro has AMD
> GPU, so adding AMD driver maintainers and lists.
Sorry Andrey, the previous mail did not get to you. I managed to
change your email address somehow. :-)
> > so I have attached the following file as well:
> >
> > # ls -1 /sys/bus/acpi/devices/*/status | while read dev; do echo $dev: $(cat $dev); done | gzip -c > /tmp/all-device-status.log.gz
> >
> >
> > KR,
> > Andrey Arapov
> >
> > April 10, 2018 4:35 PM, "Heikki Krogerus" <heikki.krogerus@linux.intel.com> wrote:
> >
> > > On Tue, Apr 10, 2018 at 09:05:07AM +0000, andrey.arapov@nixaid.com wrote:
> > >
> > >> Dear Linux Kernel Devs,
> > >>
> > >> I have recently got a Lenovo ThinkVision X1 27" monitor, it is connected to my
> > >> laptop over a USB-C cable (DisplayPort).
> > >>
> > >> This monitor has a built-in USB hub with a toggle button, when pressed it
> > >> shows two options on the screen:
> > >>
> > >> Press USB Switch to toggle between:
> > >> A) 3840x2160 UHD USB 2.0
> > >> B) 1920x1080 FHD USB 3.0
> > >>
> > >> By default it is always set to FHD, which is why Linux sees the 1920x1080 as a
> > >> maximum possible resolution.
> > >>
> > >> Whenever I am changing it to the UHD, Linux is not changing the resolution to
> > >> 3840x2160, instead it sets to somewhere around 2560x####.
> > >>
> > >> To work this around, I am running the following commands manually:
> > >>
> > >> xrandr --newmode "3840x2160_60.00" 533.25 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
> > >> xrandr --addmode DisplayPort-2 3840x2160_60.00
> > >> xrandr --output DisplayPort-2 --mode 3840x2160_60.00
> > >>
> > >> Then, when I was trying to switch it back to FHD and again back to UHD,
> > >> sometimes it causes a kernel panic. The panic also happened when I was
> > >> plugging the cable in/out and back again. What I was able to spot is that the
> > >> last unloaded kernel module was usbhid.
> > >>
> > >> Please advise, what can I try to help investigating this issue further?
> > >>
> > >> I have attached the output from "dmesg -T" command as "4.16.1-dmesg.txt" file.
> > >> The logs are related to when the monitor was connected via a USB-C cable to a
> > >> DisplayPort-2, the default resolution picked was FHD (USB 3.0) and then I have
> > >> pressed the toggle button to use UHD (USB 2.0), then have applied the "xrandr"
> > >> commands and have closed the lid of my laptop so I would be using my monitor
> > >> as a primary display.
> > >
> > > The board seems to support Thunderbold, however, in this case my guess is that
> > > the monitor is actually using just the DP alternate mode (Thundebolt can pipe
> > > DisplayPort protocol).
> > >
> > > I'm guessing the problem is related to the DisplayPort lane counts. With the
> > > highest resolutions you need all four lanes, but if you want to use USB3 with
> > > USB Type-C connectors at the same time, two have to be allocated for USB3
> > > leaving only two for DisplayPort allowing lower resolution. The problem is that
> > > the GPU drivers need to know how many lanes the DisplayPort has in use. That
> > > information will in normal case come from USB Type-C drivers. Unfortunately we
> > > do not have support for that in Linux kernel yet, but I have made a proposal for
> > > a solution.
> > >
> > > Let's start by checking details of your board. Can you send us acpidump output?
> > >
> > > % acpidump -o <filename>
> > >
> > > Also, please check the status of these acpi devices:
> > >
> > > % cat /sys/bus/acpi/devices/USBC*/status
> > > % cat /sys/bus/acpi/devices/INT3515*/status
Cheers,
--
heikki
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2018-04-11 11:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180410143550.GA12209@kuha.fi.intel.com>
[not found] ` <21a20e4a29601710a2b07473111b7a47@nixaid.com>
[not found] ` <361c906361dc1746526a66f5921fdaae@nixaid.com>
2018-04-11 11:09 ` Lenovo ThinkVision X1 27" USB-C occasionally hangs the kernel (usbhid) and isn't setting a proper resolution when USB 3.0 (FHD) switched to USB 2.0 (UHD) Heikki Krogerus
2018-04-11 11:17 ` Heikki Krogerus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180411111757.GD7517@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=andrey.arapov@nixaid.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.