From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, PDS_BTC_ID,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89600C433E6 for ; Thu, 18 Feb 2021 05:48:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEA4F64D99 for ; Thu, 18 Feb 2021 05:48:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEA4F64D99 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ringerc.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=nouveau-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D4686E25A; Thu, 18 Feb 2021 05:48:14 +0000 (UTC) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by gabe.freedesktop.org (Postfix) with ESMTPS id B82506E21C for ; Thu, 18 Feb 2021 03:40:38 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id s24so639205iob.6 for ; Wed, 17 Feb 2021 19:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ringerc-id-au.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=s0rw69a+cUuuhGi9O45ymfV2zPF7FW9u6hYo7awwirM=; b=J8zaDqJwUwOJo6/RWTMUmIHQaR4BXHJtt5Er5pNadx0QW80c0Cetlm+nF6K9ktFbwD kS6Tc8kmkmF443i8HJdv+4qlXBMZgjINdJj/MXdr4OKC4UJGgEpqh1R0d6HJfQqGnm7I ct5LLCOc6BLVWcMUb5UKZZK0PmyLFsKAGA75Ul8q2VXOcKmqWqeDIs2DL2L9fBh5h4U2 sFEWB8jD0bNgL/bBboUnYRwpxazglv3BGYfRAb2ClB/bJj3vYkNYJPm48cz82bTPB61U wwu4mp/y2Osss0+71pKRsfoMxwcqZRJTCiBMD4MHp7NG9RWh5jkrMcJXLXo4CbHe1oA9 ISyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=s0rw69a+cUuuhGi9O45ymfV2zPF7FW9u6hYo7awwirM=; b=HipbG0946hBM54d/A9/b2ZRlsYgnH+gNdOp+LEP0f4VPow0tVVo+COwmJwnfHPA4Ul pxMQmnMrTlA2wSdW45yJS5VCOnb7aWO6nKpGZKVHuQEKvtCicEI8KzbtyumAgxOH3wqe dGeuxr8PffAZ7aMRbS1dlNnDJmJ5qlsOnvO5R+NGOzQffd7W/pG9zVd+mTWLWgYb2WUF fFmLyVhaPm9SeelcTyynwH7Fb9eX0i29fb5mQ66zlQOE0GptwlsDBi+prJFxuIp/MMqv WhMDjBgP3j8SR8g4rmNuBr2EVVDfjaFTpcww/i/SwA4o6BKqKLU2NXV/6kerpal631FE yY0A== X-Gm-Message-State: AOAM532NqqmMwkCz9DatUbFbIAAGKMsZtFJx1E6Ag2PEie6a9rzQw1XH f/KU636ehjNPSdhQEE9fYEQXousjocLVbwASzAXTJ0ldOVgQ3g== X-Google-Smtp-Source: ABdhPJwbxYTxon6EEo1Z+sBBxJ/AoHX1v/bLcpK36kH5LZF0H/GVXGFc4NnsQYGNWXqAHD95qL8F7K6lUeAys9JRXrE= X-Received: by 2002:a6b:7d42:: with SMTP id d2mr2026205ioq.176.1613619637808; Wed, 17 Feb 2021 19:40:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Craig Ringer Date: Thu, 18 Feb 2021 11:40:26 +0800 Message-ID: To: nouveau@lists.freedesktop.org X-Mailman-Approved-At: Thu, 18 Feb 2021 05:48:13 +0000 Subject: Re: [Nouveau] Optimus HDMI hotplug fails with "DRM: Dropped ACPI reprobe event due to RPM error: -22" X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1015566670==" Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" --===============1015566670== Content-Type: multipart/alternative; boundary="00000000000050847205bb94194c" --00000000000050847205bb94194c Content-Type: text/plain; charset="UTF-8" On Thu, 18 Feb 2021 at 11:06, Craig Ringer wrote: > Hi all > > I'm trying to get HDMI hotplug working on my Lenovo T15g laptop with > Optimus graphics. HDMI works when plugged in at boot, but does not work > when hotplugged after boot, or when hot-unplugged then re-plugged. The > external display is not detected, its status remains 'disconnected' in > sysfs, and the display stays in what looks like DPMS-off state. > [snip] > I'll attach a detailed lspci, bigger excerpts from demesg, etc in a > followup to make sure I don't upset any mail filter. > Detailed PCI info and trimmed dmesg uploaded to a GDrive since I don't really want to send all that to the whole list. Files here: https://drive.google.com/drive/folders/1oE3ow7d8N6npDNbL8vqHYjbAvvJCUcPN?usp=sharing Contains: $ sudo lspci -vvvvnnnnPPq | sed '/Device Serial Number/d' > pci.list $ sudo dmesg | egrep -v 'e1000e|nvme|BTRFS|audit:|SELinux:|systemd\[1\]|thunderbolt|cfg80211|WiFi|Bluetooth|battery|iwlwifi|uvcvideo|usbcore|zram|iTCO_wdt|snd_hda_intel|squashfs|EXT4-fs|iSCSI|wlp0s20f3|IPv6|\|\|virbr0|rfkill|nf_conntrack|psmouse' | sed 's/SerialNumber.*$/SerialNumber REDACTED/' > dmesg.out $ sudo dmidecode | sed '/Serial Number:/d;/Asset Tag/d' > dmi.dump $ sudo cat /sys/kernel/debug/vgaswitcheroo/switch 0:DIS: :DynOff:0000:01:00.0 1:IGD:+:Pwr:0000:00:02.0 2:DIS-Audio: :DynOff:0000:01:00.1 I can provide raw or decompiled ACPI DSDT and SSDTs on request, as well as kernel logs with higher log levels, a nouveau module debug string, info from /sys/kernel/debug, 'perf' runs, etc. There's also some nouveau info in /sys/kernel/debug/dri/1 . Also, I note that echo 'on' > /sys/kernel/debug/dri/1/HDMI-A-1/force does not appear to have any effect when the display is plugged in and turned on, but not being detected by nouveau. Also true for other ports DP-1, DP-2, DP-3, eDP-2. -- Craig Ringer --00000000000050847205bb94194c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, 18 Feb 2021 at 11:06, Craig Ringer <ringerc@ringerc.id.au> wrote:
Hi all

I'm trying to get HD= MI hotplug working on my Lenovo T15g laptop with Optimus graphics. HDMI wor= ks when plugged in at boot, but does not work when hotplugged after boot, o= r when hot-unplugged then re-plugged. The external display is not detected,= its status remains 'disconnected' in sysfs, and the display stays = in what looks like DPMS-off state.
[snip]
I'll attach a detailed lspci, bigger excerpts from demesg, etc i= n a followup to make sure I don't upset any mail filter.

Detailed PCI info and trimmed dmesg uploa= ded to a GDrive since I don't really want to send all that to the whole= list. Files here:


Contains:

$ = sudo lspci -vvvvnnnnPPq | sed '/Device Serial Number/d' > pci.li= st

$ sudo dmesg | egrep -v 'e1000e|nvme|BTRFS|= audit:|SELinux:|systemd\[1\]|thunderbolt|cfg80211|WiFi|Bluetooth|battery|iw= lwifi|uvcvideo|usbcore|zram|iTCO_wdt|snd_hda_intel|squashfs|EXT4-fs|iSCSI|w= lp0s20f3|IPv6|\<bridge\>|\<tun\>|virbr0|rfkill|nf_conntrack|psm= ouse' | sed 's/SerialNumber.*$/SerialNumber REDACTED/' > dme= sg.out

$ sudo dmidecode | sed '/Serial Num= ber:/d;/Asset Tag/d' > dmi.dump

$ sudo = cat /sys/kernel/debug/vgaswitcheroo/switch
0:DIS: :DynOff:0000:01:00.01:IGD:+:Pwr:0000:00:02.0
2:DIS-Audio: :DynOff:0000:01:00.1
<= br>
I can provide raw or decompiled ACPI DS= DT and SSDTs on request, as well as kernel logs with higher log levels, a n= ouveau module debug string, info from /sys/kernel/debug, 'perf' run= s, etc.

There's also some nouveau info in /sys/kernel/debug/dri/1 .

Also, I note th= at

=C2= =A0=C2=A0=C2=A0 echo 'on' > /sys/kernel/debug/dri/1/HDMI-A-1/for= ce

doe= s not appear to have any effect when the display is plugged in and turned o= n, but not being detected by nouveau. Also true for other ports DP-1, DP-2,= DP-3, eDP-2.

--
<= div>Craig Ringer
--00000000000050847205bb94194c-- --===============1015566670== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau --===============1015566670==--