Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6221101pxb; Mon, 14 Feb 2022 19:14:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFkYsmILwbxtCAIcP9Ai0ZuH8e4oMaA8hSAwPmkm8TQm75TT3c2jCCY5RoXw3EGH9CffPY X-Received: by 2002:a17:90b:4c85:: with SMTP id my5mr2073373pjb.146.1644894872292; Mon, 14 Feb 2022 19:14:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644894872; cv=pass; d=google.com; s=arc-20160816; b=n80EFiYLZJ5Sqv7+JdrBNOso+A6G+4TTI6nkXXaX4zql89kZ4tb/4KvKOhCF72G8CQ XcZxgyj/f4n28lS3rFi3HPUIrfQhh2FO0VQwvxB505618I+duV6gtL+ElCc87tcDSiMk JKUyoSb8BPRLPbz6Z+XBCz8QnWwrnkinp56aiR59Espox6wXALBE/kUpx1LErQAa8Peq /yq47caFnAcGPzEfoxq9BSr3dcYNabE/D4u28jsFWBQNlakl9+jybHTGZWHj9NN8g1l7 +M4Q9ZDLmEjLJ/LV+awnSWG5OU4epwSmPwb1wXRnMnjGw0RaaPgvTl70Q56AoWGZdwhr THyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=JO+plKKAuvINA+HexV1aYvTEEVDGHY7mItD1qD66crs=; b=HVxg1Usjq93CIy+uwkkE/mx5H4yA1YcvJsjGNQ6SUlojw3bsMq7sA/IuvUmI2G1Azs /m7srJe3qu+Wx1OZhMLC1GfU0jkGbJUwezEVi8lNtP/W7oqCKyDjv+4VP2NakShq0muZ jkIQv3iQN2DZDqkrNG6dMKVSOMaQFaHVIoR0EU0vKGipNJ/N1TvXrIg+pzTye+C15jox QaYCyAWj2vHb+PTrMo0ZCmuleDzqss5jERRiqylftxssQwi8lGZ4/mWS5Vl7+spmXYDb vMJDWb+YejdEfIrTb8NA4n4h0Rh8Pl0HMkn88NjktwXhZmlIGa/w/2A0Cuf3qzQXOJAM xMPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kWTxMzQ8; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p23si1476548pgn.300.2022.02.14.19.14.15; Mon, 14 Feb 2022 19:14:32 -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=@amd.com header.s=selector1 header.b=kWTxMzQ8; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233631AbiBODHZ (ORCPT + 99 others); Mon, 14 Feb 2022 22:07:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbiBODHY (ORCPT ); Mon, 14 Feb 2022 22:07:24 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2046.outbound.protection.outlook.com [40.107.223.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5A3BD557C for ; Mon, 14 Feb 2022 19:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P+es9lVP9vXZiAh0Jn5onaWEHf5JJT3lrowL+JMUc/LbHZx8whzXxbArdjgl3dwbxKGRnwFSBXyp6YQVq6yWOI8Yh1KUko/zRNM2/OQu06iA9B/++Q6w24OCaWNEzkPEMYs3Qz4Zt+jpTlPXDQq1+RKH4W5fUuNrxB+OOBNwbx627VeaRB0+rHu9I8Z7PKXovHvANiRZTw1hizzJFP+ixGtMsJSnjPYcqSv3v/O2VRnyTJgSD1Yrcs+Lcjhf4pFWQImMPpMxJjF6XSm483/lzjcZWJL5OV0XzPDO76+XGgFrAd6Rsjk8krqP69N96IYw4jdBBnsbqLzcJQL+HQWYlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JO+plKKAuvINA+HexV1aYvTEEVDGHY7mItD1qD66crs=; b=Z7+R7JDdx8AwIUNM1LqsjUxgOBeQRp5RQRtpzaqb3HFYAGrTAHhn8ZVlywvfkPXWhQ4uZTOaeLuqO3xu13fCMzRIC1O1XvIaDocnXLiGL57oNe6UGZIQHLZd7po3xJUjg0B98GfmdE8Md8qX7u36EyOxrprk6uvBwXgERNe1YPJWaGQ/i8LDmLjVBZWBeMpAjSbWXmqoIfRnpX1G/WGKtTrJExQRksW0O69+O0tzeP+beqbr7T2XQ7E4x68QmFxNtl5v7UucScxsvDKXTqiOVG6C29isZRxAi1mKIwFOVsgmjM1A91UI/yarN1P7NPgMftR6HMucP4PbLl9vxoNtXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JO+plKKAuvINA+HexV1aYvTEEVDGHY7mItD1qD66crs=; b=kWTxMzQ8XuLIiynmz/8ksyzDvf6dfPzjTNBtp90w0c8XXQThAJ3brwvUbQlQdoOTTQ1YAK/77Woz3ee/yVr4wOhE2YH154LEKoJaW1xPcTJTXDH2dlnyGwo8F18INuxqqoVm3ZHcJtinDq7K1nle7sITQh02kZczAlKM01i7O/s= Received: from DM6PR12MB2619.namprd12.prod.outlook.com (2603:10b6:5:45::18) by CY4PR12MB1669.namprd12.prod.outlook.com (2603:10b6:910:3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.15; Tue, 15 Feb 2022 03:07:12 +0000 Received: from DM6PR12MB2619.namprd12.prod.outlook.com ([fe80::7d61:f517:f3f8:9ea]) by DM6PR12MB2619.namprd12.prod.outlook.com ([fe80::7d61:f517:f3f8:9ea%5]) with mapi id 15.20.4975.019; Tue, 15 Feb 2022 03:07:12 +0000 From: "Quan, Evan" To: Salvatore Bonaccorso , "Deucher, Alexander" CC: Dominique Dumont , "1005005@bugs.debian.org" <1005005@bugs.debian.org>, "Tuikov, Luben" , Sasha Levin , "Koenig, Christian" , "Pan, Xinhui" , David Airlie , Daniel Vetter , "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: RE: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend? Thread-Topic: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend? Thread-Index: AQHYID3PyV9OUcvk5kC3ntmnBjx1BayT7zAQ Date: Tue, 15 Feb 2022 03:07:12 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Enabled=true; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SetDate=2022-02-15T03:07:09Z; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Method=Standard; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Name=AMD Official Use Only-AIP 2.0; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ActionId=1e9a53ad-e0d2-42e8-8ac2-bf0e9748fb06; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ContentBits=1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dcba85ed-5053-4a7f-6b6b-08d9f030434f x-ms-traffictypediagnostic: CY4PR12MB1669:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1060; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5SH6Y6HsiPla9RD22DuppDU8zKAV+taJLH/j8KkkCnfhbyXU68S0b189evAyvU4Ksq/mtW/4MIy56lXEuH6jZ2sLtKhOnhfUNeeHwXU8D2efYxp0qDpRAj1LIg9V4g3iqpQvipriZAe1guYm6WmF6R8r9mTtV/bBkLLwnyxlFI0YkzSXs+8n4xZqowSPHyOwmsEpJ40yKJbkuVwC51DM2qYEDbkN0K+ot3kjLVRDw5zUHAXxhsvJsL3TdDzZuZQ67P/RWER6m1HLFTUl6TxyN8ddeGfI6Yd57t0fu3Xk+cZjK/mLca51qYLEfUrYsjuYZcPcOr/oz6bsJuswjn8ocrLnn3sBEtxaOID8iGaF1g/Y0UgcQ0Rp5yUFdKBCp413jTx+FArUJJKiaqoW45QpKw/s2XVFeUxNUwLPJiK7OVfHDCRukOLt9ochpm1yYtWJ4HSx9nS+p3pAGM5VSUmzikhozRAkRPDO1Rr9ZJePvSKOzfPcTrMc5nEPdIVAt5aUqO1Tm14TjLgjhesuJL04hUsfGGS2kIMyYhRKr8MYECOoMJTEPglVjAj3YqysEb9kIfdPACkD5Jm3xLTs/7aC/l49TYXSlXn8KL+PcLtyIX57G9VCumf4CJG5d/ostV+iJjCaDQNkYymuaNI4uj1fbmPOuWr40L56JHumv1LPHJL8+PKBXAm6vADsIj/hdeBNejxFqS7MCXH2TmID6p3ebOyFVxynut98hVPRV5hOOKT3GzE27bHgYGfjEm3XLl9BSTbzzFEhI6EUIJvuOdy1pZfJDofHY5qPzODFdbhu34w= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB2619.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(122000001)(55016003)(38100700002)(71200400001)(38070700005)(52536014)(45080400002)(8936002)(7696005)(15650500001)(53546011)(110136005)(83380400001)(316002)(66946007)(6636002)(76116006)(66556008)(33656002)(66476007)(64756008)(8676002)(66446008)(508600001)(4326008)(186003)(6506007)(966005)(26005)(86362001)(2906002)(54906003)(5660300002)(9686003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JELQCaX+lYULU/XL3LYlnza+eOrll/wcAy3Lk/A3g9lOWujcEv46x3ydbyU0?= =?us-ascii?Q?ltqbPO+eZ3y8R1ZSxsCGscWI+QAmSKICHPmCO6TAwnlIUbEPzj3LPdGWctIM?= =?us-ascii?Q?4VFAqGJSI+2PkNu97zKrrYbTZzwRGfetZziLUoSc8j+5P4a5tXfRXZveps0p?= =?us-ascii?Q?Ba+jXPWMIkWvUyUTcj4SALAdtOI0oV5GFNnprypIdc8b0/7lT4PW9xuZErNx?= =?us-ascii?Q?rmT/SveBP+7wPhDH3ADk5gc0ihWYe6VGdz6cJ7LANMHDSiWxirCLuFwJ9Dmo?= =?us-ascii?Q?LG736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U4g807SF78?= =?us-ascii?Q?xmbU0RyTVFjD7Ub8PnpToXKQbZxXEWEGdmiaq6cMn/JnGnEXQ+/J8/dodd7X?= =?us-ascii?Q?22xAVkRHkVH+QHN5uex7UX0VfRQD4disucK3AxUux/glwHYDqzquE+yS07n/?= =?us-ascii?Q?MHsjszxhuFbaegNb6O4QI1i94xGHzcIwZy/Nxduq5CfPmmKQK/yRfLPJGNyK?= =?us-ascii?Q?XtvD2qBfyULjyaGkjMhfDkE6p6n/o+UbA2qg59u3sf9Vs5nIbVragDuKaXhD?= =?us-ascii?Q?lgcuS3JZg+7LmHI8dT1+Cjmy2ZmL1fEASLyfdQIvqO1OihNkaYh/qM3N40w8?= =?us-ascii?Q?w9FBv/knWNldmozE1yEb9N4ntM8IPopoXi2VhAGn66Qd8dpV7VuyhMRe3BQm?= =?us-ascii?Q?+coWj6VG0ID5B0G/QdE=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2619.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dcba85ed-5053-4a7f-6b6b-08d9f030434f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2022 03:07:12.7541 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rsMjT+NKVafF6wj0eSmSkxP2qns9FjNxDlk7+jd3zB2NtdGpPjkFSJ78g+L0IZAv X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1669 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 [AMD Official Use Only] > -----Original Message----- > From: Salvatore Bonaccorso On Behalf > Of Salvatore Bonaccorso > Sent: Sunday, February 13, 2022 2:24 AM > To: Deucher, Alexander > Cc: Dominique Dumont ; 1005005@bugs.debian.org; > Tuikov, Luben ; Quan, Evan > ; Sasha Levin ; Koenig, Christian > ; Pan, Xinhui ; David > Airlie ; Daniel Vetter ; amd- > gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux- > kernel@vger.kernel.org > Subject: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic > in suspend (v2)") on suspend? >=20 > Hi Alex, hi all >=20 > In Debian we got a regression report from Dominique Dumont, CC'ed in > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugs > .debian.org%2F1005005&data=3D04%7C01%7Cevan.quan%40amd.com%7 > C735917b6e3f44fc8fda808d9ee54cbc0%7C3dd8961fe4884e608e11a82d994e1 > 83d%7C0%7C0%7C637802870862664095%7CUnknown%7CTWFpbGZsb3d8eyJ > WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D% > 7C3000&sdata=3D6xECB3MmvNYuOn41ZOEDPyWUjklY%2Bfxumz7lf8fijwA > %3D&reserved=3D0 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. >=20 > Dominique confirmed that this issue persisted after updating to 5.16.7 > furthermore he bisected the issue and found >=20 > 3c196f05666610912645c7c5d9107706003f67c3 is the first bad commit > commit 3c196f05666610912645c7c5d9107706003f67c3 > Author: Alex Deucher > Date: Fri Nov 12 11:25:30 2021 -0500 >=20 > drm/amdgpu: always reset the asic in suspend (v2) >=20 > [ Upstream commit daf8de0874ab5b74b38a38726fdd3d07ef98a7ee ] >=20 > 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. >=20 > v2: handle s0ix >=20 > Acked-by: Luben Tuikov > Acked-by: Evan Quan > Signed-off-by: Alex Deucher > Signed-off-by: Sasha Levin >=20 > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > to be the first bad commit, see > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugs > .debian.org%2F1005005%2334&data=3D04%7C01%7Cevan.quan%40amd.c > om%7C735917b6e3f44fc8fda808d9ee54cbc0%7C3dd8961fe4884e608e11a82d > 994e183d%7C0%7C0%7C637802870862664095%7CUnknown%7CTWFpbGZsb3 > d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0 > %3D%7C3000&sdata=3DCV%2FKmpYT8WOVJnrTiU91godaFDJMpjih%2FAV > NAcw5qaI%3D&reserved=3D0 . I checked the back trace posted there(below). It seems the error occurred d= uring amdgpu_device_suspend().=20 That means Alex's patch should not be related(as it affected only those log= ic after amdgpu_device_suspend()).=20 So we might got a wrong regression point here. [ 257.842851] ? vi_common_set_clockgating_state+0x229/0x2f0 [amdgpu] [ 257.843356] amdgpu_device_ip_suspend_phase1+0x5e/0xc0 [amdgpu] [ 257.843771] amdgpu_device_suspend+0x62/0xc0 [amdgpu] [ 257.844184] amdgpu_pmops_suspend+0x36/0x70 [amdgpu] [ 257.844631] pci_pm_suspend+0x71/0x160 [ 257.844643] ? pci_pm_freeze+0xb0/0xb0 BR Evan >=20 > Does this ring any bell? Any idea on the problem? >=20 > Regards, > Salvatore