Re: [PATCH 09/66] drm/amdgpu/sdma5.2: convert to IP version checking

2021-09-21 Thread Lazar, Lijo
On 9/21/2021 11:36 PM, Alex Deucher wrote: Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 48 +- 1 file changed, 24 insertions(+), 24 deletions(-) diff

Re: [PATCH 11/66] drm/amdgpu: filter out radeon PCI device IDs

2021-09-21 Thread Lazar, Lijo
On 9/21/2021 11:36 PM, Alex Deucher wrote: Once we claim all 0x1002 PCI display class devices, we will need to filter out devices owned by radeon. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 561 +++- 1 file changed, 560 insertions(+), 1

Re: [PATCH 65/66] drm/amdkfd: convert kfd_device.c to use GC IP version

2021-09-21 Thread Alex Deucher
On Tue, Sep 21, 2021 at 5:00 PM wrote: > > tis 2021-09-21 klockan 14:07 -0400 skrev Alex Deucher: > > rather than asic type. > > > > Signed-off-by: Alex Deucher > > --- > > drivers/gpu/drm/amd/amdkfd/kfd_device.c | 254 +--- > > 1 file changed, 178 insertions(+), 76

Re: [Intel-gfx] [PATCH v3 03/13] drm/dp: add LTTPR DP 2.0 DPCD addresses

2021-09-21 Thread Stephen Rothwell
Hi Nathan, On Tue, 21 Sep 2021 15:58:23 -0700 Nathan Chancellor wrote: > > On Thu, Sep 09, 2021 at 03:51:55PM +0300, Jani Nikula wrote: > > DP 2.0 brings some new DPCD addresses for PHY repeaters. > > > > Cc: dri-de...@lists.freedesktop.org > > Reviewed-by: Manasi Navare > > Signed-off-by:

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Kirill A. Shutemov
On Tue, Sep 21, 2021 at 04:43:59PM -0500, Tom Lendacky wrote: > On 9/21/21 4:34 PM, Kirill A. Shutemov wrote: > > On Tue, Sep 21, 2021 at 11:27:17PM +0200, Borislav Petkov wrote: > > > On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: > > > > I still believe calling

Re: [Intel-gfx] [PATCH v3 03/13] drm/dp: add LTTPR DP 2.0 DPCD addresses

2021-09-21 Thread Nathan Chancellor
On Thu, Sep 09, 2021 at 03:51:55PM +0300, Jani Nikula wrote: > DP 2.0 brings some new DPCD addresses for PHY repeaters. > > Cc: dri-de...@lists.freedesktop.org > Reviewed-by: Manasi Navare > Signed-off-by: Jani Nikula > --- > include/drm/drm_dp_helper.h | 4 > 1 file changed, 4

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Tom Lendacky
On 9/21/21 4:34 PM, Kirill A. Shutemov wrote: On Tue, Sep 21, 2021 at 11:27:17PM +0200, Borislav Petkov wrote: On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: I still believe calling cc_platform_has() from __startup_64() is totally broken as it lacks proper wrapping while

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Borislav Petkov
On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: > I still believe calling cc_platform_has() from __startup_64() is totally > broken as it lacks proper wrapping while accessing global variables. Well, one of the issues on the AMD side was using boot_cpu_data too early and the

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Kirill A. Shutemov
On Tue, Sep 21, 2021 at 11:27:17PM +0200, Borislav Petkov wrote: > On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: > > I still believe calling cc_platform_has() from __startup_64() is totally > > broken as it lacks proper wrapping while accessing global variables. > > Well,

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Kirill A. Shutemov
On Tue, Sep 21, 2021 at 07:47:15PM +0200, Borislav Petkov wrote: > On Tue, Sep 21, 2021 at 12:04:58PM -0500, Tom Lendacky wrote: > > Looks like instrumentation during early boot. I worked with Boris offline to > > exclude arch/x86/kernel/cc_platform.c from some of the instrumentation and > > that

Re: [PATCH 65/66] drm/amdkfd: convert kfd_device.c to use GC IP version

2021-09-21 Thread ernstp
tis 2021-09-21 klockan 14:07 -0400 skrev Alex Deucher: > rather than asic type. > > Signed-off-by: Alex Deucher > --- >  drivers/gpu/drm/amd/amdkfd/kfd_device.c | 254 +--- >  1 file changed, 178 insertions(+), 76 deletions(-) > > diff --git

Re: [PATCH v2 1/2] drm/amdkfd: handle svm migrate init error

2021-09-21 Thread Felix Kuehling
On 2021-09-21 2:53 p.m., Philip Yang wrote: If svm migration init failed to create pgmap for device memory, set pgmap type to 0 to disable device SVM support capability. Signed-off-by: Philip Yang The series is Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c |

Re: [PATCH v2 1/2] drm/amdkfd: handle svm migrate init error

2021-09-21 Thread Andrey Grodzovsky
Series is Acked-by: Andrey Grodzovsky Andrey On 2021-09-21 2:53 p.m., Philip Yang wrote: If svm migration init failed to create pgmap for device memory, set pgmap type to 0 to disable device SVM support capability. Signed-off-by: Philip Yang --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c |

[PATCH v2 2/2] drm/amdkfd: fix svm_migrate_fini warning

2021-09-21 Thread Philip Yang
Device manager releases device-specific resources when a driver disconnects from a device, devm_memunmap_pages and devm_release_mem_region calls in svm_migrate_fini are redundant. It causes below warning trace after patch "drm/amdgpu: Split amdgpu_device_fini into early and late", so remove

[PATCH v2 1/2] drm/amdkfd: handle svm migrate init error

2021-09-21 Thread Philip Yang
If svm migration init failed to create pgmap for device memory, set pgmap type to 0 to disable device SVM support capability. Signed-off-by: Philip Yang --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c

[PATCH 62/66] drm/amdgpu: clean up set IP function

2021-09-21 Thread Alex Deucher
Split into several smaller per IP functions to make it easier to handle ordering issues for things like SR-IOV in a follow up patch. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1028 + 1 file changed, 540 insertions(+), 488 deletions(-) diff

[PATCH 61/66] drm/amdgpu: convert IP version array to include instances

2021-09-21 Thread Alex Deucher
Allow us to query instances versions more cleanly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 262 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 34 +--

[PATCH 65/66] drm/amdkfd: convert kfd_device.c to use GC IP version

2021-09-21 Thread Alex Deucher
rather than asic type. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 254 +--- 1 file changed, 178 insertions(+), 76 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c index

[PATCH 58/66] drm/amdgpu/ucode: add default behavior

2021-09-21 Thread Alex Deucher
Default to PSP ucode loading unless the user specifies direct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

[PATCH 35/66] drm/amdgpu: drive all vega asics from the IP discovery table

2021-09-21 Thread Alex Deucher
Rather than hardcoding based on asic_type, use the IP discovery table to configure the driver. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 66/66] drm/amdgpu: add an option to override IP discovery table from a file

2021-09-21 Thread Alex Deucher
If you set amdgpu.discovery=2 you can force the the driver to fetch the IP discovery table from a file rather than from the table shipped on the device. This is useful for debugging and for device bring up and emulation when the tables may be in flux. Signed-off-by: Alex Deucher ---

[PATCH 63/66] drm/amdgpu: add support for SRIOV in IP discovery path

2021-09-21 Thread Alex Deucher
Handle SRIOV requirements when adding IP blocks. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 32 +-- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

[PATCH 56/66] drm/amdgpu/vcn: remove manual instance setting

2021-09-21 Thread Alex Deucher
Handled by IP discovery now. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 4 +--- 4 files changed, 2 insertions(+), 6 deletions(-)

[PATCH 64/66] drm/amdkfd: clean up parameters in kgd2kfd_probe

2021-09-21 Thread Alex Deucher
We can get the pdev and asic type from the adev. No need to pass them explicitly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 3 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 3 +-- drivers/gpu/drm/amd/amdkfd/kfd_device.c| 7 +-- 3 files changed, 7

[PATCH 53/66] drm/amdgpu: add HWID of SDMA instance 2 and 3

2021-09-21 Thread Alex Deucher
From: Guchun Chen They are missed. Signed-off-by: Guchun Chen Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/include/soc15_hw_ip.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/include/soc15_hw_ip.h b/drivers/gpu/drm/amd/include/soc15_hw_ip.h index

[PATCH 59/66] drm/amdgpu: add new asic_type for IP discovery

2021-09-21 Thread Alex Deucher
Add a new asic type for asics where we don't have an explicit entry in the PCI ID list. We don't need an asic type for these asics, other than something higher than the existing ones, so just use this for all new asics. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 51/66] drm/amdgpu: add VCN1 hardware IP

2021-09-21 Thread Alex Deucher
So we can store the VCN IP revision for each instance of VCN. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 815db33190ca..b153c3740307

[PATCH 42/66] drm/amdgpu/psp_v11.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 44 +- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c

[PATCH 52/66] drm/amdgpu: store all instances of IPs in the IP version table

2021-09-21 Thread Alex Deucher
Use the instance to increment the entry in the table. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

[PATCH 60/66] drm/amdgpu: set CHIP_IP_DISCOVERY as the asic type by default

2021-09-21 Thread Alex Deucher
For new chips with no explicit entry in the PCI ID list. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index

[PATCH 55/66] drm/amdgpu/sdma: remove manual instance setting

2021-09-21 Thread Alex Deucher
Handled by IP discovery now. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 17 - drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 -- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 17 - 3 files changed, 36 deletions(-) diff --git

[PATCH 57/66] drm/amdgpu: get VCN harvest information from IP discovery table

2021-09-21 Thread Alex Deucher
Use the table rather than asic specific harvest registers. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index

[PATCH 54/66] drm/amdgpu: get VCN and SDMA instances from IP discovery table

2021-09-21 Thread Alex Deucher
Rather than hardcoding it. v2: squash in checks for SDMA3,4 (Guchun) Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

[PATCH 49/66] drm/amdgpu/soc15: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/soc15.c | 159 - 1 file changed, 88 insertions(+), 71 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH 47/66] drm/amdgpu/amdgpu_vcn: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. v2: squash in fix for navy flounder and sienna cichlid Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 47 +++-- 1 file changed, 21 insertions(+), 26 deletions(-)

[PATCH 45/66] drm/amdgpu/pm/smu_v13.0: convert IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c| 22 +++ 1 file changed, 13 insertions(+), 9 deletions(-) diff --git

[PATCH 50/66] drm/amd/display: fix error case handling

2021-09-21 Thread Alex Deucher
From: Guchun Chen Otherwise, we will run into error case path. Signed-off-by: Guchun Chen Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 48/66] drm/amdgpu/vcn2.5: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c

[PATCH 44/66] drm/amdgpu/pm/smu_v11.0: update IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c| 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH 43/66] drm/amdgpu/psp_v13.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c

[PATCH 38/66] drm/amdgpu/sdma4.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 107 ++--- 1 file changed, 60 insertions(+), 47 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

[PATCH 29/66] drm/amdgpu/display/dm: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 194 ++ 1 file changed, 109 insertions(+), 85 deletions(-) diff --git

[PATCH 37/66] drm/amdgpu/display/dm: convert RAVEN to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 22 +-- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git

[PATCH 39/66] drm/amdgpu/hdp4.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c

[PATCH 32/66] drm/amdgpu/soc15: export common IP functions

2021-09-21 Thread Alex Deucher
So they can be driven by IP discovery table. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- drivers/gpu/drm/amd/amdgpu/soc15.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH 46/66] drm/amdgpu/pm/amdgpu_smu: convert more IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 41 ++- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

[PATCH 28/66] drm/amdgpu/nv: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 75 + 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c

[PATCH 30/66] drm/amdgpu: add DCI HWIP

2021-09-21 Thread Alex Deucher
So we can track grab the appropriate DCE info out of the IP discovery table. This is a separare IP from DCN. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 34/66] drm/amdgpu/soc15: get rev_id in soc15_common_early_init

2021-09-21 Thread Alex Deucher
for consistency with other SoCs. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index dffe7d7ff9e2..f26d33faa0cb 100644 ---

[PATCH 40/66] drm/amdgpu/gfx9.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 227 ++ 1 file changed, 120 insertions(+), 107 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

[PATCH 33/66] drm/amdgpu: add initial IP discovery support for vega based parts

2021-09-21 Thread Alex Deucher
Hardcode the IP versions for asics without IP discovery tables and then enumerate the asics based on the IP versions. TODO: fix SR-IOV support Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 417 -- 1 file changed, 387 insertions(+), 30

[PATCH 41/66] drm/amdgpu/amdgpu_psp: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 101 ++-- 1 file changed, 58 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

[PATCH 20/66] drm/amdgpu/athub2.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/athub_v2_0.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v2_0.c

[PATCH 23/66] drm/amdgpu/amdgpu_smu: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. v2: rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 94 +-- 1 file changed, 55 insertions(+), 39 deletions(-) diff --git

[PATCH 24/66] drm/amdgpu/smu11.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. v2: rebase Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c| 88 ++- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git

[PATCH 25/66] drm/amdgpu/navi10_ppt: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[PATCH 27/66] drm/amdgpu: drive all navi asics from the IP discovery table

2021-09-21 Thread Alex Deucher
Rather than hardcoding based on asic_type, use the IP discovery table to configure the driver. v2: rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 20 1 file changed, 20 deletions(-) diff --git

[PATCH 26/66] drm/amdgpu/sienna_cichlid_ppt: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH 31/66] drm/amdgpu: make soc15_common_ip_funcs static

2021-09-21 Thread Alex Deucher
It's not used outside of soc15.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 +++- drivers/gpu/drm/amd/amdgpu/soc15.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index

[PATCH 21/66] drm/amdgpu/athub2.1: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/athub_v2_1.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v2_1.c

[PATCH 18/66] drm/amdgpu/mmhub2.1: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c

[PATCH 17/66] drm/amdgpu/mmhub2.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 73 +++-- 1 file changed, 32 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c

[PATCH 16/66] drm/amdgpu/gfxhub2.1: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c

[PATCH 19/66] drm/amdgpu/vcn3.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c

[PATCH 22/66] drm/amdgpu/navi10_ih: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c

[PATCH 10/66] drm/amdgpu/gfx10: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. v2: rebase, squash in navi10 fixes (Alex) Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 380 - 1 file changed, 190 insertions(+), 190 deletions(-) diff

[PATCH 12/66] drm/amdgpu: bind to any 0x1002 PCI diplay class device

2021-09-21 Thread Alex Deucher
Bind to all 0x1002 GPU devices. For now we explicitly return -ENODEV for generic bindings. Remove this check once IP discovery based checking is in place. v2: rebase (Alex) Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 15 +++ 1 file changed, 15

[PATCH 11/66] drm/amdgpu: filter out radeon PCI device IDs

2021-09-21 Thread Alex Deucher
Once we claim all 0x1002 PCI display class devices, we will need to filter out devices owned by radeon. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 561 +++- 1 file changed, 560 insertions(+), 1 deletion(-) diff --git

[PATCH 13/66] drm/amdgpu/gmc10.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. v2: squash in gmc fixes v3: rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 91 +- 1 file changed, 30 insertions(+), 61 deletions(-) diff --git

[PATCH 15/66] drm/amdgpu: drive nav10 from the IP discovery table

2021-09-21 Thread Alex Deucher
Rather than hardcoding based on asic_type, use the IP discovery table to configure the driver. Only tested on Navi10 so far. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 08/66] drm/amdgpu/sdma5.0: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. v2: rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 30 +- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH 05/66] drm/amdgpu: add XGMI HWIP

2021-09-21 Thread Alex Deucher
So we can track grab the appropriate XGMI info out of the IP discovery table. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 14/66] drm/amdgpu: Use IP discovery to drive setting IP blocks by default

2021-09-21 Thread Alex Deucher
Drive the asic setup from the IP discovery table rather than hardcoded settings based on asic type. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 04/66] drm/amdgpu: fill in IP versions from IP discovery table

2021-09-21 Thread Alex Deucher
Prerequisite for using IP versions in the driver rather than asic type. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

[PATCH 09/66] drm/amdgpu/sdma5.2: convert to IP version checking

2021-09-21 Thread Alex Deucher
Use IP versions rather than asic_type to differentiate IP version specific features. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 48 +- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c

[PATCH 03/66] drm/amdgpu: store HW IP versions in the driver structure

2021-09-21 Thread Alex Deucher
So we can check the IP versions directly rather than using asic type. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH 06/66] drm/amdgpu/nv: export common IP functions

2021-09-21 Thread Alex Deucher
So they can be driven by IP dicovery table. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 2 +- drivers/gpu/drm/amd/amdgpu/nv.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index

[PATCH 07/66] drm/amdgpu: add initial IP enumeration via IP discovery table

2021-09-21 Thread Alex Deucher
Add initial support for all navi based parts. v2: rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 333 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.h | 1 + 2 files changed, 334 insertions(+) diff --git

[PATCH 01/66] drm/amdgpu: move headless sku check into harvest function

2021-09-21 Thread Alex Deucher
Consolidate harvesting information. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 7 +++ drivers/gpu/drm/amd/amdgpu/nv.c | 14 -- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git

[PATCH 02/66] drm/amdgpu: add debugfs access to the IP discovery table

2021-09-21 Thread Alex Deucher
Useful for debugging and new asic validation. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 5 + 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h

[PATCH 00/66] Move to IP driven device enumeration

2021-09-21 Thread Alex Deucher
This patch set moves the driver to an IP driven discovery model rather than one tied to PCI device ids. This allows the GPU driver to claim all ATI PCI display class devices. The driver will then either load or not based on the IPs (GC, SDMA, DCN, VCN, etc.) that are enumerated on the device.

Re: [RFC PATCH v3 1/6] drm/doc: Color Management and HDR10 RFC

2021-09-21 Thread Harry Wentland
On 2021-09-21 09:31, Pekka Paalanen wrote: > On Mon, 20 Sep 2021 20:14:50 -0400 > Harry Wentland wrote: > >> On 2021-09-15 10:01, Pekka Paalanen wrote:> On Fri, 30 Jul 2021 16:41:29 >> -0400 >>> Harry Wentland wrote: >>> Use the new DRM RFC doc section to capture the RFC previously

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Borislav Petkov
On Tue, Sep 21, 2021 at 12:04:58PM -0500, Tom Lendacky wrote: > Looks like instrumentation during early boot. I worked with Boris offline to > exclude arch/x86/kernel/cc_platform.c from some of the instrumentation and > that allowed an allyesconfig to boot. And here's the lineup I have so far,

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Tom Lendacky
On 9/20/21 2:23 PM, Kirill A. Shutemov wrote: On Wed, Sep 08, 2021 at 05:58:36PM -0500, Tom Lendacky wrote: diff --git a/arch/x86/mm/mem_encrypt_identity.c b/arch/x86/mm/mem_encrypt_identity.c index 470b20208430..eff4d19f9cb4 100644 --- a/arch/x86/mm/mem_encrypt_identity.c +++

RE: [PATCH 2/2] Add drm buddy manager support to amdgpu driver

2021-09-21 Thread Paneer Selvam, Arunpravin
[AMD Public Use] Hi Christian, Please find my comments. Thanks, Arun -Original Message- From: Koenig, Christian Sent: Tuesday, September 21, 2021 2:34 PM To: Paneer Selvam, Arunpravin ; dri-de...@lists.freedesktop.org; intel-...@lists.freedesktop.org; amd-gfx@lists.freedesktop.org;

Re: [PATCH] Enable '-Werror' by default for all kernel builds

2021-09-21 Thread Arnd Bergmann
On Wed, Sep 8, 2021 at 10:55 PM Nathan Chancellor wrote: > On Tue, Sep 07, 2021 at 11:11:17AM +0200, Arnd Bergmann wrote: > > On Tue, Sep 7, 2021 at 4:32 AM Nathan Chancellor wrote: function 'rtw_aes_decrypt' [-Werror,-Wframe-larger-than] > > > arm32-fedora.log: > > >

Re: [PATCH] drm/amdgpu: move amdgpu_virt_release_full_gpu to fini_early stage

2021-09-21 Thread Andrey Grodzovsky
Reviewed-by: Andrey Grodzovsky Andrey On 2021-09-21 9:11 a.m., Chen, Guchun wrote: [Public] Ping... Regards, Guchun -Original Message- From: Chen, Guchun Sent: Saturday, September 18, 2021 2:09 PM To: amd-gfx@lists.freedesktop.org; Koenig, Christian ; Pan, Xinhui ; Deucher,

Re: [PATCH] drm/amdkfd: fix svm_migrate_fini warning

2021-09-21 Thread Andrey Grodzovsky
In any case, once you converge on solution please include the relevant ticket in the commit description  - https://gitlab.freedesktop.org/drm/amd/-/issues/1718 Andrey On 2021-09-20 10:20 p.m., Felix Kuehling wrote: Am 2021-09-20 um 5:55 p.m. schrieb Philip Yang: Don't use

Re: [RFC PATCH v3 1/6] drm/doc: Color Management and HDR10 RFC

2021-09-21 Thread Pekka Paalanen
On Mon, 20 Sep 2021 20:14:50 -0400 Harry Wentland wrote: > On 2021-09-15 10:01, Pekka Paalanen wrote:> On Fri, 30 Jul 2021 16:41:29 -0400 > > Harry Wentland wrote: > > > >> Use the new DRM RFC doc section to capture the RFC previously only > >> described in the cover letter at > >>

RE: [PATCH] drm/amdgpu: move amdgpu_virt_release_full_gpu to fini_early stage

2021-09-21 Thread Chen, Guchun
[Public] Ping... Regards, Guchun -Original Message- From: Chen, Guchun Sent: Saturday, September 18, 2021 2:09 PM To: amd-gfx@lists.freedesktop.org; Koenig, Christian ; Pan, Xinhui ; Deucher, Alexander ; Grodzovsky, Andrey ; Liu, Monk Cc: Chen, Guchun ; Shi, Leslie Subject:

Re: [PATCH 2/2] Add drm buddy manager support to amdgpu driver

2021-09-21 Thread Christian König
Am 20.09.21 um 21:21 schrieb Arunpravin: Replace drm_mm with drm buddy manager for VRAM memory management Signed-off-by: Arunpravin --- .../gpu/drm/amd/amdgpu/amdgpu_res_cursor.h| 78 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 3 +-

Re: [PATCH v2 09/12] lib: test_hmm add module param for zone device type

2021-09-21 Thread Alistair Popple
On Tuesday, 21 September 2021 6:05:30 AM AEST Sierra Guiza, Alejandro (Alex) wrote: > > On 9/20/2021 3:53 AM, Alistair Popple wrote: > > On Tuesday, 14 September 2021 2:16:01 AM AEST Alex Sierra wrote: > >> In order to configure device public in test_hmm, two module parameters > >> should be