Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp546509pxb; Fri, 15 Oct 2021 10:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhzVHQF8Rtf6SCt+HLUiQ23zPnvAmJYRgSyhLzzjmZNjMTkvjTf4jF2JCBgczRPrBrGB9s X-Received: by 2002:a17:906:838c:: with SMTP id p12mr8220337ejx.181.1634319823825; Fri, 15 Oct 2021 10:43:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634319823; cv=pass; d=google.com; s=arc-20160816; b=ftFlyszlYK1i5k+BBjKwg6Im16PrnJatPvpM88au4UD66DvoEA9KIblNe7ylEru0JA 1Yf1M4sd86fck2HxSl+5eJzVo7yYPE1htfiaMX42hptNBLhn+eCKAaRxz/dGyow49YBj SXYn7RRaqBN7yuvyoZcqoRuCvdnat777mGCIMqIUWYdoDlCIw+MiMDt+lopphUKeK/lE iybeb1vHP1wlcUGoZxZoPRDfbQmD/NdTpIZikdrfoACOdmuMI5+Bnsey4IchCgjWTSK9 bjFYwPZnHTZZbHv+qsK8vGBN+XHExhOXpvoSG4dQpFlrRB/jRQzizZdM0ML57lT9WETc gdvQ== 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=qZgZXsT96Yaa41/c7zjsAeidZDAoCVx4u3PQHFMrFzg=; b=Dy00eB2rd5m4SnuHg8EL+TCFA2d2UIPmH2ba8ndyvh2fIc8UicaTW/hucPHfFcsa+5 v8Px8GxqSrGM66j2x7IUDFo6W3JC2viEcvAgynuy+VwroTSUFFvshxn82B9QUtFaoKe5 nXCUjoJrS6TQ2Rxj6p2NhN82LmCzw+kROuEtYlkStI4W1DaqxooWnx+zj9Oz3K0j91fk 6NvFKF62+5msQAGrMqKpndFClawvKOBXZsVbtTaC2CCHB7MNQUzEbA1ZtvP/3annZ/GR YyQlah1lfPB2svAIBlGCRSK4HQfN/HnYsSGwh9ZNQSbim+jTQyeUuC5FGFoWiUPEPMbu JDXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=JTIHLTia; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si14219518ejc.220.2021.10.15.10.43.18; Fri, 15 Oct 2021 10:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=JTIHLTia; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237298AbhJOJ1H (ORCPT + 99 others); Fri, 15 Oct 2021 05:27:07 -0400 Received: from mail-bn1nam07on2056.outbound.protection.outlook.com ([40.107.212.56]:59367 "EHLO NAM02-BN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236767AbhJOJ1F (ORCPT ); Fri, 15 Oct 2021 05:27:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jYcehGnPqQc6vBqjgRfMJgmV1fsn4clPHBkoHkrJel3gZjkvMHpNziR/xhd2ZlzbThBsXi61geqifJWQyfekbeVes9qgw3ynXy8t79UvYPMuGL7w4lH2ywisd0FOE802TJaQtaGq4CVNUc1MfGig2+5nSnTRtYhNKJ/p0Ze295ko2qGr251TMxrUNWF4IcGQITQ3t0um2VPxu6R8oqtjNSbEAB5PImQxOXXVoIxEo4tcmE8FWrRCmVcoVK4OXZOnKyXPllDeWWvQkfez7qg4udnlv1h0GM68SKqMI3wnvF6fTheReUZvJdkmEhhfAu5ayeXFg6rPYVf97TUKOMT23w== 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=qZgZXsT96Yaa41/c7zjsAeidZDAoCVx4u3PQHFMrFzg=; b=IO1EvNVYaqQffOw7gi/K1HsJDyuXkoRb2Hn3Jgy8ecNNp8OBeeR4OvV2aOXUP4vY5Z7IC3vYtNKvLzZvTBjav2xApvNZVEXC8VrmaERqx0sbULHokXeHJBn8k6vJt8vEfnfSzRkVOyqNwGfcO+yhgJm6LQPl/Hdf4QVz22TW7YqCSLca6xErhhZScW/0GUjAjzV6JEf1YVs8RCYqPp6a24QZ3bEct9lyhdnmFXnft8MiXG4v83qsv2mqQ4XY+RTpwv/cpzBmfYmKlsP9HpWMVDFVOhZzNO8qnZnY7kuMmu8yhqSxsX5O6ihen6Ag+qYVatuOhg+zoZUN67cVissFZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=qZgZXsT96Yaa41/c7zjsAeidZDAoCVx4u3PQHFMrFzg=; b=JTIHLTiaT8V/LkkoW2MHZTPrP/m6LZFlUtdPX9d0E60pYWhZBv7fekEwVTnJTgTqJslkh/BQEOWWbNF3V6FOIMxCEjyQSpisLoK9NJB0NjGOacIUdXsCDqaW6kUJZvbMPGew9u2BsPGj8LlW30C0FU/mP2uLkH2qfWXUtbsbKvw= Received: from DM6PR12MB2619.namprd12.prod.outlook.com (2603:10b6:5:45::18) by DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Fri, 15 Oct 2021 09:24:56 +0000 Received: from DM6PR12MB2619.namprd12.prod.outlook.com ([fe80::35c8:7b2f:1090:d3a5]) by DM6PR12MB2619.namprd12.prod.outlook.com ([fe80::35c8:7b2f:1090:d3a5%6]) with mapi id 15.20.4608.017; Fri, 15 Oct 2021 09:24:56 +0000 From: "Quan, Evan" To: Borislav Petkov CC: Alex Deucher , amd-gfx list , LKML , "Deucher, Alexander" , "Pan, Xinhui" , "Chen, Guchun" Subject: RE: bf756fb833cb ("drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on suspend") Thread-Topic: bf756fb833cb ("drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on suspend") Thread-Index: AQHXu6U/ZEe6vPjmAkGizCNrJ1mPBavJLxGAgAAFT4CAAAIugIAABoCAgACjCrCAAIEAAIAADb7AgAAExgCAAv/N0IAAmpGAgAKexJCAAASygIABFY9AgAB1n4CAAZf1QA== Date: Fri, 15 Oct 2021 09:24:56 +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=2021-10-15T09:24:54Z; 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=11c4db7d-33ed-4051-b6f3-c9d3b6979e70; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ContentBits=1 authentication-results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d5f61659-b18a-4e0e-ce7c-08d98fbda743 x-ms-traffictypediagnostic: DM5PR12MB2504: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Wju3ncOBUjg8Wh7+ninQYAnxQ1Crzr+t5n4PGRVEEkgRp/G45x6FsVoFScS7yVtKcdUPEo19rAa9whIsyvknlXkfHErXGsA8SWVmnrQpmpri3sX6ZRyffRTcj15B9Gb+rB0/vWobzOv6X4NNnbMccF1aEPuuwIcQPeOEqqHmaWRKxeB3NNruYrWASJUZ7E+8AxdoPaWBu8pB8Mg8tZgPvK9tS1oyVdJNFVTc1zYfbdj/2UNGvr+b9IU3NE2aWjNY4Numo7Ru9hZUOqRlZe4BMlDtKm0sXSRAsxhCjzZaknd1mi3ZW40704pILx9KnBQ5GnXtkMkUfGWeWkEzkvVwp14pogsMK1Y7mdmP+R2yJosaBZBZ+FMV7iFMnon4q+mBFMliHK0t6PoddL5d1fkl6Ntvs3cbapboyFdGY1imlhlMs9t26z6KkDNU6eaL0WAP2oGn30Mh8oGadgiZUnQwAlAn1KvTQdE3+K9AzpMstxvT+Xw6NJjHrrhaYY3V+VvNZshBPpYUYMO/Fv7Pwy3Y01q7nOhKkH/pzYywLNTgjDNRtjRj5SnLweV0jbvgUm8WaZjrLecxZy8GA4x9F7WEvqMPqXVvWzeoawZhkjDKYoKCCJd0TMiOn9eZe7yTzMj9Qzt0PYTXx6EAWYfUBzhmA5HxsJQaDS53VFZGCVMBjjYylzXbk7nd6m7N3PT7h/eaJAFJ4ITGVd8u5w+5DhLHzRGvmsNCvnRJFZi8Yo5uK+GA4FPKLul97BbpOapMwpudRirdktHTmngrz7srOjjqvLnDZTiPChWKFa07ux8+UGI= 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:(4636009)(366004)(6916009)(7696005)(186003)(33656002)(6506007)(53546011)(9686003)(55016002)(86362001)(26005)(122000001)(38100700002)(83380400001)(2906002)(38070700005)(8936002)(66946007)(8676002)(66446008)(64756008)(66556008)(66476007)(54906003)(316002)(71200400001)(45080400002)(508600001)(52536014)(4326008)(76116006)(966005)(15650500001)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kWPtamG12HpiUOJ3LmBo8B36dXXzx5mKQyiFpOiG8kZRNRstzm6d0oSNHiE+?= =?us-ascii?Q?B+taUJf8rfOIJ8+sY5DvtLgraqLRmG3UkMsrJ40MEo+WZ2J2+1mVupQswiH9?= =?us-ascii?Q?hSEI/zeJi6tGHyAuNRvoYrLR37drdSCJCSnmoeZXC/ZeDv39Og2fJGEE2sQU?= =?us-ascii?Q?jvCJORmrYWhVRRnU94ECok/y+5AM8kY54HykpGdwxIMTloJY0j2RegXdjJUW?= =?us-ascii?Q?3mwR7JyHmtXfPzl+IKfbM5QtoJbJMpwNk/t7bcF9eSr+lYZmzijl3BEbDZGk?= =?us-ascii?Q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MFYcdHQguG2LHL+TEh1CIx2Eg8WV?= =?us-ascii?Q?+u+vFTqZmqY48hVIFOztrQA2earIxZULonh1iLkVicOfmR6Q5YVmPcMZj2ua?= =?us-ascii?Q?K6YvtxIEYDsVfxy1/SlT/QpmJhTMVogopoP9b2+p0+v1z1WJngAUEOYgpuhQ?= =?us-ascii?Q?lhPP/B9s99UE2NkjQ1dEs5pm?= 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: d5f61659-b18a-4e0e-ce7c-08d98fbda743 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2021 09:24:56.6586 (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: sYT+2fEdNqDkeJ+zd8guGTO3QfikrnyqWjObIbOjzqqAwgHjg7a6fhksyXXnA+1E X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2504 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Official Use Only] > -----Original Message----- > From: Borislav Petkov > Sent: Thursday, October 14, 2021 5:01 PM > To: Quan, Evan > Cc: Alex Deucher ; amd-gfx list gfx@lists.freedesktop.org>; LKML ; Deucher, > Alexander ; Pan, Xinhui > ; Chen, Guchun > Subject: Re: bf756fb833cb ("drm/amdgpu: add missing cleanups for Polaris1= 2 > UVD/VCE on suspend") >=20 > On Thu, Oct 14, 2021 at 02:02:48AM +0000, Quan, Evan wrote: > > [Quan, Evan] Yes, but not(apply them) at the same time. One by one as > you did before. > > - try the patch1 first >=20 > Ok, first patch worked fine. >=20 > > - undo the changes of patch1 and try patch2 >=20 > Did that, worked fine too except after the first resume cycle, the video = didn't > continue playing. >=20 > Then I restarted the video and did a couple more suspend cycles to see if= it > would not continue again. In the subsequent tries it would resume fine an= d > the video would continue playing too. >=20 > So I'm going to chalk that single case of halted video with the second pa= tch to > a resume glitch or so. >=20 > Btw, I don't have pm-suspend on that box but I did suspend to RAM > assuming this is what you wanted, which is done as root with two > commands: >=20 > # echo "suspend" > /sys/power/disk > # echo "mem" > /sys/power/state [Quan, Evan] Yes, that also works. >=20 > If you want me to do more extensive testing, just shoot. [Quan, Evan] Thanks! That's enough for now. I will prepare an official solu= tion for the issue. BR Evan >=20 > HTH. >=20 > -- > Regards/Gruss, > Boris. >=20 > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpeo > ple.kernel.org%2Ftglx%2Fnotes-about- > netiquette&data=3D04%7C01%7CEvan.Quan%40amd.com%7C08df3d5453 > d64ad40dfa08d98ef119ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C > 0%7C637697988457790715%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj > AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000& > sdata=3DzmFVlmUBv6byoDYyUhSgk9J9Zmvexz5IqG7xBxwiR3M%3D&rese > rved=3D0