RE: [PATCH 2/3] drm/amdgpu: Set GTT size equal to TTM mem limit

2023-04-25 Thread Chen, Guchun
Looks you can drop macro 'AMDGPU_DEFAULT_GTT_SIZE_MB' as well. Regards, Guchun > -Original Message- > From: amd-gfx On Behalf Of > Mukul Joshi > Sent: Wednesday, April 26, 2023 9:53 AM > To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org > Cc: Joshi, Mukul ; Kuehling,

build failure from drm/ttm commit now in mainline (was: linux-next: build failure after merge of the drm tree)

2023-04-25 Thread Thorsten Leemhuis
Lo! Sometimes the regression tracker runs into regressions himself... :-D On 11.04.23 08:47, Stephen Rothwell wrote: > > After merging the drm tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/gpu/drm/ttm/ttm_pool.c:73:29: error: variably modified >

Re: [PATCH 5/6] fbdev: Move CFB read and write code into helper functions

2023-04-25 Thread kernel test robot
Hi Thomas, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master next-20230425] [cannot apply to v6.3] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

Re: [PATCH] drm/amdgpu: add a missing lock for AMDGPU_SCHED

2023-04-25 Thread Greg KH
On Tue, Apr 25, 2023 at 05:48:27PM -0700, Chia-I Wu wrote: > Signed-off-by: Chia-I Wu > Cc: sta...@vger.kernel.org I know I can not take patches without any changelog text at all, maybe the DRM developers are more lax, but it's not a good idea at all. thanks, greg k-h

[PATCH 1/2] docs: module: start adding some docs for MODULE_ macros.

2023-04-25 Thread Dave Airlie
From: Dave Airlie In order to add a new macro, Luis suggested converting some docs for the new ones. This tries to keep exisiting module_init, module_exit where they are, and adds the new docs to the module section. Cc: linux-...@vger.kernel.org Cc: Jonathan Corbet Cc: Luis Chamberlain Cc:

[PATCH 2/2] modules/firmware: add a new option to denote a firmware group to choose one.

2023-04-25 Thread Dave Airlie
From: Dave Airlie This adds a tag that will go into the module info, only one firmware from the group given needs to be available for this driver to work. This allows dracut to avoid adding in firmware that aren't needed. This just brackets a module list in the modinfo, the modules in the list

[PATCH] drivers/vkms: checkpatch.pl suggested style fix

2023-04-25 Thread Brandon Pollack
added a newline for block comment checkpatch.pl output: --- drivers/gpu/drm/vkms/vkms_drv.c --- WARNING: Block comments use a trailing */ on a separate line +* which ix XRGB in all cases. */ total: 0 errors, 1 warnings, 274

Re: [PATCH] drm/amdgpu: add a missing lock for AMDGPU_SCHED

2023-04-25 Thread Chia-I Wu
On Tue, Apr 25, 2023 at 7:27 PM Chen, Guchun wrote: > > From coding style's perspective, this lock/unlock handling should be put into > amdgpu_ctx_priority_override. The locking is to protect mgr->ctx_handles. > > Regards, > Guchun > > > -Original Message- > > From: amd-gfx On Behalf Of

RE: [PATCH] drm/amdgpu: add a missing lock for AMDGPU_SCHED

2023-04-25 Thread Chen, Guchun
>From coding style's perspective, this lock/unlock handling should be put into >amdgpu_ctx_priority_override. Regards, Guchun > -Original Message- > From: amd-gfx On Behalf Of Chia- > I Wu > Sent: Wednesday, April 26, 2023 8:48 AM > To: dri-devel@lists.freedesktop.org > Cc: Pan, Xinhui

[linux-next:master] BUILD REGRESSION f600e0bbde8562a06bee31b3eb1b69d49acac4c5

2023-04-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: f600e0bbde8562a06bee31b3eb1b69d49acac4c5 Add linux-next specific files for 20230425 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202304102354.q4voxgte-...@intel.com https

Re: [PATCH v3 0/3] drm/vkms: Add support for multiple pipes

2023-04-25 Thread Brandon Ross Pollack
We're doing/planning on doing similar or related work here at chromium. https://patchwork.kernel.org/project/dri-devel/list/?series=662676=both Here's the stuff we have now (we're currently rebasing and touching it up, myself and @Yi Xie will be taking over this work. Our plans are to add

RE: BUG: KASAN: null-ptr-deref in drm_sched_job_cleanup+0x96/0x290 [gpu_sched]

2023-04-25 Thread Chen, Guchun
After reviewing this whole history, maybe attached patch is able to fix your problem. Can you have a try please? Regards, Guchun > -Original Message- > From: amd-gfx On Behalf Of > Mikhail Gavrilov > Sent: Tuesday, April 25, 2023 9:20 PM > To: Koenig, Christian > Cc: Daniel Vetter ;

[PATCH 3/3] drm/amdkfd: Update KFD TTM mem limit

2023-04-25 Thread Mukul Joshi
Use the helper function in TTM to get TTM memory limit and set KFD's internal mem limit. This ensures that KFD's TTM mem limit and actual TTM mem limit are exactly same. Signed-off-by: Mukul Joshi Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 3 ++-

[PATCH 2/3] drm/amdgpu: Set GTT size equal to TTM mem limit

2023-04-25 Thread Mukul Joshi
Use the helper function in TTM to get TTM mem limit and set GTT size to be equal to TTL mem limit. Signed-off-by: Mukul Joshi --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git

[PATCH 1/3] drm/ttm: Helper function to get TTM mem limit

2023-04-25 Thread Mukul Joshi
Add a helper function to get TTM memory limit. This is needed by KFD to set its own internal memory limits. Signed-off-by: Mukul Joshi --- drivers/gpu/drm/ttm/ttm_tt.c | 6 ++ include/drm/ttm/ttm_tt.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/amdgpu: add a missing lock for AMDGPU_SCHED

2023-04-25 Thread Chia-I Wu
Signed-off-by: Chia-I Wu Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c index e9b45089a28a6..863b2a34b2d64

[PATCH v6 2/2] drm/i915/selftest: Update the SLPC selftest

2023-04-25 Thread Vinay Belgaumkar
Use the new efficient frequency toggling interface. Also create a helper function to restore the frequencies after the test is done. v2: Restore max freq first and then min. Signed-off-by: Vinay Belgaumkar --- drivers/gpu/drm/i915/gt/selftest_slpc.c | 42 ++--- 1 file

[PATCH v6 1/2] drm/i915/guc/slpc: Provide sysfs for efficient freq

2023-04-25 Thread Vinay Belgaumkar
SLPC enables use of efficient freq at init by default. It is possible for GuC to request frequencies that are higher than the 'software' max if user has set it lower than the efficient level. Scenarios/tests that require strict fixing of freq below the efficient level will need to disable it

Re: [PATCH v3 04/21] drm/msm/dpu: Reindent REV_7xxx interrupt masks with tabs

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 4:05 PM, Marijn Suijten wrote: Use tabs for consistency with the other interrupt register definitions, rather than spaces. Fixes: ed6154a136e4 ("drm/msm/disp/dpu1: add intf offsets for SC7280 target") Fixes: 89688e2119b2 ("drm/msm/dpu: Add more of the INTF interrupt regions")

Re: [PATCH v3 02/21] drm/msm/dpu: Remove TE2 block and feature from DPU >= 7.0.0 hardware

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 4:05 PM, Marijn Suijten wrote: No hardware beyond kona (sm8250) defines the TE2 PINGPONG sub-block offset downstream. Even though neither downstream nor upstream utilizes these registers in any way, remove the erroneous specification for SC8280XP, SM8350 and SM8450 to prevent

Re: [PATCH v3 18/21] drm/msm/dpu: Add TEAR-READ-pointer interrupt to INTF block

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 03:06, Dmitry Baryshkov wrote: On 26/04/2023 02:06, Marijn Suijten wrote: All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block.  The new interrupts are described in dpu_hw_interrupts.c, now wire them up in individual

Re: [PATCH v3 18/21] drm/msm/dpu: Add TEAR-READ-pointer interrupt to INTF block

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:06, Marijn Suijten wrote: All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. The new interrupts are described in dpu_hw_interrupts.c, now wire them up in individual SoC catalog files by setting the

Re: [PATCH v3 17/21] drm/msm/dpu: Describe TEAR interrupt registers for DSI interfaces

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:06, Marijn Suijten wrote: All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. Wire up the IRQ register masks in the interrupt table for enabling, reading and clearing them. Signed-off-by: Marijn Suijten ---

Re: [PATCH v3 10/21] drm/msm/dpu: Take INTF index as parameter in interrupt register defines

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:06, Marijn Suijten wrote: Instead of hardcoding many register defines for every INTF and AD4 index with a fixed stride, turn the defines into singular chunks of math that compute the address using the base and this fixed stride multiplied by the index given as argument to the

Re: [PATCH v3 04/21] drm/msm/dpu: Reindent REV_7xxx interrupt masks with tabs

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:05, Marijn Suijten wrote: Use tabs for consistency with the other interrupt register definitions, rather than spaces. Fixes: ed6154a136e4 ("drm/msm/disp/dpu1: add intf offsets for SC7280 target") Fixes: 89688e2119b2 ("drm/msm/dpu: Add more of the INTF interrupt regions") Fixes:

Re: [git pull] drm for 6.4-rc1

2023-04-25 Thread pr-tracker-bot
The pull request you sent on Mon, 24 Apr 2023 15:41:41 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-next-2023-04-24 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c8cc58e289ed3b5bc50258f52776cf3dfa3bad66 Thank you! -- Deet-doot-dot, I am a bot.

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 15:37:44, Abhinav Kumar wrote: > > > On 4/25/2023 3:15 PM, Marijn Suijten wrote: > > On 2023-04-25 14:55:56, Abhinav Kumar wrote: > > > >>> I'll see whether I can include these fixes before sending v3 (got all > >>> the other changes in and am all-ready to send it): is there any

[PATCH v3 1/3] drm/msm/dpu: Assign missing writeback log_mask

2023-04-25 Thread Marijn Suijten
The WB debug log mask ended up never being assigned, leading to writes to this block to never be logged even if the mask is enabled in dpu_hw_util_log_mask via debugfs. Fixes: 84a33d0fd921 ("drm/msm/dpu: add dpu_hw_wb abstraction for writeback blocks") Signed-off-by: Marijn Suijten Reviewed-by:

[PATCH v3 3/3] drm/msm/dpu: Pass catalog pointers in RM to replace for-loop ID lookups

2023-04-25 Thread Marijn Suijten
The Resource Manager already iterates over all available blocks from the catalog, only to pass their ID to a dpu_hw_xxx_init() function which uses an _xxx_offset() helper to search for and find the exact same catalog pointer again to initialize the block with, fallible error handling and all.

[PATCH v3 2/3] drm/msm/dpu: Drop unused members from HW structs

2023-04-25 Thread Marijn Suijten
Some of these members were initialized while never read, while others were not even assigned any pointer value at all. Drop them to save some space, and above all confusion when looking at or accidentally dereferencing these members. Signed-off-by: Marijn Suijten Reviewed-by: Abhinav Kumar

[PATCH v3 0/3] drm/msm/dpu: Drop useless for-loop HW block lookup

2023-04-25 Thread Marijn Suijten
Doing a for loop in every DPU HW block driver init to find a catalog entry matching the given ID is rather useless if the init function called by RM already has that catalog entry pointer, and uses exactly its ID to drive this init and for loop. Remove all that machinery to drop quite some lines

[PATCH v3 21/21] drm/msm/dpu: Remove intr_rdptr from DPU >= 5.0.0 pingpong config

2023-04-25 Thread Marijn Suijten
Now that newer DPU platforms use a readpointer-done interrupt on the INTF block, stop providing the unused interrupt on the PINGPONG block. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 8

[PATCH v3 16/21] drm/msm/dpu: Factor out shared interrupt register in INTF_BLK macro

2023-04-25 Thread Marijn Suijten
As the INTF block is going to attain more interrupts that don't share the same MDP_SSPP_TOP0_INTR register, factor out the _reg argument for the caller to construct the right interrupt index (register and bit index) to not make the interrupt bit arguments depend on one of multiple interrupt

[PATCH v3 19/21] drm/msm/dpu: Merge setup_- and enable_tearcheck pingpong callbacks

2023-04-25 Thread Marijn Suijten
These functions are always called consecutively and are best bundled together for simplicity, especially when the same structure of callbacks will be replicated later on the interface block for INTF TE support. The enable_tearcheck(false) case is now replaced with a more obvious

[PATCH v3 20/21] drm/msm/dpu: Implement tearcheck support on INTF block

2023-04-25 Thread Marijn Suijten
Since DPU 5.0.0 the TEARCHECK registers and interrupts moved out of the PINGPONG block and into the INTF. Implement the necessary callbacks in the INTF block, and use these callbacks together with the INTF_TEAR interrupts. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov ---

[PATCH v3 18/21] drm/msm/dpu: Add TEAR-READ-pointer interrupt to INTF block

2023-04-25 Thread Marijn Suijten
All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. The new interrupts are described in dpu_hw_interrupts.c, now wire them up in individual SoC catalog files by setting the intr_tear_rd_ptr to the IRQ index spcified in the offset

[PATCH v3 15/21] drm/msm/dpu: Move dpu_hw_{tear_check,pp_vsync_info} to dpu_hw_mdss.h

2023-04-25 Thread Marijn Suijten
From: Konrad Dybcio Now that newer SoCs since DPU 5.0.0 manage tearcheck in the INTF instead of PINGPONG block, move the struct definition to a common file. Also, bring in documentation from msm-4.19 techpack while at it. Signed-off-by: Konrad Dybcio [Marijn: Also move dpu_hw_pp_vsync_info]

[PATCH v3 10/21] drm/msm/dpu: Take INTF index as parameter in interrupt register defines

2023-04-25 Thread Marijn Suijten
Instead of hardcoding many register defines for every INTF and AD4 index with a fixed stride, turn the defines into singular chunks of math that compute the address using the base and this fixed stride multiplied by the index given as argument to the definitions. MDP_SSPP_TOP0_OFF is dropped as

[PATCH v3 09/21] drm/msm/dpu: Sort INTF registers numerically

2023-04-25 Thread Marijn Suijten
A bunch of registers were appended at the end in e.g. commit 91143873a05d ("drm/msm/dpu: Add MISR register support for interface") rather than being inserted in a place that maintains numerical sorting: restore said numerical sorting. Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio

[PATCH v3 17/21] drm/msm/dpu: Describe TEAR interrupt registers for DSI interfaces

2023-04-25 Thread Marijn Suijten
All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. Wire up the IRQ register masks in the interrupt table for enabling, reading and clearing them. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c

[PATCH v3 14/21] drm/msm/dpu: Disable MDP vsync source selection on DPU 5.0.0 and above

2023-04-25 Thread Marijn Suijten
Since hardware revision 5.0.0 the TE configuration moved out of the PINGPONG block into the INTF block, including vsync source selection that was previously part of MDP top. Writing to the MDP_VSYNC_SEL register has no effect anymore and is omitted downstream via the DPU/SDE_MDP_VSYNC_SEL feature

[PATCH v3 11/21] drm/msm/dpu: Drop unused poll_timeout_wr_ptr PINGPONG callback

2023-04-25 Thread Marijn Suijten
This callback was migrated from downstream when DPU1 was first introduced to mainline, but never used by any component. Drop it to save some lines and unnecessary confusion. Suggested-by: Dmitry Baryshkov Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov

[PATCH v3 06/21] drm/msm/dpu: Use V2 DITHER PINGPONG sub-block in SM8[34]50/SC8280XP

2023-04-25 Thread Marijn Suijten
According to downstream sources this DITHER sub-block sits at an offset of 0xe0 with version 0x2. The PP_BLK_DITHER macro is _not_ used as downstream still says the size of the PINGPONG block is 0xd4 and not 0. Fixes: 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP") Fixes: 0e91bcbb0016

[PATCH v3 02/21] drm/msm/dpu: Remove TE2 block and feature from DPU >= 7.0.0 hardware

2023-04-25 Thread Marijn Suijten
No hardware beyond kona (sm8250) defines the TE2 PINGPONG sub-block offset downstream. Even though neither downstream nor upstream utilizes these registers in any way, remove the erroneous specification for SC8280XP, SM8350 and SM8450 to prevent confusion. Note that downstream enables the

[PATCH v3 13/21] drm/msm/dpu: Disable pingpong TE on DPU 5.0.0 and above

2023-04-25 Thread Marijn Suijten
Since hardware revision 5.0.0 the TE configuration moved out of the PINGPONG block into the INTF block. Writing these registers has no effect, and is omitted downstream via the DPU/SDE_PINGPONG_TE feature flag. This flag is only added to PINGPONG blocks used by hardware prior to 5.0.0. The

[PATCH v3 12/21] drm/msm/dpu: Move autorefresh disable from CMD encoder to pingpong

2023-04-25 Thread Marijn Suijten
This autorefresh disable logic in the physical command-mode encoder consumes three callbacks to the pingpong block, and will explode in unnecessary complexity when the same callbacks need to be called on the interface block instead to accommodate INTF TE support. To clean this up, move the logic

[PATCH v3 04/21] drm/msm/dpu: Reindent REV_7xxx interrupt masks with tabs

2023-04-25 Thread Marijn Suijten
Use tabs for consistency with the other interrupt register definitions, rather than spaces. Fixes: ed6154a136e4 ("drm/msm/disp/dpu1: add intf offsets for SC7280 target") Fixes: 89688e2119b2 ("drm/msm/dpu: Add more of the INTF interrupt regions") Fixes: 4a352c2fc15a ("drm/msm/dpu: Introduce

[PATCH v3 05/21] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
SM8550 exclusively has a DITHER sub-block inside the PINGPONG block and no other registers, hence the DITHER name of the macro and a corresponding PINGPONG block length of zero. However, the PP_BLK_ macro name was typo'd to DIPHER rather than DITHER. Fixes: efcd0107727c ("drm/msm/dpu: add

[PATCH v3 03/21] drm/msm/dpu: Move non-MDP_TOP INTF_INTR offsets out of hwio header

2023-04-25 Thread Marijn Suijten
These offsets do not fall under the MDP TOP block and do not fit the comment right above. Move them to dpu_hw_interrupts.c next to the repsective MDP_INTF_x_OFF interrupt block offsets. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Marijn Suijten Reviewed-by: Konrad

[PATCH v3 01/21] drm/msm/dpu: Remove unused INTF0 interrupt mask from SM6115/QCM2290

2023-04-25 Thread Marijn Suijten
Neither of these SoCs has INTF0, they only have a DSI interface on index 1. Stop enabling an interrupt that can't fire. Fixes: 3581b7062cec ("drm/msm/disp/dpu1: add support for display on SM6115") Fixes: 5334087ee743 ("drm/msm: add support for QCM2290 MDSS") Signed-off-by: Marijn Suijten

[PATCH v3 08/21] drm/msm/dpu: Remove extraneous register define indentation

2023-04-25 Thread Marijn Suijten
A bunch of registers are indented with two extra spaces, looking as if these are values corresponding to the previous register which is not the case, rather these are simply also register offsets and should only have a single space separating them and the #define keyword. Signed-off-by: Marijn

[PATCH v3 07/21] drm/msm/dpu: Remove duplicate register defines from INTF

2023-04-25 Thread Marijn Suijten
The INTF_FRAME_LINE_COUNT_EN, INTF_FRAME_COUNT and INTF_LINE_COUNT registers are already defined higher up, in the right place when sorted numerically. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov

[PATCH v3 00/21] drm/msm/dpu: Implement tearcheck support on INTF block

2023-04-25 Thread Marijn Suijten
Since DPU 5.0.0 the TEARCHECK registers and interrupts moved out of the PINGPONG block and into the INTF. Implement the necessary callbacks in the INTF block, and use these callbacks together with the INTF_TEAR interrupts. Additionally, disable previous register writes and remove unused

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 3:15 PM, Marijn Suijten wrote: On 2023-04-25 14:55:56, Abhinav Kumar wrote: I'll see whether I can include these fixes before sending v3 (got all the other changes in and am all-ready to send it): is there any other SoC you're seeing this issue on? Thats alright, you can

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Marijn Suijten
On 2023-04-25 14:32:51, Abhinav Kumar wrote: > > We can return NULL from dpu_hw_foo_init(), which would mean that the > > block was skipped or is not present. > > An then replace the `if INTF_NONE continue` logic in dpu_rm_init with a > check for NULL that skips, and a

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 14:55:56, Abhinav Kumar wrote: > > I'll see whether I can include these fixes before sending v3 (got all > > the other changes in and am all-ready to send it): is there any other > > SoC you're seeing this issue on? > > > > Thats alright, you can have it in a separate series not

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 2:53 PM, Marijn Suijten wrote: On 2023-04-25 14:37:21, Abhinav Kumar wrote: On 4/25/2023 1:43 PM, Marijn Suijten wrote: On 2023-04-25 09:47:30, Abhinav Kumar wrote: On 4/25/2023 9:33 AM, Marijn Suijten wrote: On 2023-04-25 09:18:58, Abhinav Kumar wrote: On 4/24/2023

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 14:37:21, Abhinav Kumar wrote: > > > On 4/25/2023 1:43 PM, Marijn Suijten wrote: > > On 2023-04-25 09:47:30, Abhinav Kumar wrote: > >> > >> > >> On 4/25/2023 9:33 AM, Marijn Suijten wrote: > >>> On 2023-04-25 09:18:58, Abhinav Kumar wrote: > > > On 4/24/2023 11:54

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 1:43 PM, Marijn Suijten wrote: On 2023-04-25 09:47:30, Abhinav Kumar wrote: On 4/25/2023 9:33 AM, Marijn Suijten wrote: On 2023-04-25 09:18:58, Abhinav Kumar wrote: On 4/24/2023 11:54 PM, Marijn Suijten wrote: On 2023-04-24 16:09:45, Abhinav Kumar wrote: dither block

Re: [PATCH 01/11] drm/msm/dpu: tweak msm8998 hw catalog values

2023-04-25 Thread Abhinav Kumar
On 4/19/2023 7:41 AM, Arnaud Vrac wrote: Match the values found in the downstream msm-4.4 kernel sde driver. Signed-off-by: Arnaud Vrac --- Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 2:09 PM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 19:11, Abhinav Kumar wrote: On 4/25/2023 7:26 AM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 11:55, Marijn Suijten wrote: On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: On 25/04/2023 10:16, Marijn Suijten

Re: [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Dmitry Baryshkov
On Tue, 25 Apr 2023 at 19:11, Abhinav Kumar wrote: > > > > On 4/25/2023 7:26 AM, Dmitry Baryshkov wrote: > > On Tue, 25 Apr 2023 at 11:55, Marijn Suijten > > wrote: > >> > >> On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: > >>> On 25/04/2023 10:16, Marijn Suijten wrote: > On 2023-04-24

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 09:47:30, Abhinav Kumar wrote: > > > On 4/25/2023 9:33 AM, Marijn Suijten wrote: > > On 2023-04-25 09:18:58, Abhinav Kumar wrote: > >> > >> > >> On 4/24/2023 11:54 PM, Marijn Suijten wrote: > >>> On 2023-04-24 16:09:45, Abhinav Kumar wrote: > >>> > >> dither block should be

Re: [PATCH v8 0/7] drm/i915: use ref_tracker library for tracking wakerefs

2023-04-25 Thread Andi Shyti
Hi, > Andrzej Hajda (7): > lib/ref_tracker: add unlocked leak print helper > lib/ref_tracker: improve printing stats > lib/ref_tracker: add printing to memory buffer > lib/ref_tracker: remove warnings in case of allocation failure > drm/i915: Correct type of wakeref

Re: [PATCH] drm/i915/guc: Actually return an error if GuC version range check fails

2023-04-25 Thread Andi Shyti
Hi John, > Dan Carpenter pointed out that 'err' was not being set in the case > where the GuC firmware version range check fails. Fix that. > > Note that while this is bug fix for a previous patch (see Fixes tag is _a_ bug fix. > below). It is an exceedingly low risk bug. The range check is >

Re: [PATCH v8 6/7] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library

2023-04-25 Thread Andi Shyti
Hi Andrzej, On Tue, Apr 25, 2023 at 12:05:43AM +0200, Andrzej Hajda wrote: > Beside reusing existing code, the main advantage of ref_tracker is > tracking per instance of wakeref. It allows also to catch double > put. > On the other side we lose information about the first acquire and > the last

Re: [PATCH 0/6] drm,fbdev: Use fbdev's I/O helpers

2023-04-25 Thread Helge Deller
On 4/25/23 16:28, Thomas Zimmermann wrote: Make fbdev's built-in helpers for reading and writing I/O and system memory available to DRM. Replace DRM's internal helpers. The first patch resolves a bug that's been in the fbdev code for more than 15 years. Makes the read/write helpers work

Re: [Intel-gfx] [PATCH 5/5] drm/i915/guc: Capture list clean up - 4

2023-04-25 Thread Teres Alexis, Alan Previn
On Thu, 2023-04-06 at 15:26 -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > Don't use GEN9 as a prefix for register lists that contain all GEN8 > registers. alan:snip alan: This patch as a stand-along looks good, so I'll provide the RB but take note of the comment below that

Re: [PATCH] drm/amdgpu: Mark contexts guilty for any reset type

2023-04-25 Thread Marek Olšák
The last 3 comments in this thread contain arguments that are false and were specifically pointed out as false 6 comments ago: Soft resets are just as fatal as hard resets. There is nothing better about soft resets. If the VRAM is lost completely, that's a different story, and if the hard reset is

Re: [Intel-gfx] [PATCH 4/5] drm/i915/guc: Capture list clean up - 3

2023-04-25 Thread Teres Alexis, Alan Previn
On Thu, 2023-04-06 at 15:26 -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > Fix Xe_LP name. > > Signed-off-by: John Harrison alan:snip > -/* GEN9/XE_LPD - Render / Compute Per-Engine-Instance */ > +/* GEN8+ Render / Compute Per-Engine-Instance */ alan: two comments on this:

Re: [Intel-gfx] [PATCH 3/5] drm/i915/guc: Capture list clean up - 2

2023-04-25 Thread Teres Alexis, Alan Previn
On Thu, 2023-04-06 at 15:26 -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > Don't use 'xe_lp*' prefixes for register lists that are common with > Gen8. alan:snip > @@ -177,32 +177,32 @@ static const struct __guc_mmio_reg_descr > empty_regs_list[] = { > static const struct

Re: [PATCH v2 02/13] dt-bindings: display: st7789v: add Inanbo T28CP45TN89

2023-04-25 Thread Rob Herring
On Sat, 22 Apr 2023 22:50:01 +0200, Sebastian Reichel wrote: > Add compatible value for Inanbo t28cp45tn89 and make reset GPIO non > mandatory, since it might not be connected to the CPU. > > Signed-off-by: Sebastian Reichel > --- > .../devicetree/bindings/display/panel/sitronix,st7789v.yaml

Re: [Intel-gfx] [PATCH 2/5] drm/i915/guc: Capture list clean up - 1

2023-04-25 Thread Teres Alexis, Alan Previn
On Thu, 2023-04-06 at 15:26 -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > Remove 99% duplicated steered register list code. Also, include the > pre-Xe steered registers in the pre-Xe list generation. > > Signed-off-by: John Harrison alan: Nice work - good cleanup. Thanks

Re: IOCTL feature detection (Was: Re: [Intel-gfx] [PATCH 8/8] drm/i915: Allow user to set cache at BO creation)

2023-04-25 Thread Jordan Justen
On 2023-04-25 06:41:54, Joonas Lahtinen wrote: > (+ Faith and Daniel as they have been involved in previous discussions) > > Quoting Jordan Justen (2023-04-24 20:13:00) > > On 2023-04-24 02:08:43, Tvrtko Ursulin wrote: > > > > > > Being able to "list" supported extensions sounds like a

Re: [PATCH 4/7] dt-bindings: display: panel: Add Ilitek ili9805 panel controller

2023-04-25 Thread Rob Herring
On Fri, Apr 21, 2023 at 05:43:05PM +0200, Dario Binacchi wrote: > From: Michael Trimarchi > > Add documentation for "ilitek,ili9805" panel. > > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi > --- > > .../display/panel/ilitek,ili9805.yaml | 60 +++ >

Re: [PATCH 1/7] dt-bindings: display: panel: Add synaptics r63353 panel controller

2023-04-25 Thread Rob Herring
On Fri, Apr 21, 2023 at 05:43:02PM +0200, Dario Binacchi wrote: > From: Michael Trimarchi > > Add documentation for "synaptics,r63353" panel. > > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi > --- > > .../display/panel/synaptics,r63353.yaml | 58 +++

Re: [PATCH 1/5] drm/i915/guc: Don't capture Gen8 regs on Xe devices

2023-04-25 Thread Teres Alexis, Alan Previn
On Thu, 2023-04-06 at 15:26 -0700, Harrison, John C wrote: > From: John Harrison > > A pair of pre-Xe registers were being included in the Xe capture list. > GuC was rejecting those as being invalid and logging errors about > them. So, stop doing it. > alan:snip > #define

Re: IOCTL feature detection (Was: Re: [Intel-gfx] [PATCH 8/8] drm/i915: Allow user to set cache at BO creation)

2023-04-25 Thread Teres Alexis, Alan Previn
On Tue, 2023-04-25 at 16:41 +0300, Joonas Lahtinen wrote: > (+ Faith and Daniel as they have been involved in previous discussions) An orthogonal (but losely related) question: Is PXP the only subsystem that has the unique problem of: Uses a delayed worker to complete all dependencies for init..

Re: [PATCH v2 03/13] dt-bindings: display/msm: Add SM6350 DPU

2023-04-25 Thread Rob Herring
On Fri, Apr 21, 2023 at 12:31:12AM +0200, Konrad Dybcio wrote: > Document the SM6350 DPU. > > Signed-off-by: Konrad Dybcio > --- > .../bindings/display/msm/qcom,sm6350-dpu.yaml | 94 > ++ > 1 file changed, 94 insertions(+) > > diff --git >

Re: [PATCH] drm/exynos: fix g2d_open/close helper function definitions

2023-04-25 Thread Andi Shyti
Hi Arnd, On Mon, Apr 17, 2023 at 11:04:11PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The empty stub functions are defined as global functions, which > causes a warning because of missing prototypes: > > drivers/gpu/drm/exynos/exynos_drm_g2d.h:37:5: error: no previous prototype >

Re: [PATCH v2 03/13] dt-bindings: display/msm: Add SM6350 DPU

2023-04-25 Thread Rob Herring
On Fri, Apr 21, 2023 at 12:31:12AM +0200, Konrad Dybcio wrote: > Document the SM6350 DPU. > > Signed-off-by: Konrad Dybcio > --- > .../bindings/display/msm/qcom,sm6350-dpu.yaml | 94 > ++ > 1 file changed, 94 insertions(+) > > diff --git >

Re: [PATCH 6/6] drm/fb-helper: Use fb_{cfb,sys}_{read, write}()

2023-04-25 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Implement DRM fbdev helpers for reading and writing framebuffer > memory with the respective fbdev functions. Removes duplicate > code. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_fb_helper.c | 174 +--- > 1 file

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 9:33 AM, Marijn Suijten wrote: On 2023-04-25 09:18:58, Abhinav Kumar wrote: On 4/24/2023 11:54 PM, Marijn Suijten wrote: On 2023-04-24 16:09:45, Abhinav Kumar wrote: dither block should be present on many other chipsets too but looks like on sm8550 was enabling it. Not sure

Re: [PATCH 5/6] fbdev: Move CFB read and write code into helper functions

2023-04-25 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Move the existing CFB read and write code for I/O memory into > the new helpers fb_cfb_read() and fb_cfb_write(). Make them the > default fp_ops. No functional changes. > It would be nice to get an explanation here about why moving these make sense. I guess you are

Re: [PATCH 4/6] fbdev: Validate info->screen_{base,buffer} in fb_ops implementations

2023-04-25 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Push the test for info->screen_base from fb_read() and fb_write() into > the implementations of struct fb_ops.{fb_read,fb_write}. In cases where > the driver operates on info->screen_buffer, test this field instead. > > Signed-off-by: Thomas Zimmermann > ---

Re: [PATCH 3/6] fbdev: Don't re-validate info->state in fb_ops implementations

2023-04-25 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The file-op entry points fb_read() and fb_write() verify that > info->state has been set to FBINFO_STATE_RUNNING. Remove the same > test from the implementations of struct fb_ops.{fb_read,fb_write}. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier

Re: [PATCH 2/6] fbdev: Use screen_buffer in fb_sys_{read,write}()

2023-04-25 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Use info->screen_buffer when reading and writing framebuffers in > system memory. It's the correct pointer for this address space. > Maybe can expand the explanation a little bit with something like this? "The struct fb_info has a union to store the framebuffer

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 09:18:58, Abhinav Kumar wrote: > > > On 4/24/2023 11:54 PM, Marijn Suijten wrote: > > On 2023-04-24 16:09:45, Abhinav Kumar wrote: > > > dither block should be present on many other chipsets too but looks like > on sm8550 was enabling it. Not sure how it was validated

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/24/2023 11:54 PM, Marijn Suijten wrote: On 2023-04-24 16:09:45, Abhinav Kumar wrote: dither block should be present on many other chipsets too but looks like on sm8550 was enabling it. Not sure how it was validated there. But we are enabling dither, even other chipsets have this block.

Re: [PATCH 1/6] fbdev: Return number of bytes read or written

2023-04-25 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Always return the number of bytes read or written within the > framebuffer. Only return an errno code if framebuffer memory > was not touched. This is the semantics required by POSIX and > makes fb_read() and fb_write() compatible with IGT tests. [1] >

Re: [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 7:26 AM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 11:55, Marijn Suijten wrote: On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: On 25/04/2023 10:16, Marijn Suijten wrote: On 2023-04-24 16:23:17, Abhinav Kumar wrote: On 4/24/2023 3:54 PM, Dmitry Baryshkov wrote: On

Re: [PATCH v2 4/7] arm64: dts: allwinner: a64: assign PLL_MIPI to CLK_TCON0

2023-04-25 Thread Maxime Ripard
On Tue, Apr 18, 2023 at 09:40:05AM +0200, Roman Beranek wrote: > Assign pll-mipi parent to tcon0's source clock via 'assigned-clocks'. > > Signed-off-by: Roman Beranek > --- > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH v2 1/7] clk: sunxi-ng: a64: propagate rate change from pll-mipi

2023-04-25 Thread Maxime Ripard
Hi, On Tue, Apr 18, 2023 at 09:40:02AM +0200, Roman Beranek wrote: > Propagating rate change from tcon0 all the way to pll-video0 allows for > greater precision in matching requested display timing. > > Signed-off-by: Roman Beranek > --- > drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 3 ++- > 1

Re: [PATCH 07/14] drm/mgag200: Replace simple-KMS with regular atomic helpers

2023-04-25 Thread Jocelyn Falempe
On 25/04/2023 17:03, Thomas Zimmermann wrote: (cc'ing dri-devel, Jocelyn and Sam) Hi Phil, I've put dri-devel into cc, which is the developer's mailing list. It's the first time I hear about this bug. Thanks for pointing this to me, I will take a look at it. -- Jocelyn Am 25.04.23 um

[PATCH] drm/vkms: Fix RGB565 pixel conversion

2023-04-25 Thread Maíra Canal
Perform the correct casting of the intermediate coefficients of the RGB565 pixel conversion. Currently, the pixel conversion is using s64 for the intermediate coefficients, which is causing the IGT pixel-format tests to fail. So, cast the operands to s32 in order to improve the vkms' test

Re: [PATCH 07/14] drm/mgag200: Replace simple-KMS with regular atomic helpers

2023-04-25 Thread Thomas Zimmermann
(cc'ing dri-devel, Jocelyn and Sam) Hi Phil, I've put dri-devel into cc, which is the developer's mailing list. It's the first time I hear about this bug. Am 25.04.23 um 16:25 schrieb ker...@linuxace.com: Hi Thomas, I have been trying to track down why we lost console on our Dell servers

Re: [PATCH v3 29/65] clk: socfpga: gate: Add a determine_rate hook

2023-04-25 Thread Maxime Ripard
Hi Dinh, On Mon, Apr 24, 2023 at 01:32:28PM -0500, Dinh Nguyen wrote: > On 4/4/23 05:11, Maxime Ripard wrote: > > The SoCFGPA gate clock implements a mux with a set_parent hook, but > > doesn't provide a determine_rate implementation. > > > > This is a bit odd, since set_parent() is there to, as

Re: [PATCH v3 00/65] clk: Make determine_rate mandatory for muxes

2023-04-25 Thread Maxime Ripard
On Thu, Apr 13, 2023 at 02:44:51PM -0700, Stephen Boyd wrote: > Quoting Maxime Ripard (2023-04-04 03:10:50) > > Hi, > > > > This is a follow-up to a previous series that was printing a warning > > when a mux has a set_parent implementation but is missing > > determine_rate(). > > > > The

[PATCH 0/6] drm,fbdev: Use fbdev's I/O helpers

2023-04-25 Thread Thomas Zimmermann
Make fbdev's built-in helpers for reading and writing I/O and system memory available to DRM. Replace DRM's internal helpers. The first patch resolves a bug that's been in the fbdev code for more than 15 years. Makes the read/write helpers work successfully with the IGT tests. Patches 2 to 4

[PATCH 4/6] fbdev: Validate info->screen_{base, buffer} in fb_ops implementations

2023-04-25 Thread Thomas Zimmermann
Push the test for info->screen_base from fb_read() and fb_write() into the implementations of struct fb_ops.{fb_read,fb_write}. In cases where the driver operates on info->screen_buffer, test this field instead. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/cobalt_lcdfb.c | 6

  1   2   >