[PATCH] drm/amd/powerplay: update Arcturus driver-smu interface header

2019-11-05 Thread Quan, Evan
To fit the latest SMU firmware. Change-Id: Ib197e6186127121b4ae276639fa66677094a7d01 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_arcturus.h | 2 +- drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h| 2 +- 2 files changed, 2 insertions(+), 2 deletion

Re: [PATCH] drm/amdgpu: add dummy read by engines for some GCVM status registers

2019-11-05 Thread Koenig, Christian
Am 05.11.19 um 07:32 schrieb Zhu, Changfeng: > From: changzhu > > The GRBM register interface is now capable of bursting 1 cycle per > register wr->wr, wr->rd much faster than previous muticycle per > transaction done interface. This has caused a problem where > status registers requiring HW to u

[PATCH] drm/amdgpu: support getting pcie_replay_count on Navi

2019-11-05 Thread Quan, Evan
Enable pcie_replay_count interface support on Navi. Change-Id: Idc770663416ecf45aab8caa19de9cc99b619d2c3 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/nv.c | 14 ++ .../amd/include/asic_reg/nbio/nbio_2_3_smn.h | 28 +++ 2 files changed, 42 inserti

RE: [PATCH] drm/amd/powerplay: update Arcturus driver-smu interface header

2019-11-05 Thread Ma, Le
Reviewed-by: Le Ma -Original Message- From: amd-gfx On Behalf Of Quan, Evan Sent: Tuesday, November 5, 2019 4:23 PM To: amd-gfx@lists.freedesktop.org Cc: Quan, Evan Subject: [PATCH] drm/amd/powerplay: update Arcturus driver-smu interface header To fit the latest SMU firmware. Change-I

RE: [PATCH] drm/amd/powerplay: update Arcturus driver-smu interface header

2019-11-05 Thread Feng, Kenneth
Reviewed-by: Kenneth Feng -Original Message- From: amd-gfx On Behalf Of Quan, Evan Sent: Tuesday, November 5, 2019 4:23 PM To: amd-gfx@lists.freedesktop.org Cc: Quan, Evan Subject: [PATCH] drm/amd/powerplay: update Arcturus driver-smu interface header [CAUTION: External Email] To fit

[PATCH] drm/amdgpu: register gpu instance before fan boost feature enablment

2019-11-05 Thread Quan, Evan
Otherwise, the feature enablement will be skipped due to wrong count. Caused by "drm/amdgpu: fix a race in GPU reset with IB test (v2)". Change-Id: Id576090d7ce7645a5c98ac160e0af730a51526b0 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ drivers/gpu/drm/amd/a

RE: [PATCH] drm/amdgpu: add dummy read by engines for some GCVM status registers

2019-11-05 Thread Zhu, Changfeng
Hi Chris, Maybe it's better to use amdgpu_ring_emit_reg_wait(ring, reg0, 0, 0); to replace amdgpu_ring_emit_reg_wait(ring, reg1, 0, 0); ? http://ontrack-internal.amd.com/browse/SWDEV-192660 Jira ticket recommends to read VM_INVALIDATE_ENG*_REQ. BR, Changfeng. -Original Message- From: Ko

[PATCH] drm/amd/swSMU: fix smu workload bit map error

2019-11-05 Thread Wang, Kevin(Yang)
fix workload bit (WORKLOAD_PPLIB_COMPUTE_BIT) map error on vega20 and navi asic. fix commit: drm/amd/powerplay: add function get_workload_type_map for swsmu Signed-off-by: Kevin Wang --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 +- drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 2 +- 2 file

[PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Quan, Evan
P-state switch should be performed after all devices from the hive get initialized. Change-Id: Ifc7cac9ef0cf250447d2a412da35d601e2ac79ec Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 47 -- 1 file changed, 35 insertions(+), 12 deletions(-) diff --

[PATCH 1/2] drm/amdgpu: fix possible pstate switch race condition

2019-11-05 Thread Quan, Evan
Added lock protection so that the p-state switch will be guarded to be sequential. Also update the hive pstate only all device from the hive are in the same state. Change-Id: I165a6f44e8aec1e6da56eefa0fc49d36670e56fe Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +++

[PATCH] drm/amdgpu: fix sysfs interface pcie_replay_count error on navi asic

2019-11-05 Thread Wang, Kevin(Yang)
the asic callback function of get_pcie_replay_count is not implement on navi asic, it will cause null pinter error when read this interface. Signed-off-by: Kevin Wang --- drivers/gpu/drm/amd/amdgpu/nv.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/

Re: [PATCH] drm/amdgpu: add dummy read by engines for some GCVM status registers

2019-11-05 Thread Koenig, Christian
Am 05.11.19 um 11:21 schrieb Zhu, Changfeng: > Hi Chris, > > Maybe it's better to use amdgpu_ring_emit_reg_wait(ring, reg0, 0, 0); to > replace > amdgpu_ring_emit_reg_wait(ring, reg1, 0, 0); ? Good point. I've mixed up request and acknowledge register. Important is that you need 0 as mask and va

RE: [PATCH 1/2] drm/amdgpu: fix possible pstate switch race condition

2019-11-05 Thread Xu, Feifei
Series is Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Quan, Evan Sent: 2019年11月5日 18:24 To: amd-gfx@lists.freedesktop.org Cc: Strawbridge, Michael ; Kim, Jonathan ; Quan, Evan Subject: [PATCH 1/2] drm/amdgpu: fix possible pstate switch race condition Added l

[PATCH 1/2] drm/amdgpu: add dummy read by engines for some GCVM status registers in gfx10

2019-11-05 Thread Zhu, Changfeng
From: changzhu The GRBM register interface is now capable of bursting 1 cycle per register wr->wr, wr->rd much faster than previous muticycle per transaction done interface. This has caused a problem where status registers requiring HW to update have a 1 cycle delay, due to the register update h

[PATCH 2/2] drm/amdgpu: add warning for GRBM 1-cycle delay issue in gfx9

2019-11-05 Thread Zhu, Changfeng
From: changzhu It needs to add warning to update firmware in gfx9 in case that firmware is too old to have function to realize dummy read in cp firmware. Change-Id: I6aef94f0823138f244f1eedb62fde833dd697023 Signed-off-by: changzhu --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 +++ 1 file c

Re: [PATCH 2/2] drm/amdgpu: add warning for GRBM 1-cycle delay issue in gfx9

2019-11-05 Thread Koenig, Christian
Am 05.11.19 um 12:42 schrieb Zhu, Changfeng: > From: changzhu > > It needs to add warning to update firmware in gfx9 > in case that firmware is too old to have function to > realize dummy read in cp firmware. > > Change-Id: I6aef94f0823138f244f1eedb62fde833dd697023 > Signed-off-by: changzhu Revi

Re: [PATCH 1/2] drm/amdgpu: add dummy read by engines for some GCVM status registers in gfx10

2019-11-05 Thread Koenig, Christian
Am 05.11.19 um 12:42 schrieb Zhu, Changfeng: > From: changzhu > > The GRBM register interface is now capable of bursting 1 cycle per > register wr->wr, wr->rd much faster than previous muticycle per > transaction done interface. This has caused a problem where > status registers requiring HW to u

Re: [PATCH v2 09/15] xen/gntdev: use mmu_range_notifier_insert

2019-11-05 Thread Boris Ostrovsky
On 10/28/19 4:10 PM, Jason Gunthorpe wrote: > @@ -445,17 +438,9 @@ static void gntdev_vma_close(struct vm_area_struct *vma) > struct gntdev_priv *priv = file->private_data; > > pr_debug("gntdev_vma_close %p\n", vma); > - if (use_ptemod) { > - /* It is possible that an

Re: enable dispatch/draw tests for renoir

2019-11-05 Thread Olsak, Marek
Reviewed-by: Marek Olšák Marek From: Zhu, Changfeng Sent: November 4, 2019 02:07 To: Cui, Flora ; brahma_sw_dev ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Liu, Aaron ; Zhang, Hawking ; Huang, Ray ; Huang, Shimmer ; Deucher, Alexander ; Olsak, M

[PATCH 4/5] PCI: PM: Avoid exporting __pci_complete_power_transition()

2019-11-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Notice that radeon_set_suspend(), which is the only caller of __pci_complete_power_transition() outside of pci.c, really only cares about the pci_platform_power_transition() invoked by it, so export the latter instead of it, update the radeon driver to call pci_platform_po

Re: [PATCH v2 09/15] xen/gntdev: use mmu_range_notifier_insert

2019-11-05 Thread Jason Gunthorpe
On Mon, Nov 04, 2019 at 05:03:31PM -0500, Boris Ostrovsky wrote: > On 10/28/19 4:10 PM, Jason Gunthorpe wrote: > > @@ -445,17 +438,9 @@ static void gntdev_vma_close(struct vm_area_struct > > *vma) > > struct gntdev_priv *priv = file->private_data; > > > > pr_debug("gntdev_vma_close %p\n"

Re: [PATCH hmm 05/15] RDMA/odp: Use mmu_range_notifier_insert()

2019-11-05 Thread Jason Gunthorpe
On Tue, Oct 15, 2019 at 03:12:32PM -0300, Jason Gunthorpe wrote: > @@ -250,26 +85,15 @@ static inline int ib_init_umem_odp(struct ib_umem_odp > *umem_odp) > ret = -ENOMEM; > goto out_page_list; > } > - } > > - mn = mmu_notifier_ge

Re: [PATCH v2 00/15] Consolidate the mmu notifier interval_tree and locking

2019-11-05 Thread Jason Gunthorpe
On Fri, Nov 01, 2019 at 01:54:45PM -0700, Ralph Campbell wrote: > You can add my Tested-by for the mm and nouveau changes. > IOW, patches 1-4, 10-11, and 15. > > Tested-by: Ralph Campbell Got it, thanks Jason ___ amd-gfx mailing list amd-gfx@lists.fre

Re: drm/amd/display: Add HDCP module - static analysis bug report

2019-11-05 Thread Alex Deucher
On Mon, Nov 4, 2019 at 12:24 PM Daniel Vetter wrote: > > On Mon, Nov 04, 2019 at 12:05:40PM -0500, Alex Deucher wrote: > > On Mon, Nov 4, 2019 at 11:55 AM Daniel Vetter wrote: > > > > > > On Mon, Nov 04, 2019 at 03:23:09PM +, Harry Wentland wrote: > > > > On 2019-11-04 5:53 a.m., Daniel Vette

Re: [amd-staging-drm-nex] Planned move to 5.4-rc6+ soon?

2019-11-05 Thread Alex Deucher
On Mon, Nov 4, 2019 at 6:04 PM Dieter Nützel wrote: > > Hello Alex, > > like AMD...;-) > > [Why] > 5.3-rcX (-rc3) > - has broken (regressed) block layer (CD/DVD, games...) - fixed in 5.3 > final > - ACPI (power management) regression - fixed in 5.3 final > - USB 3.1/3.2 regression (5.000 vs 10.000

Re: drm/amd/display: Add HDCP module - static analysis bug report

2019-11-05 Thread Daniel Vetter
On Tue, Nov 5, 2019 at 1:52 PM Alex Deucher wrote: > > On Mon, Nov 4, 2019 at 12:24 PM Daniel Vetter wrote: > > > > On Mon, Nov 04, 2019 at 12:05:40PM -0500, Alex Deucher wrote: > > > On Mon, Nov 4, 2019 at 11:55 AM Daniel Vetter wrote: > > > > > > > > On Mon, Nov 04, 2019 at 03:23:09PM +, H

Re: drm/amd/display: Add HDCP module - static analysis bug report

2019-11-05 Thread Harry Wentland
On 2019-11-05 8:14 a.m., Daniel Vetter wrote: > On Tue, Nov 5, 2019 at 1:52 PM Alex Deucher wrote: >> >> On Mon, Nov 4, 2019 at 12:24 PM Daniel Vetter wrote: >>> >>> On Mon, Nov 04, 2019 at 12:05:40PM -0500, Alex Deucher wrote: On Mon, Nov 4, 2019 at 11:55 AM Daniel Vetter wrote: > >>

Re: drm/amd/display: Add HDCP module - static analysis bug report

2019-11-05 Thread Daniel Vetter
On Tue, Nov 5, 2019 at 3:17 PM Harry Wentland wrote: > > > > On 2019-11-05 8:14 a.m., Daniel Vetter wrote: > > On Tue, Nov 5, 2019 at 1:52 PM Alex Deucher wrote: > >> > >> On Mon, Nov 4, 2019 at 12:24 PM Daniel Vetter wrote: > >>> > >>> On Mon, Nov 04, 2019 at 12:05:40PM -0500, Alex Deucher wrot

RE: [PATCH] drm/amdgpu: fix sysfs interface pcie_replay_count error on navi asic

2019-11-05 Thread Russell, Kent
Reviewed-by: Kent Russell I'll try to get on the actual implementation soon. Kent -Original Message- From: amd-gfx On Behalf Of Wang, Kevin(Yang) Sent: Tuesday, November 5, 2019 6:02 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Yuan, Xiaojie ; Li, Candice ; Wang, Ke

Re: [PATCH] drm/amd/swSMU: fix smu workload bit map error

2019-11-05 Thread Feng, Kenneth
Reviewed-by: Kenneth Feng mailto:kenneth.f...@amd.com>> 在 2019年11月5日,下午6:23,Wang, Kevin(Yang) mailto:kevin1.w...@amd.com>> 写道: fix workload bit (WORKLOAD_PPLIB_COMPUTE_BIT) map error on vega20 and navi asic. fix commit: drm/amd/powerplay: add function get_workload_type_map for swsmu Signed-of

Re: drm/amd/display: Add HDCP module - static analysis bug report

2019-11-05 Thread Harry Wentland
On 2019-11-05 9:23 a.m., Daniel Vetter wrote: > On Tue, Nov 5, 2019 at 3:17 PM Harry Wentland wrote: >> >> >> >> On 2019-11-05 8:14 a.m., Daniel Vetter wrote: >>> On Tue, Nov 5, 2019 at 1:52 PM Alex Deucher wrote: On Mon, Nov 4, 2019 at 12:24 PM Daniel Vetter wrote: > > On Mo

Re: drm/amd/display: Add HDCP module - static analysis bug report

2019-11-05 Thread Daniel Vetter
On Tue, Nov 5, 2019 at 3:39 PM Harry Wentland wrote: > > > > On 2019-11-05 9:23 a.m., Daniel Vetter wrote: > > On Tue, Nov 5, 2019 at 3:17 PM Harry Wentland wrote: > >> > >> > >> > >> On 2019-11-05 8:14 a.m., Daniel Vetter wrote: > >>> On Tue, Nov 5, 2019 at 1:52 PM Alex Deucher wrote: > >

[PATCH 1/2] drm/amd/display: Send vblank and user events at vsartup for DCN

2019-11-05 Thread sunpeng.li
From: Leo Li [Why] For DCN hardware, the crtc_high_irq handler is assigned to the vstartup interrupt. This is different from DCE, which has it assigned to vblank start. We'd like to send vblank and user events at vstartup because: * It happens close enough to vupdate - the point of no return f

[PATCH 2/2] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread sunpeng.li
From: Leo Li [Why] On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq handler redundant. All the vupdate handler does is handle vblank events, and update vrr for DCE hw (excluding VEGA, more on that later). As far as usermode is concerned. vstartup happens close enough to vupdate

[PATCH 2/2 v2] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread sunpeng.li
From: Leo Li [Why] On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq handler redundant. All the vupdate handler does is handle vblank events, and update vrr for DCE hw (excluding VEGA, more on that later). As far as usermode is concerned. vstartup happens close enough to vupdate

Re: [PATCH 1/2] drm/amd/display: Send vblank and user events at vsartup for DCN

2019-11-05 Thread Kazlauskas, Nicholas
On 2019-11-05 10:34 a.m., sunpeng...@amd.com wrote: > From: Leo Li > > [Why] > > For DCN hardware, the crtc_high_irq handler is assigned to the vstartup > interrupt. This is different from DCE, which has it assigned to vblank > start. > > We'd like to send vblank and user events at vstartup bec

Re: [PATCH 2/2 v2] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread Kazlauskas, Nicholas
On 2019-11-05 10:58 a.m., sunpeng...@amd.com wrote: > From: Leo Li > > [Why] > > On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq > handler redundant. > > All the vupdate handler does is handle vblank events, and update vrr > for DCE hw (excluding VEGA, more on that later). As

Re: [PATCH] drm/amdgpu: remove PT BOs when unmapping

2019-11-05 Thread Huang, JinHuiEric
Hi Christian, I found the reason why page tables are not freed when unmapping. All the pts are reserved, then they are not freed until vm fini. So the consequences are old pts and new pts for the same VAs will exist till vm fini. In KFD big buffer strees test, multiple times of mapping and unm

RE: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Kim, Jonathan
Please see inline. Jon -Original Message- From: Quan, Evan Sent: Tuesday, November 5, 2019 5:24 AM To: amd-gfx@lists.freedesktop.org Cc: Kim, Jonathan ; Strawbridge, Michael ; Quan, Evan Subject: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized P-state

[PATCH v4] drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6

2019-11-05 Thread Jerry (Fangzhi) Zuo
DP 1.4 edid corruption test requires source DUT to write calculated CRC, not the corrupted CRC from reference sink. Return the calculated CRC back, and initiate the required sequence. -v2: Have separate routine for returning real CRC -v3: Rewrite checksum computation routine to avoid duplicated

Re: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Strawbridge, Michael
Hi Jon, Does that mean we can simply use this instead? + if (mgpu_info.num_dgpu == adev->gmc.xgmi.num_physical_nodes - 1) { Thanks, Michael From: Kim, Jonathan Sent: 05 November 2019 11:32 AM To: Quan, Evan ; amd-gfx@lists.freedesktop.org Cc: St

RE: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Kim, Jonathan
Yes that's correct. This should fix the issue. Jon From: Strawbridge, Michael Sent: Tuesday, November 5, 2019 11:40 AM To: Kim, Jonathan ; Quan, Evan ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized Hi Jon, Does tha

RE: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Kim, Jonathan
+ for (i = 0; i < mgpu_info.num_gpu; i++) { Also while num_physical_nodes should be used here instead. It doesn't make sense to have a pre-condition check i.e. (if (mgpu_info.num_dgpu == adev->gmc.xgmi.num_physical_nodes - 1) ) against the total number of nodes while the l

Re: [PATCH 1/2] drm/amd/display: Send vblank and user events at vsartup for DCN

2019-11-05 Thread Li, Sun peng (Leo)
On 2019-11-05 11:15 a.m., Kazlauskas, Nicholas wrote: > On 2019-11-05 10:34 a.m., sunpeng...@amd.com wrote: >> From: Leo Li >> >> [Why] >> >> For DCN hardware, the crtc_high_irq handler is assigned to the vstartup >> interrupt. This is different from DCE, which has it assigned to vblank >> start

Re: [PATCH] drm/amdgpu: remove PT BOs when unmapping

2019-11-05 Thread Koenig, Christian
Hi Eric, Ah! Yeah that is a well known issue. Basic problem is that for releasing the BOs we need to reserve them to check if they are idle or not. I've got a branch with a TTM change to avoid that, but essentially that is a huge problem which needs a rather big change in memory management to

Re: [PATCH 2/2 v2] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread Li, Sun peng (Leo)
On 2019-11-05 11:16 a.m., Kazlauskas, Nicholas wrote: > On 2019-11-05 10:58 a.m., sunpeng...@amd.com wrote: >> From: Leo Li >> >> [Why] >> >> On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq >> handler redundant. >> >> All the vupdate handler does is handle vblank events, and up

[PATCH v3] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread sunpeng.li
From: Leo Li [Why] On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq handler redundant. All the vupdate handler does is handle vblank events, and update vrr for DCE hw (excluding VEGA, more on that later). As far as usermode is concerned. vstartup happens close enough to vupdate

Re: [PATCH v3] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread Li, Sun peng (Leo)
On 2019-11-05 2:01 p.m., sunpeng...@amd.com wrote: > From: Leo Li > > [Why] > > On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq > handler redundant. > > All the vupdate handler does is handle vblank events, and update vrr > for DCE hw (excluding VEGA, more on that later). As

[PATCH v4] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread sunpeng.li
From: Leo Li [Why] On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq handler redundant. All the vupdate handler does is handle vblank events, and update vrr for DCE hw (excluding VEGA, more on that later). As far as usermode is concerned. vstartup happens close enough to vupdate

Re: [PATCH v2 08/15] xen/gntdev: Use select for DMA_SHARED_BUFFER

2019-11-05 Thread Jürgen Groß
On 01.11.19 19:26, Jason Gunthorpe wrote: On Mon, Oct 28, 2019 at 05:10:25PM -0300, Jason Gunthorpe wrote: From: Jason Gunthorpe DMA_SHARED_BUFFER can not be enabled by the user (it represents a library set in the kernel). The kconfig convention is to use select for such symbols so they are tu

Re: [PATCH v2 09/15] xen/gntdev: use mmu_range_notifier_insert

2019-11-05 Thread Boris Ostrovsky
On 11/4/19 9:31 PM, Jason Gunthorpe wrote: > On Mon, Nov 04, 2019 at 05:03:31PM -0500, Boris Ostrovsky wrote: >> On 10/28/19 4:10 PM, Jason Gunthorpe wrote: >>> @@ -445,17 +438,9 @@ static void gntdev_vma_close(struct vm_area_struct >>> *vma) >>> struct gntdev_priv *priv = file->private_data;

Re: [PATCH v4] drm/amd/display: Disable VUpdate interrupt for DCN hardware

2019-11-05 Thread Kazlauskas, Nicholas
On 2019-11-05 2:07 p.m., sunpeng...@amd.com wrote: > From: Leo Li > > [Why] > > On DCN hardware, the crtc_high_irq handler makes vupdate_high_irq > handler redundant. > > All the vupdate handler does is handle vblank events, and update vrr > for DCE hw (excluding VEGA, more on that later). As f

Re: [PATCH 1/2] drm/amd/display: Send vblank and user events at vsartup for DCN

2019-11-05 Thread Kazlauskas, Nicholas
On 2019-11-05 1:32 p.m., Li, Sun peng (Leo) wrote: > > > On 2019-11-05 11:15 a.m., Kazlauskas, Nicholas wrote: >> On 2019-11-05 10:34 a.m., sunpeng...@amd.com wrote: >>> From: Leo Li >>> >>> [Why] >>> >>> For DCN hardware, the crtc_high_irq handler is assigned to the vstartup >>> interrupt. This

Re: [PATCH v2 01/15] mm/mmu_notifier: define the header pre-processor parts even if disabled

2019-11-05 Thread John Hubbard
On 10/28/19 1:10 PM, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > Now that we have KERNEL_HEADER_TEST all headers are generally compile > tested, so relying on makefile tricks to avoid compiling code that depends > on CONFIG_MMU_NOTIFIER is more annoying. > > Instead follow the usual patte

[PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Huang, JinHuiEric
Using unified VBIOS has performance drop in sriov environment. The fix is switching to another register instead. Signed-off-by: Eric Huang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/

Re: [PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Kuehling, Felix
On 2019-11-05 5:03 p.m., Huang, JinHuiEric wrote: > Using unified VBIOS has performance drop in sriov environment. > The fix is switching to another register instead. > > Signed-off-by: Eric Huang > --- > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 18 +++--- > 1 file changed, 15 inser

[PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Huang, JinHuiEric
Using unified VBIOS has performance drop in sriov environment. The fix is switching to another register instead. Signed-off-by: Eric Huang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

Re: [PATCH] drm/amdgpu: register gpu instance before fan boost feature enablment

2019-11-05 Thread Deucher, Alexander
Reviewed-by: Alex Deucher From: Quan, Evan Sent: Tuesday, November 5, 2019 5:18 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Quan, Evan Subject: [PATCH] drm/amdgpu: register gpu instance before fan boost feature enablment Otherwise, the featu

Re: [PATCH] drm/amdkfd: Simplify the mmap offset related bit operations

2019-11-05 Thread Kuehling, Felix
On 2019-11-01 7:03 p.m., Zhao, Yong wrote: > > > + /* only leave the offset segment */ > > + vma->vm_pgoff &= (1ULL << (KFD_MMAP_GPU_ID_SHIFT - PAGE_SHIFT)) - > 1; > > You're now open-coding what used to be done by the > KFD_MMAP_OFFSET_VALUE_GET macro. I don't see how this

Re: [PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Kuehling, Felix
On 2019-11-05 5:26 p.m., Huang, JinHuiEric wrote: > Using unified VBIOS has performance drop in sriov environment. > The fix is switching to another register instead. > > Signed-off-by: Eric Huang Reviewed-by: Felix Kuehling > --- > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 19

Re: [PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Alex Deucher
On Tue, Nov 5, 2019 at 5:26 PM Huang, JinHuiEric wrote: > > Using unified VBIOS has performance drop in sriov environment. > The fix is switching to another register instead. > > Signed-off-by: Eric Huang > --- > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 19 --- > 1 file changed, 1

Re: [PATCH] drm/amdkfd: Simplify the mmap offset related bit operations

2019-11-05 Thread Zhao, Yong
Okay. I will delete that line. Regards, Yong From: Kuehling, Felix Sent: Tuesday, November 5, 2019 5:34 PM To: Zhao, Yong ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdkfd: Simplify the mmap offset related bit operations On 2019-11-01 7:03 p.m., Z

[PATCH] drm/amd/powerplay: fix struct init in renoir_print_clk_levels

2019-11-05 Thread Raul E Rangel
drivers/gpu/drm/amd/powerplay/renoir_ppt.c:186:2: error: missing braces around initializer [-Werror=missing-braces] SmuMetrics_t metrics = {0}; ^ Fixes: 8b8031703bd7 ("drm/amd/powerplay: implement sysfs for getting dpm clock") Signed-off-by: Raul E Rangel --- drivers/gpu/drm/amd/powerpla

[PATCH] drm/amdkfd: Simplify the mmap offset related bit operations

2019-11-05 Thread Zhao, Yong
The new code uses straightforward bit shifts and thus has better readability. Change-Id: I0c1f7cca7e24ddb7b4ffe1cb0fa71943828ae373 Signed-off-by: Yong Zhao --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 10 -- drivers/gpu/drm/amd/amdkfd/kfd_events.c | 1 - drivers/gpu/drm/amd/amdkfd/kf

Re: [PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Huang, JinHuiEric
On 2019-11-05 6:06 p.m., Alex Deucher wrote: > On Tue, Nov 5, 2019 at 5:26 PM Huang, JinHuiEric > wrote: >> Using unified VBIOS has performance drop in sriov environment. >> The fix is switching to another register instead. >> >> Signed-off-by: Eric Huang >> --- >> drivers/gpu/drm/amd/amdgpu/g

RE: [PATCH] drm/amdgpu: change read of GPU clock counter on Vega10 VF

2019-11-05 Thread Jiang, Jerry (SW)
Hi Alex, Under the SRIOV mode, the L1 policy prevent the write to mmRLC_CAPTURE_GPU_CLOCK_COUNT on VF, so the RLC_GPU_CLOCK_COUNT_LSB/MSB doesn't get updated for each read under SRIOV VF. On the other hand, the read from RLC_REFCLOCK_TIMESTAMP_LSB/MSB doesn't rely on any write, so it is availa

RE: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Kim, Jonathan
Taking a look at this again, it's not an indexing issue, it's a placement problem. I don't think this solution will work if we expect to pstate switch all gpus. >From amdgpu_kms.c, amdgpu_register_gpu_instance comes after >amdgpu_device_init. This means we'll never reach mgpu_info.num_gpu ==

RE: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Quan, Evan
Thanks Jon. Per discussed in another mail thread, this should be applied after the patch below https://lists.freedesktop.org/archives/amd-gfx/2019-November/042160.html Sorry for missing this important information. Regards, Evan From: Kim, Jonathan Sent: Wednesday, November 6, 2019 10:18 AM To: S

RE: [PATCH 2/2] drm/amdgpu: perform p-state switch after the whole hive initialized

2019-11-05 Thread Kim, Jonathan
No problem. With the incoming patch referenced below, this patch should be ok since it doesn't break the build. Reviewed-by: Jonathan Kim From: Quan, Evan Sent: Tuesday, November 5, 2019 10:11 PM To: Kim, Jonathan ; Strawbridge, Michael ; amd-gfx@lists.freedesktop.org Subject: RE: [PATCH 2/

Re: [PATCH] drm/amd/display: Use pixel encoding 444 for dongle usb-c to hdmi

2019-11-05 Thread Julien Isorce
Hi, gentle ping ? Thx in advance. On Tue, Oct 8, 2019 at 11:15 AM Julien Isorce wrote: > Hi Harry, > > I can reproduce on LG, Samsung and NEC monitors. > > "Have you checked whether the driver picks RGB or YCBCR420 without your > patch?" -> it was selecting RGB . > > For example on https://commo

[PATCH] drm/amdgpu: Need to disable msix when unloading driver

2019-11-05 Thread Emily Deng
For driver reload test, it will report "can't enable MSI (MSI-X already enabled)". Signed-off-by: Emily Deng --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c inde

[PATCH] drm/amdgpu: Need to disable msix when unloading driver

2019-11-05 Thread Emily Deng
For driver reload test, it will report "can't enable MSI (MSI-X already enabled)". Signed-off-by: Emily Deng --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgp

RE: [PATCH] drm/amdgpu: Need to disable msix when unloading driver

2019-11-05 Thread Deng, Emily
Sorry, please ignore this, will send another patch later. Best wishes Emily Deng >-Original Message- >From: Emily Deng >Sent: Wednesday, November 6, 2019 2:18 PM >To: amd-gfx@lists.freedesktop.org >Cc: Deng, Emily >Subject: [PATCH] drm/amdgpu: Need to disable msix when unloading drive

RE: [PATCH] drm/amdgpu: Need to disable msix when unloading driver

2019-11-05 Thread Deng, Emily
Hi all, Please help to review this. This is to fix driver reload issue. Best wishes Emily Deng >-Original Message- >From: Emily Deng >Sent: Wednesday, November 6, 2019 2:24 PM >To: amd-gfx@lists.freedesktop.org >Cc: Deng, Emily >Subject: [PATCH] drm/amdgpu: Need to disable msix whe

[PATCH] drm/amd/powerplay: Protect backend resource when unload driver

2019-11-05 Thread Jesse Zhang
Guest driver can be unloaded while engines still using some backend resources which whould lead to guest driver unload failure. Need to add mutex lock to protect backend resources from concurrent operations Before entering powergating mode, VCE and UVD need to check if backend resources are still

[PATCH] drm/amd/amdgpu: Add mutex to protect IB resources

2019-11-05 Thread Jesse Zhang
Unloading driver has call trace when unloading happens 2s after loading driver. Since ring test are delayed after initializing driver, it is possible that driver has been unloaded before or while doing ring test. Add mutex to prevent ring test and driver finalization occurs at the same time and c

[PATCH] drm/amd/powerplay: fix deadlock on setting power_dpm_force_performance_level

2019-11-05 Thread Quan, Evan
smu_enable_umd_pstate() will try to get the smu->mutex which was already hold by its parent API smu_force_performance_level() on the call path. Thus deadlock happens. Change-Id: Ic4d3c7d06eb47eab2ea42b98f399cd95ab320f0c Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 19

RE: [PATCH] drm/amd/powerplay: fix deadlock on setting power_dpm_force_performance_level

2019-11-05 Thread Xu, Feifei
Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Quan, Evan Sent: Wednesday, November 6, 2019 2:57 PM To: amd-gfx@lists.freedesktop.org Cc: Quan, Evan Subject: [PATCH] drm/amd/powerplay: fix deadlock on setting power_dpm_force_performance_level smu_enable_umd_pst