From: Mario Limonciello <mario.limonciello@amd.com>
To: "Gong, Richard" <richard.gong@amd.com>,
Kai-Heng Feng <kai.heng.feng@canonical.com>,
alexander.deucher@amd.com, christian.koenig@amd.com,
Xinhui.Pan@amd.com
Cc: David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Hawking Zhang <Hawking.Zhang@amd.com>,
Likun Gao <Likun.Gao@amd.com>,
Felix Kuehling <Felix.Kuehling@amd.com>,
Victor Zhao <Victor.Zhao@amd.com>, Jack Xiao <Jack.Xiao@amd.com>,
Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Lijo Lazar <lijo.lazar@amd.com>,
YiPeng Chai <YiPeng.Chai@amd.com>,
Andrey Grodzovsky <andrey.grodzovsky@amd.com>,
Bokun Zhang <Bokun.Zhang@amd.com>,
Guchun Chen <guchun.chen@amd.com>,
Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>,
Evan Quan <evan.quan@amd.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] drm/amdgpu: Remove ASPM workaround on VI and NV
Date: Wed, 29 Mar 2023 08:18:02 -0500 [thread overview]
Message-ID: <3bef108e-2e62-d7d3-af44-f178779702e5@amd.com> (raw)
In-Reply-To: <9c8d928d-f322-e9aa-c811-28682ca70f04@amd.com>
On 3/29/23 08:08, Gong, Richard wrote:
>
> On 3/29/2023 4:59 AM, Kai-Heng Feng wrote:
>> Since the original issue is resolved by a new fix, the ASPM workaround
>> can be dropped.
> What is the new fix? Can you elaborate more or add the new fix commit
> here?
It's his first patch in the series, but yes I agree it should be
mentioned in this
message explicitly what about that means this can be dropped.
>>
>> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
>> ---
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 -
>> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 15 ---------------
>> drivers/gpu/drm/amd/amdgpu/nv.c | 2 +-
>> drivers/gpu/drm/amd/amdgpu/vi.c | 2 +-
>> 4 files changed, 2 insertions(+), 18 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>> index 8cf2cc50b3de..a19a6489b117 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>> @@ -1248,7 +1248,6 @@ void amdgpu_device_pci_config_reset(struct
>> amdgpu_device *adev);
>> int amdgpu_device_pci_reset(struct amdgpu_device *adev);
>> bool amdgpu_device_need_post(struct amdgpu_device *adev);
>> bool amdgpu_device_should_use_aspm(struct amdgpu_device *adev);
>> -bool amdgpu_device_aspm_support_quirk(void);
>> void amdgpu_cs_report_moved_bytes(struct amdgpu_device *adev, u64
>> num_bytes,
>> u64 num_vis_bytes);
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> index d56b7a2bafa6..0cacace2d6c2 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> @@ -81,10 +81,6 @@
>> #include <drm/drm_drv.h>
>> -#if IS_ENABLED(CONFIG_X86)
>> -#include <asm/intel-family.h>
>> -#endif
>> -
>> MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin");
>> MODULE_FIRMWARE("amdgpu/vega12_gpu_info.bin");
>> MODULE_FIRMWARE("amdgpu/raven_gpu_info.bin");
>> @@ -1377,17 +1373,6 @@ bool amdgpu_device_should_use_aspm(struct
>> amdgpu_device *adev)
>> return pcie_aspm_enabled(adev->pdev);
>> }
>> -bool amdgpu_device_aspm_support_quirk(void)
>> -{
>> -#if IS_ENABLED(CONFIG_X86)
>> - struct cpuinfo_x86 *c = &cpu_data(0);
>> -
>> - return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE);
>> -#else
>> - return true;
>> -#endif
>> -}
>> -
>> /* if we get transitioned to only one device, take VGA back */
>> /**
>> * amdgpu_device_vga_set_decode - enable/disable vga decode
>> diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c
>> b/drivers/gpu/drm/amd/amdgpu/nv.c
>> index 47420b403871..15f3c6745ea9 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/nv.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/nv.c
>> @@ -522,7 +522,7 @@ static int nv_set_vce_clocks(struct amdgpu_device
>> *adev, u32 evclk, u32 ecclk)
>> static void nv_program_aspm(struct amdgpu_device *adev)
>> {
>> - if (!amdgpu_device_should_use_aspm(adev) ||
>> !amdgpu_device_aspm_support_quirk())
>> + if (!amdgpu_device_should_use_aspm(adev))
>> return;
>> if (!(adev->flags & AMD_IS_APU) &&
>> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
>> b/drivers/gpu/drm/amd/amdgpu/vi.c
>> index 531f173ade2d..81dcb1148a60 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
>> @@ -1122,7 +1122,7 @@ static void vi_program_aspm(struct
>> amdgpu_device *adev)
>> bool bL1SS = false;
>> bool bClkReqSupport = true;
>> - if (!amdgpu_device_should_use_aspm(adev) ||
>> !amdgpu_device_aspm_support_quirk())
>> + if (!amdgpu_device_should_use_aspm(adev))
>> return;
>> if (adev->flags & AMD_IS_APU ||
next prev parent reply other threads:[~2023-03-29 13:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 9:59 [PATCH 1/2] drm/amdgpu: Reset GPU on S0ix when device supports BOCO Kai-Heng Feng
2023-03-29 9:59 ` [PATCH 2/2] drm/amdgpu: Remove ASPM workaround on VI and NV Kai-Heng Feng
2023-03-29 13:08 ` Gong, Richard
2023-03-29 13:18 ` Mario Limonciello [this message]
2023-03-29 13:21 ` [PATCH 1/2] drm/amdgpu: Reset GPU on S0ix when device supports BOCO Alex Deucher
2023-03-30 0:49 ` Kai-Heng Feng
2023-03-30 2:08 ` Alex Deucher
2023-03-29 13:23 ` Mario Limonciello
2023-03-30 3:36 ` Kai-Heng Feng
2023-03-30 4:20 ` Mario Limonciello
2023-03-30 13:22 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3bef108e-2e62-d7d3-af44-f178779702e5@amd.com \
--to=mario.limonciello@amd.com \
--cc=Amaranath.Somalapuram@amd.com \
--cc=Bokun.Zhang@amd.com \
--cc=Felix.Kuehling@amd.com \
--cc=Hawking.Zhang@amd.com \
--cc=Jack.Xiao@amd.com \
--cc=Likun.Gao@amd.com \
--cc=Victor.Zhao@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=YiPeng.Chai@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=andrey.grodzovsky@amd.com \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=evan.quan@amd.com \
--cc=guchun.chen@amd.com \
--cc=kai.heng.feng@canonical.com \
--cc=lijo.lazar@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=richard.gong@amd.com \
--cc=veerabadhran.gopalakrishnan@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®