Re: [PATCH] drm/scheduler: don't update last scheduled fence in TDR

2018-05-06 Thread Ding, Pixel
, David Zhou On 2018年04月26日 11:47, Ding, Pixel wrote: > Hi Monk, > > Please review it. Thanks. > > — > Sincerely Yours, > Pixel > > > On 2018/4/25, 4:39 PM, "Pixel Ding" wrote: > >

Re: [PATCH] drm/scheduler: don't update last scheduled fence in TDR

2018-04-25 Thread Ding, Pixel
Hi Monk, Please review it. Thanks. — Sincerely Yours, Pixel On 2018/4/25, 4:39 PM, "Pixel Ding" wrote: The current sequence in scheduler thread is: 1. update last sched fence 2. job begin (adding to mirror list) 3. job finish (remove from mirror list) 4. back to 1

Re: [PATCH 2/4] drm/amdgpu: refactoring mailbox to fix TDR handshake bugs

2018-03-07 Thread Ding, Pixel
k CMPL if it’s necessary. any problem? I don't understand your point [Pixel]generally, CMPL is not handled by rcv_msg anymore but in peek_msg. we can remove the logics here. -Original Message- From: Ding, Pixel Sent: 2018年3月7日 16:3

Re: [PATCH 2/4] drm/amdgpu: refactoring mailbox to fix TDR handshake bugs

2018-03-07 Thread Ding, Pixel
Hi Monk, It’s a long patch which could split into 6 pieces at most… anyway I got some questions inline to have a better understanding. — Sincerely Yours, Pixel On 06/03/2018, 11:29 AM, "amd-gfx on behalf of Monk Liu" wrote: this patch actually refactor mailbox implmentations, and a

Re: [PATCH 1/2] drm/amdgpu: imlement mmio byte access helpers

2018-03-06 Thread Ding, Pixel
Actually, for mailbox registers once the byte field is touched even not changed, the mailbox behaves, so we need the byte width accessing to those sort of regs. Please correct the typo in commit title. With that change, Reviewed-by: Pixel Ding — Sincerely Yours, Pixel On 06/03/2018, 7:05 P

Re: [PATCH] drm/amdgpu: try again kiq access if not in IRQ(v2)

2018-03-01 Thread Ding, Pixel
Reviewed-by: Pixel Ding — Sincerely Yours, Pixel On 01/03/2018, 4:21 PM, "amd-gfx on behalf of Liu, Monk" wrote: Hi Christian KIQ is used by kernel, and we submit commands on it without gpu scheduler, In sriov env, register access must go through KIQ in non-exclusive mode

Re: [PATCH] drm/amdgpu: always use polling mem to update wptr

2017-12-11 Thread Ding, Pixel
Hi Monk, Please review. — Sincerely Yours, Pixel On 12/12/2017, 2:05 PM, "Pixel Ding" wrote: Both doorbell and polling mem are working on Tonga VF. SDMA issue happens because SDMA engine accepts doorbell writes even if it's inactive, that introduces conflict when world switch rou

Re: [PATCH] drm/amdgpu:cancel timer of virtual DCE(v2)

2017-11-16 Thread Ding, Pixel
I got it, the IH sw_fini is done later than DCE while your other patch cleans up timer in DCE sw_fini. Maybe you can call amdgpu_irq_put() here, anyway your patch is already in:) — Sincerely Yours, Pixel On 16/11/2017, 5:28 PM, "Ding, Pixel" wrote: >Hi Monk, > >I’

Re: [PATCH] drm/amdgpu:cancel timer of virtual DCE(v2)

2017-11-16 Thread Ding, Pixel
Hi Monk, I’m not for sure what issue you are fixing. The timer should be cancelled while the IRQ is put to disable vblank . However there is a known rmmod issue fixed with “02d319e drm/amdgpu/virtual_dce: Remove the rmmod error message”. Can you take a look at that patch or tell why or in which

Re: [PATCH] drm/amdgpu: revise retry init to fully cleanup driver

2017-11-08 Thread Ding, Pixel
When exclusive mode timeout happens, the VF is not active anymore. Exclusive requests will be ignored by host. Unload kms or device fini also request exclusive mode and it will get timeout again since no response received. This only happens for exclusive mode timeout, so I didn’t put them in gen

Re: [PATCH] drm/amdgpu: revise retry init to fully cleanup driver

2017-11-07 Thread Ding, Pixel
Hi Christian, Please help reviewing. Hi Gary, with this change debugfs will be cleaned up by DRM, we don’t need to handle it anymore. — Sincerely Yours, Pixel On 08/11/2017, 11:29 AM, "amd-gfx on behalf of Pixel Ding" wrote: >Retry at drm_dev_register instead of amdgpu_device_init

Re: [PATCH] drm/amdgpu:remove debugfs file in amdgpu_device_finish

2017-11-07 Thread Ding, Pixel
Hi Christian, I give a quick try according to your suggestion. It also works and cleaner. I will send a new patch to revise the retry_init. Please help reviewing later. — Sincerely Yours, Pixel On 08/11/2017, 10:40 AM, "Ding, Pixel" wrote: >Hi Christian, > >The retr

Re: [PATCH] drm/amdgpu:remove debugfs file in amdgpu_device_finish

2017-11-07 Thread Ding, Pixel
Hi Christian, The retry_init only handles the failure caused by exclusive mode timeout. It checks the MMIO to see if there’s exclusive mode timeout, and retry init if there’s, otherwise just return error. For exclusive timeout case, the host layer issues a FLR on this VF so driver needn't clea

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-06 Thread Ding, Pixel
e sufficient. > >On the other hand in an SRIOV environment the host can resize the BAR >before starting the client, so that whole stuff shouldn't be necessary >in the first place. > >Regards, >Christian. > >Am 06.11.2017 um 10:34 schrieb Ding, Pixel: >> What b

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-06 Thread Ding, Pixel
. — Sincerely Yours, Pixel On 06/11/2017, 5:16 PM, "Christian König" wrote: >Am 06.11.2017 um 08:21 schrieb Ding, Pixel: >> Hi Christian, >> >> The latest driver fails to load on SRIOV VF with xen hypervisor driver. >> >> +int amdgpu_devi

Re: [PATCH] drm/amdgpu: resize VRAM BAR for CPU access v5

2017-11-05 Thread Ding, Pixel
Hi Christian, The latest driver fails to load on SRIOV VF with xen hypervisor driver. +int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev) +{ + u64 space_needed = roundup_pow_of_two(adev->mc.real_vram_size); + u32 rbar_size = order_base_2(((space_needed >> 20) | 1)) - 1; + u16

Re: [PATCH 2/3] drm/amdgpu: release exclusive mode after hw_init if no kfd

2017-11-02 Thread Ding, Pixel
Hi Felix, KFD will set HQD. These registers must be accessed in exclusive mode, otherwise driver use KIQ to access them which causes world switch failure. — Sincerely Yours, Pixel On 02/11/2017, 9:49 PM, "Kuehling, Felix" wrote: >Hi Pixel, > >I'm curious, which part of the KFD initial

Re: release exclusive mode after hw init if no kfd

2017-11-01 Thread Ding, Pixel
Hi Oded, Please ignore them so far. I need to consider more like that the probe is included in retry init logics. — Sincerely Yours, Pixel On 01/11/2017, 1:53 PM, "amd-gfx on behalf of Pixel Ding" wrote: >Hi Oded, > >Please review. > >[PATCH 1/2] drm/amdkfd: initialise kgd field insid

Re: [PATCH] drm/amdgpu: release exclusive mode after hw_init if no kfd

2017-10-31 Thread Ding, Pixel
I’m not for sure about this case you talked about. Assume that it could happen and the KFD probe and init are invoked when loading it manually. For baremetal device, it’s always correct. For SRIOV virtual function, it doesn’t behave correctly with or without this patch. KFD initialization also n

Re: [PATCH] drm/amdgpu: release exclusive mode after hw_init if no kfd (v2)

2017-10-31 Thread Ding, Pixel
Hi Oded, Would you please help reviewing the V2 patch? — Sincerely Yours, Pixel On 31/10/2017, 9:47 AM, "Pixel Ding" wrote: >From: pding > >Move kfd probe prior to device init. Release exclusive mode >after hw_init if kfd is not enabled. > >v2: > - pass pdev param > >Signed-off-by: pd

Re: [PATCH] drm/amdgpu: release exclusive mode after hw_init if no kfd

2017-10-30 Thread Ding, Pixel
we need to remember for the future >not to access other adev fields, and that seems risky and not correct > > > > >On Mon, Oct 30, 2017 at 10:30 AM, Ding, Pixel wrote: >> Get your point. I don’t know why the test is passed however will revise >> later. >> &

Re: [PATCH] drm/amdgpu: release exclusive mode after hw_init if no kfd

2017-10-30 Thread Ding, Pixel
Get your point. I don’t know why the test is passed however will revise later. I definitely want the know if KFD is enabled before device init. Any suggestion? Or do you mind if the pdev is passed to probe in other way? — Sincerely Yours, Pixel On 30/10/2017, 4:20 PM, "Oded Gabbay" wro

Re: [PATCH 6/7] drm/amdgpu/virt: implement wait_reset callbacks for vi/ai

2017-10-25 Thread Ding, Pixel
Thanks:) I only got the ack for part 1… — Sincerely Yours, Pixel On 26/10/2017, 10:29 AM, "Deucher, Alexander" wrote: >> -Original Message----- >> From: Ding, Pixel >> Sent: Wednesday, October 25, 2017 10:20 PM >> To: amd-gfx@lists.freedesktop.org; D

Re: [PATCH 6/7] drm/amdgpu/virt: implement wait_reset callbacks for vi/ai

2017-10-25 Thread Ding, Pixel
Hi Alex, Any concern about this patch? it’s split as suggested. — Sincerely Yours, Pixel On 25/10/2017, 10:17 AM, "Pixel Ding" wrote: >From: pding > >Hi Alex, > >Split the wait_reset patch to 2. Part 2. > >please review. > >--- > >Signed-off-by: pding >--- > drivers/gpu/drm/amd/amdgpu/

Re: [PATCH 7/7] drm/amdgpu: retry init if it fails due to exclusive mode timeout (v2)

2017-10-25 Thread Ding, Pixel
Host rejects frequent exclusive mode requesting, otherwise an attacking VF may cause problems. Sleep for a while to let host accept next request here. — Sincerely Yours, Pixel On 26/10/2017, 6:44 AM, "Alex Deucher" wrote: >On Tue, Oct 24, 2017 at 10:19 PM, Pixel Ding wrote: >> From: pd

Re: [PATCH 7/7] drm/amdgpu: retry init if it fails due to exclusive mode timeout

2017-10-24 Thread Ding, Pixel
Thanks Andres, revised in v2. — Sincerely Yours, Pixel On 23/10/2017, 11:44 PM, "amd-gfx on behalf of Andres Rodriguez" wrote: > > >On 2017-10-23 06:03 AM, Pixel Ding wrote: >> From: pding >> >> The exclusive mode has real-time limitation in reality, such like being >> done in 300ms.

Re: [PATCH 1/7] drm/amdgpu: release VF exclusive accessing after hw_init

2017-10-24 Thread Ding, Pixel
ts.freedesktop.org] On Behalf >> Of Pixel Ding >> Sent: Monday, October 23, 2017 6:03 AM >> To: amd-gfx@lists.freedesktop.org >> Cc: Sun, Gary; Ding, Pixel; Li, Bingley >> Subject: [PATCH 1/7] drm/amdgpu: release VF exclusive accessing after >> hw_init >&

Re: [PATCH 5/7] drm/amdgpu: don't disable MSI for GPU virtual function

2017-10-24 Thread Ding, Pixel
d init failed, and make sure >it is called before re-init > > >-Original Message- >From: Ding, Pixel >Sent: 2017年10月24日 9:31 >To: Liu, Monk ; amd-gfx@lists.freedesktop.org; Xiao, Jack > >Cc: Sun, Gary ; Li, Bingley >Subject: Re: [PATCH 5/7] drm/amdgpu:

Re: [PATCH 5/7] drm/amdgpu: don't disable MSI for GPU virtual function

2017-10-23 Thread Ding, Pixel
Sorry for the misunderstanding. Will test with similar fix instead of 5248e3d9 directly later. — Sincerely Yours, Pixel On 24/10/2017, 9:31 AM, "Ding, Pixel" wrote: >Tested with 5248e3d9, however issue is still reproduced in reinit case. > >+Jack, >To bypass

Re: [PATCH 4/7] drm/amdgpu/virt: add function to check MMIO accessing

2017-10-23 Thread Ding, Pixel
To: amd-gfx@lists.freedesktop.org >> Cc: Sun, Gary; Ding, Pixel; Li, Bingley >> Subject: [PATCH 4/7] drm/amdgpu/virt: add function to check MMIO >> accessing >> >> From: pding >> >> MMIO space can be blocked on virtualised device. Add this function &g

Re: [PATCH 6/7] drm/amdgpu/virt: add wait_reset virt ops

2017-10-23 Thread Ding, Pixel
t;Pixel Ding >Sent: 2017年10月23日 18:04 >To: amd-gfx@lists.freedesktop.org >Cc: Sun, Gary ; Ding, Pixel ; Li, >Bingley >Subject: [PATCH 6/7] drm/amdgpu/virt: add wait_reset virt ops > >From: pding > >Driver can use this interface to check if there's a function le

Re: [PATCH 5/7] drm/amdgpu: don't disable MSI for GPU virtual function

2017-10-23 Thread Ding, Pixel
e fixed by that >patch, please verify > >-Original Message- >From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of >Pixel Ding >Sent: 2017年10月23日 18:04 >To: amd-gfx@lists.freedesktop.org >Cc: Sun, Gary ; Ding, Pixel ; Li, >Bingley >Subje

Re: [PATCH 1/3] drm/amdgpu: always consider virualised device for checking post

2017-10-18 Thread Ding, Pixel
() function name? — Sincerely Yours, Pixel On 18/10/2017, 10:08 PM, "Deucher, Alexander" wrote: >> -Original Message- >> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf >> Of Christian König >> Sent: Wednesday, October 18, 20

Re: [PATCH] drm/amdgpu: drm/amdgpu: always consider virualised device for checking post (v2)

2017-10-18 Thread Ding, Pixel
Thanks Alex. Some comments inline. — Sincerely Yours, Pixel On 19/10/2017, 10:34 AM, "Alex Deucher" wrote: >On Wed, Oct 18, 2017 at 9:44 PM, Pixel Ding wrote: >> From: pding >> >> The post checking on scratch registers isn't reliable for virtual function. >> >> v2: only change in IGP r

Re: [PATCH] drm/amdgpu: drm/amdgpu: always consider virualised device for checking post (v2)

2017-10-18 Thread Ding, Pixel
Hi Alex, This is the v2 patch as you suggested. Only fix the issue found in amdgpu_bios.c. Please review, thanks. — Sincerely Yours, Pixel On 19/10/2017, 9:44 AM, "amd-gfx on behalf of Pixel Ding" wrote: >From: pding > >The post checking on scratch registers isn't reliable for virt

Re: [PATCH 1/3] drm/amdgpu: always consider virualised device for checking post

2017-10-18 Thread Ding, Pixel
estly have no idea what you do here. > >ASIC post is not something I've every worked on. > >It looks odd that you add/remove some static keyword here, but I can't >judge the technical correctness. > >Monk, Alex what do you think of this? > >Sorry, >Chris

Re: [PATCH 1/3] drm/amdgpu: always consider virualised device for checking post

2017-10-18 Thread Ding, Pixel
Hi Christian, Would you please take a look at this change? It’s to unify the VBIOS post checking. — Sincerely Yours, Pixel On 18/10/2017, 10:25 AM, "Ding, Pixel" wrote: >Hi all, > >Could someone review this patch? > >— >Sincerely Yours, >Pixel > &

Re: [PATCH 3/3] drm/amdgpu: busywait KIQ register accessing v3

2017-10-18 Thread Ding, Pixel
Thanks Christian:) will change the return value as you suggested. — Sincerely Yours, Pixel On 18/10/2017, 3:05 PM, "Koenig, Christian" wrote: >Am 18.10.2017 um 02:56 schrieb Pixel Ding: >> From: pding >> >> Register accessing is performed when IRQ is disabled. Never sleep in >> this fun

Re: [PATCH 1/3] drm/amdgpu: always consider virualised device for checking post

2017-10-17 Thread Ding, Pixel
Hi all, Could someone review this patch? — Sincerely Yours, Pixel On 17/10/2017, 4:06 PM, "amd-gfx on behalf of Ding, Pixel" wrote: >you can see the difference of function amdgpu_need_post. Generally speaking, >there were 2 functions to check VBIOS posting, one

Re: [PATCH 3/3] drm/amdgpu: busywait KIQ register accessing v2

2017-10-17 Thread Ding, Pixel
stian" wrote: >Am 17.10.2017 um 10:38 schrieb Ding, Pixel: >> [SNIP] >>>> + if (seq >= wait_seq && wait_seq >= last_seq) >>>> + break; >>>> + if (seq <= last_seq && >>>> +

Re: [PATCH 3/3] drm/amdgpu: busywait KIQ register accessing v2

2017-10-17 Thread Ding, Pixel
On 17/10/2017, 4:20 PM, "Koenig, Christian" wrote: >Am 17.10.2017 um 08:37 schrieb Pixel Ding: >> From: pding >> >> Register accessing is performed when IRQ is disabled. Never sleep in >> this function. >> >> Known issue: dead sleep in many use cases of index/data registers. >> >> v2: wrap poll

Re: [PATCH 1/3] drm/amdgpu: always consider virualised device for checking post

2017-10-17 Thread Ding, Pixel
posting because SCRATCH registers are not the expected value. Is it clear? — Sincerely Yours, Pixel On 17/10/2017, 5:00 PM, "Liu, Monk" wrote: >From the patch itself I still couldn't tell the difference > >-Original Message- >From: Ding, Pixel >Se

Re: [PATCH 2/3] drm/amdgpu: report more amdgpu_fence_info v2

2017-10-17 Thread Ding, Pixel
17年10月17日 14:38 >To: amd-gfx@lists.freedesktop.org; Liu, Monk ; Koenig, >Christian >Cc: Li, Bingley ; Sun, Gary ; Ding, >Pixel >Subject: [PATCH 2/3] drm/amdgpu: report more amdgpu_fence_info v2 > >From: pding > >Only for GFX ring. This can help checking MCBP feature. > &

Re: [PATCH 1/3] drm/amdgpu: always consider virualised device for checking post

2017-10-17 Thread Ding, Pixel
st_needed >to check_post > >-Original Message- >From: Pixel Ding [mailto:pixel.d...@amd.com] >Sent: 2017年10月17日 14:38 >To: amd-gfx@lists.freedesktop.org; Liu, Monk ; Koenig, >Christian >Cc: Li, Bingley ; Sun, Gary ; Ding, >Pixel >Subject: [PATCH 1/3] drm/amdgpu: always

Re: [PATCH 4/4] drm/amdgpu: busywait KIQ register accessing

2017-10-16 Thread Ding, Pixel
. — Sincerely Yours, Pixel On 16/10/2017, 9:25 AM, "Ding, Pixel" wrote: >OK, I would keep both methods working together. >— >Sincerely Yours, >Pixel > > > > > > > >On 13/10/2017, 6:04 PM, "Liu, Monk" wrote: > >>Why there will be rac

Re: [PATCH 4/4] drm/amdgpu: busywait KIQ register accessing

2017-10-15 Thread Ding, Pixel
sleep waiting is synchroniz sleep, it just release CPU resource to other >process/thread, so the order is guaranteed > >BR Monk > >-----Original Message- >From: Ding, Pixel >Sent: 2017年10月13日 17:39 >To: Liu, Monk ; amd-gfx@lists.freedesktop.org >Cc: Li, Bingley >

Re: [PATCH 4/4] drm/amdgpu: busywait KIQ register accessing

2017-10-13 Thread Ding, Pixel
in IRQ CONTEXT, you can call >wreg_kiq_busy() or wreg_no_kiq(), > >But don't just change the original function > >BR Monk > >-Original Message- >From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of >Pixel Ding >Sent: 2017年10月13日 1

Re: [PATCH 3/4] drm/amdgpu: report preemption fence via amdgpu_fence_info

2017-10-13 Thread Ding, Pixel
Get it. — Sincerely Yours, Pixel On 13/10/2017, 5:28 PM, "Liu, Monk" wrote: >@Ding, Pixel > >+ seq_printf(m, "Last preempted 0x%08x\n", >+ le32_to_cpu(*(ring->fence_drv.cpu_addr + 2))); > >Please hand

Re: [PATCH 4/4] drm/amdgpu: busywait KIQ register accessing

2017-10-13 Thread Ding, Pixel
On 13/10/2017, 5:16 PM, "Christian König" wrote: >Am 13.10.2017 um 10:26 schrieb Pixel Ding: >> From: pding >> >> Register accessing is performed when IRQ is disabled. Never sleep in >> this function. >> >> Known issue: dead sleep in many use cases of index/data registers. >> >> Signed-off-by

Re: [PATCH 3/4] drm/amdgpu: report preemption fence via amdgpu_fence_info

2017-10-13 Thread Ding, Pixel
nts two dw after the address where the CPU writes the >seqno. Where is the code which setups the CP to do this? > >As far as I can see that line should always print just zero (or some >random number if the memory is actually not initialized to anything). > >Regards, >Christian.

Re: [PATCH 3/4] drm/amdgpu: report preemption fence via amdgpu_fence_info

2017-10-13 Thread Ding, Pixel
wb_get >routine on detail > >BR Monk > >-Original Message- >From: Ding, Pixel >Sent: 2017年10月13日 17:19 >To: Koenig, Christian ; >amd-gfx@lists.freedesktop.org; Liu, Monk >Cc: Li, Bingley >Subject: Re: [PATCH 3/4] drm/amdgpu: report preemption fence via

Re: [PATCH 3/4] drm/amdgpu: report preemption fence via amdgpu_fence_info

2017-10-13 Thread Ding, Pixel
This patch is not for implementation of MCBP handled by driver itself. In SRIOV use case the preemption is handle in host layer. What I do here is just check if the preemption occurs, so there’s no code to handle it. — Sincerely Yours, Pixel On 13/10/2017, 5:03 PM, "Ding, Pixel&qu

Re: [PATCH 2/4] drm/amdgpu: workaround for VM fault caused by SDMA set_wptr

2017-10-13 Thread Ding, Pixel
Yes I tried smp_mb but it doesn’t help… We will follow up this issue continuously until fix the root cause. — Sincerely Yours, Pixel On 13/10/2017, 5:17 PM, "Christian König" wrote: >Am 13.10.2017 um 10:26 schrieb Pixel Ding: >> From: pding >> >> The polling memory was standalone in VRA

Re: [PATCH 3/4] drm/amdgpu: report preemption fence via amdgpu_fence_info

2017-10-13 Thread Ding, Pixel
ring printing it like >this is just pure speculation. > >Regards, >Christian. > >Am 13.10.2017 um 10:41 schrieb Ding, Pixel: >> Thanks Christian, >> >> I’m not sure if I get your point, but yes the preemption fence offset could >> be changed. >> >> Is

Re: [PATCH 3/4] drm/amdgpu: report preemption fence via amdgpu_fence_info

2017-10-13 Thread Ding, Pixel
Thanks Christian, I’m not sure if I get your point, but yes the preemption fence offset could be changed. Is it OK to limit this information only for SRIOV VF on Tonga and Vega whose format is known? It can help use to identify if MCBP is working correctly or not. — Sincerely Yours, Pixel

Re: [PATCH] drm/amdgpu: right shift 2 bits for SDMA_GFX_RB_WPTR_POLL_ADDR_LO v2

2017-09-25 Thread Ding, Pixel
here some reason to use this macro? --- Sincerely Yours, Pixel On 25/09/2017, 3:12 PM, "Ding, Pixel" wrote: >Yes, it seems not related to the seen issue. The previous change simplifies >the shift operations while the logic is same. Please ignore. >

Re: [PATCH] drm/amdgpu: right shift 2 bits for SDMA_GFX_RB_WPTR_POLL_ADDR_LO

2017-09-25 Thread Ding, Pixel
Original Message- >From: Pixel Ding [mailto:pixel.d...@amd.com] >Sent: Monday, September 25, 2017 2:16 PM >To: amd-gfx@lists.freedesktop.org; Ding, Pixel ; Min, >Frank ; Liu, Monk ; Deucher, Alexander > >Subject: [PATCH] drm/amdgpu: right shift 2 bits for >SDMA_GFX_R

Re: [PATCH] drm/amdgpu: right shift 2 bits for SDMA_GFX_RB_WPTR_POLL_ADDR_LO v2

2017-09-25 Thread Ding, Pixel
Yes, it seems not related to the seen issue. The previous change simplifies the shift operations while the logic is same. Please ignore. — Sincerely Yours, Pixel On 25/09/2017, 3:08 PM, "Christian König" wrote: >NAK, that doesn't looks correct to me. > >> Both Tonga and Vega register S

Re: [PATCH] drm/amdgpu: right shift 2 bits for SDMA_GFX_RB_WPTR_POLL_ADDR_LO v2

2017-09-25 Thread Ding, Pixel
+Xiangliang, — Sincerely Yours, Pixel On 25/09/2017, 2:38 PM, "Pixel Ding" wrote: >Both Tonga and Vega register SPECs indicate that this registers only >use 31:2 bits in DW. SRIOV test case immediately fails withtout this >shift. > >v2: write to ADDR field > >Signed-off-by: Pixel Ding >

Re: [PATCH 2/6] drm/amdgpu: reset GDW, GWS and OA software copy to update them

2017-05-04 Thread Ding, Pixel
Hi Xiangliang, Please verify as Monk requested. — Sincerely Yours, Pixel On 04/05/2017, 4:22 PM, "Liu, Monk" wrote: >Like I said, you need to test it on amd-staging-4.9 branch > >I don't think this patch is necessary unless you prove it > >-Original M

Re: [PATCH 3/6] drm/amdgpu: don't clean the framebuffer for VF

2017-05-04 Thread Ding, Pixel
after FLR, so guest driver still need >this cleaning, > >Please keep this patch in your AWS branch only. > >BR Monk > >-Original Message- >From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of >Xiangliang Yu >Sent: Thursday, May 04, 2017 2:

Re: [PATCH 2/6] drm/amdgpu: reset GDW, GWS and OA software copy to update them

2017-05-04 Thread Ding, Pixel
Xiangliang Yu >Sent: Thursday, May 04, 2017 2:34 PM >To: amd-gfx@lists.freedesktop.org >Cc: Ding, Pixel ; Yu, Xiangliang >Subject: [PATCH 2/6] drm/amdgpu: reset GDW, GWS and OA software copy to update >them > >From: Pixel Ding > >Reset GDW, GWS and OA when SRIOV do res

Re: [PATCH] drm/amdgpu/virt: skip VM fault handler for VF (v2)

2017-02-06 Thread Ding, Pixel
ux Base Graphics >SRDC Software Development >_ > > >> -Original Message- >> From: Pixel Ding [mailto:pixel.d...@amd.com] >> Sent: Tuesday, February 07, 2017 14:07 >> To: Zhou, David(ChunMing); Koenig, Christian; Zhang, Jerry &

Re: [PATCH] drm/amdgpu/virt: skip VM fault handler for VF

2017-02-06 Thread Ding, Pixel
_ > > >> -Original Message- >> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of >> Pixel Ding >> Sent: Tuesday, February 07, 2017 13:49 >> To: Zhou, David(ChunMing); Koenig, Christian >> Cc: Ding, Pixel; amd-gfx@lists.fr

Re: [PATCH 2/2] drm/amdgpu/virt: schedule work to handle vm fault for VF

2017-02-06 Thread Ding, Pixel
ad of fence wait when reading/writing >> register in interrupt context. >> >> Regards, >> David Zhou >> >> On 2017年02月06日 15:55, Ding, Pixel wrote: >>> Thanks you for your comments, David. I totally agree on your point. >>> >>> However, The

Re: [PATCH 1/2] drm/amdgpu: don't clean the framebuffer for VF

2017-02-06 Thread Ding, Pixel
when the resolution wasn't a multiple of the >character height. > >Regards, >Christian. > >Am 06.02.2017 um 10:09 schrieb Ding, Pixel: >> Hi Christian, >> >> The underlying host driver clears VF’s framebuffer when guest driver shake >> hands with it, tha

Re: [PATCH 1/2] drm/amdgpu: don't clean the framebuffer for VF

2017-02-06 Thread Ding, Pixel
ht. > >Regards, >Christian. > >Am 06.02.2017 um 10:09 schrieb Ding, Pixel: >> Hi Christian, >> >> The underlying host driver clears VF’s framebuffer when guest driver shake >> hands with it, that is done before guest driver init. I think it’s >> unnecessary

Re: [PATCH 1/2] drm/amdgpu: don't clean the framebuffer for VF

2017-02-06 Thread Ding, Pixel
Hi Christian, The underlying host driver clears VF’s framebuffer when guest driver shake hands with it, that is done before guest driver init. I think it’s unnecessary to clear FB again even with GPU for VF. — Sincerely Yours, Pixel On 06/02/2017, 4:49 PM, "Koenig, Christian" wrote: >Am

Re: [PATCH 2/2] drm/amdgpu/virt: schedule work to handle vm fault for VF

2017-02-06 Thread Ding, Pixel
have been changed >when you handle it in schedule work after interrupt. > >Regards, >David Zhou > >-Original Message- >From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of >Pixel Ding >Sent: Monday, February 06, 2017 3:00 PM >To: amd-gfx

Re: [PATCH] drm/amdgpu/virt: increase mailbox timeout value

2017-01-19 Thread Ding, Pixel
Reviewed-by: Pixel Ding — Sincerely Yours, Pixel On 19/01/2017, 5:46 PM, "amd-gfx on behalf of Xiangliang Yu" wrote: >If start all VFs at same time, the GPU hypervisor need more time >to handle mailbox access. Set it to five seconds according to >test experience. > >Signed-off-by: Xi

Re: [PATCH] drm/amdgpu: check ring being ready before using

2017-01-18 Thread Ding, Pixel
Christian, Thank you for the quick comments. The revision is coming soon. — Sincerely Yours, Pixel On 18/01/2017, 9:26 PM, "Christian König" wrote: >Am 18.01.2017 um 11:37 schrieb Pixel Ding: >> From: Ding Pixel >> >> Return success when the ring is