Re: [PATCH] drm/amdgpu: new ids flag for tmz (v2)

2020-08-05 Thread Pierre-Eric Pelloux-Prayer
Hi Christian, On 30/07/2020 16:46, Christian König wrote: > Am 30.07.20 um 15:54 schrieb Pierre-Eric Pelloux-Prayer: >> Allows UMD to know if TMZ is supported and enabled. >> >> This commit also bumps KMS_DRIVER_MINOR because if we don't >> UMD can't tell if "ids_flags & AMDGPU_IDS_FLAGS_TMZ ==

Re: [PATCH] drm/amdgpu: unlock mutex on error

2020-08-05 Thread Nirmoy
Please remove change-Id before pushing. Acked-by: Nirmoy Das On 8/5/20 10:41 AM, Dennis Li wrote: Make sure unlock the mutex when error happen Signed-off-by: Dennis Li Change-Id: I6c36a193df5fe70516282d8136b4eadf32d20915 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

Re: [PATCH 3/8] drm/amd/display: Honor the offset for plane 0.

2020-08-05 Thread daniel
On Tue, Aug 04, 2020 at 11:31:14PM +0200, Bas Nieuwenhuizen wrote: > With modifiers I'd like to support non-dedicated buffers for > images. > > Signed-off-by: Bas Nieuwenhuizen Uh, I think it'd be really good to preceed this with a bugfix (cc: stable) which checks that the offset is 0). And

[PATCH] drm/amdgpu: unlock mutex on error

2020-08-05 Thread Dennis Li
Make sure unlock the mutex when error happen Signed-off-by: Dennis Li Change-Id: I6c36a193df5fe70516282d8136b4eadf32d20915 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c index a0ea663ecdbc..5e5369abc6fa 100644 ---

Re: [PATCH 6/8] drm/amd/display: Set DC options from modifiers.

2020-08-05 Thread daniel
On Tue, Aug 04, 2020 at 11:31:17PM +0200, Bas Nieuwenhuizen wrote: > This sets the DC tiling options from the modifier, if modifiers > are used for the FB. This patch by itself does not expose the > support yet though. > > There is not much validation yet to limit the scope of this > patch, but

Re: [PATCH] drm/amdgpu: annotate a false positive locking dependency

2020-08-05 Thread Felix Kuehling
The commit headline is misleading. An annotation would be something like replacing mutex_lock with mutex_lock_nested. You're not annotating anything, you're actually changing the locking. Am 2020-08-05 um 9:24 p.m. schrieb Dennis Li: > [ 264.483189]

Re: Enabling AMDGPU by default for SI & CIK

2020-08-05 Thread Alex Deucher
On Tue, Aug 4, 2020 at 10:48 PM Bridgman, John wrote: > > [AMD Official Use Only - Internal Distribution Only] > > > At the risk of asking a dumb question, does amdgpu default to using DC on SI > and CI ? > DC is disabled by default on SI and CI due to the lack of analog encoder support. > I'm

Re: Amdgpu kernel oops and freezing graphics

2020-08-05 Thread Harvey
Alex, Am 04.08.20 um 22:01 schrieb Alex Deucher: On Tue, Jul 21, 2020 at 2:21 PM Harvey wrote: Alex, tnak you so much - you're my hero! Am 21.07.20 um 18:17 schrieb Alex Deucher: On Mon, Jul 20, 2020 at 4:22 AM Harvey wrote: Hello, this is my first post to this list so please be

Re: [PATCH] drm/amd/mst: clean DP main link status only when unplug mst 1st link

2020-08-05 Thread Rodrigo Siqueira
On 08/04, Wayne Lin wrote: > [Why] > Under DP daisy chain scenario as below: > > Src - Monitor_1 - Monitor_2 > > If unplug 2nd Monitor_2 and plug in again, observe that Monitor_1 > doesn't light up. > > When unplug 2nd monitor, we clear the > dc_link->cur_link_settings.lane_count in

[PATCH][next] drm/amdgpu: fix spelling mistake "paramter" -> "parameter"

2020-08-05 Thread Colin King
From: Colin Ian King There is a spelling mistake in a dev_warn message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-08-05 Thread Colin King
From: Colin Ian King There is a spelling mistake in a DRM_ERROR message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

[PATCH 2/2] drm/amd/powerplay: put VCN/JPEG into PG ungate state before dpm table setup(V3)

2020-08-05 Thread Evan Quan
As VCN related dpm table setup needs VCN be in PG ungate state. Same logics applies to JPEG. V2: fix paste typo V3: code cosmetic Change-Id: I0e4d97ebedc132b7d793dc3f36275066ff999eac Signed-off-by: Evan Quan Tested-by: Matt Coffin Reviewed-by: Alex Deucher ---

[PATCH 1/2] drm/amd/powerplay: update swSMU VCN/JPEG PG logics

2020-08-05 Thread Evan Quan
Add lock protections and avoid unnecessary actions if the PG state is already the same as required. Change-Id: I01400b84151d3ac6e3c8b0d7e264f9a68a9c2092 Signed-off-by: Evan Quan Tested-by: Matt Coffin Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 57

[PATCH] SWDEV-220451 - Query guest's information by VF2PF message - Guest side - part 1

2020-08-05 Thread Bokun Zhang
- Add guest side change to support VF2PF message - Fix coding style Change-Id: I82e5518cb10ec0b19fecaba7e05b02f4b7f2b409 Signed-off-by: Bokun Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h| 29 +- drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h | 276 2 files changed,

Re: [PATCH 1/7] drm/amd/display: Store tiling_flags and tmz_surface on dm_plane_state

2020-08-05 Thread Rodrigo Siqueira
Reviewed-by: Rodrigo Siqueira On 07/30, Nicholas Kazlauskas wrote: > [Why] > Store these in advance so we can reuse them later in commit_tail without > having to reserve the fbo again. > > These will also be used for checking for tiling changes when deciding > to reset the plane or not. > >

Re: [PATCH 2/7] drm/amd/display: Reset plane when tiling flags change

2020-08-05 Thread Rodrigo Siqueira
On 07/30, Nicholas Kazlauskas wrote: > [Why] > Enabling or disable DCC or switching between tiled and linear formats > can require bandwidth updates. > > They're currently skipping all DC validation by being treated as purely > surface updates. > > [How] > Treat tiling_flag changes (which encode

Re: [PATCH 3/7] drm/amd/display: Avoid using unvalidated tiling_flags and tmz_surface in prepare_planes

2020-08-05 Thread Rodrigo Siqueira
Reviewed-by: Rodrigo Siqueira On 07/30, Nicholas Kazlauskas wrote: > [Why] > We're racing with userspace as the flags could potentially change > from when we acquired and validated them in commit_check. > > [How] > We unfortunately can't drop this function in its entirety from > prepare_planes

Re: [PATCH 4/7] drm/amd/display: Use validated tiling_flags and tmz_surface in commit_tail

2020-08-05 Thread Rodrigo Siqueira
Reviewed-by: Rodrigo Siqueira On 07/30, Nicholas Kazlauskas wrote: > [Why] > So we're not racing with userspace or deadlocking DM. > > [How] > These flags are now stored on dm_plane_state itself and acquried and > validated during commit_check, so just use those instead. > > Cc: Daniel Vetter

Re: [PATCH] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-08-05 Thread Joe Perches
eady fixed. This fix is not in today's -next. Perhaps whatever tree it's fixed in should be in -next. $ git show --oneline -s d15fe4ec0435 (HEAD, tag: next-20200805, origin/master, origin/HEAD) Add linux-next specific files for 20200805 $ git grep -i falied drivers drivers/gpu/drm/amd/amdgpu

Re: [PATCH] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-08-05 Thread Alex Deucher
26e7b3a3d691 Author: Colin Ian King Date: Fri Jul 10 09:37:58 2020 +0100 drm/amdgpu: fix spelling mistake "Falied" -> "Failed" There is a spelling mistake in a DRM_ERROR error message. Fix it. Signed-off-by: Colin Ian King Signed-off-by: Alex Deucher

Re: [PATCH] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-08-05 Thread Colin Ian King
There is a spelling mistake in a DRM_ERROR error message. Fix it. > > Signed-off-by: Colin Ian King > Signed-off-by: Alex Deucher > > Alex > >> >> $ git show --oneline -s >> d15fe4ec0435 (HEAD, tag: next-20200805, origin/master, origin/HEAD) Add

[PATCH 5/9] drm/amd/display: Fix LFC multiplier changing erratically

2020-08-05 Thread Qingqing Zhuo
From: Anthony Koo [Why] 1. There is a calculation that is using frame_time_in_us instead of last_render_time_in_us to calculate whether choosing an LFC multiplier would cause the inserted frame duration to be outside of range. 2. We do not handle unsigned integer subtraction correctly and it

[PATCH 3/9] drm/amd/display: Revert regression

2020-08-05 Thread Qingqing Zhuo
From: Alvin Lee [Why] Caused pipe split regression Signed-off-by: Alvin Lee Reviewed-by: Aric Cyr Acked-by: Qingqing Zhuo --- drivers/gpu/drm/amd/display/dc/core/dc.c | 10 -- .../drm/amd/display/dc/dcn20/dcn20_hwseq.c| 114 --

[PATCH 8/9] drm/amd/display: Fix EDID parsing after resume from suspend

2020-08-05 Thread Qingqing Zhuo
From: Stylon Wang [Why] Resuming from suspend, CEA blocks from EDID are not parsed and no video modes can support YUV420. When this happens, output bpc cannot go over 8-bit with 4K modes on HDMI. [How] In amdgpu_dm_update_connector_after_detect(), drm_add_edid_modes() is called after

[PATCH 9/9] drm/amd/display: Blank stream before destroying HDCP session

2020-08-05 Thread Qingqing Zhuo
From: Jaehyun Chung [Why] Stream disable sequence incorretly destroys HDCP session while stream is not blanked and while audio is not muted. This sequence causes a flash of corruption during mode change and an audio click. [How] Change sequence to blank stream before destroying HDCP session.

[PATCH 4/9] drm/amd/display: mpcc black color should not be impacted by pixel encoding format

2020-08-05 Thread Qingqing Zhuo
From: Xiaodong Yan [Why] The format in MPCC should be 444 [How] do not modify the mpcc black color according to pixel encoding format Signed-off-by: Xiaodong Yan Reviewed-by: Eric Yang Acked-by: Qingqing Zhuo --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 8 1

[PATCH 7/9] drm/amd/display: Disconnect pipe separetely when disable pipe split

2020-08-05 Thread Qingqing Zhuo
From: Alvin Lee [Why] When changing pixel formats for HDR (e.g. ARGB -> FP16) there are configurations that change from 2 pipes to 1 pipe. In these cases, it seems that disconnecting MPCC and doing a surface update at the same time(after unlocking) causes some registers to be updated slightly

[PATCH 1/9] drm/amd/display: Adjust static-ness of resource functions

2020-08-05 Thread Qingqing Zhuo
From: Joshua Aberback [Why] Register definitions are asic-specific, so functions that use registers of a particular asic should be static, to be exposed in asic-specific function pointer structures. [How] - make register-definition-using functions static - make some functions non-static, for

[PATCH 6/9] drm/amd/display: Switch to immediate mode for updating infopackets

2020-08-05 Thread Qingqing Zhuo
From: Anthony Koo [Why] Using FRAME_UPDATE will result in infopacket to be potentially updated one frame late. In commit stream scenarios for previously active stream, some stale infopacket data from previous config might be erroneously sent out on initial frame after stream is re-enabled.

[PATCH 2/9] drm/amd/display: Fix incorrect backlight register offset for DCN

2020-08-05 Thread Qingqing Zhuo
From: Aric Cyr [Why] Typo in backlight refactor inctroduced wrong register offset. [How] Change DCE to DCN register map for PWRSEQ_REF_DIV Cc: sta...@vger.kernel.org Signed-off-by: Aric Cyr Reviewed-by: Ashley Thomas Acked-by: Qingqing Zhuo ---

[PATCH 0/9] DC Patches August 10th, 2020

2020-08-05 Thread Qingqing Zhuo
This DC patchset brings improvements in multiple areas. In summary, we highlight: * Fixes on LFC, pipe split, register mapping and others. * Code clean-up. Alvin Lee (2): drm/amd/display: Revert regression drm/amd/display: Disconnect pipe separetely when disable pipe split Anthony Koo

Re: [PATCH 6/7] drm/amd/display: Drop dm_determine_update_type_for_commit

2020-08-05 Thread Rodrigo Siqueira
Reviewed-by: Rodrigo Siqueira On 07/30, Nicholas Kazlauskas wrote: > [Why] > This was added in the past to solve the issue of not knowing when > to stall for medium and full updates in DM. > > Since DC is ultimately decides what requires bandwidth changes we > wanted to make use of it directly

Re: [PATCH][next] drm/amdgpu: fix spelling mistake "paramter" -> "parameter"

2020-08-05 Thread Alex Deucher
On Wed, Aug 5, 2020 at 8:15 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in a dev_warn message. Fix it. > > Signed-off-by: Colin Ian King Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-08-05 Thread Alex Deucher
On Wed, Aug 5, 2020 at 7:35 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in a DRM_ERROR message. Fix it. > > Signed-off-by: Colin Ian King This is already fixed. Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH 7/7] drm/amd/display: Replace DRM private objects with subclassed DRM atomic state

2020-08-05 Thread Rodrigo Siqueira
Hi, I have some minor inline comments, but everything looks fine when I tested it on Raven; feel free to add Tested-by: Rodrigo Siqueira in the whole series. On 07/30, Nicholas Kazlauskas wrote: > [Why] > DM atomic check was structured in a way that we required old DC state > in order to

Re: [PATCH] drm/amdgpu: unlock mutex on error

2020-08-05 Thread Luben Tuikov
On 2020-08-05 4:41 a.m., Dennis Li wrote: > Make sure unlock the mutex when error happen ...^(to).(.) Regards, Luben > > Signed-off-by: Dennis Li > Change-Id: I6c36a193df5fe70516282d8136b4eadf32d20915 > > diff --git

Re: [PATCH 5/7] drm/amd/display: Reset plane for anything that's not a FAST update

2020-08-05 Thread Rodrigo Siqueira
On 07/30, Nicholas Kazlauskas wrote: > [Why] > MEDIUM or FULL updates can require global validation or affect > bandwidth. By treating these all simply as surface updates we aren't > actually passing this through DC global validation. > > [How] > There's currently no way to pass surface updates

Re: [PATCH] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-08-05 Thread Joe Perches
istake "Falied" -> "Failed" > > There is a spelling mistake in a DRM_ERROR error message. Fix it. > > Signed-off-by: Colin Ian King > Signed-off-by: Alex Deucher > > Alex > > > $ git show --oneline -s > > d15fe4ec0435

[PATCH] drm/amdgpu: annotate a false positive locking dependency

2020-08-05 Thread Dennis Li
[ 264.483189] == [ 264.483487] WARNING: possible circular locking dependency detected [ 264.483781] 5.6.0-deli-v5.6-2848-g3f3109b0e75f #1 Tainted: G OE [ 264.484076] -- [

[PATCH v2] drm/amdgpu: unlock mutex on error

2020-08-05 Thread Dennis Li
Make sure to unlock the mutex when error happen v2: 1. correct syntax error in the commit comment 2. remove change-Id Acked-by: Nirmoy Das Signed-off-by: Dennis Li diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c index

RE: [PATCH] drm/amdgpu: unlock mutex on error

2020-08-05 Thread Chen, Guchun
[AMD Public Use] Maybe commit body needs to be improved a bit like "Make sure to unlock the mutex for error case" With above addressed, the patch is: Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: Dennis Li Sent: Wednesday, August 5, 2020 4:42 PM To: