Re: [PATCH 1/4] drm/amdgpu/swsmu: add metrics enums for voltage

2020-12-01 Thread Huang Rui
On Tue, Dec 01, 2020 at 10:05:02PM -0500, Alex Deucher wrote: > To be used in subsequent patches. > > Signed-off-by: Alex Deucher Series are Reviewed-by: Huang Rui > --- > drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/p

RE: [PATCH 4/4] drm/amdgpu/swsmu/renoir: simplify sensor handling (v2)

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Series is reviewed-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 11:05 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 4/4] drm/amdgpu/swsmu/ren

[PATCH 4/4] drm/amdgpu/swsmu/renoir: simplify sensor handling (v2)

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. v2: use proper enum Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 205 -- 1 file changed, 93 insertions(+), 112 deletions(-) diff --git a/drivers/gpu/d

[PATCH 2/4] drm/amdgpu/swsmu/vangogh: simplify sensor handling

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. Reviewed-by: Evan Quan Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 114 +++--- 1 file changed, 20 insertions(+), 94 deletions(-) diff --git a/drivers/gpu

[PATCH 3/4] drm/amdgpu/swsmu/vangogh: use metrics table for voltages (v2)

2020-12-01 Thread Alex Deucher
Fixes voltage reading for vddgfx and adds support for vddsoc. v2: use new voltage enum Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 20 --- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangog

[PATCH 1/4] drm/amdgpu/swsmu: add metrics enums for voltage

2020-12-01 Thread Alex Deucher
To be used in subsequent patches. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h index a559ea2204c1..89be49a43500 100644 --- a/drivers

Re: [PATCH v2 08/20] drm/hibmc: Remove references to struct drm_device.pdev

2020-12-01 Thread tiantao (H)
在 2020/12/1 18:35, Thomas Zimmermann 写道: Using struct drm_device.pdev is deprecated. Convert hibmc to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Xinliang Liu Cc: Tian Tao Cc: John Stultz Cc: Xinwei Kong Cc: Chen Feng ---

RE: [PATCH 5/5] drm/amdgpu/swsmu/renoir: simplify sensor handling

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 1:44 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 5/5] drm/amdgpu/swsmu/renoir: simplify sensor handling Just

RE: [PATCH 4/5] drm/amdgpu/swsmu/vangogh: use metrics table for voltages

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 1:44 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 4/5] drm/amdgpu/swsmu/vangogh: use metrics table for voltages

RE: [PATCH 3/5] drm/amdgpu/swsmu/vangogh: simplify sensor handling

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 1:44 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 3/5] drm/amdgpu/swsmu/vangogh: simpl

RE: [PATCH 2/5] drm/amdgpu/powerplay/psm: return an error in power state init

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 1:44 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 2/5] drm/amdgpu/powerplay/psm: retur

RE: [PATCH 1/5] drm/amdgpu/powerplay/vega10: handle error in getting pptable

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 1:44 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 1/5] drm/amdgpu/powerplay/vega10: ha

RE: [PATCH 3/3] drm/amdgpu/swsmu/sienna_cichlid: simplify sensor handling

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Series is reviewed-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 2:43 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 3/3] drm/amdgpu/swsmu/sien

RE: [PATCH] drm/amdgpu/powerplay: set the smu fan control cap for CI asics

2020-12-01 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, December 2, 2020 6:50 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH] drm/amdgpu/powerplay: set the smu f

[PATCH 2/2] drm/amdgpu/sdma5.2: enable ctxempty interrupt

2020-12-01 Thread Alex Deucher
This is may be required for proper gfxoff operation with SDMA workloads. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index ca8d

[PATCH 1/2] drm/amdgpu/sdma5.0: enable ctxempty interrupt

2020-12-01 Thread Alex Deucher
This is may be required for proper gfxoff operation with SDMA workloads. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c index b208

[PATCH] drm/amdgpu/powerplay: set the smu fan control cap for CI asics

2020-12-01 Thread Alex Deucher
The default should be to enable it, and then it could be cleared depending on the board design. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=201539 Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/

Re: [PATCH 34/40] drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Use 'gnu_printf' format notation

2020-12-01 Thread Alex Deucher
On Tue, Dec 1, 2020 at 1:59 PM Christian König wrote: > > Am 01.12.20 um 19:42 schrieb Alex Deucher: > > On Thu, Nov 26, 2020 at 8:44 AM Lee Jones wrote: > >> Fixes the following W=1 kernel build warning(s): > >> > >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c: In > >>

Re: [PATCH 34/40] drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Use 'gnu_printf' format notation

2020-12-01 Thread Christian König
Am 01.12.20 um 19:42 schrieb Alex Deucher: On Thu, Nov 26, 2020 at 8:44 AM Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c: In function ‘dm_dtn_log_append_v’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu

[PATCH 3/3] drm/amdgpu/swsmu/sienna_cichlid: simplify sensor handling

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. Signed-off-by: Alex Deucher --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 98 +-- 1 file changed, 24 insertions(+), 74 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/

[PATCH 1/3] drm/amdgpu/swsmu/navi1x: simplify sensor handling

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 98 +-- 1 file changed, 24 insertions(+), 74 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/

[PATCH 2/3] drm/amdgpu/swsmu/arcturus: simplify sensor handling

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 101 +- 1 file changed, 24 insertions(+), 77 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/

Re: [PATCH 34/40] drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Use 'gnu_printf' format notation

2020-12-01 Thread Alex Deucher
On Thu, Nov 26, 2020 at 8:44 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c: In > function ‘dm_dtn_log_append_v’: > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:345:2: > war

[PATCH 5/5] drm/amdgpu/swsmu/renoir: simplify sensor handling

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 205 -- 1 file changed, 93 insertions(+), 112 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12

[PATCH 4/5] drm/amdgpu/swsmu/vangogh: use metrics table for voltages

2020-12-01 Thread Alex Deucher
Fixes voltage reading for vddgfx and adds support for vddsoc. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 20 --- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/gpu/drm

[PATCH 3/5] drm/amdgpu/swsmu/vangogh: simplify sensor handling

2020-12-01 Thread Alex Deucher
Just query the metrics table directly rather than going through an extra level of functions. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 114 +++--- 1 file changed, 20 insertions(+), 94 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/

[PATCH 2/5] drm/amdgpu/powerplay/psm: return an error in power state init

2020-12-01 Thread Alex Deucher
Rather than just silently dropping it. Also fixes a set but unused variable warning. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/

[PATCH 1/5] drm/amdgpu/powerplay/vega10: handle error in getting pptable

2020-12-01 Thread Alex Deucher
Rather than just silently dropping it. Also fixes a set but unused variable warning. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/d

RE: [PATCH] drm/amd/pm: invalidate hdp before CPU access the memory written by GPU

2020-12-01 Thread Lazar, Lijo
[AMD Public Use] Reviewed-by: Lijo Lazar -Original Message- From: amd-gfx On Behalf Of Evan Quan Sent: Tuesday, December 1, 2020 2:39 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Quan, Evan Subject: [PATCH] drm/amd/pm: invalidate hdp before CPU access the memory writ

Re: [PATCH] tests/amdgpu: Fix a typo

2020-12-01 Thread Deucher, Alexander
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Alex Deucher libdrm uses gitlab MRs now: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests Alex From: Tuikov, Luben Sent: Monday, November 30, 2020 5:12 PM To: amd-gfx@lists.freedesktop.o

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-12-01 Thread Dan Carpenter
On Mon, Nov 23, 2020 at 05:32:51PM -0800, Nick Desaulniers wrote: > On Sun, Nov 22, 2020 at 8:17 AM Kees Cook wrote: > > > > On Fri, Nov 20, 2020 at 11:51:42AM -0800, Jakub Kicinski wrote: > > > If none of the 140 patches here fix a real bug, and there is no change > > > to machine code then it so

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-12-01 Thread Dan Carpenter
On Sun, Nov 22, 2020 at 08:17:03AM -0800, Kees Cook wrote: > On Fri, Nov 20, 2020 at 11:51:42AM -0800, Jakub Kicinski wrote: > > On Fri, 20 Nov 2020 11:30:40 -0800 Kees Cook wrote: > > > On Fri, Nov 20, 2020 at 10:53:44AM -0800, Jakub Kicinski wrote: > > > > On Fri, 20 Nov 2020 12:21:39 -0600 Gusta

Re: [PATCH 31/40] drm/amd/pm/powerplay/kv_dpm: Remove unused variable 'ret'

2020-12-01 Thread Alex Deucher
On Thu, Nov 26, 2020 at 8:43 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/kv_dpm.c: In function > ‘kv_dpm_powergate_uvd’: > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/kv_dpm.c:1678:6: warning: > variable ‘ret’ set but n

Re: [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu

2020-12-01 Thread Christian König
The page tables can be enabled/disabled on a per VMID basis, but memory management in the core kernel works with pages. So you need a relocation table just because of this. Additional to that the TLB is more than big enough, so there isn't much performance gain if you use huge pages. Please

Re: [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu

2020-12-01 Thread Smith John
Hi Christian, Thanks for your reply. I agree with you that the VMID0 is special and remapping is important. I was not sure if different VIMDs could have different settings, such as enable/disable page tables. Or to put it another way, I was wondering if the hardware supports purely physical addres

Re: [PATCH v2 01/20] drm/amdgpu: Fix trailing whitespaces

2020-12-01 Thread Christian König
Reviewed-by: Christian König on patch #1 and #15. Acked-by: Christian König on patch #2 and #16. Regards, Christian. Am 01.12.20 um 11:35 schrieb Thomas Zimmermann: Adhere to kernel coding style. Signed-off-by: Thomas Zimmermann Acked-by: Alex Deucher Acked-by: Sam Ravnborg Cc: Alex Deuc

[PATCH v2 17/20] drm/vboxvideo: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert vboxvideo to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Hans de Goede --- drivers/gpu/drm/vboxvideo/vbox_drv.c | 11 ++- drivers/gpu/drm/vboxvideo/vbox_irq.c | 4 +++-

[PATCH v2 20/20] drm: Upcast struct drm_device.dev to struct pci_device; replace pdev

2020-12-01 Thread Thomas Zimmermann
We have DRM drivers based on USB, SPI and platform devices. All of them are fine with storing their device reference in struct drm_device.dev. PCI devices should be no exception. Therefore struct drm_device.pdev is deprecated. Instead upcast from struct drm_device.dev with to_pci_dev(). PCI-specif

[PATCH v2 16/20] drm/radeon: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert radeon to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Alex Deucher Cc: Alex Deucher Cc: Christian König --- drivers/gpu/drm/radeon/atombios_encoders.c| 6 +- drivers/gpu/drm/radeon/r100.c

[PATCH v2 19/20] drm/vmwgfx: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert vmwgfx to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Zack Rusin Acked-by: Sam Ravnborg Cc: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 8 drivers/gpu/drm/vmwgfx/v

[PATCH v2 18/20] drm/virtgpu: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert virtgpu to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/vir

[PATCH v2 12/20] drm/mgag200: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert mgag200 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg --- drivers/gpu/drm/mgag200/mgag200_drv.c | 20 +++- drivers/gpu/drm/mgag200/mgag200_i2c.c | 2 +- drivers/gpu/dr

[PATCH v2 14/20] drm/qxl: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert qxl to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.c | 2 +- drivers/gpu/drm/qxl/qxl_ioctl.c | 3 ++- drivers/gpu/drm/qxl/qxl_irq.c

[PATCH v2 15/20] drm/radeon: Fix trailing whitespaces

2020-12-01 Thread Thomas Zimmermann
Adhere to kernel coding style. Signed-off-by: Thomas Zimmermann Acked-by: Alex Deucher Cc: Alex Deucher Cc: Christian König --- drivers/gpu/drm/radeon/r100.c | 2 +- drivers/gpu/drm/radeon/radeon_kms.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/dr

[PATCH v2 10/20] drm/i915/gt: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/intel_ggtt.c | 10

[PATCH v2 11/20] drm/i915/gvt: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gvt/cfg_space.c | 5 +++-- drivers/gpu/drm/i915/gvt/firmware.c | 10 +-

[PATCH v2 13/20] drm/nouveau: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert nouveau to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/arb.c | 12 +++- drivers/gpu/drm/nouveau/dispnv04/disp.h | 14 -- driver

[PATCH v2 09/20] drm/i915: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. v2: * move gt/ and gvt/ changes into separate patches Signed-off-by: Thomas Zimmermann Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/display/intel

[PATCH v2 08/20] drm/hibmc: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert hibmc to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Xinliang Liu Cc: Tian Tao Cc: John Stultz Cc: Xinwei Kong Cc: Chen Feng --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.

[PATCH v2 06/20] drm/gma500: Fix trailing whitespaces

2020-12-01 Thread Thomas Zimmermann
Adhere to kernel coding style. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_device.c | 8 drivers/gpu/drm/gma500/intel_bios.c | 4 ++-- drivers/gpu/drm/gma500/oaktrail_device.c | 2 +- drivers/gpu/drm/gma500/psb_

[PATCH v2 03/20] drm/ast: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert ast to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg --- drivers/gpu/drm/ast/ast_drv.c | 4 ++-- drivers/gpu/drm/ast/ast_main.c | 25 + drivers/gpu/drm/ast/ast_m

[PATCH v2 05/20] drm/cirrus: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert cirrus to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Gerd Hoffmann --- drivers/gpu/drm/tiny/cirrus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/cirrus

[PATCH v2 04/20] drm/bochs: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert bochs to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_drv.c | 1 - drivers/gpu/drm/bochs/bochs_hw.c | 4 ++-- 2 files changed, 2 inser

[PATCH v2 07/20] drm/gma500: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert gma500 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_device.c| 22 - drivers/gpu/drm/gma500/cdv_intel_crt.c

[PATCH v2 02/20] drm/amdgpu: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert amdgpu to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Alex Deucher Acked-by: Sam Ravnborg Cc: Alex Deucher Cc: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 ---

[PATCH v2 00/20] drm: Move struct drm_device.pdev to legacy

2020-12-01 Thread Thomas Zimmermann
The pdev field in struct drm_device points to a PCI device structure and goes back to UMS-only days when all DRM drivers were for PCI devices. Meanwhile we also support USB, SPI and platform devices. Each of those uses the generic device stored in struct drm_device.dev. To reduce duplication and r

[PATCH v2 01/20] drm/amdgpu: Fix trailing whitespaces

2020-12-01 Thread Thomas Zimmermann
Adhere to kernel coding style. Signed-off-by: Thomas Zimmermann Acked-by: Alex Deucher Acked-by: Sam Ravnborg Cc: Alex Deucher Cc: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdg

Re: [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu

2020-12-01 Thread Christian König
Am 01.12.20 um 07:58 schrieb Smith John: Hello! I was trying to figure out the impact of gpu page tables on applications' performance. I noticed that there are 16 vmids supported by the hardware /Vega 10/. Is it possible to use physical address directly in some vmids, or use physical address g

Re: [PATCH 09/15] drm/nouveau: Remove references to struct drm_device.pdev

2020-12-01 Thread Thomas Zimmermann
Hi Sam Am 24.11.20 um 22:42 schrieb Sam Ravnborg: Hi Thomas. On Tue, Nov 24, 2020 at 12:38:18PM +0100, Thomas Zimmermann wrote: Using struct drm_device.pdev is deprecated. Convert nouveau to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Ben Skeggs Sugg

[PATCH] drm/amd/pm: invalidate hdp before CPU access the memory written by GPU

2020-12-01 Thread Evan Quan
To eliminate the possible influence by outdated HDP read cache. Change-Id: I93ab87a44d146ca546ca08be21b979ea6713c6af Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c | 3 +-- drivers/gpu/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c | 3 +-- drivers/gpu/drm/amd/

Re: [PATCH 32/40] drm/amd/display/amdgpu_dm/amdgpu_dm: Mark 'link_bandwidth_kbps' as __maybe_unused

2020-12-01 Thread Lee Jones
On Mon, 30 Nov 2020, Alex Deucher wrote: > On Thu, Nov 26, 2020 at 8:43 AM Lee Jones wrote: > > > > 'link_bandwidth_kbps' is always obtained, but only used if > > CONFIG_DRM_AMD_DC_DCN is defined. > > Probably better to just move this under CONFIG_DRM_AMD_DC_DCN. I'll > send a patch. I conside

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-12-01 Thread Martin K. Petersen
Gustavo, > This series aims to fix almost all remaining fall-through warnings in > order to enable -Wimplicit-fallthrough for Clang. Applied 20-22,54,120-124 to 5.11/scsi-staging, thanks. -- Martin K. Petersen Oracle Linux Engineering ___ amd-g

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-12-01 Thread Gustavo A. R. Silva
On Tue, Dec 01, 2020 at 12:52:27AM -0500, Martin K. Petersen wrote: > > Gustavo, > > > This series aims to fix almost all remaining fall-through warnings in > > order to enable -Wimplicit-fallthrough for Clang. > > Applied 20-22,54,120-124 to 5.11/scsi-staging, thanks. Awesome! :) Thanks, Mart