[PATCH] drm/amdgpu: fix NULL err for sriov detect

2017-12-13 Thread Chunming Zhou
[ 21.841536] BUG: KASAN: null-ptr-deref in soc15_set_ip_blocks+0x4f/0x2e0 [amdgpu] Change-Id: I182dfed95c362123a75feafe44fa2ad3f3f35cac Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/soc15.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gp

Re: [PATCH 4/6] drm/ttm: init locked again to prevent incorrect unlock

2017-12-13 Thread Christian König
Am 13.12.2017 um 03:06 schrieb He, Roger: That is a bug fix, isn't it? If yes maybe add CC:stable and commit it first before all other patches. Fortunately so far there is no issue directly resulted from that. Yeah, but that is irrelevant. Patches are classified as fix if they fix so

Re: [PATCH 3/3] drm/ttm: enable eviction for Per-VM-BO

2017-12-13 Thread Christian König
Am 13.12.2017 um 06:17 schrieb Roger He: Change-Id: I0c6ece0decd18d30ccc94e5c7ca106d351941c62 Signed-off-by: Roger He --- drivers/gpu/drm/ttm/ttm_bo.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c i

Re: [PATCH 1/3] drm/ttm: add allow_reserved_eviction and resv into ttm_operation_ctx

2017-12-13 Thread Christian König
Am 13.12.2017 um 06:17 schrieb Roger He: allow_reserved_eviction: Allow eviction of reserved BOs resv: Reservation object to allow reserved evictions with Change-Id: I01ea482e8c7470014196eb218e2ff8913306eef0 Signed-off-by: Roger He Reviewed-by: Christian König --- include/drm/ttm/ttm_bo_

Re: [PATCH 29/37] PCI: Add pci_enable_atomic_ops_to_root

2017-12-13 Thread Jason Gunthorpe
On Tue, Dec 12, 2017 at 05:27:07PM -0600, Bjorn Helgaas wrote: > [+cc Ram, Michal, Ariel, Doug, Jason] > > The [29/37] in the subject makes it look like this is part of a larger > series, but I can't find the rest of it on linux-pci or linux-kernel. Didn't find the cover letter, but the AMD patch

Re: AMD WX7100 screen display problem on AArch64 architecture server.

2017-12-13 Thread Michel Dänzer
On 2017-12-13 08:14 AM, Lvzhihong (ReJohn) wrote: > Hi, > >    We met a problem on ubuntu17.10 for arm server with amdgpu(AMD > RADEON PRO WX7100),  we use open source driver which are integrated in > ubuntu17.10. And the architecture is AArch64-linux-gnu. > > we install : > >  

Re: [PATCH 29/37] PCI: Add pci_enable_atomic_ops_to_root

2017-12-13 Thread Bjorn Helgaas
[+cc Ram, Michal, Ariel, Doug, Jason] The [29/37] in the subject makes it look like this is part of a larger series, but I can't find the rest of it on linux-pci or linux-kernel. I don't want to merge a new interface unless there's an in-tree user of it. I assume the rest of the series includes

Re: [PATCH 2/3] drm/amd/amdgpu: init allow_reserved_eviction and resv when create a new bo

2017-12-13 Thread Christian König
Am 13.12.2017 um 06:17 schrieb Roger He: Change-Id: I0c6571c2a64e6c5bdad80ccbcccb40eba1c20b4e Signed-off-by: Roger He We should supply the resv object in amdgpu_cs_bo_validate() as well, or otherwise the deleted object handling won't work as desired any more. Apart from that looks good to m

Re: [PATCH 2/3] drm/amd/amdgpu: init allow_reserved_eviction and resv when create a new bo

2017-12-13 Thread Michel Dänzer
On 2017-12-13 06:17 AM, Roger He wrote: > Change-Id: I0c6571c2a64e6c5bdad80ccbcccb40eba1c20b4e > Signed-off-by: Roger He > --- > 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/dri

[PATCH] drm/amd/pp: reset dpm level when adjust power state

2017-12-13 Thread Rex Zhu
Change-Id: I312d1cf7b964d25d698b02800ce7cd06ac33b28f Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c index ffa44

[PATCH] drm/amd/pp: need to notify umd the pstate clock.

2017-12-13 Thread Rex Zhu
Change-Id: I344731cc6398c40976e08a125808bbfa85cb59a3 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 43 +- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 36 ++ drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 + 3

Re: [PATCH] drm/amdgpu: Fix no irq process when evict vram

2017-12-13 Thread Mike Lothian
Is this a follow on to https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-4.16-wip&id=b9141cd3930e390f156739829ca9589fda7926e4 On Wed, 13 Dec 2017 at 07:11 Yintian Tao wrote: > When unload amdgpu driver we use sdma to evict vram but there is no > irq process after sdma completed work

RE: [PATCH] drm/amdgpu: Fix no irq process when evict vram

2017-12-13 Thread Tao, Yintian
Hi Lothian First of all, thanks for your review. No, it is the patch which achieve the same function for the issue. But it is the root cause of fence timeout. The patch b9141cd3

Re: [PATCH] drm/amdgpu: Add gpu_recovery parameter

2017-12-13 Thread Christian König
Am 12.12.2017 um 20:16 schrieb Andrey Grodzovsky: Add new parameter to control GPU recovery procedure. Retire old way of disabling GPU recovery by setting lockup_timeout == 0 and set default for lockup_timeout to 10s. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu.h

Re: [PATCH] drm/amdgpu: remove some old gc 9.x registers

2017-12-13 Thread Christian König
Am 12.12.2017 um 21:11 schrieb Alex Deucher: Leftover from bring up. Signed-off-by: Alex Deucher Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h | 8 ++-- .../drm/amd/include/asic_reg/gc/gc_9_0_default.h | 7 .../drm/amd/include/asic_reg/gc/gc_

Re: [PATCH 1/3] drm/amdgpu: drop scratch regs save and restore from S3/S4 handling

2017-12-13 Thread Christian König
Am 13.12.2017 um 00:52 schrieb Harry Wentland: On 2017-12-12 03:27 PM, Alex Deucher wrote: The expectation is that the base driver doesn't mess with these. Some components interact with these directly so let the components handle these directly. Signed-off-by: Alex Deucher Series is Reviewed-

Re: [PATCH 1/2] drm/amdgpu:implement invalid tlbs with kiq

2017-12-13 Thread Christian König
Am 13.12.2017 um 04:42 schrieb Monk Liu: Implement gart flush gpu tlbs with INVALIDATE_TLBS package on gfx9/gmc9 Change-Id: I851fb93db17e04d19959768c01ba6c677cbb777c Signed-off-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 1 + d

Re: [PATCH 2/2] drm/amdgpu:impl virt_gart_flush_tlbs

2017-12-13 Thread Christian König
Am 13.12.2017 um 04:42 schrieb Monk Liu: a new gart flush tlb function implemented for SRIOV, and invoke it during RUNTIME for gart flush TLBs this could avoid the issue that gart flush (via CPU MMIO) being interrupted by word switch which lead to DMAR error on Host/IOMMU side, with this functio

Re: [PATCH] drm/amdgpu: Add gpu_recovery parameter

2017-12-13 Thread Andrey Grodzovsky
On 12/13/2017 07:20 AM, Christian König wrote: Am 12.12.2017 um 20:16 schrieb Andrey Grodzovsky: Add new parameter to control GPU recovery procedure. Retire old way of disabling GPU recovery by setting lockup_timeout == 0 and set default for lockup_timeout to 10s. Signed-off-by: Andrey Grod

Re: [PATCH] drm/amdgpu: Fix no irq process when evict vram

2017-12-13 Thread Mike Lothian
I'm hoping this fixes the slow shutdown time of my laptop, which seems to switch the card back on right before switching off It's been an issue since the introduction of KIQ (around the same time) On Wed, 13 Dec 2017 at 12:07 Tao, Yintian wrote: > Hi Lothian > > > > > > First of all, thanks fo

Re: [PATCH 2/2] drm/amdgpu:impl virt_gart_flush_tlbs

2017-12-13 Thread Alex Deucher
On Tue, Dec 12, 2017 at 10:42 PM, Monk Liu wrote: > a new gart flush tlb function implemented for SRIOV, > and invoke it during RUNTIME for gart flush TLBs > > this could avoid the issue that gart flush (via CPU MMIO) > being interrupted by word switch which lead to DMAR error > on Host/IOMMU side

Re: [PATCH] drm/amdgpu: fix NULL err for sriov detect

2017-12-13 Thread Deucher, Alexander
Reviewed-by: Alex Deucher From: amd-gfx on behalf of Chunming Zhou Sent: Wednesday, December 13, 2017 4:03 AM To: amd-gfx@lists.freedesktop.org Cc: Zhou, David(ChunMing); Liu, Monk Subject: [PATCH] drm/amdgpu: fix NULL err for sriov detect [ 21.841536] BUG:

Re: [PATCH] drm/amd/pp: reset dpm level when adjust power state

2017-12-13 Thread Deucher, Alexander
Acked-by: Alex Deucher From: amd-gfx on behalf of Rex Zhu Sent: Wednesday, December 13, 2017 4:52:48 AM To: amd-gfx@lists.freedesktop.org Cc: Zhu, Rex Subject: [PATCH] drm/amd/pp: reset dpm level when adjust power state Change-Id: I312d1cf7b964d25d698b02800ce7

Re: [PATCH] drm/amdgpu: Fix no irq process when evict vram

2017-12-13 Thread Deucher, Alexander
This seems like a good thing to do in general even with Monk's fix. Acked-by: Alex Deucher From: amd-gfx on behalf of Yintian Tao Sent: Tuesday, December 12, 2017 10:37:43 PM To: amd-gfx@lists.freedesktop.org Cc: Tao, Yintian Subject: [PATCH] drm/amdgpu: Fix

Re: [PATCH] drm/amd/pp: need to notify umd the pstate clock.

2017-12-13 Thread Alex Deucher
On Wed, Dec 13, 2017 at 4:52 AM, Rex Zhu wrote: > Change-Id: I344731cc6398c40976e08a125808bbfa85cb59a3 > Signed-off-by: Rex Zhu Please include a better patch description. Something like: Flag the stable pstate clocks in sysfs so userspace knows what clocks are in use when stable pstate is selec

Re: [PATCH] drm/amdgpu: Add gpu_recovery parameter

2017-12-13 Thread Christian König
Am 13.12.2017 um 13:53 schrieb Andrey Grodzovsky: On 12/13/2017 07:20 AM, Christian König wrote: Am 12.12.2017 um 20:16 schrieb Andrey Grodzovsky: Add new parameter to control GPU recovery procedure. Retire old way of disabling GPU recovery by setting lockup_timeout == 0 and set default for

Re: [PATCH] drm/amdgpu: add enumerate for PDB/PTB

2017-12-13 Thread Christian König
Am 13.12.2017 um 08:19 schrieb Chunming Zhou: Change-Id: Ic1f39d3bc853e9e4259d3e03a22920eda822eec5 Signed-off-by: Chunming Zhou You dropped reversing the ordering and replaced that with noting the root level separately? Nifty idea. Just please drop AMDGPU_VM_SUBPTB, translate further is som

[PATCH v2] drm/amdgpu: Add gpu_recovery parameter

2017-12-13 Thread Andrey Grodzovsky
Add new parameter to control GPU recovery procedure. Retire old way of disabling GPU recovery by setting lockup_timeout == 0 and set default for lockup_timeout to 10s. v2: Add auto logic where reset is disabled for bare metal and enabled for SR-IOV. Allow forced reset from debugfs. Signed-off-by:

Re: FW: [PATCH v2 2/2] drm/amdgpu: Move to gtt before cpu accesses dma buf.

2017-12-13 Thread Samuel Li
For the record. On 2017-12-13 01:26 PM, Christian König wrote: > Actually we try to avoid that drivers define their own dma_buf_ops in DRM. > > That's why you have all those callbacks in drm_driver which just mirror the > dma_buf interface but unpack the GEM object from the dma-buf object. > >

Re: [PATCH 1/6] drm/ttm: add on_alloc_stage and reservation into ttm_operation_ctx

2017-12-13 Thread Thomas Hellstrom
Hi, I think this series is quite poorly documented. We should have a log message explaining the purpose of the commit. Also since it's not obvious what the series is attempting to achieve, please add a 0/X series header message.. /Thomas On 12/12/2017 10:33 AM, Roger He wrote: on_alloc_sta

[PATCH] drm/amdgpu: Simplify amdgpu_lockup_timeout usage.

2017-12-13 Thread Andrey Grodzovsky
With introduction of amdgpu_gpu_recovery we don't need any more to rely on amdgpu_lockup_timeout == 0 for disabling GPU reset. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 4 ++-- drivers/gpu/drm/amd/a

Re: FW: [PATCH v2 2/2] drm/amdgpu: Move to gtt before cpu accesses dma buf.

2017-12-13 Thread Deucher, Alexander
Please send the drm prime patch to dri-devel if you didn't already. Alex From: amd-gfx on behalf of Samuel Li Sent: Wednesday, December 13, 2017 2:17:49 PM To: Koenig, Christian; amd-gfx@lists.freedesktop.org Subject: Re: FW: [PATCH v2 2/2] drm/amdgpu: Move to

Re: [PATCH 2/2] drm/ttm: completely rework ttm_bo_delayed_delete

2017-12-13 Thread Thomas Hellstrom
Hi, Christian, While this has probably already been committed, and looks like a nice cleanup there are two things below I think needs fixing. On 11/15/2017 01:31 PM, Christian König wrote: There is no guarantee that the next entry on the ddelete list stays on the list when we drop the locks.

[PATCH 00/30] DC Patches Dec 13, 2017

2017-12-13 Thread Harry Wentland
* Fix MST headless hotplug * Add bunch of error prints for missing BIOS implementations * Remove log spam for long reg waits * Bunch of DCN fixes and cleanup of HW programming code Andrew Jiang (1): drm/amd/display: dal 3.1.27 Anthony Koo (1): drm/amd/display: Fix check for whether dmcu f

[PATCH 12/30] drm/amd/display: fix rotated surface scaling

2017-12-13 Thread Harry Wentland
From: Dmytro Laktyushkin This is a resubmit with the errors fixed Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 61 +++ 1 file changed, 29 insertions(+), 32 deletions(-) diff --g

[PATCH 14/30] drm/amd/display: fix global sync param retrieval when not pipe splitting

2017-12-13 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c | 8 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 12 ++-- drivers/gpu/drm/amd/display/dc/inc/dcn_ca

[PATCH 03/30] drm/amd/display: Error print when ATOM BIOS implementation is missing

2017-12-13 Thread Harry Wentland
We fail apply_ctx_to_hw when crtc_source_select is missing. This isn't really helpful at this point. It would aid ASIC bringup if we log an error when we can't find the implementation for the ATOM version. Do the same for all other function points in the command table that do a NULL check before b

[PATCH 10/30] drm/amd/display: dal 3.1.26

2017-12-13 Thread Harry Wentland
From: Eric Yang Signed-off-by: Eric Yang Reviewed-by: Andrew Jiang Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 3b49ca3027b6

[PATCH 11/30] drm/amd/display: clean up dcn soc params

2017-12-13 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 29 -- .../gpu/drm/amd/display/dc/dml/display_mode_lib.c | 29 -- .../drm/amd/display/d

[PATCH 04/30] drm/amd/display: Don't spam debug log on long reg waits

2017-12-13 Thread Harry Wentland
Certain reg waits take up to a frame. Don't spam the log when this happens. Signed-off-by: Harry Wentland Reviewed-by: Jordan Lazare Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/os_types.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/a

[PATCH 20/30] drm/amd/display: Clean up DCN cursor code

2017-12-13 Thread Harry Wentland
From: Eric Bernstein Signed-off-by: Eric Bernstein Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 29 --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h | 5 2 files changed, 5 insertions(+), 29 deletions(-

[PATCH 21/30] drm/amd/display: Call validate_fbc should_enable_fbc

2017-12-13 Thread Harry Wentland
validate_fbc never fails a modeset. It's simply used to decide whether to use FBC or not. Calling it validate_fbc might be confusing to some so rename it to should_enable_fbc. With that let's also remove the DC_STATUS return code and return bool and make enable_fbc a void function since we never c

[PATCH 18/30] drm/amd/display: reprogram surface config on scaling change

2017-12-13 Thread Harry Wentland
From: Eric Yang When plane size changes, we need to reprogram surface pitch in addition to viewport and scaler. This change is a conservative way to make this happen. However it could be more optimized to move pitch programming into mem_program_viewport. Signed-off-by: Eric Yang Reviewed-by: An

[PATCH 09/30] drm/amd/display: Fix rehook MST display not light back on

2017-12-13 Thread Harry Wentland
From: "Jerry (Fangzhi) Zuo" Original applied dm_restore_drm_connector_state() has got removed. Set link status to BAD before hotplug() event could trigger another modeset from userspace. The fix "Fix MST daisy chain SST not light up" commit makes so it is trying to create a stream prior to dc_si

[PATCH 02/30] drm/amd/display: Remove dead enable_plane function definition and call

2017-12-13 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Jordan Lazare Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 --- drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h | 4 2 files changed, 7 deletions(-) diff --git a

[PATCH 25/30] drm/amd/display: Only blank DCN when we have set_blank implementation

2017-12-13 Thread Harry Wentland
From: Yue Hin Lau Also rename timing_generator to optc Signed-off-by: Yue Hin Lau Reviewed-by: Eric Bernstein Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/Makefile | 2 +- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 33 +- .../{dcn10_ti

[PATCH 22/30] drm/amd/display: integrating optc pseudocode

2017-12-13 Thread Harry Wentland
From: Yue Hin Lau Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../drm/amd/display/dc/dcn10/dcn10_timing_generator.h | 19 ++- .../gpu/drm/amd/display/dc/inc/hw/timing_generator.h | 19 +++ 2 files changed, 37 insertions(+),

[PATCH 28/30] drm/amd/display: check for null before calling is_blanked

2017-12-13 Thread Harry Wentland
From: Yue Hin Lau Signed-off-by: Yue Hin Lau Reviewed-by: Eric Bernstein Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/cor

[PATCH 24/30] drm/amd/display: Put dcn_mi_registers with other structs

2017-12-13 Thread Harry Wentland
From: Eric Bernstein Signed-off-by: Eric Bernstein Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h | 14 +- drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 1 - 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/am

[PATCH 05/30] drm/amd/display: Define BLNDGAM_CONFIG_STATUS

2017-12-13 Thread Harry Wentland
From: Vitaly Prosyak Signed-off-by: Vitaly Prosyak Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h b/drivers/gpu/drm/amd/display/dc/dcn

[PATCH 15/30] drm/amd/display: Add hdr_supported flag

2017-12-13 Thread Harry Wentland
From: Yongqiang Sun Signed-off-by: Yongqiang Sun Reviewed-by: Anthony Koo Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h index 929

[PATCH 01/30] drm/amd/display: Print type if we get wrong ObjectID from bios

2017-12-13 Thread Harry Wentland
We've seen a bunch of issues where we can't get the connector from vbios for what we think should be a valid connector id. Print some more info when this happens. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.

[PATCH 07/30] drm/amd/display: Declare and share color space types for dcn's

2017-12-13 Thread Harry Wentland
From: Vitaly Prosyak Signed-off-by: Vitaly Prosyak Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 145 + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h | 2 +- .../gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c

[PATCH 17/30] drm/amd/display: Remove dwbc from pipe_ctx

2017-12-13 Thread Harry Wentland
From: Eric Bernstein Signed-off-by: Eric Bernstein Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/inc/core_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core

[PATCH 23/30] drm/amd/display: hubp refactor

2017-12-13 Thread Harry Wentland
From: Yue Hin Lau Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 18 +- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h | 216 +++--- 2 files changed, 120 insertions(+), 114 deletions(-) d

[PATCH 19/30] drm/amd/display: fix 180 full screen pipe split

2017-12-13 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Yongqiang Sun Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resou

[PATCH 26/30] drm/amd/display: Fix unused variable warnings.

2017-12-13 Thread Harry Wentland
From: "Leo (Sunpeng) Li" ... since linux kernel compile treats warnings as errors. Signed-off-by: Leo (Sunpeng) Li Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc

[PATCH 08/30] drm/amd/display: Fix check for whether dmcu fw is running

2017-12-13 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 11 ++-- drivers/gpu/drm/amd/display/dc/dce/dce_abm.c| 18 +++-- drivers/gpu/drm/amd/display/dc/dce/dce_abm.h| 8 ++ dri

[PATCH 16/30] drm/amd/display: Use the maximum link setting which EDP reported.

2017-12-13 Thread Harry Wentland
From: Hugo Hu Signed-off-by: Hugo Hu Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_

[PATCH 29/30] drm/amd/display: Update FMT and OPPBUF functions

2017-12-13 Thread Harry Wentland
From: Eric Bernstein Updates to FMT and OPPBUF programming from HW team pseudocode review. Signed-off-by: Eric Bernstein Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 12 +--- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c | 72

[PATCH 30/30] drm/amd/display: Expose dpp1_set_cursor_attributes

2017-12-13 Thread Harry Wentland
From: Yue Hin Lau Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h b/drivers/gpu/drm/amd/display/dc/dcn10/d

[PATCH 06/30] drm/amd/display: Do DC mode-change check after stream creation

2017-12-13 Thread Harry Wentland
From: "Leo (Sunpeng) Li" Do DC level mode change checks (via dc_stream_state) only when creating a new stream, as this check is uneccessary without a new dc_stream_state anyways. Doing so better demonstrates the intent of this mode-change check, in comparison to guarding it with the 'enable' flag

[PATCH 13/30] drm/amd/display: Update HUBP

2017-12-13 Thread Harry Wentland
From: Eric Bernstein Signed-off-by: Eric Bernstein Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 31 --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h | 7 + drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h

Re: [PATCH 02/30] drm/amd/display: Remove dead enable_plane function definition and call

2017-12-13 Thread Tom St Denis
Would this fix the regression I found on Carrizo after the drm-next rebase? Tom On December 13, 2017 5:34:34 PM EST, Harry Wentland wrote: >Signed-off-by: Harry Wentland >Reviewed-by: Jordan Lazare >Reviewed-by: Tony Cheng >Acked-by: Harry Wentland >--- > drivers/gpu/drm/amd/display/dc/dc

[PATCH 27/30] drm/amd/display: dal 3.1.27

2017-12-13 Thread Harry Wentland
From: Andrew Jiang Signed-off-by: Andrew Jiang Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 1b1c7300

RE: FW: [PATCH v2 2/2] drm/amdgpu: Move to gtt before cpu accesses dma buf.

2017-12-13 Thread Li, Samuel
Will do after some basic testing. Sam From: Deucher, Alexander Sent: Wednesday, December 13, 2017 2:49 PM To: Li, Samuel ; Koenig, Christian ; amd-gfx@lists.freedesktop.org Subject: Re: FW: [PATCH v2 2/2] drm/amdgpu: Move to gtt before cpu accesses dma buf. Please send the drm prime patch to

Re: [PATCH 02/30] drm/amd/display: Remove dead enable_plane function definition and call

2017-12-13 Thread Tom St Denis
Would this fix the regression I found on Carrizo after the drm-next rebase? Tom On December 13, 2017 5:34:34 PM EST, Harry Wentland wrote: >Signed-off-by: Harry Wentland >Reviewed-by: Jordan Lazare >Reviewed-by: Tony Cheng >Acked-by: Harry Wentland >--- > drivers/gpu/drm/amd/display/dc/dc

[PATCH] drm/ttm: init locked again to prevent incorrect unlock

2017-12-13 Thread Roger He
Change-Id: Icc8b5112570429f24e90d52484df2728c546f85b Signed-off-by: Roger He Reviewed-by: Christian König Cc: sta...@vger.kernel.org --- drivers/gpu/drm/ttm/ttm_bo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index a3f908c..098

[PATCH] drm/amdgpu: Fix a bug that vm size is wrong on Raven

2017-12-13 Thread Yong Zhao
Change-Id: Id522c1cbadb8c069720f4e64a31cff42cd014733 Signed-off-by: Yong Zhao --- 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 709587d..3b9eb1a 1006

[PATCH] drm/amdgpu: add enumerate for PDB/PTB v2

2017-12-13 Thread Chunming Zhou
v2: remove SUBPTB member Change-Id: Ic1f39d3bc853e9e4259d3e03a22920eda822eec5 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 70 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 12 ++ 2 files changed, 63 insertions(+), 19 deletions(-)

Re: [PATCH] drm/amdgpu: add enumerate for PDB/PTB

2017-12-13 Thread Chunming Zhou
On 2017年12月14日 02:33, Christian König wrote: Am 13.12.2017 um 08:19 schrieb Chunming Zhou: Change-Id: Ic1f39d3bc853e9e4259d3e03a22920eda822eec5 Signed-off-by: Chunming Zhou You dropped reversing the ordering and replaced that with noting the root level separately? Nifty idea. Yes. Just

RE: [PATCH] drm/amdgpu: Add gpu_recovery parameter

2017-12-13 Thread Liu, Monk
Andrey You patch looks breaks the logic for SRIOV, please check function "xgpu_ai_mailbox_flr_work" This function manually triggers GPU_RECOVER by the will of hypervisor. Your check of : + if (!amdgpu_gpu_recovery) { + DRM_INFO("GPU recovery disabled.\n"); + ret

RE: [PATCH] drm/amdgpu: Add gpu_recovery parameter

2017-12-13 Thread Liu, Monk
> Problem with this is that amdgpu_check_soft_reset will not be called, this > function which prints which IP block was hung even when later we opt not to > recover. I suggest instead to add a bool force_reset parameter to amdgpu_gpu_recover which will override amdgpu_gpu_recovery and we can set

Re: [PATCH 2/2] drm/ttm: completely rework ttm_bo_delayed_delete

2017-12-13 Thread Thomas Hellstrom
On 12/13/2017 09:55 PM, Thomas Hellstrom wrote: Hi, Christian, While this has probably already been committed, and looks like a nice cleanup there are two things below I think needs fixing. On 11/15/2017 01:31 PM, Christian König wrote: There is no guarantee that the next entry on the ddelet

RE: [PATCH] drm/amdgpu: Simplify amdgpu_lockup_timeout usage.

2017-12-13 Thread Liu, Monk
- timeout = msecs_to_jiffies(amdgpu_lockup_timeout); - if (timeout == 0) { - /* -* FIXME: -* Delayed workqueue cannot use it directly, -* so the scheduler will not use delayed w

RE: [PATCH] drm/amdgpu: Simplify amdgpu_lockup_timeout usage.

2017-12-13 Thread Liu, Monk
Oops, sorry I have a wrong watch on the patch KIQ still go directly -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Liu, Monk Sent: 2017年12月14日 15:34 To: Grodzovsky, Andrey ; amd-gfx@lists.freedesktop.org; Koenig, Christian Cc: Grodzovsky,