Re: Decrypting tt maps in ttm

2023-09-20 Thread Zack Rusin
On Wed, 2023-09-20 at 21:22 +0200, Thomas Hellström wrote: > !! External Email > > On 9/20/23 20:24, Zack Rusin wrote: > > On Wed, 2023-09-20 at 19:17 +0200, Thomas Hellström wrote: > > > !! External Email > > > > > > Hi, Zack > > > > > > On 9/20/23 18:39, Zack Rusin wrote: > > > > On Wed,

Re: [PATCH v6 7/7] drm/vkms Add hotplug support via configfs to VKMS.

2023-09-20 Thread Brandon Ross Pollack
Sorry, these tests are actually running in the chromeOS infrastructure environment! A similar test can be written in IGT (and I think is in the other chain that Marius published) On Thu, Sep 21, 2023 at 3:03 AM Helen Koike wrote: > > Hello! > > Thanks for the patch. > > On 29/08/2023 02:30,

Re: [PATCH v4 01/10] drm/sched: Add drm_sched_submit_* helpers

2023-09-20 Thread Luben Tuikov
On 2023-09-19 01:58, Christian König wrote: > Am 19.09.23 um 07:01 schrieb Matthew Brost: >> Add scheduler submit ready, stop, and start helpers to hide the >> implementation details of the scheduler from the drivers. >> >> Signed-off-by: Matthew Brost > > Reviewed-by: Christian König for this

Re: [PATCH v3 09/13] drm/sched: Submit job before starting TDR

2023-09-20 Thread Luben Tuikov
On 2023-09-14 13:48, Matthew Brost wrote: > On Wed, Sep 13, 2023 at 10:56:10PM -0400, Luben Tuikov wrote: >> On 2023-09-11 22:16, Matthew Brost wrote: >>> If the TDR is set to a value, it can fire before a job is submitted in >>> drm_sched_main. The job should be always be submitted before the TDR

Re: [PATCH 00/10] Add mediate-drm secure flow for SVP

2023-09-20 Thread 胡俊光

Re: [PATCH 3/3] drm/msm/dpu: Fix SC7280 DSC block length

2023-09-20 Thread Abhinav Kumar
On 9/20/2023 3:46 PM, Konrad Dybcio wrote: Commit e550ad0e5c3d ("drm/msm/dpu: fix DSC 1.2 block lengths") changed the block length from a wrong value to another wrong value. Use the correct one this time. No that change is correct as well. After we moved to sub-blk parsing, we have enc

Re: [PATCH 2/3] drm/msm/dpu: Add missing DPU_DSC_OUTPUT_CTRL to SC7280

2023-09-20 Thread Abhinav Kumar
On 9/20/2023 3:46 PM, Konrad Dybcio wrote: DPU_DSC_OUTPUT_CTRL should be enabled for all platforms with a CTL CFG 1.0.0. SC7280 is one of them. Add it. sc7280 and all other chipsets using DSC 1.2 use dpu_hw_dsc_init_1_2 and not dpu_hw_dsc_init. dpu_hw_dsc_init_1_2 assigns the

Re: [PATCH 1/3] drm/msm/dpu: Fix SC7280 PP length

2023-09-20 Thread Abhinav Kumar
On 9/20/2023 3:46 PM, Konrad Dybcio wrote: Commit 194347df5844 ("drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros") unrolled a macro incorrectly. Fix that. No, its correct from what i can tell. Before inlining it was using PP_BLK_DITHER macro and not PP_BLK. PP_BLK_DITHER has a len of

Re: [PATCH] drm/ci: Uprev IGT to pull in fixes

2023-09-20 Thread Helen Koike
On 20/09/2023 16:44, Rob Clark wrote: On Wed, Sep 20, 2023 at 11:53 AM Helen Koike wrote: Hi Rob, Thanks for the patch. On 20/09/2023 15:10, Rob Clark wrote: On Wed, Sep 20, 2023 at 11:06 AM Rob Clark wrote: From: Rob Clark There have been a few igt test fixes compared to the

Re: [PATCH v3 4/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-09-20 Thread Kuogee Hsieh
On 9/15/2023 6:07 PM, Dmitry Baryshkov wrote: On Sat, 16 Sept 2023 at 00:38, Kuogee Hsieh wrote: Currently DP driver is executed independent of PM runtime framework. This lead DP driver incompatible with others. Incorporating pm runtime Why is it incompatible? Which others are mentioned

[PATCH 2/3] drm/msm/dpu: Add missing DPU_DSC_OUTPUT_CTRL to SC7280

2023-09-20 Thread Konrad Dybcio
DPU_DSC_OUTPUT_CTRL should be enabled for all platforms with a CTL CFG 1.0.0. SC7280 is one of them. Add it. Fixes: 0d1b10c63346 ("drm/msm/dpu: add DSC 1.2 hw blocks for relevant chipsets") Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 2 +- 1 file

[PATCH 3/3] drm/msm/dpu: Fix SC7280 DSC block length

2023-09-20 Thread Konrad Dybcio
Commit e550ad0e5c3d ("drm/msm/dpu: fix DSC 1.2 block lengths") changed the block length from a wrong value to another wrong value. Use the correct one this time. Fixes: e550ad0e5c3d ("drm/msm/dpu: fix DSC 1.2 block lengths") Signed-off-by: Konrad Dybcio ---

[PATCH 1/3] drm/msm/dpu: Fix SC7280 PP length

2023-09-20 Thread Konrad Dybcio
Commit 194347df5844 ("drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros") unrolled a macro incorrectly. Fix that. Fixes: 194347df5844 ("drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros") Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 8 1

[PATCH 0/3] SC7280 DPU fixups

2023-09-20 Thread Konrad Dybcio
/dpu_7_2_sc7280.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) --- base-commit: 926f75c8a5ab70567eb4c2d82fbc96963313e564 change-id: 20230920-topic-7280_dpu-59a29cedca6e Best regards, -- Konrad Dybcio

Re: [PATCH v3 1/2] dt-bindings: display: imx: add binding for i.MX8MP HDMI PVI

2023-09-20 Thread Rob Herring
On Wed, 20 Sep 2023 19:10:08 +0200, Lucas Stach wrote: > Add binding for the i.MX8MP HDMI parallel video interface block. > > Signed-off-by: Lucas Stach > --- > .../display/imx/fsl,imx8mp-hdmi-pvi.yaml | 80 +++ > 1 file changed, 80 insertions(+) > create mode 100644 >

[pull] amdgpu, amdkfd drm-fixes-6.6

2023-09-20 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 6.6. The following changes since commit ce9ecca0238b140b88f43859b211c9fdfd8e5b70: Linux 6.6-rc2 (2023-09-17 14:40:24 -0700) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-fixes-6.6-2023-09-20 for you to

Re: [PATCH 1/6] drm/msm/mdss: fix highest-bank-bit for msm8998

2023-09-20 Thread Abhinav Kumar
On 9/5/2023 10:43 AM, Dmitry Baryshkov wrote: According to the vendor DT files, msm8998 has highest-bank-bit equal to 2. Update the data accordingly. Fixes: 6f410b246209 ("drm/msm/mdss: populate missing data") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 2 +- 1

[PATCH] drm/i915/gem: Allow users to disable waitboost

2023-09-20 Thread Vinay Belgaumkar
Provide a bit to disable waitboost while waiting on a gem object. Waitboost results in increased power consumption by requesting RP0 while waiting for the request to complete. Add a bit in the gem_wait() IOCTL where this can be disabled. This is related to the libva API change here - Link:

[PATCH v2 2/2] drm/i915/bios: Fixup h/vsync_end instead of h/vtotal

2023-09-20 Thread Ville Syrjala
From: Ville Syrjälä We have the same h/vsync_end vs. h/vtotal quirk in the VBT parser that was also present in EDID parser. Adjust the VBT parser the same way as was done for hte EDID parser to fixup h/vsync_end instead of h/vtotal. While I'm not currently aware of any machines that need this

[PATCH v2 1/2] drm/edid: Fixup h/vsync_end instead of h/vtotal

2023-09-20 Thread Ville Syrjala
From: Ville Syrjälä There are some weird EDIDs floating around that have the sync pulse extending beyond the end of the blanking period. On the currently problemtic machine (HP Omni 120) EDID reports the following mode: "1600x900": 60 108000 1600 1780 1860 1800 900 910 913 1000 0x40 0x5 which

Re: [PATCH] drm/virtio: add definition for venus capset

2023-09-20 Thread Dmitry Osipenko
On 9/15/23 13:59, Huang Rui wrote: > This definition is used fro qemu, and qemu imports this marco in the > headers to enable venus for virtio gpu. So it should add it even kernel > doesn't use this. > > Signed-off-by: Huang Rui > --- > > Hi all, > > We would like to add a new definition for

Re: [PATCH] drm/virtio: clean out_fence on complete_submit

2023-09-20 Thread Dmitry Osipenko
On 9/12/23 09:08, José Pekkarinen wrote: > The removed line prevents the following cleanup function > to execute a dma_fence_put on the out_fence to free its > memory, producing the following output in kmemleak: > > unreferenced object 0x888126d8ee00 (size 128): > comm "kwin_wayland", pid

Re: [PATCH v2] drm/i915: refactor deprecated strncpy

2023-09-20 Thread Rodrigo Vivi
On Tue, Sep 19, 2023 at 04:45:31AM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > A suitable replacement is `strscpy` [2] due to the fact that it > guarantees

Re: [PATCH v3 2/2] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-09-20 Thread Laurent Pinchart
Hi Lucas, Thank you for the patch. On Wed, Sep 20, 2023 at 07:10:09PM +0200, Lucas Stach wrote: > This IP block is found in the HDMI subsystem of the i.MX8MP SoC. It has a > full timing generator and can switch between different video sources. On > the i.MX8MP however the only supported source

[PATCH] drm: improve the documentation of connector hpd ops

2023-09-20 Thread Abhinav Kumar
While making the changes in [1], it was noted that the documentation of the enable_hpd() and disable_hpd() does not make it clear that these ops should not try to do hpd state maintenance and should only attempt to enable/disable hpd related hardware for the connector. The state management of

[PATCH 4/4] drm/i915/dsi: Add some debug logging to mipi_exec_i2c (v2)

2023-09-20 Thread Hans de Goede
Add some debug logging to mipi_exec_i2c, to make debugging various issues seen with it easier. Changes in v2: - Drop unnecessary __func__ drm_dbg_kms() argument Signed-off-by: Hans de Goede --- drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 2/4] drm/i915/vlv_dsi: Add DMI quirk for wrong I2C bus and panel size on Lenovo Yoga Tablet 2 series (v3)

2023-09-20 Thread Hans de Goede
On the Lenovo Yoga Tablet 2 830 / 1050 there are 2 problems: 1. The I2C MIPI sequence elements reference bus 3. ACPI has I2C1 - I2C7 which under Linux become bus 0 - 6. And the MIPI sequence reference to bus 3 is indented for I2C3 which is bus 2 under Linux. This leads to errors like

[PATCH 3/4] drm/i915/vlv_dsi: Add DMI quirk for backlight control issues on Lenovo Yoga Tab 3 (v2)

2023-09-20 Thread Hans de Goede
On the Lenovo Yoga Tab 3 Pro YT3-X90F there are 2 issues with the backlight on/off MIPI sequences: 1. The backlight on sequence has an I2C MIPI sequence element which uses bus 0, but there is a bogus I2cSerialBus resource under the GPU in the DSDT which causes i2c_acpi_find_adapter() to

[PATCH 1/4] drm/i915/vlv_dsi: Add DMI quirk for wrong panel modeline in BIOS on Asus TF103C (v3)

2023-09-20 Thread Hans de Goede
Vtotal is wrong in the BIOS supplied modeline for the DSI panel on the Asus TF103C leading to the last line of the display being shown as the first line. Original: "1280x800": 60 67700 1280 1312 1328 1376 800 808 812 820 0x8 0xa Fixed:"1280x800": 60 67700 1280 1312 1328 1376 800 808 812 816

[PATCH 0/4] drm/i915/vlv_dsi: Add quirks for x86 android tablets (v3)

2023-09-20 Thread Hans de Goede
Hi All, Some vlv/chv tablets ship with Android as factory OS. The factory OS BSP style kernel on these tablets does not use the normal x86 hw autodetection instead it hardcodes a whole bunch of things including using panel drivers instead of relying on VBT MIPI sequences to turn the

Re: [PATCH 0/4] drm/i915/vlv_dsi: Add quirks for x86 android tablets (v2)

2023-09-20 Thread Hans de Goede
Hi Ville, On 9/18/23 10:00, Ville Syrjälä wrote: > On Sat, Sep 16, 2023 at 02:54:51PM +0200, Hans de Goede wrote: >> Hi All, >> >> Some vlv/chv tablets ship with Android as factory OS. The factory OS >> BSP style kernel on these tablets does not use the normal x86 hw >> autodetection instead it

Re: [PATCH v3 6/7] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-09-20 Thread Kuogee Hsieh
On 9/19/2023 2:50 AM, Dmitry Baryshkov wrote: On Mon, 18 Sept 2023 at 20:48, Kuogee Hsieh wrote: On 9/15/2023 6:21 PM, Dmitry Baryshkov wrote: On Sat, 16 Sept 2023 at 00:38, Kuogee Hsieh wrote: Add pm_runtime_force_suspend()/resume() to complete incorporating pm runtime framework into DP

Re: [PATCH] drm/ci: Uprev IGT to pull in fixes

2023-09-20 Thread Rob Clark
On Wed, Sep 20, 2023 at 11:53 AM Helen Koike wrote: > > Hi Rob, > > Thanks for the patch. > > On 20/09/2023 15:10, Rob Clark wrote: > > On Wed, Sep 20, 2023 at 11:06 AM Rob Clark wrote: > >> > >> From: Rob Clark > >> > >> There have been a few igt test fixes compared to the commit that we were

Re: [PATCH] omap: dsi: do not WARN on detach if dsidev was never attached

2023-09-20 Thread Sebastian Reichel
Hi, On Tue, Sep 19, 2023 at 03:37:28PM +0200, H. Nikolaus Schaller wrote: > dsi_init_output() called by dsi_probe() may fail. In that > case mipi_dsi_host_unregister() is called which may call > omap_dsi_host_detach() with uninitialized dsi->dsidev > because omap_dsi_host_attach() was never

Re: [Intel-gfx] [PATCH] drm/edid: Fixup h/vsync_end instead of h/vtotal

2023-09-20 Thread Ville Syrjälä
On Wed, Sep 20, 2023 at 08:40:00PM +0300, Jani Nikula wrote: > On Thu, 14 Sep 2023, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > There are some weird EDIDs floating around that have the sync > > pulse extending beyond the end of the blanking period. > > > > On the currently problemtic

Re: Decrypting tt maps in ttm

2023-09-20 Thread Thomas Hellström
On 9/20/23 20:24, Zack Rusin wrote: On Wed, 2023-09-20 at 19:17 +0200, Thomas Hellström wrote: !! External Email Hi, Zack On 9/20/23 18:39, Zack Rusin wrote: On Wed, 2023-09-20 at 12:48 +0200, Christian König wrote: !! External Email Am 20.09.23 um 09:36 schrieb Thomas Hellström: Hi,

Re: [PATCH v3 1/2] dt-bindings: display: imx: add binding for i.MX8MP HDMI PVI

2023-09-20 Thread Laurent Pinchart
Hi Lucas, Thank you for the patch. On Wed, Sep 20, 2023 at 07:10:08PM +0200, Lucas Stach wrote: > Add binding for the i.MX8MP HDMI parallel video interface block. > > Signed-off-by: Lucas Stach > --- > .../display/imx/fsl,imx8mp-hdmi-pvi.yaml | 80 +++ > 1 file changed,

Re: [RFT PATCH 01/15] drm/armada: Call drm_atomic_helper_shutdown() at shutdown time

2023-09-20 Thread Russell King (Oracle)
On Wed, Sep 20, 2023 at 11:03:32AM -0700, Doug Anderson wrote: > Maxime, > > On Wed, Sep 13, 2023 at 8:34 AM Doug Anderson wrote: > > > > Hi, > > > > On Tue, Sep 5, 2023 at 7:23 AM Doug Anderson wrote: > > > > > > Hi, > > > > > > On Sun, Sep 3, 2023 at 8:53 AM Russell King (Oracle) > > >

Re: [PATCH] drm/ci: Uprev IGT to pull in fixes

2023-09-20 Thread Helen Koike
Hi Rob, Thanks for the patch. On 20/09/2023 15:10, Rob Clark wrote: On Wed, Sep 20, 2023 at 11:06 AM Rob Clark wrote: From: Rob Clark There have been a few igt test fixes compared to the commit that we were currently using. Pull in a newer igt and update expectations. Signed-off-by: Rob

Re: [PATCH 00/10] Add mediate-drm secure flow for SVP

2023-09-20 Thread Jeffrey Kardatzke
On Tue, Sep 19, 2023 at 10:26 PM CK Hu (胡俊光) wrote: > > Hi, Jason: > > On Tue, 2023-09-19 at 11:03 +0800, Jason-JH.Lin wrote: > > The patch series provides drm driver support for enabling secure > > video > > path (SVP) playback on MediaiTek hardware in the Linux kernel. > > > > Memory

Re: Decrypting tt maps in ttm

2023-09-20 Thread Zack Rusin
On Wed, 2023-09-20 at 19:17 +0200, Thomas Hellström wrote: > !! External Email > > Hi, Zack > > On 9/20/23 18:39, Zack Rusin wrote: > > On Wed, 2023-09-20 at 12:48 +0200, Christian König wrote: > > > !! External Email > > > > > > Am 20.09.23 um 09:36 schrieb Thomas Hellström: > > > > Hi, Zack, > >

Re: [PATCH] drm/ci: Uprev IGT to pull in fixes

2023-09-20 Thread Rob Clark
On Wed, Sep 20, 2023 at 11:06 AM Rob Clark wrote: > > From: Rob Clark > > There have been a few igt test fixes compared to the commit that we were > currently using. Pull in a newer igt and update expectations. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/ci/gitlab-ci.yml

[PATCH] drm/ci: Uprev IGT to pull in fixes

2023-09-20 Thread Rob Clark
From: Rob Clark There have been a few igt test fixes compared to the commit that we were currently using. Pull in a newer igt and update expectations. Signed-off-by: Rob Clark --- drivers/gpu/drm/ci/gitlab-ci.yml | 2 +- .../gpu/drm/ci/xfails/amdgpu-stoney-fails.txt | 4 ++--

Re: [RFT PATCH 01/15] drm/armada: Call drm_atomic_helper_shutdown() at shutdown time

2023-09-20 Thread Doug Anderson
Maxime, On Wed, Sep 13, 2023 at 8:34 AM Doug Anderson wrote: > > Hi, > > On Tue, Sep 5, 2023 at 7:23 AM Doug Anderson wrote: > > > > Hi, > > > > On Sun, Sep 3, 2023 at 8:53 AM Russell King (Oracle) > > wrote: > > > > > > On Fri, Sep 01, 2023 at 04:41:12PM -0700, Douglas Anderson wrote: > > > >

Re: [PATCH v6 7/7] drm/vkms Add hotplug support via configfs to VKMS.

2023-09-20 Thread Helen Koike
Hello! Thanks for the patch. On 29/08/2023 02:30, Brandon Pollack wrote: This change adds the ability to read or write a "1" or a "0" to the newly added "connected" attribute of a connector in the vkms entry in configfs. A write will trigger a call to drm_kms_helper_hotplug_event, causing a

Re: [PATCH 5/5] drm: lcdif: force modeset when FB format changes

2023-09-20 Thread Marek Vasut
On 9/20/23 12:31, Lucas Stach wrote: Force a modeset if the new FB has a different format than the currently active one. While it might be possible to change between compatible formats without a full modeset as the format control is also supposed to be double buffered, the colorspace conversion

Re: [PATCH 3/5] drm: lcdif: remove superfluous setup of framebuffer DMA address

2023-09-20 Thread Marek Vasut
On 9/20/23 12:31, Lucas Stach wrote: Now that the plane state is fully programmed into the hardware before the scanout is started there is no need to program the plane framebuffer DMA address from the CRTC atomic_enable anymore. Signed-off-by: Lucas Stach ---

Re: [PATCH 4/5] drm: lcdif: move pitch setup to plane atomic update

2023-09-20 Thread Marek Vasut
On 9/20/23 12:31, Lucas Stach wrote: The buffer pitch may change when switching the buffer on a atomic update. As the register is double buffered it can be safely changed while the display is active. Signed-off-by: Lucas Stach --- drivers/gpu/drm/mxsfb/lcdif_kms.c | 26

Re: [PATCH 2/5] drm: lcdif: move controller enable into atomic_flush

2023-09-20 Thread Marek Vasut
On 9/20/23 12:31, Lucas Stach wrote: Allow drm_atomic_helper_commit_tail_rpm to setup all the plane state before the scanout is started. Signed-off-by: Lucas Stach --- drivers/gpu/drm/mxsfb/lcdif_kms.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 1/5] drm: lcdif: improve burst size configuration comment

2023-09-20 Thread Marek Vasut
On 9/20/23 12:31, Lucas Stach wrote: The comment regarding AXI bust size configuration is a bit hard to read. Improve the wording somewhat. Signed-off-by: Lucas Stach --- drivers/gpu/drm/mxsfb/lcdif_kms.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[RFC PATCH 2/2] drm: ci: add tests on vkms

2023-09-20 Thread Helen Koike
Add job that runs igt on top of vkms. Signed-off-by: Helen Koike --- See pipeline: https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/990494 --- MAINTAINERS | 1 + drivers/gpu/drm/ci/build.sh | 1 -

[RFC PATCH 1/2] drm/ci: uprev mesa version - fix container build

2023-09-20 Thread Helen Koike
When building containers, some rust packages were installed without locking the dependencies version, which got updated and started giving errors like: error: failed to compile `bindgen-cli v0.62.0`, intermediate artifacts can be found at `/tmp/cargo-installkNKRwf` Caused by: package `rustix

[RFC PATCH 0/2] drm/ci: Update Mesa and Introduce VKMS Support

2023-09-20 Thread Helen Koike
This patchset offers two enhancements to drm/ci: 1. Mesa Version Update. drm/ci re-uses components from Mesa project. A recent bug in MesaCI was fixed. The first patch updates drm/ci Mesa's version, re-allowing containers rebuilds when uncached, essencial for new runs. At this moment, this

Re: [Intel-gfx] [PATCH] drm/edid: Fixup h/vsync_end instead of h/vtotal

2023-09-20 Thread Jani Nikula
On Thu, 14 Sep 2023, Ville Syrjala wrote: > From: Ville Syrjälä > > There are some weird EDIDs floating around that have the sync > pulse extending beyond the end of the blanking period. > > On the currently problemtic machine (HP Omni 120) EDID reports > the following mode: > "1600x900": 60

Re: [PATCH] drm/i915: Remove unnecessary memory quiescing for aux inval

2023-09-20 Thread Matt Roper
On Wed, Sep 20, 2023 at 01:11:31PM +0200, Nirmoy Das wrote: > i915 already does memory quiesce before signaling > breadcrumb so remove extra memory quiescing for aux > invalidation which can cause unnecessary side effects. This explanation seems confusing to me. If we've already performed the

Re: Decrypting tt maps in ttm

2023-09-20 Thread Thomas Hellström
Hi, Zack On 9/20/23 18:39, Zack Rusin wrote: On Wed, 2023-09-20 at 12:48 +0200, Christian König wrote: !! External Email Am 20.09.23 um 09:36 schrieb Thomas Hellström: Hi, Zack, On 9/20/23 05:43, Zack Rusin wrote: On Tue, 2023-09-19 at 09:47 +0200, Christian König wrote: !! External Email

Re: [PATCH RFC v2 07/37] drm/connector: hdmi: Add HDMI compute clock helper

2023-09-20 Thread Jernej Škrabec
Hi Maxime! Dne sreda, 20. september 2023 ob 16:35:22 CEST je Maxime Ripard napisal(a): > A lot of HDMI drivers have some variation of the formula to calculate > the TMDS character rate from a mode, but few of them actually take all > parameters into account. > > Let's create a helper to provide

Re: [PATCH RFC v2 11/37] drm/connector: hdmi: Add Infoframes generation

2023-09-20 Thread Jernej Škrabec
Dne sreda, 20. september 2023 ob 16:35:26 CEST je Maxime Ripard napisal(a): > Infoframes in KMS is usually handled by a bunch of low-level helpers > that require quite some boilerplate for drivers. This leads to > discrepancies with how drivers generate them, and which are actually > sent. > >

[PATCH v3 2/2] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-09-20 Thread Lucas Stach
This IP block is found in the HDMI subsystem of the i.MX8MP SoC. It has a full timing generator and can switch between different video sources. On the i.MX8MP however the only supported source is the LCDIF. The block just needs to be powered up and told about the polarity of the video sync signals

[PATCH v3 1/2] dt-bindings: display: imx: add binding for i.MX8MP HDMI PVI

2023-09-20 Thread Lucas Stach
Add binding for the i.MX8MP HDMI parallel video interface block. Signed-off-by: Lucas Stach --- .../display/imx/fsl,imx8mp-hdmi-pvi.yaml | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8mp-hdmi-pvi.yaml

Re: [PATCH v2] drm/bridge: panel: Fix device link for DRM_BRIDGE_ATTACH_NO_CONNECTOR

2023-09-20 Thread Neil Armstrong
Hi, On Wed, 20 Sep 2023 10:27:27 +0200, AngeloGioacchino Del Regno wrote: > When external bridges are attached with DRM_BRIDGE_ATTACH_NO_CONNECTOR, > the panel bridge may also get the same flag, but in the .attach() > callback for the panel bridge a device link is added only when this > flag is

Re: [PATCH v2 2/2] backlight: mp3309c: Add support for MPS MP3309C

2023-09-20 Thread Daniel Thompson
On Fri, Sep 15, 2023 at 04:05:16PM +0200, Flavio Suligoi wrote: > The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a > programmable switching frequency to optimize efficiency. > The brightness can be controlled either by I2C commands (called "analog" > mode) or by a PWM

Re: [PATCH drm-misc-next v4 6/8] drm/gpuvm: add drm_gpuvm_flags to drm_gpuvm

2023-09-20 Thread kernel test robot
Hi Danilo, kernel test robot noticed the following build warnings: [auto build test WARNING on 1c7a387ffef894b1ab3942f0482dac7a6e0a909c] url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-gpuvm-rename-struct-drm_gpuva_manager-to-struct-drm_gpuvm/20230920-224605 base

Re: Decrypting tt maps in ttm

2023-09-20 Thread Zack Rusin
On Wed, 2023-09-20 at 12:48 +0200, Christian König wrote: > !! External Email > > Am 20.09.23 um 09:36 schrieb Thomas Hellström: > > Hi, Zack, > > > > On 9/20/23 05:43, Zack Rusin wrote: > > > On Tue, 2023-09-19 at 09:47 +0200, Christian König wrote: > > > > !! External Email > > > > > > > > Am

Re: [PATCH] drm/meson: fix memory leak on ->hpd_notify callback

2023-09-20 Thread Jani Nikula
On Wed, 20 Sep 2023, Neil Armstrong wrote: > Hi, > > On Thu, 14 Sep 2023 16:10:15 +0300, Jani Nikula wrote: >> The EDID returned by drm_bridge_get_edid() needs to be freed. >> >> > > Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git > (drm-misc-fixes) > > [1/1] drm/meson:

Re: [PATCH v6 4/6] drm/drm_file: Add DRM obj's RSS reporting function for fdinfo

2023-09-20 Thread Tvrtko Ursulin
On 20/09/2023 00:34, Adrián Larumbe wrote: Some BO's might be mapped onto physical memory chunkwise and on demand, like Panfrost's tiler heap. In this case, even though the drm_gem_shmem_object page array might already be allocated, only a very small fraction of the BO is currently backed by

Re: [PATCH v6 2/6] drm/panfrost: Add fdinfo support GPU load metrics

2023-09-20 Thread Tvrtko Ursulin
On 20/09/2023 00:34, Adrián Larumbe wrote: The drm-stats fdinfo tags made available to user space are drm-engine, drm-cycles, drm-max-freq and drm-curfreq, one per job slot. This deviates from standard practice in other DRM drivers, where a single set of key:value pairs is provided for the

Re: [PATCH v6 6/6] drm/drm-file: Show finer-grained BO sizes in drm_show_memory_stats

2023-09-20 Thread Tvrtko Ursulin
On 20/09/2023 00:34, Adrián Larumbe wrote: The current implementation will try to pick the highest available size display unit as soon as the BO size exceeds that of the previous multiplier. That can lead to loss of precision in contexts of low memory usage. The new selection criteria try to

Re: [PATCH v2 14/15] dt-bindings: gpu: mali-valhall-csf: Add initial bindings for panthor driver

2023-09-20 Thread Krzysztof Kozlowski
On 20/09/2023 16:25, Liviu Dudau wrote: > On Wed, Sep 20, 2023 at 03:51:36PM +0200, Krzysztof Kozlowski wrote: >> On 20/09/2023 15:41, Liviu Dudau wrote: > +properties: > + $nodename: > +pattern: '^gpu@[a-f0-9]+$' > + > + compatible: > +oneOf: Drop

Re: [PATCH v4 0/5] ppc, fbdev: Clean up fbdev mmap helper

2023-09-20 Thread Arnd Bergmann
On Tue, Sep 12, 2023, at 09:48, Thomas Zimmermann wrote: > Clean up and rename fb_pgprotect() to work without struct file. Then > refactor the implementation for PowerPC. This change has been discussed > at [1] in the context of refactoring fbdev's mmap code. > > The first two patches update fbdev

[PATCH drm-misc-next v4 7/8] drm/gpuvm: generalize dma_resv/extobj handling and GEM validation

2023-09-20 Thread Danilo Krummrich
So far the DRM GPUVA manager offers common infrastructure to track GPU VA allocations and mappings, generically connect GPU VA mappings to their backing buffers and perform more complex mapping operations on the GPU VA space. However, there are more design patterns commonly used by drivers, which

[PATCH drm-misc-next v4 8/8] drm/nouveau: GPUVM dma-resv/extobj handling, GEM validation

2023-09-20 Thread Danilo Krummrich
Make use of the DRM GPUVA managers GPU-VM common dma-resv, external GEM object tracking, dma-resv locking, evicted GEM object tracking and validation features. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/nouveau/nouveau_bo.c| 4 +- drivers/gpu/drm/nouveau/nouveau_exec.c | 52

[PATCH drm-misc-next v4 6/8] drm/gpuvm: add drm_gpuvm_flags to drm_gpuvm

2023-09-20 Thread Danilo Krummrich
Introduce flags for struct drm_gpuvm, this required by subsequent commits. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/drm_gpuvm.c| 3 ++- drivers/gpu/drm/nouveau/nouveau_uvmm.c | 2 +- include/drm/drm_gpuvm.h| 17 - 3 files changed, 19

[PATCH drm-misc-next v4 5/8] drm/gpuvm: add an abstraction for a VM / BO combination

2023-09-20 Thread Danilo Krummrich
This patch adds an abstraction layer between the drm_gpuva mappings of a particular drm_gem_object and this GEM object itself. The abstraction represents a combination of a drm_gem_object and drm_gpuvm. The drm_gem_object holds a list of drm_gpuvm_bo structures (the structure representing this

[PATCH drm-misc-next v4 3/8] drm/nouveau: uvmm: rename 'umgr' to 'base'

2023-09-20 Thread Danilo Krummrich
Rename struct drm_gpuvm within struct nouveau_uvmm from 'umgr' to base. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/nouveau/nouveau_debugfs.c | 2 +- drivers/gpu/drm/nouveau/nouveau_exec.c| 4 +-- drivers/gpu/drm/nouveau/nouveau_uvmm.c| 32 +++

[PATCH drm-misc-next v4 4/8] drm/gpuvm: add common dma-resv per struct drm_gpuvm

2023-09-20 Thread Danilo Krummrich
Provide a common dma-resv for GEM objects not being used outside of this GPU-VM. This is used in a subsequent patch to generalize dma-resv, external and evicted object handling and GEM validation. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/drm_gpuvm.c| 9 +++--

[PATCH drm-misc-next v4 2/8] drm/gpuvm: allow building as module

2023-09-20 Thread Danilo Krummrich
Currently, the DRM GPUVM does not have any core dependencies preventing a module build. Also, new features from subsequent patches require helpers (namely drm_exec) which can be built as module. Reviewed-by: Christian König Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/Kconfig |

[PATCH drm-misc-next v4 1/8] drm/gpuvm: rename struct drm_gpuva_manager to struct drm_gpuvm

2023-09-20 Thread Danilo Krummrich
Rename struct drm_gpuva_manager to struct drm_gpuvm including corresponding functions. This way the GPUVA manager's structures align very well with the documentation of VM_BIND [1] and VM_BIND locking [2]. It also provides a better foundation for the naming of data structures and functions

[PATCH drm-misc-next v4 0/8] [RFC] DRM GPUVA Manager GPU-VM features

2023-09-20 Thread Danilo Krummrich
So far the DRM GPUVA manager offers common infrastructure to track GPU VA allocations and mappings, generically connect GPU VA mappings to their backing buffers and perform more complex mapping operations on the GPU VA space. However, there are more design patterns commonly used by drivers, which

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Implement fdinfo memory stats printing

2023-09-20 Thread Rob Clark
On Wed, Sep 20, 2023 at 7:35 AM Tvrtko Ursulin wrote: > > > On 24/08/2023 12:35, Upadhyay, Tejas wrote: > >> -Original Message- > >> From: Intel-gfx On Behalf Of > >> Tvrtko > >> Ursulin > >> Sent: Friday, July 7, 2023 6:32 PM > >> To: intel-...@lists.freedesktop.org;

[PATCH RFC v2 37/37] drm/sun4i: hdmi: Switch to HDMI connector

2023-09-20 Thread Maxime Ripard
The new HDMI connector infrastructure allows to remove some boilerplate, especially to generate infoframes. Let's switch to it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 80 ++ 1 file changed, 51 insertions(+), 29 deletions(-)

[PATCH RFC v2 35/37] drm/sun4i: hdmi: Switch to container_of_const

2023-09-20 Thread Maxime Ripard
container_of_const() allows to preserve the pointer constness and is thus more flexible than inline functions. Let's switch all our instances of container_of() to container_of_const(). Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 16 1 file

[PATCH RFC v2 36/37] drm/sun4i: hdmi: Consolidate atomic_check and mode_valid

2023-09-20 Thread Maxime Ripard
atomic_check and mode_valid do not check for the same things which can lead to surprising result if the userspace commits a mode that didn't go through mode_valid. Let's merge the two implementations into a function called by both. Signed-off-by: Maxime Ripard ---

[PATCH RFC v2 29/37] drm/rockchip: inno_hdmi: Create mask retrieval functions

2023-09-20 Thread Maxime Ripard
The register mask and bits to enable or disable a given infoframe depends on its type. This is currently passed as an argument to the function that writes an infoframe, but let's create a helper function to retrieve them based on the type to make further reworks easier. Signed-off-by: Maxime

[PATCH RFC v2 34/37] drm/sun4i: hdmi: Move mode_set into enable

2023-09-20 Thread Maxime Ripard
We're not doing anything special in atomic_mode_set so we can simply merge it into atomic_enable. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 38 +- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git

[PATCH RFC v2 26/37] drm/rockchip: inno_hdmi: Remove useless coeff_csc matrix

2023-09-20 Thread Maxime Ripard
The coeff_csc matrix isn't used anymore, let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 70 1 file changed, 70 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH RFC v2 33/37] drm/sun4i: hdmi: Convert encoder to atomic

2023-09-20 Thread Maxime Ripard
The sun4i_hdmi driver still uses the non-atomic variants of the encoder hooks, so let's convert to their atomic equivalents. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

[PATCH RFC v2 22/37] drm/rockchip: inno_hdmi: Remove useless output format

2023-09-20 Thread Maxime Ripard
Similarly to the input format, the driver has a lot of code to deal with various output format, but the driver hardcodes it to RGB always. Let's get rid of the dead code. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 57 1 file

[PATCH RFC v2 27/37] drm/rockchip: inno_hdmi: Remove useless mode_valid

2023-09-20 Thread Maxime Ripard
The inno_hdmi mode_valid implementation always return MODE_OK which is what the core assumes when we don't have an implementation. Let's get rid of it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 8 1 file changed, 8 deletions(-) diff --git

[PATCH RFC v2 32/37] drm/rockchip: inno_hdmi: Switch to HDMI connector

2023-09-20 Thread Maxime Ripard
The new HDMI connector infrastructure allows to remove some boilerplate, especially to generate infoframes. Let's switch to it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 101 ++- 1 file changed, 41 insertions(+), 60 deletions(-)

[PATCH RFC v2 28/37] drm/rockchip: inno_hdmi: Move infoframe disable to separate function

2023-09-20 Thread Maxime Ripard
The code to upload infoframes to the controller uses a weird construct which, based on the previous function call return code, will either disable or enable that infoframe. In order to get rid of that argument, let's split the function to disable the infoframe into a separate function and make it

[PATCH RFC v2 30/37] drm/rockchip: inno_hdmi: Switch to infoframe type

2023-09-20 Thread Maxime Ripard
The inno_hdmi driver relies on its own internal infoframe type matching the hardware. This works fine, but in order to make further reworks easier, let's switch to the HDMI spec definition of those types. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 71

[PATCH RFC v2 31/37] drm/rockchip: inno_hdmi: Remove unused drm device pointer

2023-09-20 Thread Maxime Ripard
The drm_dev field in the inno_hdmi struct stores a pointer to the DRM device but is never used anywhere in the driver. Let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH RFC v2 17/37] drm/rockchip: inno_hdmi: Switch encoder hooks to atomic

2023-09-20 Thread Maxime Ripard
The inno_hdmi encoder still uses the !atomic variants of enable, disable and modeset. Convert to their atomic equivalents. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git

[PATCH RFC v2 25/37] drm/rockchip: inno_hdmi: Remove tmds rate from structure

2023-09-20 Thread Maxime Ripard
The tmds_rate field in the inno_hdmi structure is used mostly to configure the internal i2c controller divider through a call to the inno_hdmi_i2c_init() function. We can simply make that rate an argument to that function, which also removes a workaround to initialize the divider at probe time

[PATCH RFC v2 24/37] drm/rockchip: inno_hdmi: Remove useless enum

2023-09-20 Thread Maxime Ripard
The CSC_* enum has no users left, so let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index c342bc8b3a23..f05417c6b637

[PATCH RFC v2 23/37] drm/rockchip: inno_hdmi: Remove useless colorimetry

2023-09-20 Thread Maxime Ripard
The colorimetry field of hdmi_data_info is not used anywhere so we can get rid of it. This was the last field left in that structure so we can get rid of it too. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 15 --- 1 file changed, 15 deletions(-) diff

[PATCH RFC v2 21/37] drm/rockchip: inno_hdmi: Remove useless input format

2023-09-20 Thread Maxime Ripard
The driver has a lot of logic to deal with multiple input formats, but hardcodes it to RGB. This means that most of that code has been dead code, so let's get rid of it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 39 +--- 1 file

[PATCH RFC v2 14/37] drm/vc4: hdmi: Switch to HDMI connector

2023-09-20 Thread Maxime Ripard
The new HDMI connector infrastructure allows us to remove a lot of boilerplate, so let's switch to it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 636 + drivers/gpu/drm/vc4/vc4_hdmi.h | 44 +--

[PATCH RFC v2 19/37] drm/rockchip: inno_hdmi: no need to store vic

2023-09-20 Thread Maxime Ripard
The mode's VIC is only ever used in the inno_hdmi_setup() function so there's no need to store it in the main structure. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git

  1   2   3   >