RE: [PATCH 2/2] Revert "drm/amdgpu:update kernel vcn ring test"

2023-07-12 Thread Gopalakrishnan, Veerabadhran (Veera)
[AMD Official Use Only - General] The revert patch set is looking good. Acked-by: Veerabadhran Gopalakrishnan -Original Message- From: Jamadar, Saleemkhan Sent: Thursday, July 13, 2023 10:50 AM To: Jamadar, Saleemkhan ; amd-gfx@lists.freedesktop.org; Olsak, Marek ; Koenig, Christian

[PATCH 2/2] Revert "drm/amdgpu:update kernel vcn ring test"

2023-07-12 Thread Saleemkhan Jamadar
VCN FW depncencies revert it to unblock others This reverts commit ce085b8068e1071b0068f9a5dee78c97ef587022. Signed-off-by: Saleemkhan Jamadar --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 13 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 5 + 2 files changed, 3 insertions(+),

[PATCH 1/2] Revert "drm/amdgpu: update kernel vcn ring test"

2023-07-12 Thread Saleemkhan Jamadar
VCN FW depncencies revert it to unblock others This reverts commit d0edfbe8bc2d18ede8f805c6eb71c63e0b40c1da. Signed-off-by: Saleemkhan Jamadar --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Luben Tuikov
On 2023-07-12 09:53, Christian König wrote: > Am 12.07.23 um 15:38 schrieb Uwe Kleine-König: >> Hello Maxime, >> >> On Wed, Jul 12, 2023 at 02:52:38PM +0200, Maxime Ripard wrote: >>> On Wed, Jul 12, 2023 at 01:02:53PM +0200, Uwe Kleine-König wrote: > Background is that this makes merge

Re: [PATCH V6 1/9] drivers core: Add support for Wifi band RF mitigations

2023-07-12 Thread Andrew Lunn
> +/** > + * wbrf_supported_producer - Determine if the device can report frequencies > + * > + * @dev: device pointer > + * > + * WBRF is used to mitigate devices that cause harmonic interference. > + * This function will determine if this device needs to report such > frequencies. How is the

RE: [PATCH] Revert "drm/amdgpu: enable mcbp by default on gfx9"

2023-07-12 Thread Li, Candice
[AMD Official Use Only - General] Reviewed-by: Candice Li Thanks, Candice -Original Message- From: Deucher, Alexander Sent: Thursday, July 13, 2023 2:47 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Li, Candice Subject: [PATCH] Revert "drm/amdgpu: enable mcbp by

RE: [PATCH v2] drm/amd/pm: Vangogh: Add new gpu_metrics_v2_4 to acquire gpu_metrics

2023-07-12 Thread Yang, WenYou
[AMD Official Use Only - General] Any comments? Any advice? Best Regards, Wenyou > -Original Message- > From: Wenyou Yang > Sent: Wednesday, June 21, 2023 2:32 PM > To: Deucher, Alexander ; Limonciello, Mario > ; Koenig, Christian ; > Pan, Xinhui ; Quan, Evan > Cc: Yuan, Perry ;

Re: [PATCH V6 1/9] drivers core: Add support for Wifi band RF mitigations

2023-07-12 Thread Mario Limonciello
On 7/12/23 18:12, Andrew Lunn wrote: +/** + * wbrf_supported_producer - Determine if the device can report frequencies + * + * @dev: device pointer + * + * WBRF is used to mitigate devices that cause harmonic interference. + * This function will determine if this device needs to report such

Re: [Freedreno] [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Krzysztof Kozlowski
On 12/07/2023 20:31, Sean Paul wrote: >>> 216 struct drm_device *ddev >>> 234 struct drm_device *drm_dev >>> 611 struct drm_device *drm >>>4190 struct drm_device *dev >>> >>> This series starts with renaming struct drm_crtc::dev to drm_dev. If >>> it's not only me and others like

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Uwe Kleine-König
Hello Jani, On Wed, Jul 12, 2023 at 05:34:28PM +0300, Jani Nikula wrote: > On Wed, 12 Jul 2023, Uwe Kleine-König wrote: > > Hello, > > > > while I debugged an issue in the imx-lcdc driver I was constantly > > irritated about struct drm_device pointer variables being named "dev" > > because with

Re: [Freedreno] [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Sean Paul
On Wed, Jul 12, 2023 at 10:52 AM Jani Nikula wrote: > > On Wed, 12 Jul 2023, Uwe Kleine-König wrote: > > Hello, > > > > while I debugged an issue in the imx-lcdc driver I was constantly > > irritated about struct drm_device pointer variables being named "dev" > > because with that name I usually

[PATCH] Revert "drm/amdgpu: enable mcbp by default on gfx9"

2023-07-12 Thread Alex Deucher
This reverts commit 50a7c8765ca69543ffdbf855de0fd69aea769ccf. This breaks some SQA tests on gfx9 dGPUs. Chistian also reported problems. Cc: candice...@amd.com Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 - drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 6

[pull] amdgpu drm-fixes-6.5

2023-07-12 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 6.5. The following changes since commit 6725f33228077902ddac2a05e0ab361dee36e4ba: Merge tag 'drm-misc-next-fixes-2023-07-06' of git://anongit.freedesktop.org/drm/drm-misc into drm-next (2023-07-07 11:05:16 +1000) are available in the Git repository at:

[PATCH 33/33] drm/amd/display: Promote DAL to 3.2.243

2023-07-12 Thread Alan Liu
From: Aric Cyr This version brings along following fixes: - Update 128b/132b downspread factor to 0.3% - Add helpers to get DMUB FW boot options - Initialize necessary uninitialized variables - Add stream overhead in BW calculations for 128b/132b - Add link encoding to timing BW calculation

[PATCH 32/33] drm/amd/display: Update SW cursor fallback for subvp high refresh

2023-07-12 Thread Alan Liu
From: Alvin Lee [Description] Since SubVP high refresh is now enabled, we must fallback to SW cursor under if we're in a SubVP high refresh config Reviewed-by: Samson Tam Acked-by: Alan Liu Signed-off-by: Alvin Lee --- .../gpu/drm/amd/display/dc/core/dc_stream.c | 35 ---

[PATCH 31/33] drm/amd/display: refine to decide the verified link setting

2023-07-12 Thread Alan Liu
From: Zhikai Zhai [WHY] We return false by default when link training fail at link loss. It will cause we get a fail verified link caps directly. [HOW] Record the highest verified link caps. Use the recorded value as the verified link caps if it is not successful in the last attempt to avoid to

[PATCH 30/33] drm/amd/display: Cache backlight_millinits in link structure and setting brightness accordingly

2023-07-12 Thread Alan Liu
From: Nicholas Susanto [Why] Need to save the cached backlight level so that display lights up using appropriate brightness level instead of the default brightness when waking up from s0i3. [How] Adding a backlight level cache in link structure. Also instead on calling

[PATCH 29/33] drm/amd/display: Reenable all root clock gating options

2023-07-12 Thread Alan Liu
From: Daniel Miess [Why & How] Re-enable all RCO options now that all known issues with RCO have been addressed Reviewed-by: Nicholas Kazlauskas Acked-by: Alan Liu Signed-off-by: Daniel Miess --- .../amd/display/dc/dcn314/dcn314_resource.c| 18 +- 1 file changed, 9

[PATCH 28/33] drm/amd/display: Fix DP2 link training failure with RCO

2023-07-12 Thread Alan Liu
From: Daniel Miess [Why] When RCO is enabled for symclk32_le we get failures during DP2 link traing compliance tests. [How] Break out symclk32_le RCO into a separate function that is called for hpo when link is enabled/disabled. Reviewed-by: Nicholas Kazlauskas Acked-by: Alan Liu

[PATCH 27/33] drm/amd/display: add additional refresh rate conditions for SubVP cases

2023-07-12 Thread Alan Liu
From: Samson Tam [Why] Want to further constrain these refresh rate conditions for SubVP: - SubVP + SubVP: either both <= 120Hz or both between 120-165Hz - SubVP + DRR: SubVP <= 120Hz - SubVP + VBlank: SubVP <= 120Hz [How] Add constraints in subvp_subvp_admissable(),

[PATCH 26/33] drm/amd/display: Disable MPC split by default on special asic

2023-07-12 Thread Alan Liu
From: Zhikai Zhai [WHY] All of pipes will be used when the MPC split enable on the dcn which just has 2 pipes. Then MPO enter will trigger the minimal transition which need programe dcn from 2 pipes MPC split to 2 pipes MPO. This action will cause lag if happen frequently. [HOW] Disable the MPC

[PATCH 25/33] drm/amd/display: Add missing triggers for full updates

2023-07-12 Thread Alan Liu
From: Alvin Lee [Description] - Full update was missed for the following cases: - Idle optimization is enabled - Plane is not in current context - Also don't clear surface updates at end of commit_plane_for_stream_fast as they are cleared at the beginning of each flip (only

[PATCH 09/33] drm/amd/display: Reduce stack size

2023-07-12 Thread Alan Liu
From: Rodrigo Siqueira Reduce stack size pointed by clang: amdgpu_dm/amdgpu_dm.c:8655:13: error: stack frame size (1048) exceeds limit (1024) in 'amdgpu_dm_atomic_commit_tail' [-Werror,-Wframe-larger-than] Reviewed-by: Harry Wentland Acked-by: Alan Liu Signed-off-by: Rodrigo Siqueira ---

[PATCH 24/33] drm/amd/display: ABM pause toggle

2023-07-12 Thread Alan Liu
From: Reza Amini [why] Allow ABM states to be transferred across display adapters for smooth display transitions. [how] We call DMUB to pause and get ABM states. We transfer data to other gpu, and deliver data and ask ABM to un-pause. Reviewed-by: Harry Vanzylldejong Acked-by: Alan Liu

[PATCH 22/33] drm/amd/display: Keep PHY active for DP displays on DCN31

2023-07-12 Thread Alan Liu
From: Nicholas Kazlauskas [Why & How] Port of a change that went into DCN314 to keep the PHY enabled when we have a connected and active DP display. The PHY can hang if PHY refclk is disabled inadvertently. Cc: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Reviewed-by: Josip

[PATCH 23/33] drm/amd/display: Fix ASIC check in aux timeout workaround

2023-07-12 Thread Alan Liu
From: Taimur Hassan [Why] Aux write was meant to be ASIC specific, and is causing compliance failures on newer parts. [How] Make workaround specific to single ASIC. Reviewed-by: Michael Strauss Acked-by: Alan Liu Signed-off-by: Taimur Hassan ---

[PATCH 21/33] drm/amd/display: Fix race condition when turning off an output alone

2023-07-12 Thread Alan Liu
From: Alan Liu [Why] When 2 threads are doing commit_tail parallelly, one thread could commit new streams to dc state but another thread remove it from dc right away. [How] If we don't have new dm state change from commit_check, then we should not call dc_commit_streams() in commit_tail. A new

[PATCH 19/33] drm/amd/display: Add link encoding to timing BW calculation parameters

2023-07-12 Thread Alan Liu
From: George Shen [Why] There certain cases where the timing BW is dependent on the type of link encoding in use. Thus to calculate the correct BW required for a given timing, the link encoding should be added as a parameter. Reviewed-by: Wenjing Liu Acked-by: Alan Liu Signed-off-by: George

[PATCH 20/33] drm/amd/display: Prevent vtotal from being set to 0

2023-07-12 Thread Alan Liu
From: Daniel Miess [Why] In dcn314 DML the destination pipe vtotal was being set to the crtc adjustment vtotal_min value even in cases where that value is 0. [How] Only set vtotal to the crtc adjustment vtotal_min value in cases where the value is non-zero. Cc: Mario Limonciello Cc: Alex

[PATCH 18/33] drm/amd/display: Add stream overhead in BW calculations for 128b/132b

2023-07-12 Thread Alan Liu
From: George Shen [Why] Current BW calculations do not account for the additional padding added for uncompressed pixel-to-symbol packing. This results in X.Y being too low for 128b/132b SST streams in certain scenarios. If X.Y is too low, end user can observe image corruption. [How] Add

[PATCH 17/33] drm/amd/display: Initialize necessary uninitialized variables

2023-07-12 Thread Alan Liu
From: Meera Patel This commit initializes uninitialized variables. For some compilers uninitialized variable warnings are treated as Error. Reviewed-by: Wenjing Liu Acked-by: Alan Liu Signed-off-by: Meera Patel --- .../drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 2 +-

[PATCH 16/33] drm/amd/display: Add helpers to get DMUB FW boot options

2023-07-12 Thread Alan Liu
From: Cruise Hung [Why & How] To query the bits and print them out for debug purposes. Reviewed-by: Nicholas Kazlauskas Acked-by: Alan Liu Signed-off-by: Cruise Hung --- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 4 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.c | 8

[PATCH 15/33] drm/amd/display: Update 128b/132b downspread factor to 0.3%

2023-07-12 Thread Alan Liu
From: George Shen [Why] Updating downspread factor to 0.3% to add additional margin to account for potential link rate deviations (up to 300ppm as per the DP spec). Reviewed-by: Wenjing Liu Acked-by: Alan Liu Signed-off-by: George Shen ---

[PATCH 14/33] drm/amd/display: Promote DAL to 3.2.242

2023-07-12 Thread Alan Liu
From: Aric Cyr This version brings along following fixes: - Setup stream encoder before link enable for TMDS - Use is_dig_enable function instead of dcn10 hardcode - Re-add aux intercept disable delay generically for 2+ LTTPRs - Add polling method to handle MST reply packet - Remove unused

[PATCH 13/33] drm/amd/display: Skip querying caps when DMCUB emulation is in use

2023-07-12 Thread Alan Liu
From: Nicholas Kazlauskas [Why] Workaround to avoid accessing DMCUB state too early if the emulator is in use - we don't support any of the features the caps are querying with emulation anyway. [How] Guard the query if emulation is in use. Reviewed-by: Charlene Liu Acked-by: Alan Liu

[PATCH 12/33] drm/amd/display: Update scaler recout data for visual confirm

2023-07-12 Thread Alan Liu
From: Leo Ma [Why] Visual confirm color is not as expected for Autoa Color Management feature test. [How] Calculate scaler recout data when visual confirm enabled to update the visual confirm bar on the display. Reviewed-by: Aric Cyr Acked-by: Alan Liu Signed-off-by: Leo Ma ---

[PATCH 10/33] drm/amd/display: Skip enabling DMCUB when using emulation

2023-07-12 Thread Alan Liu
From: Taimur Hassan [Why & How] Shouldn't be touching path for HW DMCUB when emulating. Reviewed-by: Nicholas Kazlauskas Acked-by: Alan Liu Signed-off-by: Taimur Hassan --- drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 11/33] drm/amd/display: check TG is non-null before checking if enabled

2023-07-12 Thread Alan Liu
From: Taimur Hassan [Why & How] If there is no TG allocation we can dereference a NULL pointer when checking if the TG is enabled. Cc: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Reviewed-by: Nicholas Kazlauskas Acked-by: Alan Liu Signed-off-by: Taimur Hassan ---

[PATCH 08/33] drm/amd/display: Hardcode vco_freq for dcn316

2023-07-12 Thread Alan Liu
From: Alan Liu There is no need to calculate the VCO frequency. In our internal branch we've hard-coded this for a while, so it's well-tested. This also allows us to remove the now unused code for calculating the VCO frequency. Reviewed-by: Harry Wentland Acked-by: Alan Liu Signed-off-by:

[PATCH 07/33] drm/amd/display: Add missing static

2023-07-12 Thread Alan Liu
From: Rodrigo Siqueira After enable DRM_AMDGPU_WERROR, clang highlight multiple functions that need to have `static`, and this commit address those issues and also improve the indents. Reviewed-by: Hamza Mahfooz Acked-by: Alan Liu Signed-off-by: Rodrigo Siqueira ---

[PATCH 06/33] drm/amd/display: Remove unused function

2023-07-12 Thread Alan Liu
From: Rodrigo Siqueira The get_engine_type is never used in the code, for this reason, this commit drops this function. Reviewed-by: Hamza Mahfooz Acked-by: Alan Liu Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/inc/hw/aux_engine.h | 2 -- 1 file changed, 2 deletions(-)

[PATCH 05/33] drm/amd/display: Improve the include of header file

2023-07-12 Thread Alan Liu
From: Rodrigo Siqueira This commit improves the include of some header files to make them align with other includes. Reviewed-by: Hamza Mahfooz Acked-by: Alan Liu Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/basics/conversion.c| 2 +-

[PATCH 04/33] drm/amd/display: Add polling method to handle MST reply packet

2023-07-12 Thread Alan Liu
From: Wayne Lin [Why] Specific TBT4 dock doesn't send out short HPD to notify source that IRQ event DOWN_REP_MSG_RDY is set. Which violates the spec and cause source can't send out streams to mst sinks. [How] To cover this misbehavior, add an additional polling method to detect DOWN_REP_MSG_RDY

[PATCH 03/33] drm/amd/display: Re-add aux intercept disable delay generically for 2+ LTTPRs

2023-07-12 Thread Alan Liu
From: Michael Strauss [WHY] Issue not display generic, required for multiple 2+ LTTPR link configurations. [HOW] Revert monitor patch change and remove delay for single LTTPR case Reviewed-by: George Shen Acked-by: Alan Liu Signed-off-by: Michael Strauss ---

[PATCH 02/33] drm/amd/display: Use is_dig_enable function instead of dcn10 hardcode

2023-07-12 Thread Alan Liu
From: Nicholas Kazlauskas [Why] This can differ depending on ASIC and we can end up skipping all transmitter control if we're relying on the wrong bit as a shortcut for whether link is on/off. [How] The ASIC table itself provides the correct DIG check, use that instead of the dcn10 hardcode.

[PATCH 01/33] drm/amd/display: Setup stream encoder before link enable for TMDS

2023-07-12 Thread Alan Liu
From: JinZe Xu [Why] HDMI spec requires TMDS clock to be not more than 340MHz. Stream encoder ensure this requirement but driver enable stream encoder later than PHY. So PHY will output full speed TMDS clock first. [How] Enable stream encoder first in TMDS case. Reviewed-by: Nicholas

[PATCH 00/33] DC Patches July 12, 2023

2023-07-12 Thread Alan Liu
This DC patchset brings improvements in multiple areas. In summary, we have: * Setup stream encoder before link enable for TMDS * Use is_dig_enable function instead of dcn10 hardcode * Re-add aux intercept disable delay generically for 2+ LTTPRs * Add polling method to handle MST reply packet *

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-12 Thread Melissa Wen
On 07/12, Aurabindo Pillai wrote: > > > On 7/12/2023 12:24 PM, Melissa Wen wrote: > > On 07/12, Pillai, Aurabindo wrote: > > > [Public] > > > > > > Hi Guilherme, > > > > > > Sorry there was one more patch which I missed to attach. Please add this > > > 3rd patch and retry. > > > > > >

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-12 Thread Aurabindo Pillai
On 7/12/2023 12:24 PM, Melissa Wen wrote: On 07/12, Pillai, Aurabindo wrote: [Public] Hi Guilherme, Sorry there was one more patch which I missed to attach. Please add this 3rd patch and retry. Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on

Re: [PATCH 3/5] drm/amdkfd: use vma_is_stack() and vma_is_heap()

2023-07-12 Thread Felix Kuehling
Allocations in the heap and stack tend to be small, with several allocations sharing the same page. Sharing the same page for different allocations with different access patterns leads to thrashing when we migrate data back and forth on GPU and CPU access. To avoid this we disable HMM

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-12 Thread Melissa Wen
On 07/12, Pillai, Aurabindo wrote: > [Public] > > Hi Guilherme, > > Sorry there was one more patch which I missed to attach. Please add this 3rd > patch and retry. > > Reverting that patch would cause high power consumption on Navi2x GPU also > cause hangs on certain multi monitor

Re: [PATCH 2/6] drm/amd/display: Remove spaces before tabs in amdgpu_dm_hdcp.c

2023-07-12 Thread Aurabindo Pillai
On 6/29/2023 12:46 AM, Srinivasan Shanmugam wrote: Conform to Linux kernel coding style. Reported by checkpatch: WARNING: please, no space before tabs And promote sysfs entry for set/get srm to kdoc Suggested-by: Rodrigo Siqueira Cc: Rodrigo Siqueira Cc: Aurabindo Pillai Signed-off-by:

Re: [PATCH 6/6] drm/amd/display: Eliminate warnings in amdgpu_dm_helpers.c

2023-07-12 Thread Aurabindo Pillai
On 6/29/2023 12:46 AM, Srinivasan Shanmugam wrote: Fix the following warnings reported by checkpatch: WARNING: Block comments use a trailing */ on a separate line WARNING: Prefer using '"%s...", __func__' to using 'execute_synaptics_rc_command', this function's name, in a string WARNING:

Re: [PATCH v5 04/10] drm/amdgpu: create GFX-gen11 usermode queue

2023-07-12 Thread Shashank Sharma
On 12/07/2023 18:01, Felix Kuehling wrote: Am 2023-07-12 um 11:55 schrieb Shashank Sharma: On 11/07/2023 21:51, Felix Kuehling wrote: On 2023-07-06 09:39, Christian König wrote: Am 06.07.23 um 15:37 schrieb Shashank Sharma: On 06/07/2023 15:22, Christian König wrote: Am 06.07.23 um

Re: [PATCH v5 04/10] drm/amdgpu: create GFX-gen11 usermode queue

2023-07-12 Thread Felix Kuehling
Am 2023-07-12 um 11:55 schrieb Shashank Sharma: On 11/07/2023 21:51, Felix Kuehling wrote: On 2023-07-06 09:39, Christian König wrote: Am 06.07.23 um 15:37 schrieb Shashank Sharma: On 06/07/2023 15:22, Christian König wrote: Am 06.07.23 um 14:35 schrieb Shashank Sharma: A Memory queue

Re: [PATCH v5 04/10] drm/amdgpu: create GFX-gen11 usermode queue

2023-07-12 Thread Shashank Sharma
On 11/07/2023 21:51, Felix Kuehling wrote: On 2023-07-06 09:39, Christian König wrote: Am 06.07.23 um 15:37 schrieb Shashank Sharma: On 06/07/2023 15:22, Christian König wrote: Am 06.07.23 um 14:35 schrieb Shashank Sharma: A Memory queue descriptor (MQD) of a userqueue defines it in the

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-12 Thread Aurabindo Pillai
On 7/12/2023 11:50 AM, Guilherme G. Piccoli wrote: On 12/07/2023 11:47, Pillai, Aurabindo wrote: Hi Guilherme, Sorry there was one more patch which I missed to attach. Please add this 3^rd  patch and retry. Reverting that patch would cause high power consumption on Navi2x GPU also cause

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-12 Thread Guilherme G. Piccoli
On 12/07/2023 11:47, Pillai, Aurabindo wrote: > Hi Guilherme, > > Sorry there was one more patch which I missed to attach. Please add this > 3^rd  patch and retry. > > Reverting that patch would cause high power consumption on Navi2x GPU > also cause hangs on certain multi monitor

[PATCH] drm/amdgpu: expand runpm parameter

2023-07-12 Thread Alex Deucher
Allow the user to specify -2 as auto enabled with displays. By default we don't enter runtime suspend when there are displays attached because it does not work well in some desktop environments due to the driver sending hotplug events on resume in case any new displays were attached while the GPU

Re: [PATCH] drm/amdgpu: Rename to amdgpu_vm_tlb_seq_struct

2023-07-12 Thread Randy Dunlap
On 7/12/23 01:34, Christian König wrote: > Am 12.07.23 um 10:03 schrieb Luben Tuikov: >> On 2023-07-12 03:57, Christian König wrote: >>> Am 12.07.23 um 08:58 schrieb Luben Tuikov: Rename struct amdgpu_vm_tlb_seq_cb {...} to struct amdgpu_vm_tlb_seq_struct {...}, so as to not conflict

Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

2023-07-12 Thread Pillai, Aurabindo
[Public] Hi Guilherme, Sorry there was one more patch which I missed to attach. Please add this 3rd patch and retry. Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same

[PATCH 4/5] selinux: use vma_is_stack() and vma_is_heap()

2023-07-12 Thread Kefeng Wang
Use the helpers to simplify code. Signed-off-by: Kefeng Wang --- security/selinux/hooks.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 4e46cf3d67b6..289ef2d6a427 100644 --- a/security/selinux/hooks.c +++

[PATCH 0/5] mm: convert to vma_is_heap/stack()

2023-07-12 Thread Kefeng Wang
Add vma_is_stack() and vma_is_heap() helper and use them to simplify code. Kefeng Wang (5): mm: introduce vma_is_stack() and vma_is_heap() mm: use vma_is_stack() and vma_is_heap() drm/amdkfd: use vma_is_stack() and vma_is_heap() selinux: use vma_is_stack() and vma_is_heap() perf/core:

[PATCH 2/5] mm: use vma_is_stack() and vma_is_heap()

2023-07-12 Thread Kefeng Wang
Use the helpers to simplify code. Signed-off-by: Kefeng Wang --- fs/proc/task_mmu.c | 24 fs/proc/task_nommu.c | 15 +-- 2 files changed, 5 insertions(+), 34 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index

[PATCH 5/5] perf/core: use vma_is_stack() and vma_is_heap()

2023-07-12 Thread Kefeng Wang
Use the helpers to simplify code, also kill unneeded goto cpy_name. Signed-off-by: Kefeng Wang --- kernel/events/core.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 78ae7b6f90fd..cb271f449b81 100644

[PATCH 1/5] mm: introduce vma_is_stack() and vma_is_heap()

2023-07-12 Thread Kefeng Wang
Introduce the two helpers for general use. Signed-off-by: Kefeng Wang --- include/linux/mm.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 1462cf15badf..0bbeb31ac750 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@

Re: [PATCH 3/5] drm/amdkfd: use vma_is_stack() and vma_is_heap()

2023-07-12 Thread Christoph Hellwig
On Wed, Jul 12, 2023 at 10:38:29PM +0800, Kefeng Wang wrote: > Use the helpers to simplify code. Nothing against your addition of a helper, but a GPU driver really should have no business even looking at this information..

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Jani Nikula
On Wed, 12 Jul 2023, Uwe Kleine-König wrote: > Hello, > > while I debugged an issue in the imx-lcdc driver I was constantly > irritated about struct drm_device pointer variables being named "dev" > because with that name I usually expect a struct device pointer. > > I think there is a big benefit

[PATCH 3/5] drm/amdkfd: use vma_is_stack() and vma_is_heap()

2023-07-12 Thread Kefeng Wang
Use the helpers to simplify code. Signed-off-by: Kefeng Wang --- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c index 479c4f66afa7..19ce68a7e1a8 100644 ---

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-12 Thread Alex Deucher
On Wed, Jul 12, 2023 at 8:04 AM Ricardo Cañuelo wrote: > > UBSAN complains about out-of-bounds array indexes on all 1-element > arrays defined on this driver: > > UBSAN: array-index-out-of-bounds in >

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Christian König
Am 12.07.23 um 15:38 schrieb Uwe Kleine-König: Hello Maxime, On Wed, Jul 12, 2023 at 02:52:38PM +0200, Maxime Ripard wrote: On Wed, Jul 12, 2023 at 01:02:53PM +0200, Uwe Kleine-König wrote: Background is that this makes merge conflicts easier to handle and detect. Really? FWIW, I agree with

Re: [PATCH] drm/amd/display: dc.h: eliminate kernel-doc warnings

2023-07-12 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jul 12, 2023 at 9:58 AM Harry Wentland wrote: > > On 2023-07-11 22:23, Randy Dunlap wrote: > > Quash 175 kernel-doc warnings in dc.h by unmarking 2 struct > > comments as containing kernel-doc notation and by spelling one > > struct field correctly in a kernel-doc

Re: [PATCH] drm/amd/display: dc.h: eliminate kernel-doc warnings

2023-07-12 Thread Harry Wentland
On 2023-07-11 22:23, Randy Dunlap wrote: > Quash 175 kernel-doc warnings in dc.h by unmarking 2 struct > comments as containing kernel-doc notation and by spelling one > struct field correctly in a kernel-doc comment. > > Fixes: 1682bd1a6b5f ("drm/amd/display: Expand kernel doc for DC") > Fixes:

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Maxime Ripard
On Wed, Jul 12, 2023 at 03:38:03PM +0200, Uwe Kleine-König wrote: > Hello Maxime, > > On Wed, Jul 12, 2023 at 02:52:38PM +0200, Maxime Ripard wrote: > > On Wed, Jul 12, 2023 at 01:02:53PM +0200, Uwe Kleine-König wrote: > > > > Background is that this makes merge conflicts easier to handle and >

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Uwe Kleine-König
Hello Maxime, On Wed, Jul 12, 2023 at 02:52:38PM +0200, Maxime Ripard wrote: > On Wed, Jul 12, 2023 at 01:02:53PM +0200, Uwe Kleine-König wrote: > > > Background is that this makes merge conflicts easier to handle and detect. > > > > Really? > > FWIW, I agree with Christian here. > > > Each

Re: [PATCH v5 6/6] drm/doc: Define KMS atomic state set

2023-07-12 Thread Simon Ser
On Saturday, July 8th, 2023 at 00:40, André Almeida wrote: > +KMS atomic state > + > + > +An atomic commit can change multiple KMS properties in an atomic fashion, > +without ever applying intermediate or partial state changes. Either the > whole > +commit succeeds or fails,

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Maxime Ripard
On Wed, Jul 12, 2023 at 01:02:53PM +0200, Uwe Kleine-König wrote: > > Background is that this makes merge conflicts easier to handle and detect. > > Really? FWIW, I agree with Christian here. > Each file (apart from include/drm/drm_crtc.h) is only touched once. So > unless I'm missing something

[PATCH 1/7] drm/radeon: switch over to drm_exec

2023-07-12 Thread Christian König
Just a straightforward conversion without any optimization. Signed-off-by: Christian König Cc: amd-gfx@lists.freedesktop.org --- drivers/gpu/drm/radeon/Kconfig | 1 + drivers/gpu/drm/radeon/radeon.h| 7 ++-- drivers/gpu/drm/radeon/radeon_cs.c | 45

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Paul Kocialkowski
Hi Uwe, On Wed 12 Jul 23, 11:46, Uwe Kleine-König wrote: > Hello, > > while I debugged an issue in the imx-lcdc driver I was constantly > irritated about struct drm_device pointer variables being named "dev" > because with that name I usually expect a struct device pointer. Well personally I

[PATCH RFC v1 03/52] drm/amd: Use struct drm_crtc::drm_dev instead of struct drm_crtc::dev

2023-07-12 Thread Uwe Kleine-König
Prepare dropping the alias "dev" for struct drm_crtc::drm_dev. "drm_dev" is the better name as "dev" is usually a struct device pointer. No semantic changes. Signed-off-by: Uwe Kleine-König --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 18 ++--

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Thomas Zimmermann
Hi Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: Hello, while I debugged an issue in the imx-lcdc driver I was constantly irritated about struct drm_device pointer variables being named "dev" because with that name I usually expect a struct device pointer. I think there is a big benefit when

Re: [PATCH 10/17] hid/picolcd: Remove flag FBINFO_FLAG_DEFAULT from fbdev driver

2023-07-12 Thread Bruno Prémont
On Mon, 10 Jul 2023 14:50:14 +0200 Thomas Zimmermann wrote: > The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct > fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do > not set it. > > Flags should signal differences from the default values. After cleaning > up all

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Christian König
Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: Hello, while I debugged an issue in the imx-lcdc driver I was constantly irritated about struct drm_device pointer variables being named "dev" because with that name I usually expect a struct device pointer. I think there is a big benefit when

[PATCH RFC v1 31/52] drm/radeon: Use struct drm_crtc::drm_dev instead of struct drm_crtc::dev

2023-07-12 Thread Uwe Kleine-König
Prepare dropping the alias "dev" for struct drm_crtc::drm_dev. "drm_dev" is the better name as "dev" is usually a struct device pointer. No semantic changes. Signed-off-by: Uwe Kleine-König --- drivers/gpu/drm/radeon/atombios_crtc.c | 54 ++---

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Julia Lawall
On Wed, 12 Jul 2023, Uwe Kleine-König wrote: > On Wed, Jul 12, 2023 at 12:46:33PM +0200, Christian König wrote: > > Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: > > > Hello, > > > > > > while I debugged an issue in the imx-lcdc driver I was constantly > > > irritated about struct drm_device

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Andrzej Hajda
On 12.07.2023 13:07, Julia Lawall wrote: On Wed, 12 Jul 2023, Uwe Kleine-König wrote: On Wed, Jul 12, 2023 at 12:46:33PM +0200, Christian König wrote: Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: Hello, while I debugged an issue in the imx-lcdc driver I was constantly irritated about

[PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Uwe Kleine-König
Hello, while I debugged an issue in the imx-lcdc driver I was constantly irritated about struct drm_device pointer variables being named "dev" because with that name I usually expect a struct device pointer. I think there is a big benefit when these are all renamed to "drm_dev". I have no strong

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Uwe Kleine-König
On Wed, Jul 12, 2023 at 12:46:33PM +0200, Christian König wrote: > Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: > > Hello, > > > > while I debugged an issue in the imx-lcdc driver I was constantly > > irritated about struct drm_device pointer variables being named "dev" > > because with that

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Uwe Kleine-König
Hello Thomas, On Wed, Jul 12, 2023 at 12:19:37PM +0200, Thomas Zimmermann wrote: > Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: > > Hello, > > > > while I debugged an issue in the imx-lcdc driver I was constantly > > irritated about struct drm_device pointer variables being named "dev" > >

[PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-12 Thread Ricardo Cañuelo
UBSAN complains about out-of-bounds array indexes on all 1-element arrays defined on this driver: UBSAN: array-index-out-of-bounds in /home/rcn/work/repos/kernelci/kernelci-core/linux_kernel_mainline/drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:1249:61 Substitute them with

Re: [PATCH 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-12 Thread Christian König
Am 12.07.23 um 12:56 schrieb Lucas Stach: Sorry, accidentally hit sent on the previous mail. Am Mittwoch, dem 12.07.2023 um 12:39 +0200 schrieb Christian König: Am 12.07.23 um 10:59 schrieb Lucas Stach: Am Mittwoch, dem 12.07.2023 um 10:37 +0200 schrieb Christian König: Am 11.07.23 um 23:34

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Javier Martinez Canillas
Uwe Kleine-König writes: [dropping some recipients since my SMTP server was complaining about the size] > Hello Thomas, > > On Wed, Jul 12, 2023 at 12:19:37PM +0200, Thomas Zimmermann wrote: >> Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: >> > Hello, >> > >> > while I debugged an issue in

Re: [PATCH 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-12 Thread Lucas Stach
Sorry, accidentally hit sent on the previous mail. Am Mittwoch, dem 12.07.2023 um 12:39 +0200 schrieb Christian König: > Am 12.07.23 um 10:59 schrieb Lucas Stach: > > Am Mittwoch, dem 12.07.2023 um 10:37 +0200 schrieb Christian König: > > > Am 11.07.23 um 23:34 schrieb André Almeida: > > > >

Re: [PATCH 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-12 Thread Lucas Stach
Am Mittwoch, dem 12.07.2023 um 12:39 +0200 schrieb Christian König: > Am 12.07.23 um 10:59 schrieb Lucas Stach: > > Am Mittwoch, dem 12.07.2023 um 10:37 +0200 schrieb Christian König: > > > Am 11.07.23 um 23:34 schrieb André Almeida: > > > > Instead of storing coredump information inside

Re: [PATCH 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-12 Thread Christian König
Am 12.07.23 um 10:59 schrieb Lucas Stach: Am Mittwoch, dem 12.07.2023 um 10:37 +0200 schrieb Christian König: Am 11.07.23 um 23:34 schrieb André Almeida: Instead of storing coredump information inside amdgpu_device struct, move if to a proper separated struct and allocate it dynamically. This

Re: [PATCH 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-12 Thread Lucas Stach
Am Mittwoch, dem 12.07.2023 um 10:37 +0200 schrieb Christian König: > Am 11.07.23 um 23:34 schrieb André Almeida: > > Instead of storing coredump information inside amdgpu_device struct, > > move if to a proper separated struct and allocate it dynamically. This > > will make it easier to further

Re: [PATCH 2/6] drm/amdgpu: Mark contexts guilty for causing soft recoveries

2023-07-12 Thread Christian König
Am 11.07.23 um 23:34 schrieb André Almeida: If a DRM fence is set to -ENODATA, that means that this context was a cause of a soft reset, but is never marked as guilty. Flag it as guilty and log to user that this context won't accept more submissions. Signed-off-by: André Almeida ---

Re: [PATCH 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-12 Thread Christian König
Am 11.07.23 um 23:34 schrieb André Almeida: Instead of storing coredump information inside amdgpu_device struct, move if to a proper separated struct and allocate it dynamically. This will make it easier to further expand the logged information. Verry big NAK to this. The problem is that

Re: [PATCH] drm/amdgpu: Rename to amdgpu_vm_tlb_seq_struct

2023-07-12 Thread Christian König
Am 12.07.23 um 10:03 schrieb Luben Tuikov: On 2023-07-12 03:57, Christian König wrote: Am 12.07.23 um 08:58 schrieb Luben Tuikov: Rename struct amdgpu_vm_tlb_seq_cb {...} to struct amdgpu_vm_tlb_seq_struct {...}, so as to not conflict with documentation processing tools. Of course, C has no

Re: [PATCH v4] drm/amdgpu/vkms: relax timer deactivation by hrtimer_try_to_cancel

2023-07-12 Thread Christian König
Am 12.07.23 um 03:34 schrieb Guchun Chen: In below thousands of screen rotation loop tests with virtual display enabled, a CPU hard lockup issue may happen, leading system to unresponsive and crash. do { xrandr --output Virtual --rotate inverted xrandr --output Virtual --rotate

  1   2   >