Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6067872pxb; Mon, 14 Feb 2022 14:34:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBm4UcM5u8f88zxEWNuJRMNLOKiw1CECoLCFdDldCNE271atGH4ykQqzvogajHsg46T76T X-Received: by 2002:a63:d90d:: with SMTP id r13mr995977pgg.129.1644878094338; Mon, 14 Feb 2022 14:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644878094; cv=none; d=google.com; s=arc-20160816; b=hRz2QzeD3kD03pzvo9x6SVYcKn9P5kMkRENG4WzYb28WzR6MtHWvhaUIr4HZO3lP/J +pEIHHpAeoPlvqcbFON+xmdKEOCSkgjx5DxwAVDpxZss7pR2fskUBRqUrMgMrE/Tag9W 5EikSXVCTgSAXBNDcMPN525xa5sPgbbpTa3dRWsUBx3wOzOHH2xECV8gL8ba2i/MmllO zzeTSdwNcyU6mUaMZHw/Z8rniKKjggKpQ2+gH3COU6zVmPei1sJ5ltA2J8tbEseIuivr Tv0ijlVTuEVLYYtVuAIPn9rxjiyz+CQH4JyuQkXB2NJfx2NzLnp4kvhhhjZv0Zu0IzFq Y9GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5zmZMNg8yirylbypUIIKEO/EPeXpVI509iUbW2YvzzY=; b=lXPnDM2BSy0B3CwiRTuxR9DJ1PKh03swRtbXjCuDJMbVIs5XxJgHu3wBN0hhYUdq7+ F5ZB6nyvZTytC8HfJyiX/ZFQVtkZW6UJPg3D/YaIZzGksQtjnDKa4m+MDWPaNtwTi9ow WqQpuKYMBe0IpxGVnFFuyfI/4Nchx0eKtW5GfuCmE2+wHNZ44byyLp3aIuJ9JVowczru Rxj6ioDIsasqssdOX4DAJCyaJNupbvd38KTn+K//H2Evaesv5wTWqOR2lY+nY4fE9M1C 4oqWwxcDzF8hMfAEuzGTBZNpmm5ukq6SPtt1njrKmtcZkYNx6MXpCYEXb13oisxKko6Y D0Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fPfvpg6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9si15146927plh.525.2022.02.14.14.34.38; Mon, 14 Feb 2022 14:34:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fPfvpg6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231633AbiBNVwv (ORCPT + 99 others); Mon, 14 Feb 2022 16:52:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231587AbiBNVwr (ORCPT ); Mon, 14 Feb 2022 16:52:47 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00D812D220 for ; Mon, 14 Feb 2022 13:52:38 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id s24so18914342oic.6 for ; Mon, 14 Feb 2022 13:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5zmZMNg8yirylbypUIIKEO/EPeXpVI509iUbW2YvzzY=; b=fPfvpg6iu+DE1UjGM06KRdvsHlYCBjpXnM+qLTt9zo8a/r2MjOmsrxXUdY6KBrj/RK BtQe8Ph4IzCbya/WerKt8rmQy60UVxTmSLFYVFpcS0ZoAZxXg4H92peuRNGcjyUegGnQ e8G8YQ5Dwp6OPnyCO/QTspf2dYhEiTZVXTe/yQDelafJvHg78pQqymlyLEM+9coslaBJ yTS2v740JPRRx8H6bqPhzWaRulVwuK0YZI4WY5MDxhxGtyw0sQ0FHZ8jNaS0Rpw+nNP5 n6trpn8ogmloXG4d3l9wj7v5l0J7gS/G8Oj/yQpoNp32kDmkJ2hfoaaesoc8TuHW7SEC zfvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5zmZMNg8yirylbypUIIKEO/EPeXpVI509iUbW2YvzzY=; b=7ONHuKiCSoieuHvIBzXwsb4WK0I8zHSLDnU3BGTVNRIcOJJbHbsnbbORdgfwhLC9mZ 1iUD4+tzPqduU4qcYs5jJbdl7amgKvoNPui0/Y/e29nPRele9wVygnOhnNFSLcu1bTQO lR7szSj7t32MmXNXXStk+6wKwBI0PcQBUD3EWSzxlWG1KXED+LH88bu0p+Pn4quNmu2O SSj1gWRgNADBYcoArsOTTzqaI/Pixy8pSZ+XjvR63Y0P5ifwQi4wba7eP6fvipL6wfhM z0g7vgHnzeiLO8+123u4qGbe/6xdy9SSAXjpkkcGkymzKxWD3hiuVGyevsC4jcywbDvx Z/Zw== X-Gm-Message-State: AOAM532YYPKQLK1VyeRSxvXyVsJkxnV/Cy9lSYKuH88dO8lficba+0U5 fedokHLQEQPuvFLG6f38TJponUtMVTw9FGlzKS8= X-Received: by 2002:a05:6808:159e:: with SMTP id t30mr414528oiw.132.1644875558252; Mon, 14 Feb 2022 13:52:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alex Deucher Date: Mon, 14 Feb 2022 16:52:27 -0500 Message-ID: Subject: Re: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend? To: Salvatore Bonaccorso Cc: Alex Deucher , Sasha Levin , David Airlie , Maling list - DRI developers , "Pan, Xinhui" , LKML , 1005005@bugs.debian.org, Luben Tuikov , amd-gfx list , Evan Quan , =?UTF-8?Q?Christian_K=C3=B6nig?= , Dominique Dumont Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 12, 2022 at 1:23 PM Salvatore Bonaccorso wrote: > > Hi Alex, hi all > > In Debian we got a regression report from Dominique Dumont, CC'ed in > https://bugs.debian.org/1005005 that afer an update to 5.15.15 based > kernel, his machine noe longer suspends correctly, after screen going > black as usual it comes back. The Debian bug above contians a trace. > > Dominique confirmed that this issue persisted after updating to 5.16.7 > furthermore he bisected the issue and found > > 3c196f05666610912645c7c5d9107706003f67c3 is the first bad commit > commit 3c196f05666610912645c7c5d9107706003f67c3 > Author: Alex Deucher > Date: Fri Nov 12 11:25:30 2021 -0500 > > drm/amdgpu: always reset the asic in suspend (v2) > > [ Upstream commit daf8de0874ab5b74b38a38726fdd3d07ef98a7ee ] > > If the platform suspend happens to fail and the power rail > is not turned off, the GPU will be in an unknown state on > resume, so reset the asic so that it will be in a known > good state on resume even if the platform suspend failed. > > v2: handle s0ix > > Acked-by: Luben Tuikov > Acked-by: Evan Quan > Signed-off-by: Alex Deucher > Signed-off-by: Sasha Levin > > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > to be the first bad commit, see https://bugs.debian.org/1005005#34 . > > Does this ring any bell? Any idea on the problem? Does the system actually suspend? Putting the GPU into reset on suspend shouldn't cause any problems since the power rail will presumably be cut by the platform. Is this system S0i3 or regular S3? Does this patch help by any chance? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e55a3aea418269266d84f426b3bd70794d3389c8 Alex > > Regards, > Salvatore