RE: [PATCH V2] drm/amdgpu: Fix module unload hang by KIQ IRQ set

2017-02-19 Thread Yu, Xiangliang
Reviewed-by: Xiangliang Yu < xiangliang...@amd.com> Thanks! Xiangliang Yu > -Original Message- > From: Trigger Huang [mailto:trigger.hu...@amd.com] > Sent: Monday, February 20, 2017 11:03 AM > To: amd-gfx@lists.freedesktop.org > Cc: Liu, Monk ; Yu, Xiangliang >

[PATCH 0/2] [libdrm] export gfx double offchip LDS buffers

2017-02-19 Thread Junwei Zhang
Junwei Zhang (2): amdgpu: export gfx double offchip LDS buffers by gpu info amdgpu/tests: show gfx config double offchip LDS buffers in gpu info amdgpu/amdgpu.h| 2 ++ amdgpu/amdgpu_gpu_info.c | 2 ++ include/drm/amdgpu_drm.h | 2 ++ tests/amdgpu/basic_tests.c | 2 ++ 4

[PATCH V2] drm/amdgpu: Fix module unload hang by KIQ IRQ set

2017-02-19 Thread Trigger Huang
In some cases, manually insmod/rmmod amdgpu is necessary. When unloading amdgpu, the KIQ IRQ enable/disable function will case system hang. The root cause is, in the sequence of function amdgpu_fini, the sw_fini of IP block AMD_IP_BLOCK_TYPE_GFX will be invoked earlier than that of

[PATCH 2/2] amdgpu/tests: show gfx config double offchip LDS buffers in gpu info

2017-02-19 Thread Junwei Zhang
Signed-off-by: Junwei Zhang --- tests/amdgpu/basic_tests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index b5fd700..d930ad8 100644 --- a/tests/amdgpu/basic_tests.c +++ b/tests/amdgpu/basic_tests.c @@ -361,6

[PATCH 1/2] amdgpu: export gfx double offchip LDS buffers by gpu info

2017-02-19 Thread Junwei Zhang
Signed-off-by: Junwei Zhang --- amdgpu/amdgpu.h | 2 ++ amdgpu/amdgpu_gpu_info.c | 2 ++ include/drm/amdgpu_drm.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h index 84ab688..7a26298 100644 --- a/amdgpu/amdgpu.h +++

[PATCH v3 1/1] drm/amdgpu: export gfx config double offchip LDS buffers (v3)

2017-02-19 Thread Junwei Zhang
v2: move the config struct to drm_amdgpu_info_device v3: move the config feature to amdgpu_gca_config Signed-off-by: Junwei Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c |

RE: [PATCH v2 1/1] drm/amdgpu: export gfx config by gpu info (v2)

2017-02-19 Thread Zhang, Jerry
Hi Christian, Good point. I will update the patch. Regards, Jerry (Junwei Zhang) Linux Base Graphics SRDC Software Development _ > -Original Message- > From: Christian König [mailto:deathsim...@vodafone.de] > Sent: Friday, February 17, 2017 18:13 >

Re: [PATCH] drm/ttm: fix use-after-free races in vm fault handling

2017-02-19 Thread Christian König
Am 18.02.2017 um 23:50 schrieb Nicolai Hähnle: From: Nicolai Hähnle The vm fault handler relies on the fact that the VMA owns a reference to the BO. However, once mmap_sem is released, other tasks are free to destroy the VMA, which can lead to the BO being freed. Fix