[v2] drm/amdgpu: skip vram operation for BAMACO runtime

2020-12-13 Thread Likun Gao
From: Likun Gao Skip vram related operation for bamaco rumtime suspend and resume as vram is alive when BAMACO. It can save about 32ms when suspend and about 15ms when resume. v2: add local adev variable for maco enablement which checked by device MACO support cap and runtime method parameter to

RE: [PATCH 1/1] drm/amdgpu: skip load smu and sdma microcode on sriov for SIENNA_CICHLID

2020-12-13 Thread Yang, Stanley
[AMD Public Use] Hi Lijo, Good point, I will modify and send patch version two. Regards, Stanley > -Original Message- > From: Lazar, Lijo > Sent: Monday, December 14, 2020 12:01 PM > To: Yang, Stanley ; amd-gfx@lists.freedesktop.org > Cc: Yang, Stanley ; Jian, Jane > Subject: RE: [PATC

RE: [PATCH] drm/amd/display: drop retired CONFIG_DRM_AMD_DC_DCN3_0

2020-12-13 Thread Chen, Guchun
[AMD Public Use] Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: amd-gfx On Behalf Of Flora Cui Sent: Monday, December 14, 2020 10:31 AM To: amd-gfx@lists.freedesktop.org Cc: Cui, Flora Subject: [PATCH] drm/amd/display: drop retired CONFIG_DRM_AMD_DC_DCN3_0 CONFIG_D

RE: [PATCH 1/1] drm/amdgpu: skip load smu and sdma microcode on sriov for SIENNA_CICHLID

2020-12-13 Thread Lazar, Lijo
[AMD Public Use] >-Original Message- >From: amd-gfx On Behalf Of >Stanley.Yang >Sent: Monday, December 14, 2020 8:41 AM >To: amd-gfx@lists.freedesktop.org >Cc: Yang, Stanley ; Jian, Jane > >Subject: [PATCH 1/1] drm/amdgpu: skip load smu and sdma microcode on >sriov for SIENNA_CICHLID > >[

[PATCH 1/1] drm/amdgpu: skip load smu and sdma microcode on sriov for SIENNA_CICHLID

2020-12-13 Thread Stanley . Yang
skip load smu and sdma fw on sriov due to smc, sos, ta and asd fw have been skipped for SIENNA_CICHLID. Signed-off-by: Stanley.Yang --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c| 3 +++ drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --g

Re: [PATCH 0/8] amdgpu, pci: improved BAR resizing support

2020-12-13 Thread Darren Salt
I forgot the Signed-Off-By for some patches. So, for all in this series: Signed-Off-By: Darren Salt ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[PATCH 2/8] pci: add BAR bytes->size helper & expose size->bytes helper

2020-12-13 Thread Darren Salt
This is to assist driver modules which do BAR resizing. Signed-off-by: Darren Salt --- drivers/pci/pci.h | 4 include/linux/pci.h | 9 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index dd1398aec6c8..4127b6d54f26 100644 ---

[PATCH 8/8] amdgpu: add a BAR size quirk for Sapphire RX 5600 XT Pulse.

2020-12-13 Thread Darren Salt
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 442eca5fc6a4..efd6a1d80da2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm

[PATCH 1/8] pci: export pci_rebar_get_possible_sizes

2020-12-13 Thread Darren Salt
This is to assist driver modules which do BAR resizing. Signed-off-by: Darren Salt --- drivers/pci/pci.c | 1 + drivers/pci/pci.h | 1 - include/linux/pci.h | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index b2fed944903e..2fd88af5

[PATCH 6/8] amdgpu: allow overriding of the GPU's list of supported BAR sizes (v3)

2020-12-13 Thread Darren Salt
Some cards don't advertise a BAR size which covers all of the VRAM. Mine, a Sapphire RX 5600 XT Pulse, advertises only 256MB, 512MB and 1GB. Despite this, it appears to work fine with the full 6GB visible via an 8GB BAR. v3: changed implementation due to changes in preceding patches. v2: differe

[PATCH 5/8] pci: allow for overriding the list of advertised BAR sizes

2020-12-13 Thread Darren Salt
This is intended for devices which are known to work with BAR sizes other than those which they advertise; usually larger. --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/pci/setup-res.c| 4 ++-- include/linux/pci.h| 2 +- 3 files changed,

[PATCH 7/8] amdgpu: implement a BAR size quirks list

2020-12-13 Thread Darren Salt
Intended for devices which are misreporting available/supported BAR sizes. This may be insufficient to identify some devices. The inclusion of the reported BAR sizes bitmap is to assist with identification. --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 43 -- 1 file changed

[PATCH 4/8] amdgpu: limit maximum BAR0 size when attempting to enlarge (v2)

2020-12-13 Thread Darren Salt
This is coarse, applying to all dGPUs. v2: If there are no advertised sizes small enough, limit to the smallest available. --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 31 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 9

[PATCH 0/8] amdgpu, pci: improved BAR resizing support

2020-12-13 Thread Darren Salt
This patch series improves the existing BAR resizing support in amdgpu. By default, it will attempt to resize BAR0 for each dGPU present to cover the VRAM, falling back to smaller sizes if necessary, e.g. if there's not enough address space remaining or support for the size is not advertised. Basi

[PATCH 3/8] amdgpu: resize BAR0 to the maximum available size, even if it doesn't cover VRAM (v4)

2020-12-13 Thread Darren Salt
This allows BAR0 resizing to be done for cards which don't advertise support for a size large enough to cover the VRAM but which do advertise at least one size larger than the default. For example, my RX 5600 XT, which advertises 256MB, 512MB and 1GB. [v4] use bit ops to find sizes to try [v3] do

[PATCH] drm/amd/display: drop retired CONFIG_DRM_AMD_DC_DCN3_0

2020-12-13 Thread Flora Cui
CONFIG_DRM_AMD_DC_DCN3_0 is retired. drop it Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index a901baf2aaef..9e1071b