[PATCH] drm/amdkfd: init drm_client with funcs hook

2024-01-12 Thread Flora Cui
otherwise drm_client_dev_unregister() would try to kfree(&adev->kfd.client). Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd

[PATCH v2] drm/amdgpu: fix null ptr access

2022-01-13 Thread Flora Cui
check null ptr first before access its element v2: check adev->pm.dpm_enabled early in amdgpu_debugfs_pm_init() Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 2 +- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --gi

[PATCH] drm/amdgpu: fix null ptr access

2022-01-12 Thread Flora Cui
check null ptr first before access its element Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 2 +- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c b/drivers/gpu/drm

[PATCH] drm/amdgpu: fix drm_plane alloc in amdgpu_vkms

2021-12-06 Thread Flora Cui
otherwise the drm_plane is not released Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c index

[PATCH 1/2] drm/amdgpu: drop the critial WARN_ON in amdgpu_vkms

2021-12-06 Thread Flora Cui
Signed-off-by: Flora Cui Reviewed-by: Leslie Shi --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c index 6c62c45e3e3e..acc2d31ea93f 100644 --- a

[PATCH 2/2] drm/amdgpu: free vkms_output after use

2021-12-06 Thread Flora Cui
Signed-off-by: Flora Cui Reviewed-by: Leslie Shi --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c index acc2d31ea93f

[PATCH 2/3] drm/amdgpu: fix vkms crtc settings

2021-11-23 Thread Flora Cui
otherwise adev->mode_info.crtcs[] is NULL Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 42 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.h | 5 ++- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/amd/amd

[PATCH 3/3] drm/amdgpu: check atomic flag to differeniate with legacy path

2021-11-23 Thread Flora Cui
since vkms support atomic KMS interface Signed-off-by: Flora Cui Reviewed-by: Guchun Chen Acked-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm

[PATCH 1/3] drm/amdgpu: cancel the correct hrtimer on exit

2021-11-23 Thread Flora Cui
Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c index ce982afeff91..ac9a8cd21c4b 100644 --- a/drivers/gpu/drm/amd

[PATCH 2/2] drm/amdgpu: check atomic flag to differeniate with legacy path

2021-11-22 Thread Flora Cui
since vkms support atomic KMS interface Signed-off-by: Flora Cui Reviewed-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 1/2] drm/amdgpu: fix vkms hrtimer settings

2021-11-22 Thread Flora Cui
otherwise adev->mode_info.crtcs[] is NULL Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 38 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.h | 5 ++-- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/amd

[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

[PATCH 1/2] drm/amdgpu: disable DCN and VCN for Navi14 0x7340/C9 SKU

2020-10-27 Thread Flora Cui
Navi14 0x7340/C9 SKU has no display and video support, remove them. Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/nv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index b7fc9ebdf1c1

[PATCH 2/2] drm/amdgpu: rename nv_is_headless_sku()

2020-10-27 Thread Flora Cui
for headless NAVI ASICs Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/nv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 23446aceea1d..c65b4462bf5e 100644 --- a/drivers/gpu/drm/amd

[PATCH] drm/amd/display: fix return value check for hdcp_work

2020-09-22 Thread Flora Cui
max_caps might be 0, thus hdcp_work might be ZERO_SIZE_PTR Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c b/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: drop BOOLEAN define in display part

2020-09-13 Thread Flora Cui
use bool directly Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 +- drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm

Re: [PATCH 1/3] drm/amdgpu: added AMD GPU instance counting

2018-09-27 Thread Flora Cui
On 2018年09月28日 10:03, Evan Quan wrote: Count all GPU instances from AMD(including iGPUs and dGPUs) in the system. Change-Id: If62a0873c64857a3fcdf9785557e24cb3456c12e Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 18 + drivers/gpu

Re: [PATCH] drm/amdgpu: remove duplicated codes

2018-06-27 Thread Flora Cui
the fence_context and seqno is init in amdgpu_vm_manager_init() & amdgpu_vmid_mgr_init(). remove the amdgpu_vmid_mgr_init() copy. Change-Id: Ic0dbd693bac093e54eb95b5e547c89b64a5743b8 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 5 - 1 file changed, 5 delet

[PATCH] drm/amdgpu: remove duplicated codes

2018-06-26 Thread Flora Cui
Change-Id: Ic0dbd693bac093e54eb95b5e547c89b64a5743b8 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c index a1c78f9..3a072a7 100644 --- a

[PATCH] drm/amdgpu: init gfx9 aperture settings

2018-04-18 Thread Flora Cui
Change-Id: Ie5683816e21d1dbf9b4f84f05ecbe056a321f06c Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 - drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu

Re: [PATCH 2/4] drm/amd/powerplay: refine powerplay code for CZ/ST

2017-09-05 Thread Flora Cui
On Tue, Sep 05, 2017 at 09:29:26AM +0800, Rex Zhu wrote: > 1. add function points instand of creat function tables > 2. implement stop dpm tasks for CZ/ST better to split to 2 patches. > > Change-Id: Ibe6fc92b989ba125da34857ce8b056e8b699b41b > Signed-off-by: Rex Zhu > --- > .../drm/amd/powerpla

Re: [PATCH] drm/amdgpu: declare the new firmware files needed by polaris asics

2017-09-01 Thread Flora Cui
patch is Reviewed-by: Flora Cui On Fri, Sep 01, 2017 at 03:18:33PM +0800, Evan Quan wrote: > Change-Id: If0f280979d85c118dc05ebfa37207b8544abfa45 > Signed-off-by: Evan Quan > --- > drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 15 +++ > 1 file changed, 15 insertions(+) &g

[PATCH libdrm] test/amdgpu: fix test failure for SI

2017-07-18 Thread Flora Cui
Change-Id: I646f1bf844bd92962b9f71aa287f90173ae233c6 Signed-off-by: Flora Cui --- tests/amdgpu/basic_tests.c | 273 ++--- tests/amdgpu/cs_tests.c| 41 +++ tests/amdgpu/vce_tests.c | 41 +++ 3 files changed, 229 insertions(+), 126 deletions

[PATCH libdrm] amdgpu: update the exported always on CU bitmap

2017-06-25 Thread Flora Cui
keep cu_ao_mask unchanged for backward compatibility. Change-Id: I9f497aadd309977468e246fea333b392c0150276 Signed-off-by: Flora Cui --- This patch should be landed after the kmd patch upsteam. right? amdgpu/amdgpu.h | 2 ++ amdgpu/amdgpu_gpu_info.c | 1 + include/drm/amdgpu_drm.h | 3

[PATCH v2] drm/amdgpu: export gpu always on cu bitmap

2017-06-21 Thread Flora Cui
v2: keep cu_ao_mask for backward compatibility. Change-Id: I056d8af23340d46e5140bd10cc38dfb887cc78ab Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 7 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 +++- drivers/gpu

Re: [PATCH] drm/amdgpu: export gpu always on cu bitmap

2017-06-21 Thread Flora Cui
On Tue, Jun 20, 2017 at 10:47:39AM -0400, Alex Deucher wrote: > On Tue, Jun 20, 2017 at 4:15 AM, Flora Cui wrote: > > Change-Id: I056d8af23340d46e5140bd10cc38dfb887cc78ab > > Signed-off-by: Flora Cui > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 7 +-- >

Re: [PATCH libdrm] amdgpu: update always on cu bitmap

2017-06-20 Thread Flora Cui
__u32 enabled_rb_pipes_mask; > That is a non-backward compatible change to the kernel interface and as such > forbidden. > > Regards, > Christian. > > Am 20.06.2017 um 11:04 schrieb Flora Cui: > >Change-Id: Ie2a812716a6802f7a5a0bc09b1a8db824c5bf2ed > >Signed-off

[PATCH libdrm] amdgpu: update always on cu bitmap

2017-06-20 Thread Flora Cui
Change-Id: Ie2a812716a6802f7a5a0bc09b1a8db824c5bf2ed Signed-off-by: Flora Cui --- amdgpu/amdgpu.h | 2 +- amdgpu/amdgpu_gpu_info.c | 2 +- include/drm/amdgpu_drm.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h index b6779f9

[PATCH] drm/amdgpu: export gpu always on cu bitmap

2017-06-20 Thread Flora Cui
Change-Id: I056d8af23340d46e5140bd10cc38dfb887cc78ab Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 7 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 ++- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 4 +++- drivers/gpu

Re: [PATCH] drm/amdgpu: fix ocl test performance drop

2017-05-22 Thread Flora Cui
partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in amdgpu_vm_flush Change-Id: Iadce9d613dfe9a739643a74050cea55854832adb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/d

[PATCH] drm/amdgpu: fix ocl test performance drop

2017-05-22 Thread Flora Cui
partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in amdgpu_vm_flush Change-Id: Iadce9d613dfe9a739643a74050cea55854832adb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/d

Re: [PATCH] drm/amdgpu: fix ocl test performance drop

2017-05-22 Thread Flora Cui
g gfx9 doesn't have compute vm bug by default. Not sure it's in > >there. If no vm fault related to this bug, then we can think gfx9 has no > >compute vm bug, I believe firmware team does that based on previous > >generation, otherwise we need identify every gene

Re: [PATCH] drm/amdgpu: fix ocl test performance drop

2017-05-18 Thread Flora Cui
btw, what's about gfx9 for amdgpu_vm_ring_has_compute_vm_bug()? Is the workaround still needed? On Fri, May 19, 2017 at 10:25:19AM +0800, Flora Cui wrote: > On Thu, May 18, 2017 at 01:38:15PM +0200, Christian König wrote: > > Am 18.05.2017 um 09:45 schrieb Flora Cui: > > &g

Re: [PATCH] drm/amdgpu: fix ocl test performance drop

2017-05-18 Thread Flora Cui
On Thu, May 18, 2017 at 01:38:15PM +0200, Christian König wrote: > Am 18.05.2017 um 09:45 schrieb Flora Cui: > >partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in > >amdgpu_vm_flush > > > >Change-Id: Iadce9d613dfe9a739643a74050cea55854832adb > >

[PATCH] drm/amdgpu: fix ocl test performance drop

2017-05-18 Thread Flora Cui
partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in amdgpu_vm_flush Change-Id: Iadce9d613dfe9a739643a74050cea55854832adb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drive

Re: [bug report] drm/amdgpu/gfx6: clean up cu configuration

2017-04-01 Thread Flora Cui
Hi Dan Carpenter, Thank you for the info. This commit is just a clean up to keep align with gfx7/8. On Fri, Mar 31, 2017 at 06:13:25PM +0300, Dan Carpenter wrote: > Hello Flora Cui, > > The patch 375d6f7057a9: "drm/amdgpu/gfx6: clean up cu configuration" > from Feb

[PATCH 1/7] drm/amdgpu/gfx6: clean up rb configuration

2017-02-07 Thread Flora Cui
Change-Id: Iab06288ba350c44caa06fb11c2e4ee9c90cd05a6 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 101 ++ 1 file changed, 42 insertions(+), 59 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 2/7] drm/amdgpu/gfx6: clean up cu configuration

2017-02-07 Thread Flora Cui
Change-Id: Ieb6f58ab238a2dcf59cc369c0ba4975d4a244c8d Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 100 +- 1 file changed, 38 insertions(+), 62 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 7/7] drm/amd/gfx6: update gb_addr_config

2017-02-07 Thread Flora Cui
Change-Id: I3b866a719e99af2eed461fd618348ba6a28e1f81 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 765c5e3..782190d 100644 --- a

[PATCH 4/7] drm/amdgpu: refine si_read_register

2017-02-07 Thread Flora Cui
Change-Id: Id317bc2a7c5ddcde777b2a7458da26dbb5f0e4b9 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 90 + 1 file changed, 73 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c

[PATCH 3/7] drm/amdgpu/gfx6: clean up spi configuration

2017-02-07 Thread Flora Cui
Change-Id: I0cb6344cd69fb5e27222122203e535c55cf459dd Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index fc24108

[PATCH 6/7] drm/amdgpu: update HAINAN_GB_ADDR_CONFIG_GOLDEN

2017-02-07 Thread Flora Cui
Change-Id: I7198e0e2d91c37b80e7056ae57eb701a37775587 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_enums.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_enums.h b/drivers/gpu/drm/amd/amdgpu/si_enums.h index 331033f..dc9e0e6 100644

[PATCH 5/7] drm/amdgpu: update VERDE_GB_ADDR_CONFIG_GOLDEN

2017-02-07 Thread Flora Cui
Change-Id: I19755cf40519a64ce48cf6ecddbec21bda84e827 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_enums.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_enums.h b/drivers/gpu/drm/amd/amdgpu/si_enums.h index fde2086..331033f 100644

[PATCH] drm/amdgpu: fix vm_fault_stop on gfx6

2017-01-10 Thread Flora Cui
Change-Id: I9fcdb4bc69e5f5c80eadb1e5fd31570802b0ce70 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c

[PATCH 1/2] drm/amdgpu: update tile table for verde

2016-12-15 Thread Flora Cui
Change-Id: I4e3c698a04e5f7ee05c0268eec12df519f2305d4 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 295 +- 1 file changed, 293 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 2/2] drm/amdgpu: update tile table for oland/hainan

2016-12-15 Thread Flora Cui
Change-Id: Ib8b66559d662cbe8a9f40f7405a4a052c189f604 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 330 -- 1 file changed, 191 insertions(+), 139 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 7/9] drm/amdgpu: update rev id for oland

2016-12-14 Thread Flora Cui
Change-Id: Ic59492ca6820ad6140b3c1c65622c76dadc5f6ae Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 8e2377b..d353af3 100644 --- a/drivers/gpu/drm/amd/amdgpu

[PATCH 6/9] drm/amdgpu: update golden setting for oland

2016-12-14 Thread Flora Cui
Change-Id: Ie67a7a7b7490cbda99f1f7132f342b0fa23d3a23 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 232ee89

[PATCH 5/9] drm/amdgpu: update rev id for hainan

2016-12-14 Thread Flora Cui
Change-Id: I5cb930369b4683f8211040190fbf98af78ff8ffc Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 49e0fee..232ee89 100644 --- a/drivers/gpu/drm/amd/amdgpu

[PATCH 9/9] drm/amdgpu: update rev id for verde

2016-12-14 Thread Flora Cui
Change-Id: I9f2a140d635e9758f21a392ae2e976416de9453b Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 2a99a41..c46b015 100644 --- a/drivers/gpu

[PATCH 8/9] drm/amdgpu: update golden setting for verde

2016-12-14 Thread Flora Cui
Change-Id: I185932964b624f63309323c624ca051a6601875e Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 304 +++- 1 file changed, 142 insertions(+), 162 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c

[PATCH 4/9] drm/amdgpu: update golden setting for hainan

2016-12-14 Thread Flora Cui
Change-Id: I89c8fce38aa90b56b2e282839d13e5844a73bb98 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index

[PATCH 3/9] drm/amdgpu: update rev id for pitcairn

2016-12-14 Thread Flora Cui
Change-Id: I7714f3754b4515c448ee21dc0b0a7bb2324a50cb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 19b511e..cf8a0a1 100644 --- a/drivers/gpu/drm/amd/amdgpu

[PATCH 1/9] drm/amdgpu: update si kicker smc firmware

2016-12-14 Thread Flora Cui
Change-Id: I6cd5997844cfdf64a8a36147f03e70b3e5eb48fe Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 2/9] drm/amdgpu: update golden setting for pitcairn

2016-12-14 Thread Flora Cui
Change-Id: I337deeaec13aa9342353fe8617b534b1855663b1 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 2439875

[PATCH 2/2] drm/amdgpu: update pitcairn golden setting

2016-12-14 Thread Flora Cui
Change-Id: Ie52b73ac3618174b71a1dfb5e0f152705f72c616 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 2439875

[PATCH 1/2] drm/amdgpu: update si kicker smc firmware

2016-12-14 Thread Flora Cui
Change-Id: I6cd5997844cfdf64a8a36147f03e70b3e5eb48fe Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 1/2] drm/amdgpu: update si kicker smc firmware

2016-12-14 Thread Flora Cui
Change-Id: I6cd5997844cfdf64a8a36147f03e70b3e5eb48fe Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 1/2] drm/amdgpu: update golden setting/tiling table of tahiti

2016-12-14 Thread Flora Cui
Change-Id: I7007d77b1518cd4ddde4cfca3d649c3ef405dc55 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 344 +++--- drivers/gpu/drm/amd/amdgpu/si.c | 38 ++-- 2 files changed, 221 insertions(+), 161 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 2/2] drm/amdgpu: fix cursor setting of dce6/dce8

2016-12-13 Thread Flora Cui
Change-Id: Ic900051ece1bf7aaf01b3811dde4cbe426be8b42 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c b/drivers/gpu/drm

[PATCH] drm/amdgpu: fix gtt available page num accounting

2016-12-02 Thread Flora Cui
Change-Id: I54d38957fe52c83bcee676da05bc480fcf1bc916 Signed-off-by: Flora Cui Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu

Re: [PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Flora Cui
On Fri, Nov 04, 2016 at 09:52:16AM +0100, Christian König wrote: > Well clearly a NAK on this, why do you think this is just dummy code? > > Am 04.11.2016 um 08:32 schrieb Flora Cui: > >Change-Id: I3238a2520c9161b1c2f9cf176158bdeb9cb21cbb > >Signed-off-by: Flora Cui > &

[PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Flora Cui
Change-Id: I3238a2520c9161b1c2f9cf176158bdeb9cb21cbb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 15 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

Re: [PATCH] drm/amdgpu: fix addr handling in amdgpu_vm_bo_update_mapping

2016-09-26 Thread Flora Cui
please ignore this patch. it actually revert the gtt mgr changes. On Mon, Sep 26, 2016 at 03:19:01PM +0800, Flora Cui wrote: > On Sun, Sep 25, 2016 at 11:55:13AM +0200, Christian König wrote: > > From: Christian König > > > > Otherwise we will look at the wrong plac

Re: [PATCH] drm/amdgpu: fix addr handling in amdgpu_vm_bo_update_mapping

2016-09-26 Thread Flora Cui
r = amdgpu_sync_fence(adev, &job->sync, exclusive); > -- > 2.5.0 > > IMHO this could fix the vmfault issue. 8<--- From cc7b5618665defd88e2adcd6f735562ecd784298 Mon Sep 17 00:00:00 2001 From: Flora Cui Date: Mon, 26 Sep 2016 15:14:02 +0800 Subject: [PATCH] drm/amdgp

[PATCH] drm/amdgpu: fix amdgpu_vm_bo_update param error

2016-09-22 Thread Flora Cui
Change-Id: I86dc7d3fc4d6197bd13563a420718a8412ce9dbc Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 941416a..a7ea9a3

Re: [PATCH] drm/amdgpu: fix gtt_mgr bo's offset

2016-09-20 Thread Flora Cui
On Wed, Sep 21, 2016 at 09:54:04AM +0800, zhoucm1 wrote: > > > On 2016年09月20日 19:40, Christian König wrote: > >Am 20.09.2016 um 13:16 schrieb Flora Cui: > >>Does this change make sense? > > > >Yes, exactly. Patch is Reviewed-by: Christian König > >. &g

Re: [PATCH] drm/amdgpu: fix gtt_mgr bo's offset

2016-09-20 Thread Flora Cui
we need this fix for urgent promotion. so please please reply me asap. On Tue, Sep 20, 2016 at 01:02:20PM +0200, Christian König wrote: > Am 20.09.2016 um 12:41 schrieb Flora Cui: > >On Tue, Sep 20, 2016 at 06:19:33PM +0800, zhoucm1 wrote: > >> > >>On 2016年09

Re: [PATCH] drm/amdgpu: fix gtt_mgr bo's offset

2016-09-20 Thread Flora Cui
Does this change make sense? On Tue, Sep 20, 2016 at 01:02:20PM +0200, Christian König wrote: > Am 20.09.2016 um 12:41 schrieb Flora Cui: > >On Tue, Sep 20, 2016 at 06:19:33PM +0800, zhoucm1 wrote: > >> > >>On 2016年09月20日 17:09, Flor

Re: [PATCH] drm/amdgpu: fix gtt_mgr bo's offset

2016-09-20 Thread Flora Cui
On Tue, Sep 20, 2016 at 06:19:33PM +0800, zhoucm1 wrote: > > > On 2016年09月20日 17:09, Flora Cui wrote: > >Change-Id: I89e9be3d5c96d46655f3a977fb557b20b4d87609 > >Signed-off-by: Flora Cui > >--- > > drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 4 ++-- > &

[PATCH] drm/amdgpu: fix gtt_mgr bo's offset

2016-09-20 Thread Flora Cui
Change-Id: I89e9be3d5c96d46655f3a977fb557b20b4d87609 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c index

Re: [PATCH] drm/amdgpu: gtt offset should be 64 bit

2016-09-14 Thread Flora Cui
yes. i just find it out. it's commit 9040cf0a in 4.6 branch yet not in 4.7. please ignore this commit. On Wed, Sep 14, 2016 at 11:32:32AM +0200, Christian König wrote: > Am 14.09.2016 um 11:13 schrieb Flora Cui: > >Change-Id: I05618a472b1ebf381575d02e226264609bf4db7f > >Sign

[PATCH] drm/amdgpu: gtt offset should be 64 bit

2016-09-14 Thread Flora Cui
Change-Id: I05618a472b1ebf381575d02e226264609bf4db7f Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 10 -- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b

Re: [PATCH 2/2] drm/amdgpu: calc addr with domain's gpu_offset

2016-09-09 Thread Flora Cui
Most of the time they are both zero, except for APUs which would break with > this change. > > Regards, > Christian. > > Am 09.09.2016 um 08:30 schrieb Flora Cui: > >Change-Id: I8112e9d85866104559ecef7449f50fbb94167382 > >Signed-off-by: Flora Cui > >---

Re: [PATCH 1/2] drm/ttm: remove unused placement flags

2016-09-09 Thread Flora Cui
yes. please don't do this, I need them. On Fri, Sep 09, 2016 at 02:41:16PM +0800, zhoucm1 wrote: > > > On 2016年09月08日 21:41, Christian König wrote: > >From: Christian König > > > >Either never used or not used in quite a while. > No, I remember Flora's Direct GMA is using them like GDS use PRIV

[PATCH 1/2] drm/amdgpu: update gart_pin_size if bo is in GTT

2016-09-08 Thread Flora Cui
Change-Id: Ia2cb8a8f62d0933b7937991bec4eace560745f97 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index

[PATCH 2/2] drm/amdgpu: calc addr with domain's gpu_offset

2016-09-08 Thread Flora Cui
Change-Id: I8112e9d85866104559ecef7449f50fbb94167382 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index a549abd..3d7a3ab

Re: [PATCH 2/2] drm/amd/powerplay: fix issue power containment not enabled on Tonga.

2016-09-05 Thread Flora Cui
the series is Acked-by: Flora Cui On Mon, Sep 05, 2016 at 06:37:15PM +0800, Rex Zhu wrote: > Change-Id: I309d71fe5ca726f620a29425536d0824bd8f2e08 > Signed-off-by: Rex Zhu > --- > drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c | 3 --- > 1 file changed, 3 deletions(-) &g

Re: [PATCH 1/5] drm/amdgpu: add AMDGPU_GEM_CREATE_VRAM_LINEAR flag v2

2016-08-29 Thread Flora Cui
On Tue, Aug 30, 2016 at 09:57:56AM +0900, Michel Dänzer wrote: > On 29/08/16 10:47 PM, Deucher, Alexander wrote: > >> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > >> Of Christian König > >> Sent: Monday, August 29, 2016 5:20 AM > > > > I still think this should be renam

[PATCH v2] amdgpu: move ttm stuff to amdgpu_ttm.h

2016-08-18 Thread Flora Cui
Change-Id: I425a7a8a2126ace85f1ea8a9b91333911692c794 Signed-off-by: Flora Cui Reviewed-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 45 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 78

Re: [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h

2016-08-18 Thread Flora Cui
gpu_ttm.h, > cause those defines are more TTM related than GDS related. OK. I'll update patch to move them into amdgpu_ttm.h. AMDGPU_PL_... definitions in amdgpu_gds.h is really unfriendly to newly added ones. > > Regards, > Christiuan. > > Am 18.08.2016 um 04:58 schri

[PATCH 2/3] drm/amdgpu: update gart_pin_size only if the bo is pined to GTT

2016-08-18 Thread Flora Cui
Change-Id: I975a0a97d570bd14b8031c4033cb447a3b3d2b1a Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 0a0f3cb

[PATCH 1/3] drm/amdgpu: check domain sanity in amdgpu_bo_pin_restricted()

2016-08-17 Thread Flora Cui
abort if the bo is pined to other domain already Change-Id: I0e8eb3e0af0fad1edaf647050399e5a36226a5d9 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm

[PATCH 3/3] drm/amdgpu: use domain's gpu_offset for start addr

2016-08-17 Thread Flora Cui
Change-Id: I77610c286af4cf77bb508136fffc0c77c7cbc34b Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 8 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind

2016-08-17 Thread Flora Cui
Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c index 0feea34..03b9fd6 100644 --- a/drivers/gpu/drm/amd/amdgpu

[PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes

2016-08-17 Thread Flora Cui
1. add check for domain in amdgpu_bo_pin_restricted() 2. get domain gpu_offset for common use Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 13 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 8 ++-- 2 files changed, 9 insertions(+), 12 deletions

[PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h

2016-08-17 Thread Flora Cui
Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index a55eb6f

Re: [PATCH v2 2/2] drm/amdgpu: expose AMDGPU_GEM_CREATE_VRAM_CLEARED to user space

2016-07-31 Thread Flora Cui
I'll push if no objection On Fri, Jul 29, 2016 at 11:23:39AM +0800, Flora Cui wrote: > ping... > > On Mon, Jul 25, 2016 at 02:15:24PM +0800, Flora Cui wrote: > > V2: fix the return value for fill failure and validate bo before > > filli

Re: [PATCH v2 2/2] drm/amdgpu: expose AMDGPU_GEM_CREATE_VRAM_CLEARED to user space

2016-07-28 Thread Flora Cui
ping... On Mon, Jul 25, 2016 at 02:15:24PM +0800, Flora Cui wrote: > V2: fix the return value for fill failure and validate bo before > filling data > > Change-Id: I256178afa18c1a433fe60d8656d1c5cc5d55cf2f > Signed-off-by: Flora Cui > Reviewed-by: Chunming Zhou > --- &

[PATCH v2 2/2] drm/amdgpu: expose AMDGPU_GEM_CREATE_VRAM_CLEARED to user space

2016-07-24 Thread Flora Cui
V2: fix the return value for fill failure and validate bo before filling data Change-Id: I256178afa18c1a433fe60d8656d1c5cc5d55cf2f Signed-off-by: Flora Cui Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 33 ++ include/uapi/drm

[PATCH] amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag

2016-07-21 Thread Flora Cui
With this flag specified, VARM buffer will be cleared at allocation time. Change-Id: Ic587ed7e524a3bfc3862a57b42aa95ff458fe880 Signed-off-by: Flora Cui --- include/drm/amdgpu_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index

[PATCH 2/2] drm/amdgpu: expose AMDGPU_GEM_CREATE_VRAM_CLEARED to user space

2016-07-21 Thread Flora Cui
Change-Id: I256178afa18c1a433fe60d8656d1c5cc5d55cf2f Signed-off-by: Flora Cui Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 23 +++ include/uapi/drm/amdgpu_drm.h | 2 ++ 2 files changed, 25 insertions(+) diff --git a/drivers/gpu

[PATCH 1/2] drm/amdgpu: implement amdgpu_fill_buffer()

2016-07-21 Thread Flora Cui
so that bo could be set to some pattern Change-Id: Iee7b7b28801e4c696b5d217a5d2ffc224dbe0cba Signed-off-by: Flora Cui Reviewed-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 62