Re: [PATCH 2/8] drm/i915/display: Store compressed bpp in U6.4 format

2023-09-29 Thread kernel test robot
Hi Mitul, kernel test robot noticed the following build errors: [auto build test ERROR on drm-tip/drm-tip] url: https://github.com/intel-lab-lkp/linux/commits/Mitul-Golani/drm-display-dp-Add-helper-function-to-get-DSC-bpp-precision/20230929-162949 base: git://anongit.freedesktop.org/drm

Re: [PATCH v3] backlight: pwm_bl: Disable PWM on shutdown and suspend

2023-09-29 Thread kernel test robot
Hi Uwe, kernel test robot noticed the following build errors: [auto build test ERROR on 8fff9184d1b5810dca5dd1a02726d4f844af88fc] url: https://github.com/intel-lab-lkp/linux/commits/Uwe-Kleine-K-nig/backlight-pwm_bl-Disable-PWM-on-shutdown-and-suspend/20230926-230323 base:

Re: [PATCH 11/15] platform/x86/amd/pmf: dump policy binary data

2023-09-29 Thread Shyam Sundar S K
On 9/23/2023 12:31 AM, Mario Limonciello wrote: > On 9/22/2023 12:50, Shyam Sundar S K wrote: >> Sometimes policy binary retrieved from the BIOS maybe incorrect that >> can >> end up in failing to enable the Smart PC solution feature. >> >> Use print_hex_dump_debug() to dump the policy binary

Re: [PATCH 04/15] platform/x86/amd/pmf: Add support for PMF Policy Binary

2023-09-29 Thread Shyam Sundar S K
On 9/23/2023 12:21 AM, Mario Limonciello wrote: > On 9/22/2023 12:50, Shyam Sundar S K wrote: >> PMF Policy binary is a encrypted and signed binary that will be part >> of the BIOS. PMF driver via the ACPI interface checks the existence >> of Smart PC bit. If the advertised bit is found, PMF

Re: ti-sn65dsi86 linux driver using dsi clock source for pll

2023-09-29 Thread Doug Anderson
Hi, On Fri, Sep 29, 2023 at 2:50 PM Laurent Pinchart wrote: > > Hi Doug, > > CC'ing the dri-devel mailing list and Douglas Anderson. > > On Fri, Sep 29, 2023 at 03:36:52PM -0400, Douglas Cooper wrote: > > Hello, > > > > I've been trying to get the ti-sn65dsi86 to work with the dsi bus as the

Re: [PATCH v4 09/10] drm/sched: Add helper to queue TDR immediately for current and future jobs

2023-09-29 Thread Luben Tuikov
On 2023-09-19 01:01, Matthew Brost wrote: > Add helper to queue TDR immediately for current and future jobs. This > will be used in XE, new Intel GPU driver, to trigger the TDR to cleanup Please use present tense, "is", in code, comments, commits, etc. Is it "XE" or is it "Xe"? I always thought

Re: [PATCH v4 08/10] drm/sched: Submit job before starting TDR

2023-09-29 Thread Luben Tuikov
Hi, On 2023-09-19 01:01, 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 > fires, fix this ordering. > > v2: > - Add to pending list before run_job, start TDR after (Luben,

Re: [PATCH v4 07/10] drm/sched: Start submission before TDR in drm_sched_start

2023-09-29 Thread Luben Tuikov
Hi, On 2023-09-19 01:01, Matthew Brost wrote: > If the TDR is set to a very small value it can fire before the > submission is started in the function drm_sched_start. The submission is > expected to running when the TDR fires, fix this ordering so this > expectation is always met. > >

Re: ti-sn65dsi86 linux driver using dsi clock source for pll

2023-09-29 Thread Laurent Pinchart
Hi Doug, CC'ing the dri-devel mailing list and Douglas Anderson. On Fri, Sep 29, 2023 at 03:36:52PM -0400, Douglas Cooper wrote: > Hello, > > I've been trying to get the ti-sn65dsi86 to work with the dsi bus as the clk > source (refclk grounded) and have concluded that the pll is not getting >

Re: [PATCH] drm/bridge: adv7511: Convert to use maple tree register cache

2023-09-29 Thread Laurent Pinchart
+ .cache_type = REGCACHE_MAPLE, > .volatile_reg = adv7511_cec_register_volatile, > }; > > > --- > base-commit: 6465e260f48790807eef06b583b38ca9789b6072 > change-id: 20230929-drm-adv7511-2d592921f8a2 -- Regards, Laurent Pinchart

Re: [RFC PATCH 1/3] drm/msm/dpu: add support for MSM8953

2023-09-29 Thread Dmitry Baryshkov
On Fri, 29 Sept 2023 at 23:53, Luca Weiss wrote: > > On Samstag, 23. September 2023 23:49:10 CEST Dmitry Baryshkov wrote: > > Experimental support for MSM8953, which has MDP5 v1.16. It looks like > > trimmed down version of MSM8996. Less SSPP, LM and PP blocks. No DSC, > > etc. > > > > Hi Dmitry,

Re: [PATCH v4 06/10] drm/sched: Add drm_sched_start_timeout_unlocked helper

2023-09-29 Thread Luben Tuikov
Hi, On 2023-09-19 01:01, Matthew Brost wrote: > Also add a lockdep assert to drm_sched_start_timeout. > > Signed-off-by: Matthew Brost Reviewed-by: Luben Tuikov Thanks for this patch! > --- > drivers/gpu/drm/scheduler/sched_main.c | 23 +-- > 1 file changed, 13

Re: [RFC PATCH 1/3] drm/msm/dpu: add support for MSM8953

2023-09-29 Thread Luca Weiss
On Samstag, 23. September 2023 23:49:10 CEST Dmitry Baryshkov wrote: > Experimental support for MSM8953, which has MDP5 v1.16. It looks like > trimmed down version of MSM8996. Less SSPP, LM and PP blocks. No DSC, > etc. > Hi Dmitry, As written on IRC, on sdm632-fairphone-fp3 with this DPU

[PATCH] Revert "drm/amd/display: Check all enabled planes in dm_check_crtc_cursor"

2023-09-29 Thread Hamza Mahfooz
From: Ivan Lipski This reverts commit 45e1ade04b4d60fe5df859076005779f27c4c9be. Since, it causes the following IGT tests to fail: kms_cursor_legacy@cursor-vs-flip.* kms_cursor_legacy@flip-vs-cursor.* Signed-off-by: Ivan Lipski Signed-off-by: Hamza Mahfooz ---

Re: [PATCH] drm/nouveau: fence: fix type cast warning in nouveau_fence_emit()

2023-09-29 Thread Lyude Paul
Reviewed-by: Lyude Paul On Sat, 2023-09-16 at 03:14 +0200, Danilo Krummrich wrote: > Fix the following warning. > > drivers/gpu/drm/nouveau/nouveau_fence.c:210:45: sparse: sparse: > incorrect type in initializer (different address spaces) > @@ expected struct nouveau_channel *chan >

Re: [PATCH] add kernel docs for dc_dmub_caps

2023-09-29 Thread Randy Dunlap
Hi, The $Subject could be improved, e.g.: [PATCH] drm/amd/display: add kernel docs for dc_dmub_caps On 9/29/23 03:00, Sagar Vashnav wrote: > Add kernel documentation for the dc_dmub_caps structure. > > Signed-off-by: Sagar Vashnav Reviewed-by: Randy Dunlap Thanks. > --- >

Re: [PATCH 0/9] drm: Annotate structs with __counted_by

2023-09-29 Thread Kees Cook
On Fri, 22 Sep 2023 10:32:05 -0700, Kees Cook wrote: > This is a batch of patches touching drm for preparing for the coming > implementation by GCC and Clang of the __counted_by attribute. Flexible > array members annotated with __counted_by can have their accesses > bounds-checked at run-time

Re: [PATCH][next] drm/gud: Use size_add() in call to struct_size()

2023-09-29 Thread Kees Cook
On Fri, 15 Sep 2023 12:43:20 -0600, Gustavo A. R. Silva wrote: > If, for any reason, the open-coded arithmetic causes a wraparound, the > protection that `struct_size()` adds against potential integer overflows > is defeated. Fix this by hardening call to `struct_size()` with `size_add()`. > >

Re: [git pull] drm fixes for 6.6-rc4

2023-09-29 Thread pr-tracker-bot
The pull request you sent on Fri, 29 Sep 2023 11:46:12 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2023-09-29 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6edc84bc3f8aceae74eb63684d53c17553382ec0 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH 0/2][next] nouveau/svm: Replace one-element array with flexible-array member

2023-09-29 Thread Kees Cook
On Wed, 16 Aug 2023 12:03:06 -0600, Gustavo A. R. Silva wrote: > This small series aims to replace a one-element array with a > flexible-array member in struct nouveau_svm. And, while at it, > fix a checkpatch.pl error. > > Gustavo A. R. Silva (2): > nouveau/svm: Replace one-element array with

[PATCH v8 3/5] drm/panfrost: Add fdinfo support for memory stats

2023-09-29 Thread Adrián Larumbe
A new DRM GEM object function is added so that drm_show_memory_stats can provide more accurate memory usage numbers. Ideally, in panfrost_gem_status, the BO's purgeable flag would be checked after locking the driver's shrinker mutex, but drm_show_memory_stats takes over the drm file's object

[PATCH v8 5/5] drm/panfrost: Implement generic DRM object RSS reporting function

2023-09-29 Thread Adrián Larumbe
BO's RSS is updated every time new pages are allocated on demand and mapped for the object at GPU page fault's IRQ handler, but only for heap buffers. The reason this is unnecessary for non-heap buffers is that they are mapped onto the GPU's VA space and backed by physical memory in their entirety

[PATCH v8 4/5] drm/drm_file: Add DRM obj's RSS reporting function for fdinfo

2023-09-29 Thread Adrián Larumbe
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 system memory, but drm_show_memory_stats will

[PATCH v8 1/5] drm/panfrost: Add cycle count GPU register definitions

2023-09-29 Thread Adrián Larumbe
These GPU registers will be used when programming the cycle counter, which we need for providing accurate fdinfo drm-cycles values to user space. Signed-off-by: Adrián Larumbe Reviewed-by: Boris Brezillon Reviewed-by: Steven Price Reviewed-by: AngeloGioacchino Del Regno ---

[PATCH v8 2/5] drm/panfrost: Add fdinfo support GPU load metrics

2023-09-29 Thread Adrián Larumbe
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 whole render engine. However, Panfrost has

[PATCH v8 0/5] Add fdinfo support to Panfrost

2023-09-29 Thread Adrián Larumbe
This patch series adds fdinfo support to the Panfrost DRM driver. It will display a series of key:value pairs under /proc/pid/fdinfo/fd for render processes that open the Panfrost DRM file. The pairs contain basic drm gpu engine and memory region information that can either be cat by a privileged

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

2023-09-29 Thread Lucas Stach
Hi Luca, Am Freitag, dem 29.09.2023 um 18:48 +0200 schrieb Luca Ceresoli: > Hi Lucas, > > On Thu, 28 Sep 2023 14:55:35 +0200 > Lucas Stach wrote: > > > Add binding for the i.MX8MP HDMI parallel video interface block. > > > > Signed-off-by: Lucas Stach > > Reviewed-by: Laurent Pinchart > >

Re: [PATCH] drm/msm/a6xx: don't set IO_PGTABLE_QUIRK_ARM_OUTER_WBWA with coherent SMMU

2023-09-29 Thread Robin Murphy
On 29/09/2023 4:45 pm, Will Deacon wrote: On Mon, Sep 25, 2023 at 06:54:42PM +0100, Robin Murphy wrote: On 2023-04-10 19:52, Dmitry Baryshkov wrote: If the Adreno SMMU is dma-coherent, allocation will fail unless we disable IO_PGTABLE_QUIRK_ARM_OUTER_WBWA. Skip setting this quirk for the

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

2023-09-29 Thread Luca Ceresoli
Hi Lucas, On Thu, 28 Sep 2023 14:55:35 +0200 Lucas Stach wrote: > Add binding for the i.MX8MP HDMI parallel video interface block. > > Signed-off-by: Lucas Stach > Reviewed-by: Laurent Pinchart > --- > .../display/imx/fsl,imx8mp-hdmi-pvi.yaml | 83 +++ > 1 file changed,

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

2023-09-29 Thread Luca Ceresoli
Hi Lucas, On Thu, 28 Sep 2023 14:55:36 +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 is the LCDIF. The block > just

[Bug 216806] [Raven Ridge] console disappears after framebuffer device loads

2023-09-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216806 --- Comment #5 from Balazs Vinarz (viniba...@gmail.com) --- The latest 6.5.5-arch1-1 kernel just turned the display into a full white screen with high brightness. -- You may reply to this email to add a comment. You are receiving this mail

Re: [PATCH] drm/msm/a6xx: don't set IO_PGTABLE_QUIRK_ARM_OUTER_WBWA with coherent SMMU

2023-09-29 Thread Will Deacon
On Mon, Sep 25, 2023 at 06:54:42PM +0100, Robin Murphy wrote: > On 2023-04-10 19:52, Dmitry Baryshkov wrote: > > If the Adreno SMMU is dma-coherent, allocation will fail unless we > > disable IO_PGTABLE_QUIRK_ARM_OUTER_WBWA. Skip setting this quirk for the > > coherent SMMUs (like we have on

[lvc-project] [PATCH] drm/amd/display: Fix potential null dereference

2023-09-29 Thread Igor Artemiev
The 'top_pipe_to_program pointer' can be NULL and it is checked at the first dereference, but not at the second. Add a check before using it. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Igor Artemiev --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++-

Re: [PATCH v2 0/5] drm: Reuse temporary memory for format conversion

2023-09-29 Thread Thomas Zimmermann
Hi Am 29.09.23 um 14:11 schrieb Maxime Ripard: On Wed, Sep 20, 2023 at 04:24:26PM +0200, Thomas Zimmermann wrote: DRM's format-conversion helpers require temporary memory. Pass the buffer from the caller and keep it allocated over several calls. Allow the caller to preallocate the buffer

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

2023-09-29 Thread Conor Dooley
On Thu, Sep 28, 2023 at 02:55:35PM +0200, Lucas Stach wrote: > Add binding for the i.MX8MP HDMI parallel video interface block. > > Signed-off-by: Lucas Stach > Reviewed-by: Laurent Pinchart > --- > .../display/imx/fsl,imx8mp-hdmi-pvi.yaml | 83 +++ > 1 file changed, 83

Re: [PATCH v3 0/4] Fix up the boe-tv101wum-nl6 panel driver

2023-09-29 Thread Doug Anderson
Hi, On Thu, Sep 28, 2023 at 2:42 PM Linus Walleij wrote: > > On Tue, Sep 26, 2023 at 11:49 PM Doug Anderson wrote: > > > > I'm curious what the latest on this patch series is. Is it abandoned, > > > or is it still on your list to move forward with it? If it's > > > abandoned, does that mean

Re: [PATCH 14/15] hyper-v/azure: Remove now superfluous sentinel element from ctl_table array

2023-09-29 Thread Joel Granados
On Thu, Sep 28, 2023 at 03:26:16PM +, Wei Liu wrote: > Please change the prefix to "Drivers: hv:" in the subject line in the > two patches. I'll change the commit message for the 14/15 patch from "hyper-v/azure" to "Drivers: hv:". But I only see one patch that needs this. Which is the other

Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195

2023-09-29 Thread Conor Dooley
On Fri, Sep 29, 2023 at 10:42:58AM +0200, AngeloGioacchino Del Regno wrote: > Il 28/09/23 18:49, Conor Dooley ha scritto: > > On Thu, Sep 28, 2023 at 02:52:23AM +, Moudy Ho (何宗原) wrote: > > > On Wed, 2023-09-27 at 10:47 +0100, Conor Dooley wrote: > > > > On Wed, Sep 27, 2023 at 07:19:28AM

Re: [PATCH v14 RESEND 1/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPU binding

2023-09-29 Thread Maxime Ripard
On Tue, Sep 05, 2023 at 03:44:23AM +, Ying Liu wrote: > On Thursday, August 24, 2023 5:48 PM, Maxime Ripard > wrote: > > On Wed, Aug 23, 2023 at 08:47:51AM +, Ying Liu wrote: > > > > > This dt-binding just follows generic dt-binding rule to describe the > > > > > DPU > > IP > > > > >

Re: [REGRESSION] Panic in gen8_ggtt_insert_entries() with v6.5

2023-09-29 Thread Linux regression tracking #update (Thorsten Leemhuis)
On 19.09.23 16:08, Bagas Sanjaya wrote: > On Sat, Sep 02, 2023 at 06:14:12PM +0200, Oleksandr Natalenko wrote: >> >> Since v6.5 kernel the following HW: >> >> * Lenovo T460s laptop with Skylake GT2 [HD Graphics 520] (rev 07) >> * Lenovo T490s laptop with WhiskeyLake-U GT2 [UHD Graphics 620] (rev

Re: [syzbot] upstream boot error: can't ssh into the instance (15)

2023-09-29 Thread Aleksandr Nogikh
On Fri, Sep 29, 2023 at 3:29 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:9ed22ae6be81 Merge tag 'spi-fix-v6.6-rc3' of git://git.ker.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=14b37a7c68 > kernel

Re: [PATCH v3 07/32] drm/amd/display: document AMDGPU pre-defined transfer functions

2023-09-29 Thread Harry Wentland
On 2023-09-29 03:35, Pekka Paalanen wrote: > On Thu, 28 Sep 2023 16:16:57 -0400 > Harry Wentland wrote: > >> On 2023-09-25 15:49, Melissa Wen wrote: >>> Brief documentation about pre-defined transfer function usage on AMD >>> display driver and standardized EOTFs and inverse EOTFs. >>> >>>

[PATCH] drm/bridge: adv7511: Convert to use maple tree register cache

2023-09-29 Thread Mark Brown
= adv7511_cec_register_volatile, }; --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20230929-drm-adv7511-2d592921f8a2 Best regards, -- Mark Brown

[PATCH v2 2/2] drm/panel: Add driver for BOE RM692E5 AMOLED panel

2023-09-29 Thread Konrad Dybcio
Add support for the 2700x1224 AMOLED BOE panel bundled with a RM692E5 driver IC, as found on the Fairphone 5 smartphone. Co-developed-by: Luca Weiss Signed-off-by: Luca Weiss Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile

[PATCH v2 1/2] dt-bindings: display: panel: Add Raydium RM692E5

2023-09-29 Thread Konrad Dybcio
Raydium RM692E5 is a display driver IC used to drive AMOLED DSI panels. Describe it. Reviewed-by: Conor Dooley Signed-off-by: Konrad Dybcio --- .../bindings/display/panel/raydium,rm692e5.yaml| 73 ++ 1 file changed, 73 insertions(+) diff --git

[PATCH v2 0/2] Raydium RM692E5-based BOE panel driver

2023-09-29 Thread Konrad Dybcio
The Fairphone 5 smartphone ships with a BOE AMOLED panel in conjunction with a Raydium RM692E5 driver IC. This series adds the bindings and driver for that. Signed-off-by: Konrad Dybcio --- Changes in v2: DRIVER: - Remove 1ms sleeps after each DCS command submission - Remove WARN_ON from probe()

[PATCH v5 3/3] drm/panel-simple: allow LVDS format override

2023-09-29 Thread Johannes Zink
Some panels support multiple LVDS data mapping formats, which can be used e.g. run displays on jeida-18 format when only 3 LVDS lanes are available. Add parsing of an optional data-mapping devicetree property, which also touches up the bits per color to match the bus format. Signed-off-by:

[PATCH v5 2/3] dt-bindings: display: simple: support non-default data-mapping

2023-09-29 Thread Johannes Zink
Some Displays support more than just a single default LVDS data mapping, which can be used to run displays on only 3 LVDS lanes in the jeida-18 data-mapping mode. Add an optional data-mapping property to allow overriding the default data mapping. As it does not generally apply to any display and

[PATCH v5 1/3] dt-bindings: display: move LVDS data-mapping definition to separate file

2023-09-29 Thread Johannes Zink
As the LVDS data-mapping property is required in multiple bindings: move it to separate file and include instead of duplicating it. Reviewed-by: Conor Dooley Reviewed-by: Laurent Pinchart Signed-off-by: Johannes Zink --- Changes: v4 -> v5: none, but are-dded the reviewed-bys from v2, that

[PATCH v5 0/3] Support non-default LVDS data mapping for simple panel

2023-09-29 Thread Johannes Zink
Some LVDS panels, such as the innolux,g101ice-l01 support multiple LVDS data mapping modes, which can be configured by strapping a dataformat pin on the display to a specific voltage. This can be particularly useful for using the jeida-18 format, which requires only 3 instead of 4 LVDS lanes.

Re: [PATCH 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array

2023-09-29 Thread Joel Granados
On Thu, Sep 28, 2023 at 03:36:55PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 28, 2023 at 03:21:26PM +0200, Joel Granados via B4 Relay wrote: > > From: Joel Granados > > > > This commit comes at the tail end of a greater effort to remove the > > empty elements at the end of the ctl_table

Re: [PATCH 14/15] hyper-v/azure: Remove now superfluous sentinel element from ctl_table array

2023-09-29 Thread Joel Granados
On Thu, Sep 28, 2023 at 03:26:16PM +, Wei Liu wrote: > Please change the prefix to "Drivers: hv:" in the subject line in the > two patches. > > On Thu, Sep 28, 2023 at 03:21:39PM +0200, Joel Granados via B4 Relay wrote: > > From: Joel Granados > > > > This commit comes at the tail end of a

Re: [PATCH 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array

2023-09-29 Thread Joel Granados
On Thu, Sep 28, 2023 at 12:51:15PM -0500, Steve Wahl wrote: > On Thu, Sep 28, 2023 at 03:21:36PM +0200, Joel Granados via B4 Relay wrote: > > From: Joel Granados > > > > This commit comes at the tail end of a greater effort to remove the > > empty elements at the end of the ctl_table arrays

Re: [PATCH v2 0/5] drm: Reuse temporary memory for format conversion

2023-09-29 Thread Maxime Ripard
On Wed, Sep 20, 2023 at 04:24:26PM +0200, Thomas Zimmermann wrote: > DRM's format-conversion helpers require temporary memory. Pass the > buffer from the caller and keep it allocated over several calls. Allow > the caller to preallocate the buffer memory. > > The motivation for this patchset is

[PATCH v3 03/10] drm/amdgpu: Use RMW accessors for changing LNKCTL2

2023-09-29 Thread Ilpo Järvinen
Don't assume that only the driver would be accessing LNKCTL2. In the case of upstream (parent), the driver does not even own the device it's changing the registers for. Use RMW capability accessors which do proper locking to avoid losing concurrent updates to the register value. This change is

[PATCH v3 02/10] drm/radeon: Use RMW accessors for changing LNKCTL2

2023-09-29 Thread Ilpo Järvinen
Don't assume that only the driver would be accessing LNKCTL2. In the case of upstream (parent), the driver does not even own the device it's changing the registers for. Use RMW capability accessors which do proper locking to avoid losing concurrent updates to the register value. This change is

Re: [PATCH 2/2] drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using ->get_edid directly

2023-09-29 Thread Jani Nikula
On Thu, 28 Sep 2023, Laurent Pinchart wrote: > On Wed, Sep 27, 2023 at 05:09:23PM +0300, Jani Nikula wrote: >> On Wed, 27 Sep 2023, Laurent Pinchart wrote: >> > On Thu, Sep 14, 2023 at 04:14:50PM +0300, Jani Nikula wrote: >> >> Make drm_bridge_get_edid() the one place to call the hook. >> >> >>

Re: [PATCH 00/19] drm/i915: prepare for xe driver display integration

2023-09-29 Thread Jani Nikula
On Thu, 14 Sep 2023, Rodrigo Vivi wrote: > On Tue, Sep 12, 2023 at 02:06:27PM +0300, Jani Nikula wrote: >> The upcoming drm/xe driver [1][2] will reuse the drm/i915 display code, >> initially by compiling the relevant compilation units separately as part >> of the xe driver. This series prepares

[PULL] drm-intel-next

2023-09-29 Thread Jani Nikula
el tags/drm-intel-next-2023-09-29 for you to fetch changes up to 3570bd989acc66add5726785058cceffa06b1f54: drm/i915: Update DRIVER_DATE to 20230929 (2023-09-29 12:43:23 +0300) drm/i915 feature pull for v6.7: Features and functi

[PATCH] dma-buf: add dma_fence_timestamp helper

2023-09-29 Thread Christian König
When a fence signals there is a very small race window where the timestamp isn't updated yet. sync_file solves this by busy waiting for the timestamp to appear, but on other ocassions didn't handled this correctly. Provide a dma_fence_timestamp() helper function for this and use it in all

Re: [PATCH v8] drm/doc: Document DRM device reset expectations

2023-09-29 Thread Christian König
Am 29.09.23 um 11:25 schrieb André Almeida: Create a section that specifies how to deal with DRM device resets for kernel and userspace drivers. Acked-by: Pekka Paalanen Acked-by: Sebastian Wick Signed-off-by: André Almeida Reviewed-by: Christian König I think that is now ready to be

Re: [PATCH v3 2/3] drm/panic: Add a drm panic handler

2023-09-29 Thread kernel test robot
: 2dde18cd1d8fac735875f2e4987f11817cc0bc2c patch link: https://lore.kernel.org/r/20230927172849.193996-3-jfalempe%40redhat.com patch subject: [PATCH v3 2/3] drm/panic: Add a drm panic handler config: arc-randconfig-002-20230929 (https://download.01.org/0day-ci/archive/20230929/202309291753.8xaivqn0

[PATCH v8] drm/doc: Document DRM device reset expectations

2023-09-29 Thread André Almeida
Create a section that specifies how to deal with DRM device resets for kernel and userspace drivers. Acked-by: Pekka Paalanen Acked-by: Sebastian Wick Signed-off-by: André Almeida --- v8 changes: - Add acked-by tags v7:

Re: [PATCH v2 5/5] drm/ssd130x: Store xfrm buffer in device instance

2023-09-29 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Store and instance of struct drm_xfrm_buf in struct ssd130x_device and > keep the allocated memory allocated across display updates. Avoid > possibly reallocating temporary memory on each display update. Instead > preallocate temporary memory during initialization.

Re: [PATCH v2 2/5] drm/format-helper: Pass xfrm buffer to format-conversion helpers

2023-09-29 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Pass an instance of struct drm_xfrm_buf to DRM's format conversion > helpers. Update all callers. Drivers will later be able to keep this > cache across display updates. > > Signed-off-by: Thomas Zimmermann > Cc: Noralf Trønnes > Cc: Javier Martinez

Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195

2023-09-29 Thread AngeloGioacchino Del Regno
Il 28/09/23 18:49, Conor Dooley ha scritto: On Thu, Sep 28, 2023 at 02:52:23AM +, Moudy Ho (何宗原) wrote: On Wed, 2023-09-27 at 10:47 +0100, Conor Dooley wrote: On Wed, Sep 27, 2023 at 07:19:28AM +, Moudy Ho (何宗原) wrote: On Fri, 2023-09-22 at 16:51 +0100, Conor Dooley wrote: On Fri,

Re: [Intel-gfx] [PATCH v7 1/4] drm/i915: Introduce intel_gt_mcr_lock_sanitize()

2023-09-29 Thread Nirmoy Das
On 9/28/2023 11:42 PM, Andrzej Hajda wrote: On 28.09.2023 15:00, Nirmoy Das wrote: Implement intel_gt_mcr_lock_sanitize() to provide a mechanism for cleaning the steer semaphore when absolutely necessary. v2: remove unnecessary lock(Andi, Matt) improve the kernel doc(Matt)

Re: [PATCH v2 1/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-09-29 Thread Shashank Sharma
On 28/09/2023 20:53, Felix Kuehling wrote: On 2023-09-28 11:38, Shashank Sharma wrote: Hello Felix, Mukul, On 28/09/2023 17:30, Felix Kuehling wrote: On 2023-09-28 10:30, Joshi, Mukul wrote: [AMD Official Use Only - General] -Original Message- From: Yadav, Arvind Sent: Thursday,

Re: [PATCH v7 1/4] drm/i915: Introduce intel_gt_mcr_lock_sanitize()

2023-09-29 Thread Nirmoy Das
Thanks reviewing this series. Merged it in  gt-next so hopefully we have bit greener CI for MTL now. Regards, Nirmoy On 9/28/2023 3:00 PM, Nirmoy Das wrote: Implement intel_gt_mcr_lock_sanitize() to provide a mechanism for cleaning the steer semaphore when absolutely necessary. v2: remove

Re: [PATCH v2 1/5] drm/format-helper: Add struct drm_xfrm_buf to cache format conversion

2023-09-29 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Hold temporary memory for format conversion in an instance of struct > drm_xfrm_buf. Update internal helpers of DRM's format-conversion code > accordingly. Drivers will later be able to keep this cache across > display updates. > > Signed-off-by: Thomas Zimmermann >

RE: [PATCH v1] drm/dp/mst: fix missing modeset unlock for MST port detect

2023-09-29 Thread Jani Nikula
On Fri, 29 Sep 2023, Ramya SR wrote: > Hi All , > > Please review the reply comment. Please read the responses you do get [1]. Please stop top-posting. Please fix your mail client. BR, Jani. [1] https://lore.kernel.org/r/877coak8o3@intel.com > > Regards, > Ramya SR > > -Original

[PATCH 4/8] drm/i915/audio : Consider fractional vdsc bpp while computing tu_data

2023-09-29 Thread Mitul Golani
From: Ankit Nautiyal MTL+ supports fractional compressed bits_per_pixel, with precision of 1/16. This compressed bpp is stored in U6.4 format. Accommodate the precision during calculation of transfer unit data for hblank_early calculation. v2: -Fixed tu_data calculation while dealing with U6.4

[PATCH 5/8] drm/i915/dsc/mtl: Add support for fractional bpp

2023-09-29 Thread Mitul Golani
From: Vandita Kulkarni Consider the fractional bpp while reading the qp values. v2: Use helpers for fractional, integral bits of bits_per_pixel. (Suraj) Signed-off-by: Vandita Kulkarni Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Sui Jingfeng ---

[PATCH 8/8] drm/i915/dsc: Allow DSC only with fractional bpp when forced from debugfs

2023-09-29 Thread Mitul Golani
From: Swati Sharma If force_dsc_fractional_bpp_en is set through debugfs allow DSC iff compressed bpp is fractional. Continue if the computed compressed bpp turns out to be a integer. v2: -Use helpers for fractional, integral bits of bits_per_pixel. (Suraj) -Fix comment (Suraj) Signed-off-by:

[PATCH 7/8] drm/i915/dsc: Add debugfs entry to validate DSC fractional bpp

2023-09-29 Thread Mitul Golani
From: Swati Sharma DSC_Sink_BPP_Precision entry is added to i915_dsc_fec_support_show to depict sink's precision. Also, new debugfs entry is created to enforce fractional bpp. If Force_DSC_Fractional_BPP_en is set then while iterating over output bpp with fractional step size we will continue if

[PATCH 6/8] drm/i915/dp: Iterate over output bpp with fractional step size

2023-09-29 Thread Mitul Golani
From: Ankit Nautiyal This patch adds support to iterate over compressed output bpp as per the fractional step, supported by DP sink. v2: -Avoid ending up with compressed bpp, same as pipe bpp. (Stan) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Sui Jingfeng ---

[PATCH 2/8] drm/i915/display: Store compressed bpp in U6.4 format

2023-09-29 Thread Mitul Golani
From: Ankit Nautiyal DSC parameter bits_per_pixel is stored in U6.4 format. The 4 bits represent the fractional part of the bpp. Currently we use compressed_bpp member of dsc structure to store only the integral part of the bits_per_pixel. To store the full bits_per_pixel along with the

[PATCH 3/8] drm/i915/display: Consider fractional vdsc bpp while computing m_n values

2023-09-29 Thread Mitul Golani
From: Ankit Nautiyal MTL+ supports fractional compressed bits_per_pixel, with precision of 1/16. This compressed bpp is stored in U6.4 format. Accommodate this precision while computing m_n values. v1: Replace the computation of 'data_clock' with 'data_clock = DIV_ROUND_UP(data_clock, 16).'

[PATCH 0/8] Add DSC fractional bpp support

2023-09-29 Thread Mitul Golani
This patch series adds support for DSC fractional compressed bpp for MTL+. The series starts with some fixes, followed by patches that lay groundwork to iterate over valid compressed bpps to select the 'best' compressed bpp with optimal link configuration (taken from upstream series:

[PATCH 1/8] drm/display/dp: Add helper function to get DSC bpp precision

2023-09-29 Thread Mitul Golani
From: Ankit Nautiyal Add helper to get the DSC bits_per_pixel precision for the DP sink. Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Sui Jingfeng Acked-by: Maxime Ripard --- drivers/gpu/drm/display/drm_dp_helper.c | 27 +

Re: [PATCH/RFC 3/3] drm: Split drm_modeset_helper_vtables.h

2023-09-29 Thread Thomas Zimmermann
Hi Am 29.09.23 um 09:33 schrieb Geert Uytterhoeven: Hi Thomas, On Fri, Sep 29, 2023 at 9:11 AM Thomas Zimmermann wrote: Am 28.09.23 um 17:32 schrieb Geert Uytterhoeven: On Thu, Sep 28, 2023 at 3:59 PM Thomas Zimmermann wrote: Am 28.09.23 um 14:16 schrieb Geert Uytterhoeven: is the

Re: [PATCH v3 07/32] drm/amd/display: document AMDGPU pre-defined transfer functions

2023-09-29 Thread Pekka Paalanen
On Thu, 28 Sep 2023 16:16:57 -0400 Harry Wentland wrote: > On 2023-09-25 15:49, Melissa Wen wrote: > > Brief documentation about pre-defined transfer function usage on AMD > > display driver and standardized EOTFs and inverse EOTFs. > > > > v3: > > - Document BT709 OETF (Pekka) > > - Fix

Re: [PATCH/RFC 3/3] drm: Split drm_modeset_helper_vtables.h

2023-09-29 Thread Geert Uytterhoeven
Hi Thomas, On Fri, Sep 29, 2023 at 9:11 AM Thomas Zimmermann wrote: > Am 28.09.23 um 17:32 schrieb Geert Uytterhoeven: > > On Thu, Sep 28, 2023 at 3:59 PM Thomas Zimmermann > > wrote: > >> Am 28.09.23 um 14:16 schrieb Geert Uytterhoeven: > >>> is the second largest header file in > >>> the

Re: [PATCH 2/3] drm: Spelling s/preceeding/preceding/g

2023-09-29 Thread Thomas Zimmermann
Am 28.09.23 um 14:16 schrieb Geert Uytterhoeven: Fix misspellings of "preceding". Signed-off-by: Geert Uytterhoeven Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_atomic_helper.c | 4 ++-- include/drm/drm_modeset_helper_vtables.h | 2 +- 2 files changed, 3

Re: [PATCH 1/3] drm: Spelling s/hardward/hardware/g

2023-09-29 Thread Thomas Zimmermann
Am 28.09.23 um 14:16 schrieb Geert Uytterhoeven: Fix misspellings of "hardware". Signed-off-by: Geert Uytterhoeven Reviewed-by: Thomas Zimmermann --- include/drm/drm_bridge.h | 2 +- include/drm/drm_modeset_helper_vtables.h | 4 ++-- 2 files changed, 3 insertions(+),

Re: [PATCH/RFC 3/3] drm: Split drm_modeset_helper_vtables.h

2023-09-29 Thread Thomas Zimmermann
Hi Am 28.09.23 um 17:32 schrieb Geert Uytterhoeven: Hi Thomas, On Thu, Sep 28, 2023 at 3:59 PM Thomas Zimmermann wrote: Am 28.09.23 um 14:16 schrieb Geert Uytterhoeven: is the second largest header file in the DRM subsystem, and declares helpers vtables for various DRM components. Several

Re: [PATCH 3/3] drm/v3d: add brcm, 2712-v3d as a compatible V3D device

2023-09-29 Thread Stefan Wahren
Hi Iago, additional to Maria's comments: Please keep the order of the compatible strings. Also you need to update the device tree binding before this patch: Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yaml Also make sure that the series is send to the maintainers, not just dri-devel by

Re: [RESEND PATCH v6 17/20] drm/mediatek: Support MT8188 Padding in display driver

2023-09-29 Thread 宋孝謙

[PATCH] drm: panel-orientation-quirks: Add quirk for One Mix 2S

2023-09-29 Thread Kai Uwe Broulik
The One Mix 2S is a mini laptop with a 1200x1920 portrait screen mounted in a landscape oriented clamshell case. Because of the too generic DMI strings this entry is also doing bios-date matching. Signed-off-by: Kai Uwe Broulik --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 16

Re: [PATCH 5/9] dma-buf: heaps: mtk_sec_heap: Initialise tee session

2023-09-29 Thread Benjamin Gaignard
Le 28/09/2023 à 19:48, Jeffrey Kardatzke a écrit : On Thu, Sep 28, 2023 at 1:30 AM Benjamin Gaignard wrote: Le 27/09/2023 à 20:56, Jeffrey Kardatzke a écrit : On Wed, Sep 27, 2023 at 8:18 AM Benjamin Gaignard wrote: Le 27/09/2023 à 15:46, Joakim Bech a écrit : On Mon, Sep 25, 2023 at

Re: [PATCH 1/3] drm/v3d: fix up register addresses for V3D 7.x

2023-09-29 Thread itoral
On 2023-09-28 15:03, Maira Canal wrote: > Hi Iago, > > On 9/28/23 08:45, Iago Toral Quiroga wrote: > > Please, add a commit message and your s-o-b to the patch. Here is a reference > on how to format your patches [1]. > > Also, please, run checkpatch on this patch and address the warnings. >

Re: [PATCH 2/3] drm/v3d: update UAPI to match user-space for V3D 7.x

2023-09-29 Thread itoral
On 2023-09-28 15:05, Maira Canal wrote: > Hi Iago, > > On 9/28/23 08:45, Iago Toral Quiroga wrote: >> V3D t.x takes a new parameter to configure TFU jobs that needs > > I believe t.x should be 7.x. > >> to be provided by user space. > > As I mentioned before, please, add your s-o-b. > >> ---