From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793286872; b=FIDYBmfqy9Ve669QuNDuA3FZmKtNOnr/Ij1olxUT/Rj1b4aC8lYz7eVtN1LonjXiIicp hOMvji1M6DjMMym8EVZ7R92S8R/f8wq+JQ475KxRW0tmW/xLTnsjCqOK55Gun+QWK3yh0 +PqNDEgIeZDDl0sO9igKDaPJDokNBWWU+RpW95peqUMhzocxpcecxNpwzi9lfGQOV/t6q /JF2Aj4XtmlBPzz+aV54GJA8Xw2bzWqfSnsRyRj+VTDNotu4yEq3mZpnYQAIXI1331UOD JtbvP/wMB5CySpZJ7pN7mw9so9N4tzMUQzdRBpqYlWiUwCVnlhDqcMcE3krnADtbKbA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793286872; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=hfS5OIzHxiX0eHuVw19YiRz/YZ1IYKJf2EBJhe4l3W0=; b=KggjST5Mi6dJk93GDWeqGR+qDzO8cxupwWpG7oX/xUG7iJLfcVArr7xfGJUHzscCYSmx dC+wmGVgBtd5titCX09GQ9yngTp5Ih2yDWUbEGOdN+xZkJSR6B14+9dusNgMtUnwDqrUZ NfCtvpTxBrW0sbKKlGnVakl0aH/3kZ8N5CtVt7NLWKJVZtb4/+URzkX4H9wD87ffaXo3R N6CpROuk/DlJfuZ5tqdVw9sET5F8h3k73y6aSK/OoojVJ2VaTTVRqiVJCFudfaYeAClKw np3ckdn204jn0ntQbr9yqXn9FYjWZESdOzZh5sk6aW0BJNG4BHFdmji9eYqdnhr3ADA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=fireburn.co.uk; spf=none smtp.mailfrom=fireburn.co.uk; dkim=pass header.d=fireburn-co-uk.20260707.gappssmtp.com header.i=@fireburn-co-uk.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=keR1zdwP; arc=none smtp.remote-ip=209.85.128.48 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99F8B606A31C for ; Thu, 29 Oct 2026 15:14:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 99F8B606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fireburn.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=fireburn.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=fireburn-co-uk.20260707.gappssmtp.com header.i=@fireburn-co-uk.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=keR1zdwP Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a2072b9832so4497845e9.1 for ; Thu, 29 Oct 2026 08:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fireburn-co-uk.20260707.gappssmtp.com; s=20260707; t=1793286870; x=1793891670; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=hfS5OIzHxiX0eHuVw19YiRz/YZ1IYKJf2EBJhe4l3W0=; b=keR1zdwPulTo+d7tvTdq31vAWQaT8MlLAM32Q6b1EcV71wHPyV/HHE36X73/MV4HuZ X9TwfacHNzU4JqpSHWr4jGZgd4BHuqJ84fBXyRoDrTvk1EcmaHbjcZZUe7nXYhRip58B 0JDycm67VMVvEs+SlklA4ABYvrqmuIaHbbH+AbQJqMQaOGS355ihcsxTt8EIJoOLPkZg PaYN/y3utuEJqU8cz2H7kCxX98A13/bV06UJ/Njbbq7xp9iKA2JItXAkM8DzD7BFGcVN 0ZpsiipQVIA+tUkw2zaJvbZI3MWWfrbCGwQmPgnWXIXfQIDznbMRAo8dP+dlQ3aWjOrf x7ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793286870; x=1793891670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hfS5OIzHxiX0eHuVw19YiRz/YZ1IYKJf2EBJhe4l3W0=; b=A1mPefcr7AaIXpuIymPH4nMqZWNVCE0z+dMvq2kIsVDeWbl0wKa6YyWs6Rfo/DGiph 0Q6SwFOKPr7v2jSU3d7FoORtE2DSLDbtzb05ieMDKH5ojmA6LaWnCjXAE5qEk09JSAiy FoOOvvGL4YhXZKLQKBt0kQCrWZYiBJAZlkgk1u9ocpclvqCO6Dr7QEwj3whfoxoIiiZ4 eMHTZ/FPqsqtwKsluF9c5hXkxR7gatn26+BEjtPo7+uw3GKeyYjHRTcX4JKC2N9e8T58 kEShkiNmytHG5sY9V/JRZ8pZx6XFP2/qeyEKUQglAZoQR/PI4qW3DjGUBSIn51bx4QPH 9TVg== X-Forwarded-Encrypted: i=1; AKwUvBwwdfdpILYkp2SB0ntJS8JemrnpjplbQ+Mh4NWAhHjtpQCPuH3tF6lYNFwpFhKBOXMYXO9DrTngmc/akPQ=@vger.kernel.org X-Gm-Message-State: AFq9FYJdSPIInMPyaM7AxqOUv1V7w2LmXqrBmtU3jtVkgByf+ApOcwss YXxim4TzHh3FkhYCPF2lmLeNjmEhUnTzTwmRw9l0n1lG1ZVtTLifCzzNlsWLMkYygw== X-Gm-Gg: AYBFou0P1wMw71Df7M8LtGVVIKknbWF1v/L7cWD7DnmCXb8X9UC8o4IxdND4lwhBnFW Xfxtgan1CjecXRfVbvFmcvnz7+y2IArqQ/acznugSW72he9yuB1XmJ9ANBGl8FvGRljSU97YoZO 8hHnH9WdRRUQEpgCA+CFysNYl2ygnWa4ePcw7C8V9RPdZp2RDmdXzUlQmdkZZYpRjfLInx79vM7 Vu4Wh8xK07wy8A6tKjw81oxCs6+Eeg1UIq6u/EL5ANMRBPMcf2MLS3NQz0mLBOhWkMZH2i/gleK pK/GAeowg/kBIjYXcbdMRUN+WGRmqgw20ExHWoC6xCFVSoJyH2a5KKhGaEEwKfaw4qeRAuoNGqT QhY5OGASnFXOwy6585i4QeGvMaZJcMCdLjvPKBlUiddoC3gHEPH+n4AzD3izrPGiX/V9FezDxYk 1/tiWohvfhiCPsyjrUeH9ZoWC/+bLQ/tvMOTGn7Pi6kTnDwvg2zN2d5iLh+GuEhrJpL0D18fGM/ y5uN88j2lIazjC2tVySqAz9DLHFJ8uHvlipTH4Cc1FlgbZTMW0hC06j7ReZrgkZ8ek6ZDbDEB6j JTHSAMjZRXELFlkfqFtWDSxe05juCJuJPpXJ+ssLdxHft9eubBZWaa8ceQ7MqBg1DVuuuOFCVIg IqH0aMTKdOrKCXSwP8O3qmw== X-Received: by 2002:a05:6000:2805:b0:487:13a9:80d with SMTP id ffacd0b85a97d-48e649658c1mr5331076f8f.10.1793286869865; Thu, 29 Oct 2026 08:14:29 -0700 (PDT) Received: from axion.fireburn.co.uk ([2a01:4b00:d309:1c00:caf1:6b20:8531:818c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebcb851sm30191373f8f.26.2026.10.29.08.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2026 08:14:29 -0700 (PDT) From: Mike Lothian To: amd-gfx@lists.freedesktop.org, alexander.deucher@amd.com, christian.koenig@amd.com Cc: superm1@kernel.org, dri-devel@lists.freedesktop.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] drm/amdgpu: wake a powered-off dGPU on a dock hotplug notify Date: Thu, 29 Oct 2026 15:14:20 +0000 Message-ID: <20261029151422.56791-1-mike@fireburn.co.uk> X-Mailer: git-send-email 2.56.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On an ASUS ROG Strix G513QY the USB-C DP alt mode lanes are driven by the Navi 22, and the firmware signals a dock being attached with Notify(, 0x81) from a level triggered GPE. Nothing in the kernel listens on the dGPU's own ACPI node, so with the dGPU in D3cold the notify is lost, no hotplug reaches userspace and the external displays stay dark 1/2 adds a notify handler on the dGPU's ACPI companion for BOCO devices that requests a runtime resume. Runtime resume already re-detects every link and sends the hotplug event 2/2 handles a board where the firmware method cannot deliver the notify at all. The G513QY's CPM table notifies \_SB.PCI0.GPP0.VGA, which does not exist because the dGPU sits behind an on-package PCIe switch, so _L05 aborts with AE_NOT_FOUND. On a DMI match, and only if that path does not resolve, amdgpu takes over the GPE and does what the notify would have done Tested on a G513QY with a USB-C dock: with both patches and no table override the displays come up after the dGPU has been left in D3cold, and the _L05 errors are gone. 2/2 is only a DMI entry and a handler, so other boards sharing the CPM table can be added to the list The patches were written with Claude Code assistance, as the Assisted-by tags say Mike Lothian (2): drm/amdgpu: runtime resume dGPU on ACPI notify from its own node drm/amdgpu: handle broken dGPU hotplug GPE on ASUS ROG Strix G513QY drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 132 +++++++++++++++++++++++ 2 files changed, 136 insertions(+) -- 2.56.0