RE: [PATCH v4] drm/amdgpu: fix scheduler timeout calc

2019-07-04 Thread Xu, Feifei
Reviewed-by: feifei...@amd.com -Original Message- From: amd-gfx On Behalf Of Cui, Flora Sent: Monday, July 1, 2019 11:37 AM To: amd-gfx@lists.freedesktop.org Cc: Cui, Flora Subject: [PATCH v4] drm/amdgpu: fix scheduler timeout calc scheduler timeout is in jiffies v2: move timeout check

RE: [PATCH v4] drm/amdgpu: fix scheduler timeout calc

2019-07-04 Thread Cui, Flora
Ping... Could anyone give me a rb? -Original Message- From: Cui, Flora Sent: Thursday, July 4, 2019 11:09 AM To: amd-gfx@lists.freedesktop.org Subject: RE: [PATCH v4] drm/amdgpu: fix scheduler timeout calc Ping... -Original Message- From: Cui, Flora Sent: Monday, July 1, 2019

Re: [PATCH] drm/amdgpu: add mode1 (psp) reset for navi asic

2019-07-04 Thread Wang, Kevin(Yang)
okay, thanks. Best Regards, Kevin From: Zhang, Hawking Sent: Friday, July 5, 2019 1:02:08 PM To: Wang, Kevin(Yang); amd-gfx@lists.freedesktop.org Cc: Xiao, Jack; kenenth.f...@amd.com Subject: RE: [PATCH] drm/amdgpu: add mode1 (psp) reset for navi asic

RE: [PATCH] drm/amdgpu: add mode1 (psp) reset for navi asic

2019-07-04 Thread Zhang, Hawking
if (smu_baco_is_support(smu)) { ret = smu_baco_reset(smu); + } else { + ret = nv_asic_mode1_reset(adev); } We don’t need {} for single statements. With that fixed, the patch is Reviewed-by: Hawking Zhang Regards, Hawking -Original

[PATCH] drm/amdgpu: add mode1 (psp) reset for navi asic

2019-07-04 Thread Wang, Kevin(Yang)
add mode1 (by psp) reset for navi asic. Change-Id: Id2e7cb11eb7026296d1488c7c39f895b100f206c Signed-off-by: Kevin Wang --- drivers/gpu/drm/amd/amdgpu/nv.c | 35 + 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c

Re: [PATCH] drm/amd/powerplay/smu7_hwmgr: replace blocking delay with non-blocking

2019-07-04 Thread Yrjan Skrimstad
On Sun, Jun 16, 2019 at 04:43:10PM +0200, Yrjan Skrimstad wrote: > That is an interesting observation to me. I am actually running > lm-sensors, although only every 15 seconds. I suppose that this might > be the reason this happens to me. Though I don't think this should reasonably cause problems

Re: [PATCH 03/10] drm/sysfs: Add mstpath attribute to connector devices

2019-07-04 Thread Ville Syrjälä
On Thu, Jul 04, 2019 at 03:05:12PM -0400, sunpeng...@amd.com wrote: > From: Leo Li > > This can be used to create more descriptive symlinks for MST aux > devices. Consider the following udev rule: > > SUBSYSTEM=="drm_dp_aux_dev", SUBSYSTEMS=="drm", ATTRS{mstpath}=="?*", >

[PATCH 08/10] drm/nouveau/kms/nv50: Implement MST Aux device registration

2019-07-04 Thread sunpeng.li
From: Leo Li Implement late_register and early_unregister hooks for MST connectors. Call drm helpers for MST connector registration, which registers the AUX devices. Cc: Ben Skeggs Signed-off-by: Leo Li --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 20 1 file changed, 20

[PATCH 06/10] drm/amd/display: Use connector kdev as aux device parent

2019-07-04 Thread sunpeng.li
From: Leo Li Set the connector's kernel device as the parent for the aux kernel device. This allows udev rules to access connector attributes when creating symlinks to aux devices. For example, the following udev rule: SUBSYSTEM=="drm_dp_aux_dev", SUBSYSTEMS=="drm", ATTRS{edid}=="*",

[PATCH 00/10] Enable MST Aux devices (v2)

2019-07-04 Thread sunpeng.li
From: Leo Li Hi all, Here's the second revision of patches to enable mst aux devices. v2 fixes an aux device unregistration issue during driver unload. See patch 2/10 for details. Consequently, drivers supporting mst are modified to use the new mst connector late register and early unregister

[PATCH 05/10] drm/bridge/analogix-anx78xx: Use connector kdev as aux device parent

2019-07-04 Thread sunpeng.li
From: Leo Li Set the connector's kernel device as the parent for the aux kernel device. This allows udev rules to access connector attributes when creating symlinks to aux devices. To do so, the connector needs to be registered beforehand. Therefore, shift aux registration to be after connector

[PATCH 09/10] drm/radeon: Implement MST Aux device registration

2019-07-04 Thread sunpeng.li
From: Leo Li Implement late_register and early_unregister hooks for MST connectors. Call drm helpers for MST connector registration, which registers the AUX devices. Cc: Alex Deucher Signed-off-by: Leo Li --- drivers/gpu/drm/radeon/radeon_dp_mst.c | 22 ++ 1 file changed,

[PATCH 07/10] drm/i915: Implement MST Aux device registration

2019-07-04 Thread sunpeng.li
From: Leo Li Implement late_register and early_unregister hooks for MST connectors. Call drm helpers for MST connector registration, which registers the AUX devices. Signed-off-by: Leo Li --- drivers/gpu/drm/i915/display/intel_dp_mst.c | 29 +++-- 1 file changed, 27

[PATCH 02/10] drm/dp_mst: Enable registration of AUX devices for MST ports (v2)

2019-07-04 Thread sunpeng.li
From: Ville Syrjälä All available downstream ports - physical and logical - are exposed for each MST device. They are listed in /dev/, following the same naming scheme as SST devices by appending an incremental ID. Although all downstream ports are exposed, only some will work as expected.

[PATCH 01/10] drm/dp: Use non-cyclic idr

2019-07-04 Thread sunpeng.li
From: Leo Li In preparation for adding aux devices for DP MST, make the IDR non-cyclic. That way, hotplug cycling MST devices won't needlessly increment the minor version index. Signed-off-by: Leo Li Reviewed-by: Lyude Paul Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/drm_dp_aux_dev.c | 3

[PATCH 04/10] drm/nouveau: Use connector kdev as aux device parent

2019-07-04 Thread sunpeng.li
From: Leo Li Set the connector's kernel device as the parent for the aux kernel device. This allows udev rules to access connector attributes when creating symlinks to aux devices. Cc: Ben Skeggs Signed-off-by: Leo Li --- drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- 1 file changed, 1

[PATCH 03/10] drm/sysfs: Add mstpath attribute to connector devices

2019-07-04 Thread sunpeng.li
From: Leo Li This can be used to create more descriptive symlinks for MST aux devices. Consider the following udev rule: SUBSYSTEM=="drm_dp_aux_dev", SUBSYSTEMS=="drm", ATTRS{mstpath}=="?*", SYMLINK+="drm_dp_aux/by-path/$attr{mstpath}" The following symlinks will be created (depending

[PATCH 10/10] drm/amd/display: Implement MST Aux device registration

2019-07-04 Thread sunpeng.li
From: Leo Li Implement late_register and early_unregister hooks for MST connectors. Call drm helpers for MST connector registration, which registers the AUX devices. Cc: Jerry Zuo Cc: Nicholas Kazlauskas Signed-off-by: Leo Li --- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 24

Re: [PATCH 1/1] drm/amdkfd: Consistently apply noretry setting

2019-07-04 Thread Kuehling, Felix
On 2019-07-04 1:16 p.m., Yang, Philip wrote: > On 2019-07-04 12:02 p.m., Kuehling, Felix wrote: >> On 2019-07-03 6:19 p.m., Yang, Philip wrote: >>> amdgpu_noretry default value is 0, this will generate VM fault storm >>> because the vm fault is not recovered. It may slow down the machine and >>>

Re: [PATCH 1/1] drm/amdkfd: Consistently apply noretry setting

2019-07-04 Thread Yang, Philip
On 2019-07-04 12:02 p.m., Kuehling, Felix wrote: > On 2019-07-03 6:19 p.m., Yang, Philip wrote: >> amdgpu_noretry default value is 0, this will generate VM fault storm >> because the vm fault is not recovered. It may slow down the machine and >> need reboot after application VM fault. Maybe

Re: [PATCH][next] drm/amdgpu/psp: fix incorrect logic when checking asic_type

2019-07-04 Thread Colin Ian King
On 04/07/2019 17:22, walter harms wrote: > > > Am 04.07.2019 16:23, schrieb Colin King: >> From: Colin Ian King >> >> Currently the check of the asic_type is always returning true because >> of the use of ||. Fix this by using && instead. Also break overly >> wide line. >> >>

Re: [PATCH][next] drm/amdgpu/psp: fix incorrect logic when checking asic_type

2019-07-04 Thread walter harms
Am 04.07.2019 16:23, schrieb Colin King: > From: Colin Ian King > > Currently the check of the asic_type is always returning true because > of the use of ||. Fix this by using && instead. Also break overly > wide line. > > Addresses-Coverity: ("Constant expression result") > Fixes:

[PATCH 05/17] drm/amdgpu: set jpeg enc ring functions

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Set all jpeg encode ring function pointers. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 38 +++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

[PATCH 17/17] drm/amdgpu: handle jpeg enc dpg

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add jpeg encode related dpg handling. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

[PATCH 01/17] drm/amdgpu: define vcn jpeg encode ring

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add AMDGPU_RING_TYPE_VCN_JPEG_ENC ring define Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h

[PATCH 10/17] drm/amdgpu: add jpeg enc scratch0 for ring test

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add and set internal and external offsets of jpeg_enc_scratch0 for ring test Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 3 +++ 2 files changed, 4 insertions(+) diff

[PATCH 12/17] drm/amdgpu: add vcn jpeg enc ib test

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add an IB test for jpeg encode. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 76 + drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 2 +- 3 files

[PATCH 11/17] drm/amdgpu: add vcn jpeg enc ring test

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add a ring test for jpeg encode. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 29 + drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 2 ++ drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 2 +- 3 files

[PATCH 13/17] drm/amdgpu: enable vcn jpeg enc ib test

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Enable the jpeg encode IB test. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c

[PATCH 08/17] drm/amdgpu: add function to start jpeg enc block

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Start jpeg encode block, set system interrupt, and initialize registers. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 33 +++ 1 file changed, 33 insertions(+) diff --git

[PATCH 07/17] drm/amdgpu: add jpeg enc sw and hw init

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add software and hardware init for jpeg encode ring. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

[PATCH 02/17] drm/amdgpu: add vcn jpeg encode ring

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add jpeg enc ring. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index

[PATCH 03/17] drm/amdgpu: add jpeg enc register offsets

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add jpeg encode registers offsets. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

[PATCH 15/17] drm/amdgpu: add AMDGPU_HW_IP_VCN_JPEG_ENC to info query

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add AMDGPU_HW_IP_VCN_JPEG_ENC type to info query Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

[PATCH 16/17] drm/amdgpu: add AMDGPU_HW_IP_VCN_JPEG_ENC to ctx

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add AMDGPU_HW_IP_VCN_JPEG_ENC type to ctx Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c

[PATCH 04/17] drm/amdgpu: implement jpeg enc ring functions

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Implement all ring functions needed for jpeg encode ring. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 267 ++ 1 file changed, 267 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

[PATCH 14/17] drm/amdgpu: add AMDGPU_HW_IP_VCN_JPEG_ENC for jpeg enc

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add AMDGPU_HW_IP_VCN_JPEG_ENC type for jpeg encode CS in drm header Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- include/uapi/drm/amdgpu_drm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/drm/amdgpu_drm.h

[PATCH 06/17] drm/amdgpu: add vcn jpeg enc irq support

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add irq support for jpeg encode ring. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

[PATCH 09/17] drm/amdgpu: add jpeg enc sw and hw finish

2019-07-04 Thread boyuan.zhang
From: Boyuan Zhang Add software and hardware fini for jpeg encode ring. Signed-off-by: Boyuan Zhang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 ++ drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 3 +++ 2 files changed, 5 insertions(+) diff --git

Re: [PATCH 1/1] drm/amdkfd: Consistently apply noretry setting

2019-07-04 Thread Kuehling, Felix
On 2019-07-03 6:19 p.m., Yang, Philip wrote: > amdgpu_noretry default value is 0, this will generate VM fault storm > because the vm fault is not recovered. It may slow down the machine and > need reboot after application VM fault. Maybe change default value to 1? This is the same as the current

[PATCH][next] drm/amdgpu/psp: fix incorrect logic when checking asic_type

2019-07-04 Thread Colin King
From: Colin Ian King Currently the check of the asic_type is always returning true because of the use of ||. Fix this by using && instead. Also break overly wide line. Addresses-Coverity: ("Constant expression result") Fixes: dab70ff24db6 ("drm/amdgpu/psp: add psp support for navi14")

Re: [PATCH] drm/amdgpu: Disable ras features on all IPs before gpu reset

2019-07-04 Thread Grodzovsky, Andrey
Acked-by: Andrey Grodzovsky Andrey On 7/3/19 11:09 PM, Pan, Xinhui wrote: > Perform a ras_suspend to disable ras on all IPs to workaround > some ROCm stability issue. > > Signed-off-by: xinhui pan > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 > 1 file changed, 4 insertions(+)

Re: [PATCH 1/1] drm/amdkfd: Consistently apply noretry setting

2019-07-04 Thread Koenig, Christian
Patches to silent retry faults are already on the mailing list. But I need to get back from vacation to take a closer look at this once more. Christian. Am 04.07.2019 00:19 schrieb "Yang, Philip" : amdgpu_noretry default value is 0, this will generate VM fault storm because the vm fault is not