RE: [GIT PULL] exynos-drm-next

2023-03-28 Thread 대인기
> -Original Message- > From: Daniel Vetter > Sent: Wednesday, March 29, 2023 2:31 AM > To: Inki Dae > Cc: airl...@linux.ie; dan...@ffwll.ch; dri-devel@lists.freedesktop.org; > linux-samsung-...@vger.kernel.org > Subject: Re: [GIT PULL] exynos-drm-next > > On Tue, Mar 28, 2023 at

[PING PATCH] drm/bochs: replace ioremap with devm_ioremap to avoid immo leak

2023-03-28 Thread Gencen Gan
From: Gan Gecen Smatch reports: drivers/gpu/drm/tiny/bochs.c:290 bochs_hw_init() warn: 'bochs->mmio' from ioremap() not released on lines: 246,250,254. In the function bochs_load() that calls bochs_hw_init() only, if bochs_hw_init(dev) returns -ENODEV(-19), it will

Re: [PATCH v8 2/2] drm: add kms driver for loongson display controller

2023-03-28 Thread Sui Jingfeng
WARNING on linus/master v6.3-rc4 next-20230328] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp

[PATCH] linux/vt_buffer.h: allow either builtin or modular for macros

2023-03-28 Thread Randy Dunlap
Fix build errors on ARCH=alpha when CONFIG_MDA_CONSOLE=m. This allows the ARCH macros to be the only ones defined. In file included from ../drivers/video/console/mdacon.c:37: ../arch/alpha/include/asm/vga.h:17:40: error: expected identifier or '(' before 'volatile' 17 | static inline void

[PATCH v2] drm/mediatek: Add ovl_adaptor get format function

2023-03-28 Thread Nancy . Lin
Add ovl_adaptor get_format and get_num_formats component function. The two functions are need for getting the supported format in mtk_plane_init(). Signed-off-by: Nancy.Lin --- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 2 ++ .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 24

Re: [PATCH] drm/mediatek: Add ovl_adaptor get format function

2023-03-28 Thread 林欣螢

[PATCH] drm/sysfs: Expose DRM connector id in each connector sysfs

2023-03-28 Thread Won Chung
Expose DRM connector id in device sysfs so that we can map the connector id to the connector syspath. Currently, even if we can derive the connector id from modeset, we do not have a way to find the corresponding connector's syspath. This is helpful when determining the root connector of MST

[PATCH v5] drm/sysfs: Link DRM connectors to corresponding Type-C connectors

2023-03-28 Thread Won Chung
Create a symlink pointing to USB Type-C connector for DRM connectors when they are created. The link will be created only if the firmware is able to describe the connection beween the two connectors. Currently, even if a display uses a USB Type-C port, there is no way for the userspace to find

Re: [PATCH v4 00/14] GMU-less A6xx support (A610, A619_holi)

2023-03-28 Thread Konrad Dybcio
On 14.03.2023 16:28, Konrad Dybcio wrote: > v3 -> v4: > - Drop the mistakengly-included and wrong A3xx-A5xx bindings changes > - Improve bindings commit messages to better explain what GMU Wrapper is > - Drop the A680 highest bank bit value adjustment patch > - Sort UBWC config variables in a

[PATCH v3 2/2] drm/msm: simplify msm_parse_deps() and msm_parse_post_deps()

2023-03-28 Thread Dmitry Baryshkov
Simplify two functions msm_parse_deps() and msm_parse_post_deps(): extract single item parsing function and clean up error path. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_gem_submit.c | 186 +++ 1 file changed, 101 insertions(+), 85 deletions(-) diff

[PATCH v3 1/2] drm/msm: drop unused ring variable in msm_ioctl_gem_submit()

2023-03-28 Thread Dmitry Baryshkov
The variable ring is not used by msm_parse_deps() and msm_ioctl_gem_submit() and thus can be dropped. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_gem_submit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gem_submit.c

[PATCH v3 0/2] drm/msm: rework msm_parse_deps() and msm_parse_post_deps()

2023-03-28 Thread Dmitry Baryshkov
As discusssed in the the review of [1], rework these two functions to separate single point parser and provide clean error path. Depenencies: [1], [2] [1] https://lore.kernel.org/all/20230215235048.1166484-1-robdcl...@gmail.com [2] https://patchwork.freedesktop.org/patch/524090/?series=114362=1

Re: [PATCH 1/1] drm/i915: fix race condition UAF in i915_perf_add_config_ioctl

2023-03-28 Thread Umesh Nerlige Ramappa
On Tue, Mar 28, 2023 at 02:08:47PM +0100, Tvrtko Ursulin wrote: On 28/03/2023 10:36, Min Li wrote: Userspace can guess the id value and try to race oa_config object creation with config remove, resulting in a use-after-free if we dereference the object after unlocking the metrics_lock. For

[PATCH v3 08/10] drm/display/dsc: add YCbCr 4:2:2 and 4:2:0 RC parameters

2023-03-28 Thread Dmitry Baryshkov
Include RC parameters for YCbCr 4:2:2 and 4:2:0 configurations. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dsc_helper.c | 438 +++ include/drm/display/drm_dsc_helper.h | 2 + 2 files changed, 440 insertions(+) diff --git

[PATCH v3 06/10] drm/display/dsc: split DSC 1.2 and DSC 1.1 (pre-SCR) parameters

2023-03-28 Thread Dmitry Baryshkov
The array of rc_parameters contains a mixture of parameters from DSC 1.1 and DSC 1.2 standards. Split these tow configuration arrays in preparation to adding more configuration data. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dsc_helper.c | 127 ++

[PATCH v3 09/10] drm/display/dsc: add helper to set semi-const parameters

2023-03-28 Thread Dmitry Baryshkov
Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dsc_helper.c | 21 +

[PATCH v3 05/10] drm/display/dsc: use flat array for rc_parameters lookup

2023-03-28 Thread Dmitry Baryshkov
Next commits are going to add support for additional RC parameter lookup tables. These tables are going to use different bpp/bpc combinations, thus it makes little sense to keep the 2d array for RC parameters. Switch to using the flat array. Reviewed-by: Jani Nikula Signed-off-by: Dmitry

[PATCH v3 10/10] drm/msm/dsi: use new helpers for DSC setup

2023-03-28 Thread Dmitry Baryshkov
Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi_host.c | 61 -- 1 file changed, 8

[PATCH v3 03/10] drm/i915/dsc: move DSC tables to DRM DSC helper

2023-03-28 Thread Dmitry Baryshkov
Move DSC RC tables to DRM DSC helper. No additional code changes and/or cleanups are a part of this commit, it will be cleaned up in the followup commits. Reviewed-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dsc_helper.c | 372 ++

[PATCH v3 07/10] drm/display/dsc: include the rest of pre-SCR parameters

2023-03-28 Thread Dmitry Baryshkov
DSC model contains pre-SCR RC parameters for other bpp/bpc combinations, include them here for completeness. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dsc_helper.c | 72 1 file changed, 72 insertions(+) diff --git

[PATCH v3 04/10] drm/i915/dsc: stop using interim structure for calculated params

2023-03-28 Thread Dmitry Baryshkov
Stop using an interim structure rc_parameters for storing calculated params and then setting drm_dsc_config using that structure. Instead put calculated params into the struct drm_dsc_config directly. Reviewed-by: Jani Nikula Signed-off-by: Dmitry Baryshkov ---

[PATCH v3 02/10] drm/i915/dsc: move rc_buf_thresh values to common helper

2023-03-28 Thread Dmitry Baryshkov
The rc_buf_thresh values are common to all DSC implementations. Move them to the common helper together with the code to propagage them to the drm_dsc_config. Reviewed-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dsc_helper.c | 35 +++

[PATCH v3 00/10] drm/i915: move DSC RC tables to drm_dsc_helper.c

2023-03-28 Thread Dmitry Baryshkov
Other platforms (msm) will benefit from sharing the DSC config setup functions. This series moves parts of static DSC config data from the i915 driver to the common helpers to be used by other drivers. Note: the RC parameters were cross-checked against config files found in DSC model 2021062,

[PATCH v3 01/10] drm/i915/dsc: change DSC param tables to follow the DSC model

2023-03-28 Thread Dmitry Baryshkov
After cross-checking DSC models (20150914, 20161212, 20210623) change values in rc_parameters tables to follow config files present inside the DSC model. Handle two places, where i915 tables diverged from the model, by patching the rc values in the code. Note: I left one case uncorrected,

[PATCH] drm/i915/hwmon: Use 0 to designate disabled PL1 power limit

2023-03-28 Thread Ashutosh Dixit
On ATSM the PL1 limit is disabled at power up. The previous uapi assumed that the PL1 limit is always enabled and therefore did not have a notion of a disabled PL1 limit. This results in erroneous PL1 limit values when the PL1 limit is disabled. For example at power up, the disabled ATSM PL1 limit

RE: [PATCH 3/3] drm/xe: Update GuC/HuC firmware autoselect logic

2023-03-28 Thread Srivatsa, Anusha
> -Original Message- > From: De Marchi, Lucas > Sent: Thursday, March 23, 2023 10:18 PM > To: intel...@lists.freedesktop.org > Cc: Srivatsa, Anusha ; Harrison, John C > ; Ceraolo Spurio, Daniele > ; dri-devel@lists.freedesktop.org; Daniel > Vetter ; Dave Airlie ; De Marchi, > Lucas >

Re: [PATCH] drm/msm/a6xx: add CONFIG_PM dependency

2023-03-28 Thread Randy Dunlap
On 3/24/23 02:54, Arnd Bergmann wrote: > From: Arnd Bergmann > > Selecting CONFIG_PM_GENERIC_DOMAINS causes a build failure when CONFIG_PM > is not enabled: > > WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS > Depends on [n]: PM [=n] > Selected by [m]: > - DRM_MSM

linux-next: manual merge of the drm-msm tree with the drm-misc tree

2023-03-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-msm tree got a conflict in: drivers/gpu/drm/msm/adreno/adreno_gpu.c between commit: 7fa5047a436b ("drm: Use of_property_present() for testing DT property presence") from the drm-misc tree and commit: 9f251f934012 ("drm/msm/adreno: Use OPP

Re: [pull] drm: dma-fence-deadline-core for v6.4

2023-03-28 Thread Rob Clark
On Tue, Mar 28, 2023 at 10:19 AM Daniel Vetter wrote: > > On Sat, Mar 25, 2023 at 11:24:56AM -0700, Rob Clark wrote: > > Hi Dave and Daniel, > > > > Here is the series for dma-fence deadline hint, without driver > > specific patches, with the intent that it can be merged into drm-next > > as well

Re: [PATCH] drm/msm: Rename drm_msm_gem_submit_reloc::or in C++ code

2023-03-28 Thread Dmitry Baryshkov
On Sun, 26 Mar 2023 09:38:13 -0700, Rob Clark wrote: > Clashes with C++ `or` keyword > > Applied, thanks! [1/1] drm/msm: Rename drm_msm_gem_submit_reloc::or in C++ code https://gitlab.freedesktop.org/lumag/msm/-/commit/be7772e53681 Best regards, -- Dmitry Baryshkov

Re: [PATCH v4 0/4] Move TE setup to prepare_for_kickoff()

2023-03-28 Thread Dmitry Baryshkov
On Tue, 21 Feb 2023 10:42:52 -0800, Jessica Zhang wrote: > Move TE setup to prepare_for_kickoff() and remove empty prepare_commit() > functions in both MDP4 and DPU drivers. > > Changes in V2: > - Added changes to remove empty prepare_commit() functions > > Changes in V3: > - Reordered

Re: [PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-28 Thread Dmitry Baryshkov
On Fri, 24 Mar 2023 15:00:13 -0700, Rob Clark wrote: > If userspace asked for a timeout greater than zero, but less than a > jiffy, they clearly weren't planning on spinning. So it is better > to round up to one. > > This fixes an issue with supertuxkart that was (for some reason) > spinning

Re: [RFC PATCH v3 0/4] Move TE setup to prepare_for_kickoff()

2023-03-28 Thread Dmitry Baryshkov
On Mon, 13 Feb 2023 11:48:15 -0800, Jessica Zhang wrote: > Move TE setup to prepare_for_kickoff() and remove empty prepare_commit() > functions in both MDP4 and DPU drivers. > > Changes in V2: > - Added changes to remove empty prepare_commit() functions > > Changes in V3: > - Reordered

Re: [PATCH v3 0/7] drm/msm: add support for SM8550

2023-03-28 Thread Dmitry Baryshkov
On Mon, 09 Jan 2023 11:15:17 +0100, Neil Armstrong wrote: > This adds support for the MDSS/DPU/DSI on the Qualcomm SM8550 platform. > > This patchset is based on the SM8450 display support serie at [1]. > > In order to work, the following patchsets are required: > - PM8550 LDO fix at [2] > -

Re: [PATCH] drm/msm/dpu: Fix bit-shifting UB in DPU_HW_VER() macro

2023-03-28 Thread Dmitry Baryshkov
On Mon, 06 Mar 2023 10:06:33 +0100, Geert Uytterhoeven wrote: > With gcc-5 and CONFIG_UBSAN_SHIFT=y: > > drivers/gpu/drm/msm/msm_mdss.c: In function 'msm_mdss_enable': > drivers/gpu/drm/msm/msm_mdss.c:296:2: error: case label does not reduce > to an integer constant > case

Re: [PATCH v2 0/4] arm64: qcom: sm8450: bindings check cleanup

2023-03-28 Thread Dmitry Baryshkov
On Fri, 24 Mar 2023 10:28:45 +0100, Neil Armstrong wrote: > A few fixes to pass the DT bindings check successfully > for sm8450 qrd & hdk DTs. > > The following are still needed to pass all the checks: > - > https://lore.kernel.org/r/20230308082424.140224-3-manivannan.sadhasi...@linaro.org > -

Re: [PATCH 1/2] drm/lima: Use drm_sched_job_add_syncobj_dependency()

2023-03-28 Thread Dmitry Baryshkov
On Fri, 24 Feb 2023 18:41:32 -0300, Maíra Canal wrote: > As lima_gem_add_deps() performs the same steps as > drm_sched_job_add_syncobj_dependency(), replace the open-coded > implementation in Lima in order to simply use the DRM function. > > Applied, thanks! [2/2] drm/msm: Use

Re: [PATCH v6 0/9] Fix DSI host idx detection on HW revision clash

2023-03-28 Thread Dmitry Baryshkov
On Sat, 18 Mar 2023 14:42:46 +0100, Konrad Dybcio wrote: > v5 -> v6: > - Squash both fixes that concerned the deprecated QCM2290 compatible to > avoid warnings > > v5: > https://lore.kernel.org/r/20230307-topic-dsi_qcm-v5-0-9d4235b77...@linaro.org > > v4 -> v5: > - Drop superfluous items:

Re: [PATCH 00/10] drm/msm: fix bind error handling

2023-03-28 Thread Dmitry Baryshkov
On Mon, 06 Mar 2023 11:07:12 +0100, Johan Hovold wrote: > I had reasons to look closer at the MSM DRM driver error handling and > realised that it had suffered from a fair amount of bit rot over the > years. > > Unfortunately, I started fixing this in my 6.2 branch and failed to > notice two

Re: [PATCH v6 0/5] arm64: dts: qcom: add DP Controller to SM8350 & SM8450 DTS

2023-03-28 Thread Dmitry Baryshkov
On Fri, 17 Mar 2023 16:06:31 +0100, Neil Armstrong wrote: > Switch the QMP PHY to the newly documented USB3/DP Combo PHY > bindings at [1] and add the DP controller nodes. > > The DP output is shared with the USB3 SuperSpeed lanes and is > usually connected to an USB-C port which Altmode is

Re: [PATCH v7 00/32] drm/msm/dpu: wide planes support

2023-03-28 Thread Dmitry Baryshkov
On Thu, 16 Mar 2023 19:16:21 +0300, Dmitry Baryshkov wrote: > This patchset brings in multirect usage to support using two SSPP > rectangles for a single plane. Full virtual planes support is omitted > from this pull request, it will come later (I'm at the final stages of > polishing and

Re: [v12] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2023-03-28 Thread Dmitry Baryshkov
On Fri, 27 Jan 2023 02:14:47 -0800, Kalyan Thota wrote: > Flush mechanism for DSPP blocks has changed in sc7280 family, it > allows individual sub blocks to be flushed in coordination with > master flush control. > > Representation: master_flush && (PCC_flush | IGC_flush .. etc ) > > This

Re: [PATCH v2 0/3] drm/msm/mdss: rework UBWC setup

2023-03-28 Thread Dmitry Baryshkov
On Wed, 18 Jan 2023 03:04:25 +0200, Dmitry Baryshkov wrote: > The commit 92bab9142456 ("drm/msm: less magic numbers in > msm_mdss_enable") reworked the static UBWC setup to replace magic > numbers with calulating written values from the SoC/device parameters. > This simplified adding new

Re: [PATCH v2 1/2] drm/msm/dp: Clean up handling of DP AUX interrupts

2023-03-28 Thread Dmitry Baryshkov
On Thu, 26 Jan 2023 17:09:12 -0800, Douglas Anderson wrote: > The DP AUX interrupt handling was a bit of a mess. > * There were two functions (one for "native" transfers and one for > "i2c" transfers) that were quite similar. It was hard to say how > many of the differences between the two

Re: [PATCH][next] drm/msm/dp: Fix spelling mistake "Capabiity" -> "Capability"

2023-03-28 Thread Dmitry Baryshkov
On Tue, 14 Mar 2023 08:20:50 +, Colin Ian King wrote: > There is a spelling mistake in a drm_dbg_dp message. Fix it. > > Applied, thanks! [1/1] drm/msm/dp: Fix spelling mistake "Capabiity" -> "Capability" https://gitlab.freedesktop.org/lumag/msm/-/commit/6ee9666a4f4c Best regards,

[pull] drm: dma-fence-deadline for v6.4

2023-03-28 Thread Rob Clark
Hi Dave and Daniel, Here is the series for dma-fence deadline hint, without driver specific patches, or UAPI, with the intent that it can be merged into drm-next as well as -driver next trees to enable landing driver specific support through their corresponding -next trees. The following changes

Re: [PATCH 6.2 regression fix] drm/nouveau/kms: Fix backlight registration

2023-03-28 Thread Lyude Paul
Reviewed-by: Lyude Paul (Also note to Mark: this is my way of letting you know someone fixed the regression with backlight controls upstream, looking into the weird bright screen after resume issue) On Sun, 2023-03-26 at 22:54 +0200, Hans de Goede wrote: > The nouveau code used to call

[PATCH 2/2] drm/amd/display: Add previous prototype to 'optc3_wait_drr_doublebuffer_pending_clear'

2023-03-28 Thread Caio Novais
Compiling AMD GPU drivers displays a warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:294:6: warning: no previous prototype for ‘optc3_wait_drr_doublebuffer_pending_clear’ [-Wmissing-prototypes] Get rid of it by adding a function prototype

[PATCH 1/2] drm/amd/display: Remove unused variable 'scl_enable'

2023-03-28 Thread Caio Novais
Compiling AMD GPU drivers displays a warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_rq_dlg_calc_314.c: In function ‘dml_rq_dlg_get_dlg_params’: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_rq_dlg_calc_314.c:991:14: warning: variable ‘scl_enable’ set but not

[PATCH 0/2] drm/amd/display: Remove a unused variable and add a function prototype

2023-03-28 Thread Caio Novais
This patchset removes one unused variable and adds a function prototype. Caio Novais (2): drm/amd/display: Remove unused variable 'scl_enable' drm/amd/display: Add previous prototype to 'optc3_wait_drr_doublebuffer_pending_clear' drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h

Re: [pull] drm: dma-fence-deadline-core for v6.4

2023-03-28 Thread Rob Clark
On Tue, Mar 28, 2023 at 10:19 AM Daniel Vetter wrote: > > On Sat, Mar 25, 2023 at 11:24:56AM -0700, Rob Clark wrote: > > Hi Dave and Daniel, > > > > Here is the series for dma-fence deadline hint, without driver > > specific patches, with the intent that it can be merged into drm-next > > as well

Re: [Intel-gfx] [PATCH 1/1] drm/i915: fix race condition UAF in i915_perf_add_config_ioctl

2023-03-28 Thread Andi Shyti
On Tue, Mar 28, 2023 at 05:36:27PM +0800, Min Li wrote: > Userspace can guess the id value and try to race oa_config object creation > with config remove, resulting in a use-after-free if we dereference the > object after unlocking the metrics_lock. For that reason, unlocking the > metrics_lock

Re: [Intel-gfx] [PATCH 1/1] drm/i915: fix race condition UAF in i915_perf_add_config_ioctl

2023-03-28 Thread Andi Shyti
Hi Min, On Tue, Mar 28, 2023 at 05:36:27PM +0800, Min Li wrote: > Userspace can guess the id value and try to race oa_config object creation > with config remove, resulting in a use-after-free if we dereference the > object after unlocking the metrics_lock. For that reason, unlocking the >

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Implement fbdev emulation as in-kernel client

2023-03-28 Thread kernel test robot
Hi Thomas, I love your patch! Yet something to improve: [auto build test ERROR on 6e5f96153989e454041848f66a5227be9bd0bbc3] url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Zimmermann/drm-i915-Move-fbdev-functions/20230328-191627 base: 6e5f96153989e454041848f66a5227be9bd0bbc3

Re: [PATCH] drm/sun4i: uncouple DSI dotclock divider from TCON0_DCLK_REG

2023-03-28 Thread Frank Oltmanns
Hi, On 2023-03-27 at 22:20:45 +0200, Maxime Ripard wrote: > Hi, > > On Sat, Mar 25, 2023 at 12:40:04PM +0100, Frank Oltmanns wrote: [...] >> Actually, I had the following third patch prepared that adjusted the >> dotclock rate so that the >> required PLL rate is set. But again, this seems

Re: Linux 6.3-rc3

2023-03-28 Thread Nathan Chancellor
On Fri, Mar 24, 2023 at 05:23:12PM +0200, Kalle Valo wrote: > Nathan Chancellor writes: > > >> This is nitpicking but it would be nice if the tarball contents wouldn't > >> conflict with each other. Now both llvm-16.0.0-aarch64.tar.gz and > >> llvm-16.0.0-x86_64.tar extract to the same directory

Re: [PATCH 3/4] dt-bindings: display: elida,kd35t133: document port and rotation

2023-03-28 Thread Jagan Teki
On Mon, Mar 27, 2023 at 2:12 AM Krzysztof Kozlowski wrote: > > Panels are supposed to have one port (defined in panel-common.yaml > binding) and can have also rotation: > > rk3326-odroid-go2.dtb: panel@0: 'port', 'rotation' do not match any of the > regexes: 'pinctrl-[0-9]+' > > Signed-off-by:

Re: [PATCH 1/4] dt-bindings: display: xinpeng, xpp055c272: document port

2023-03-28 Thread Jagan Teki
On Mon, Mar 27, 2023 at 2:12 AM Krzysztof Kozlowski wrote: > > Panels are supposed to have one port (defined in panel-common.yaml > binding): > > px30-evb.dtb: panel@0: 'port' does not match any of the regexes: > 'pinctrl-[0-9]+' > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by:

Re: [PATCH 2/4] dt-bindings: display: feiyang,fy07024di26a30d: document port

2023-03-28 Thread Jagan Teki
On Mon, Mar 27, 2023 at 2:12 AM Krzysztof Kozlowski wrote: > > Panels are supposed to have one port (defined in panel-common.yaml > binding): > > rk3399-rockpro64.dtb: panel@0: 'port' does not match any of the regexes: > 'pinctrl-[0-9]+' > > Signed-off-by: Krzysztof Kozlowski > ---

Re: [PATCH 4/4] dt-bindings: display: sitronix, st7701: document port and rotation

2023-03-28 Thread Jagan Teki
On Mon, Mar 27, 2023 at 2:12 AM Krzysztof Kozlowski wrote: > > Panels are supposed to have one port (defined in panel-common.yaml > binding) and can have also rotation: > > rk3326-odroid-go3.dtb: panel@0: 'port', 'rotation' do not match any of the > regexes: 'pinctrl-[0-9]+' > > Signed-off-by:

Re: [Intel-gfx] [PATCH v6 5/8] drm/i915/pxp: Add ARB session creation and cleanup

2023-03-28 Thread Rodrigo Vivi
On Tue, Mar 28, 2023 at 05:01:36PM +, Teres Alexis, Alan Previn wrote: > On Mon, 2023-03-27 at 17:15 +0100, Tvrtko Ursulin wrote: > > These two: > > e6177ec586d1 ("drm/i915/huc: stall media submission until HuC is loaded") > > b76c14c8fb2a ("drm/i915/huc: better define HuC status getparam

Re: [GIT PULL] exynos-drm-next

2023-03-28 Thread Daniel Vetter
On Tue, Mar 28, 2023 at 01:05:24PM +0900, Inki Dae wrote: > Hi Dave and Daniel, > >Just one patch series that moves the existing Exynos DSI driver >to drm/bridge directory to support both SoCs family - Exynos >and I.MX - because same Exynos MIPI DSI ip can be used by the two >

Re: [pull] drm: dma-fence-deadline-core for v6.4

2023-03-28 Thread Daniel Vetter
On Sat, Mar 25, 2023 at 11:24:56AM -0700, Rob Clark wrote: > Hi Dave and Daniel, > > Here is the series for dma-fence deadline hint, without driver > specific patches, with the intent that it can be merged into drm-next > as well as -driver next trees to enable landing driver specific > support

[PATCH v2 1/2] drm/bridge: Fix improper bridge init order with pre_enable_prev_first

2023-03-28 Thread Jagan Teki
For a given bridge pipeline if any bridge sets pre_enable_prev_first flag then the pre_enable for the previous bridge will be called before pre_enable of this bridge and opposite is done for post_disable. These are the potential bridge flags to alter bridge init order in order to satisfy the MIPI

[PATCH v2 2/2] drm/bridge: Document bridge init order with pre_enable_prev_first

2023-03-28 Thread Jagan Teki
In order to satisfy the MIPI DSI initialization sequence the bridge init order has been altered with the help of pre_enable_prev_first in pre_enable and post_disable bridge operations. Document the affected bridge init order with an example on the bridge operations helpers. Signed-off-by: Jagan

Re: [PATCH v8 2/2] drm: add kms driver for loongson display controller

2023-03-28 Thread Nathan Chancellor
] > > [also build test WARNING on linus/master v6.3-rc4 next-20230328] > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > And when submitting patch, we suggest to use '--base' as documented in > > https://git-scm.com/docs/git-format-patch#_base_tree_

Re: [Intel-gfx] [PATCH v6 5/8] drm/i915/pxp: Add ARB session creation and cleanup

2023-03-28 Thread Teres Alexis, Alan Previn
On Mon, 2023-03-27 at 17:15 +0100, Tvrtko Ursulin wrote: > These two: > e6177ec586d1 ("drm/i915/huc: stall media submission until HuC is loaded") > b76c14c8fb2a ("drm/i915/huc: better define HuC status getparam possible > return values.") > They do not help here? It is not possible to use or

Re: [PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-28 Thread Rob Clark
On Tue, Mar 28, 2023 at 8:28 AM Dmitry Baryshkov wrote: > > On 25/03/2023 00:00, Rob Clark wrote: > > From: Rob Clark > > > > If userspace asked for a timeout greater than zero, but less than a > > jiffy, they clearly weren't planning on spinning. So it is better > > to round up to one. > > > >

RE: [PATCH 12/34] drm/amdgpu: add configurable grace period for unmap queues

2023-03-28 Thread Kim, Jonathan
[Public] Thanks for catch Kent. I'll fix up the typos with a follow-on. Jon > -Original Message- > From: Russell, Kent > Sent: Tuesday, March 28, 2023 11:19 AM > To: Kim, Jonathan ; amd-...@lists.freedesktop.org; > dri-devel@lists.freedesktop.org > Cc: Kuehling, Felix ; Kim, Jonathan >

Re: [PATCH v4 06/14] drm/msm/a6xx: Remove both GBIF and RBBM GBIF halt on hw init

2023-03-28 Thread Dmitry Baryshkov
On 14/03/2023 17:28, Konrad Dybcio wrote: Currently we're only deasserting REG_A6XX_RBBM_GBIF_HALT, but we also need REG_A6XX_GBIF_HALT to be set to 0. For GMU-equipped GPUs this is done in a6xx_bus_clear_pending_transactions(), but for the GMU-less ones we have to do it *somewhere*. Unhalting

Re: [PATCH v4 14/14] drm/msm/a6xx: Add A610 speedbin support

2023-03-28 Thread Dmitry Baryshkov
On 14/03/2023 17:28, Konrad Dybcio wrote: A610 is implemented on at least three SoCs: SM6115 (bengal), SM6125 (trinket) and SM6225 (khaje). Trinket does not support speed binning (only a single SKU exists) and we don't yet support khaje upstream. Hence, add a fuse mapping table for bengal to

Re: [PATCH 4/4] drm/i915: Implement fbdev emulation as in-kernel client

2023-03-28 Thread Jani Nikula
On Tue, 28 Mar 2023, Thomas Zimmermann wrote: > Replace all code that initializes or releases fbdev emulation > throughout the driver. Instead initialize the fbdev client by a > single call to i915_fbdev_setup() after i915 has registered its > DRM device. Just like in most drivers, i915 fbdev

Re: [PATCH v4 13/14] drm/msm/a6xx: Add A619_holi speedbin support

2023-03-28 Thread Dmitry Baryshkov
On 14/03/2023 17:28, Konrad Dybcio wrote: A619_holi is implemented on at least two SoCs: SM4350 (holi) and SM6375 (blair). This is what seems to be a first occurrence of this happening, but it's easy to overcome by guarding the SoC-specific fuse values with of_machine_is_compatible(). Do just

Re: [PATCH v4 12/14] drm/msm/a6xx: Use adreno_is_aXYZ macros in speedbin matching

2023-03-28 Thread Dmitry Baryshkov
On 14/03/2023 17:28, Konrad Dybcio wrote: Before transitioning to using per-SoC and not per-Adreno speedbin fuse values (need another patchset to land elsewhere), a good improvement/stopgap solution is to use adreno_is_aXYZ macros in place of explicit revision matching. Do so to allow

Re: [PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-28 Thread Dmitry Baryshkov
On 25/03/2023 00:00, Rob Clark wrote: From: Rob Clark If userspace asked for a timeout greater than zero, but less than a jiffy, they clearly weren't planning on spinning. So it is better to round up to one. This fixes an issue with supertuxkart that was (for some reason) spinning on a gl

Re: [PATCH] drm/mediatek: Add ovl_adaptor get format function

2023-03-28 Thread AngeloGioacchino Del Regno
Il 28/03/23 04:51, Nancy.Lin ha scritto: Add ovl_adaptor get_format and get_num_formats component function. The two functions are need for getting the supported format in mtk_plane_init(). Signed-off-by: Nancy.Lin Change-Id: Ia8e9f6cabcc71b262155a022b103ae81d1616b8f The code looks good to

Re: [PATCH v8 2/2] drm: add kms driver for loongson display controller

2023-03-28 Thread Sui Jingfeng
HI, On 2023/3/28 17:27, kernel test robot wrote: Hi Sui, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.3-rc4 next-20230328] [If your patch is applied to the wrong git tree, kindly drop us

Re: [PATCH 2/4] drm/i915: Initialize fbdev DRM client with callback functions

2023-03-28 Thread Jani Nikula
On Tue, 28 Mar 2023, Thomas Zimmermann wrote: > Initialize i915's fbdev client by giving an instance of struct > drm_client_funcsi to drm_client_init(). Also clean up with > drm_client_release(). > > Doing this in i915 prevents fbdev helpers from initializing and > releasing the client internally

RE: [PATCH 12/34] drm/amdgpu: add configurable grace period for unmap queues

2023-03-28 Thread Russell, Kent
[AMD Official Use Only - General] 3 tiny grammar/spelling things inline (not critical) Kent > -Original Message- > From: amd-gfx On Behalf Of > Jonathan Kim > Sent: Monday, March 27, 2023 2:43 PM > To: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org > Cc: Kuehling,

Re: [PATCH v2 07/11] video/aperture: Disable and unregister sysfb devices via aperture helpers

2023-03-28 Thread Samuel Čavoj
On 2023-03-20 13:12, Javier Martinez Canillas wrote: Samuel Čavoj writes: [...] This call to sysfb_disable() has been causing trouble with regard to VFIO. VFIO has been calling aperture_remove_conflicting_pci_devices to get rid of any console drivers (d173780620792c) using the device in

[PATCH v5 8/8] drm/i915/gt: Hold a wakeref for the active VM

2023-03-28 Thread Andrzej Hajda
From: Chris Wilson There may be a disconnect between the GT used by the engine and the GT used for the VM, requiring us to hold a wakeref on both while the GPU is active with this request. Signed-off-by: Chris Wilson Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/intel_context.h

[PATCH v5 7/8] drm/i915: track gt pm wakerefs

2023-03-28 Thread Andrzej Hajda
Track every intel_gt_pm_get() until its corresponding release in intel_gt_pm_put() by returning a cookie to the caller for acquire that must be passed by on released. When there is an imbalance, we can see who either tried to free a stale wakeref, or who forgot to free theirs. Signed-off-by:

[PATCH v5 5/8] drm/i915: Correct type of wakeref variable

2023-03-28 Thread Andrzej Hajda
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v5 6/8] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library

2023-03-28 Thread Andrzej Hajda
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 release, but the advantages outweigh it. Signed-off-by: Andrzej Hajda ---

[PATCH v5 3/8] lib/ref_tracker: add printing to memory buffer

2023-03-28 Thread Andrzej Hajda
Similar to stack_(depot|trace)_snprint the patch adds helper to printing stats to memory buffer. It will be helpful in case of debugfs. Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 8 +++ lib/ref_tracker.c | 56 ++--- 2

[PATCH v5 1/8] lib/ref_tracker: add unlocked leak print helper

2023-03-28 Thread Andrzej Hajda
To have reliable detection of leaks, caller must be able to check under the same lock both: tracked counter and the leaks. dir.lock is natural candidate for such lock and unlocked print helper can be called with this lock taken. As a bonus we can reuse this helper in ref_tracker_dir_exit.

[PATCH v5 4/8] lib/ref_tracker: remove warnings in case of allocation failure

2023-03-28 Thread Andrzej Hajda
Library can handle allocation failures. To avoid allocation warnings __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been replaced with GFP_NOWAIT in case of stack allocation on tracker free call. Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti --- lib/ref_tracker.c | 5

[PATCH v5 2/8] lib/ref_tracker: improve printing stats

2023-03-28 Thread Andrzej Hajda
In case the library is tracking busy subsystem, simply printing stack for every active reference will spam log with long, hard to read, redundant stack traces. To improve readabilty following changes have been made: - reports are printed per stack_handle - log is more compact, - added display name

[PATCH v5 0/8] drm/i915: use ref_tracker library for tracking wakerefs

2023-03-28 Thread Andrzej Hajda
Gently ping for network developers, could you look at ref_tracker patches, as the ref_tracker library was developed for network. This is revived patchset improving ref_tracker library and converting i915 internal tracker to ref_tracker. The old thread ended without consensus about small kernel

Re: [PATCH v10 09/15] drm/syncobj: Add deadline support for syncobj waits

2023-03-28 Thread Tvrtko Ursulin
On 08/03/2023 15:53, Rob Clark wrote: From: Rob Clark Add a new flag to let userspace provide a deadline as a hint for syncobj and timeline waits. This gives a hint to the driver signaling the backing fences about how soon userspace needs it to compete work, so it can addjust GPU frequency

Re: [PATCH v10 07/15] dma-buf/sw_sync: Add fence deadline support

2023-03-28 Thread Tvrtko Ursulin
On 08/03/2023 15:52, Rob Clark wrote: From: Rob Clark This consists of simply storing the most recent deadline, and adding an ioctl to retrieve the deadline. This can be used in conjunction with the SET_DEADLINE ioctl on a fence fd for testing. Ie. create various sw_sync fences, merge them

Re: [PATCH v7 32/32] drm/msm/dpu: remove unused dpu_plane_validate_multirect_v2 function

2023-03-28 Thread Dmitry Baryshkov
On 16/03/2023 18:16, Dmitry Baryshkov wrote: From: Abhinav Kumar After cleaning up the older multirect support the function dpu_plane_validate_multirect_v2() is unused. Lets remove it. Signed-off-by: Abhinav Kumar [DB: also drop struct dpu_multirect_plane_states and R0/R1/R_MAX]

Re: [PATCH v7 31/32] drm/msm/dpu: log the multirect_index in _dpu_crtc_blend_setup_pipe

2023-03-28 Thread Dmitry Baryshkov
On 16/03/2023 18:16, Dmitry Baryshkov wrote: From: Abhinav Kumar Lets print the multirect_index as well in _dpu_crtc_blend_setup_pipe() as it will give the complete information of the sw_pipe as well. Signed-off-by: Abhinav Kumar For the sake of completeness: Reviewed-by: Dmitry Baryshkov

Re: [PATCH 0/7] Enable YCbCr420 format for VDSC

2023-03-28 Thread Dmitry Baryshkov
On Tue, 28 Mar 2023 at 16:20, Kandpal, Suraj wrote: > > -Original Message- > > From: dri-devel On Behalf Of Jani > > Nikula > > Sent: Wednesday, March 8, 2023 5:00 PM > > To: Kandpal, Suraj ; dri- > > de...@lists.freedesktop.org; intel-...@lists.freedesktop.org > > Cc: Dmitry Baryshkov ;

RE: [PATCH 0/7] Enable YCbCr420 format for VDSC

2023-03-28 Thread Kandpal, Suraj
> -Original Message- > From: dri-devel On Behalf Of Jani > Nikula > Sent: Wednesday, March 8, 2023 5:00 PM > To: Kandpal, Suraj ; dri- > de...@lists.freedesktop.org; intel-...@lists.freedesktop.org > Cc: Dmitry Baryshkov ; Nautiyal, Ankit K > ; Shankar, Uma ; > Kandpal, Suraj >

Re: [PATCH 1/1] drm/i915: fix race condition UAF in i915_perf_add_config_ioctl

2023-03-28 Thread Tvrtko Ursulin
On 28/03/2023 10:36, Min Li wrote: Userspace can guess the id value and try to race oa_config object creation with config remove, resulting in a use-after-free if we dereference the object after unlocking the metrics_lock. For that reason, unlocking the metrics_lock must be done after we are

Re: [PATCH] drm/msm/dsi: simplify pixel clk rate handling

2023-03-28 Thread Dmitry Baryshkov
On 26/01/2023 02:07, Abhinav Kumar wrote: On 1/18/2023 5:00 AM, Dmitry Baryshkov wrote: Move a call to dsi_calc_pclk() out of calc_clk_rate directly towards msm_dsi_host_get_phy_clk_req(). It is called for both 6g and v2 hosts. Also, while we are at it, replace another dsi_get_pclk_rate()

Re: [PATCH 08/10] drm/msm: fix workqueue leak on bind errors

2023-03-28 Thread Dmitry Baryshkov
On 06/03/2023 12:07, Johan Hovold wrote: Make sure to destroy the workqueue also in case of early errors during bind (e.g. a subcomponent failing to bind). Since commit c3b790ea07a1 ("drm: Manage drm_mode_config_init with drmm_") the mode config will be freed when the drm device is released

Re: [PATCH 07/10] drm/msm: fix missing wq allocation error handling

2023-03-28 Thread Dmitry Baryshkov
On 06/03/2023 12:07, Johan Hovold wrote: Add the missing sanity check to handle workqueue allocation failures. Fixes: c8afe684c95c ("drm/msm: basic KMS driver for snapdragon") Cc: sta...@vger.kernel.org # 3.12 Cc: Rob Clark Signed-off-by: Johan Hovold --- drivers/gpu/drm/msm/msm_drv.c

Re: [PATCH 01/10] Revert "drm/msm: Add missing check and destroy for alloc_ordered_workqueue"

2023-03-28 Thread Dmitry Baryshkov
On 06/03/2023 12:07, Johan Hovold wrote: This reverts commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0. A recent patch that tried to fix up the msm_drm_init() paths with respect to the workqueue but only ended up making things worse: First, the newly added calls to msm_drm_uninit() on early

  1   2   >