Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2480120pxb; Fri, 8 Oct 2021 08:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVR8JWDCye8X8I9vIUQGRJasiaF0SFakinKABM/XrFmkmHzBGATa0R88uKv/zvMT94aqYr X-Received: by 2002:a17:906:82c8:: with SMTP id a8mr5143365ejy.384.1633707471064; Fri, 08 Oct 2021 08:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633707471; cv=none; d=google.com; s=arc-20160816; b=LHQBhVJ+1Fgk9sn0cGo6LlMsOVszA5wch9d/pL9R9YoQirK/IW0UyEajmHTlqKbrDv G81dtv/BRP01xC1SU0PhfHFFvFywFMEws7T3uwrtl4225nhuzElEwlgE5CE0Bmotfp6q xXVcv6tWG235WhMmXv7zmVcIv7oxCjWiiTpu9MSIY+21B3QFqqTKr3DCOo3YbQ8XrdWA EIXhg/DN2c6DgXrfDAwtIfXutNIrC5yzJlwMqPkvorwALhYFv/8652eYCno8QLyjRy36 7x1hIBOnv7JJLFTV10sgNx3MsElm/4SKElLLa4U8FfZT637tzvJseOerYZZcPsUvrt55 bPFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FyemXY0AOdlICp0KI0nDs+rgSiJMVPqaGO8BhnjPb6o=; b=pjFgXKlP3xLFM2Piyr2okA3ApJvkZwXrk25RrbzjYL5GrbNOmA+j50fF7Kglz4hJRd JL87AvKHzUQyEcmAVaeCQ+wy067ncjuuw8gZ1TdjKMA6Sj5URtvtcVFpA/D4aVHZVhmc 1dYgBYVXhiaGim0Szmm8Z2P5Fw2Ym2QA+vXxhsIOAQdHgXCF/PgsfikHPvUT9rOKTtff tow1RLpCOiKQs5sF+3Mh7p/sWI9fYlgG7VLDGHHV4fejuVs5kx0Ya4mPRue1wXbeSalj gz8GT1e9tZsD7jzdsYOlrldXCYUQDIvnZ0fYQWL7Zt/JG/WDjzkVAShafvZzLE9FpzXS TC+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=lcxW2fre; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si2095598edn.209.2021.10.08.08.37.27; Fri, 08 Oct 2021 08:37:51 -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=@alien8.de header.s=dkim header.b=lcxW2fre; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242991AbhJHPhv (ORCPT + 99 others); Fri, 8 Oct 2021 11:37:51 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36932 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbhJHPhu (ORCPT ); Fri, 8 Oct 2021 11:37:50 -0400 Received: from zn.tnic (p200300ec2f0d5600b5f996c39c66b7a4.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:5600:b5f9:96c3:9c66:b7a4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5B6AC1EC04B9; Fri, 8 Oct 2021 17:35:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633707354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=FyemXY0AOdlICp0KI0nDs+rgSiJMVPqaGO8BhnjPb6o=; b=lcxW2fredBQl+/XQ+czUhGjIofkM75FwTMqqiuee+37/OGvOZVPL7Ce1zOgCObeBOJAiuQ 00d7Q3B9SSZ2oztutdJIdACD/g9AWECYzvHNgf9gwmZSzmLiAWEeiplAgkghPYWqmizG9b KVp5GROArNCvaFvnofDpMp6r2cFFTok= Date: Fri, 8 Oct 2021 17:35:51 +0200 From: Borislav Petkov To: Alex Deucher Cc: "Quan, Evan" , amd-gfx list , LKML , Alex Deucher , xinhui pan , Guchun Chen Subject: Re: bf756fb833cb ("drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on suspend") Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 11:12:35AM -0400, Alex Deucher wrote: > Can you try swapping the order of > amdgpu_device_ip_set_powergating_state() and > amdgpu_device_ip_set_clockgating_state() in the patch? Nope, the diff below didn't change things. Should I comment them out one by one and see whether the clockgating or the powergating causes it? diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index bc571833632e..99e3d697cc24 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c @@ -561,10 +561,10 @@ static int uvd_v6_0_hw_fini(void *handle) } else { amdgpu_asic_set_uvd_clocks(adev, 0, 0); /* shutdown the UVD block */ - amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, - AMD_PG_STATE_GATE); amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_UVD, AMD_CG_STATE_GATE); + amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, + AMD_PG_STATE_GATE); } if (RREG32(mmUVD_STATUS) != 0) diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index 9de66893ccd6..a36612357d0f 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c @@ -507,10 +507,10 @@ static int vce_v3_0_hw_fini(void *handle) amdgpu_dpm_enable_vce(adev, false); } else { amdgpu_asic_set_vce_clocks(adev, 0, 0); - amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCE, - AMD_PG_STATE_GATE); amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_VCE, AMD_CG_STATE_GATE); + amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCE, + AMD_PG_STATE_GATE); } r = vce_v3_0_wait_for_idle(handle); -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette