[PATCH] MAINTAINERS: orphan SIS FRAMEBUFFER DRIVER

2023-03-07 Thread Lukas Bulwahn
This was triggered by the fact that the webpage: http://www.winischhofer.net/linuxsisvga.shtml cannot be reached anymore. Thomas Winischhofer is still reachable at the given email address, but he has not been active since 2005. Mark the SIS FRAMEBUFFER DRIVER as orphan to reflect the current

[PATCH] fbdev: Fix incorrect page mapping clearance at fb_deferred_io_release()

2023-03-07 Thread Takashi Iwai
The recent fix for the deferred I/O by the commit 3efc61d95259 ("fbdev: Fix invalid page access after closing deferred I/O devices") caused a regression when the same fb device is opened/closed while it's being used. It resulted in a frozen screen even if something is redrawn there after the

[PATCH 04/13] backlight: da9052_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 00/13] backlight: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
Hello, this patch series adapts the platform drivers below drivers/video/backlight to use the .remove_new() callback. Compared to the traditional .remove() callback .remove_new() returns no value. This is a good thing because the driver core doesn't (and cannot) cope for errors during remove. The

[PATCH 09/13] backlight: mt6370-backlight: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 11/13] backlight: qcom-wled: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 12/13] backlight: rt4831-backlight: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 02/13] backlight: adp5520_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 08/13] backlight: lp8788_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 10/13] backlight: pwm_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 05/13] backlight: hp680_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 01/13] backlight: aat2870_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

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

2023-03-07 Thread Johan Hovold
On Wed, Mar 08, 2023 at 10:10:24AM +0800, Jiasheng Jiang wrote: > On Mon, 06 Mar 2023 18:07:13 +0800, Johan Hovold wrote: > > This reverts commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0. > > The commit not only adds the allocation sanity check, but also adds the > destroy_workqueue to release

[PATCH 03/13] backlight: cr_bllcd: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 07/13] backlight: lm3533_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 06/13] backlight: led_bl: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 13/13] backlight: sky81452-backlight: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

Re: [PATCH v13 01/10] device property: Add remote endpoint to devcon matcher

2023-03-07 Thread Heikki Krogerus
On Fri, Mar 03, 2023 at 10:33:41PM +0800, Pin-yen Lin wrote: > From: Prashant Malani > > When searching the device graph for device matches, check the > remote-endpoint itself for a match. > > Some drivers register devices for individual endpoints. This allows > the matcher code to evaluate

Re: [PATCH v3] dt-bindings: display: mediatek: Fix the duplicated fallback

2023-03-07 Thread Krzysztof Kozlowski
On 06/03/2023 17:20, Alexandre Mergnat wrote: > The item which have the mediatek,mt8192-disp-ccorr const compatible already > exist above. Remove duplicated fallback. Your commit msg is really misleading - I was looking for duplicated compatible, but could not find it. You just have there

Re: [PATCH 00/99] fbdev: Fix memory leak in option parsing

2023-03-07 Thread Geert Uytterhoeven
Hi Thomas, On Tue, Mar 7, 2023 at 9:23 AM Thomas Zimmermann wrote: > Am 07.03.23 um 08:53 schrieb Geert Uytterhoeven: > > On Mon, Mar 6, 2023 at 5:00 PM Thomas Zimmermann > > wrote: > >> Introduce struct option_iter and helpers to parse command-line > >> options with comma-separated key-value

Re: [PATCH v4 00/12] Panfrost: Improve and add MediaTek SoCs support

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:26 PM AngeloGioacchino Del Regno wrote: > > Changes in v4: > - Refactored power-domains and power-domain-names exclusions as >suggested by Krzysztof > - Small changes in MT8192 bindings addition > > Changes in v3: > - Changed MT8186 bindings to declare only two

Re: [PATCH v4 11/12] drm/panfrost: Add new compatible for Mali on the MT8183 SoC

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > The "mediatek,mt8183-mali" compatible uses platform data that calls for > getting (and managing) two regulators ("mali" and "sram") but devfreq > does not support this usecase, resulting in DVFS not working. > > Since a lot of

Re: [PATCH v4 12/12] drm/panfrost: Add support for Mali on the MT8186 SoC

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > MediaTek MT8186 has a Mali-G52 MC2 2EE (Bifrost): add a new compatible > and platform data using the same supplies list as "mt8183_b" (only one > regulator), and a new pm_domains list with only two power domains. > >

Re: [PATCH v4] dt-bindings: display: mediatek: clean unnecessary item

2023-03-07 Thread Alexandre Mergnat
Hi Angelo Le mar. 7 mars 2023 à 11:17, AngeloGioacchino Del Regno a écrit : > > Il 07/03/23 11:07, Alexandre Mergnat ha scritto: > > The item which have the mediatek,mt8192-disp-ccorr as const compatible > > already exist above. Merge all compatibles which have the same fallback > > under the

[PATCH 00/31] phy: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
Hello, this patch series adapts the platform drivers below drivers/phy to use the .remove_new() callback. Compared to the traditional .remove() callback .remove_new() returns no value. This is a good thing because the driver core doesn't (and cannot) cope for errors during remove. The only effect

[PATCH 08/31] phy: mediatek: phy-mtk-mipi-dsi: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH v4] dt-bindings: display: mediatek: clean unnecessary item

2023-03-07 Thread Alexandre Mergnat
The item which have the mediatek,mt8192-disp-ccorr as const compatible already exist above. Merge all compatibles which have the same fallback under the same item. Acked-by: Krzysztof Kozlowski Signed-off-by: Alexandre Mergnat --- Fix MTK color correction binding The fallback compatible has

Re: [PATCH v12 10/11] drm/virtio: Support memory shrinking

2023-03-07 Thread Thomas Zimmermann
Hi Am 05.03.23 um 23:10 schrieb Dmitry Osipenko: [...] *bo_ptr = bo; diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index 4c09e313bebc..3f21512ff153 100644 --- a/drivers/gpu/drm/virtio/virtgpu_plane.c +++

[PATCH] backlight: apple_bl: Use acpi_video_get_backlight_type()

2023-03-07 Thread Hans de Goede
On some MacBooks both the apple_bl and the apple-gmux backlight drivers may be able to export a /sys/class/backlight device. To avoid having 2 backlight devices for one LCD panel until now the apple-gmux driver has been calling apple_bl_unregister() to move the apple_bl backlight device out of

Re: [PATCH 00/99] fbdev: Fix memory leak in option parsing

2023-03-07 Thread Geert Uytterhoeven
Hi Thomas, On Mon, Mar 6, 2023 at 5:00 PM Thomas Zimmermann wrote: > Introduce struct option_iter and helpers to parse command-line > options with comma-separated key-value pairs. Then convert fbdev > drivers to the new interface. Fixes a memory leak in the parsing of > the video= option. > >

Re: [PATCHv4 2/2] i915/display/dp: SDP CRC16 for 128b132b link layer

2023-03-07 Thread Jani Nikula
On Thu, 02 Mar 2023, Arun R Murthy wrote: > Enable SDP error detection configuration, this will set CRC16 in > 128b/132b link layer. > For Display version 13 a hardware bit31 in register VIDEO_DIP_CTL is > added to enable/disable SDP CRC applicable for DP2.0 only, but the > default value of this

Re: [PATCHv4 2/2] i915/display/dp: SDP CRC16 for 128b132b link layer

2023-03-07 Thread Jani Nikula
On Tue, 07 Mar 2023, Jani Nikula wrote: > On Thu, 02 Mar 2023, Arun R Murthy wrote: >> Enable SDP error detection configuration, this will set CRC16 in >> 128b/132b link layer. >> For Display version 13 a hardware bit31 in register VIDEO_DIP_CTL is >> added to enable/disable SDP CRC applicable

Re: [PATCH v4 07/12] dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > The MediaTek MT8195 SoC has a Mali G57 MC5 (Valhall-JM) and has the > same number of power domains and requirements as MT8192 in terms of > bindings. > > Signed-off-by: AngeloGioacchino Del Regno > > Reviewed-by: Rob Herring

Re: [PATCH] drm/rockchip: dsi: Remove the unused function dsi_read()

2023-03-07 Thread Heiko Stuebner
On Wed, 8 Feb 2023 10:34:29 +0800, Jiapeng Chong wrote: > The function dsi_read is defined in the dw-mipi-dsi-rockchip.c file, but > not called elsewhere, so remove this unused function. > > drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:362:19: warning: unused > function 'dsi_read'. > >

Re: [PATCH v4] dt-bindings: display: mediatek: clean unnecessary item

2023-03-07 Thread AngeloGioacchino Del Regno
Il 07/03/23 11:07, Alexandre Mergnat ha scritto: The item which have the mediatek,mt8192-disp-ccorr as const compatible already exist above. Merge all compatibles which have the same fallback under the same item. Acked-by: Krzysztof Kozlowski Signed-off-by: Alexandre Mergnat Alexandre, the

Re: [PATCH v4 05/12] dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > Since new platform data was required in Panfrost for getting GPU DVFS > finally working on MediaTek SoCs, add a new "mediatek,mt8183b-mali" > compatible. > > Signed-off-by: AngeloGioacchino Del Regno > > Reviewed-by: Rob

Re: [PATCH v4 04/12] dt-bindings: gpu: mali-bifrost: Add sub-schema for MT8192's power domains

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > MediaTek MT8192 (and similar) needs five power domains for the > Mali GPU and no sram-supply: change the binding to allow so by > also introducing power-domain-names in the generic binding; > while at it, also disallow the

Re: [PATCH 2/2] gpu/drm/panel: Add Lenovo NT36523W BOE panel

2023-03-07 Thread Konrad Dybcio
On 7.03.2023 10:19, Neil Armstrong wrote: > Hi, > > On 17/02/2023 12:29, Konrad Dybcio wrote: >> Introduce support for the BOE panel with a NT36523W touch/driver IC >> found on some Lenovo Tab P11 devices. It's a 2000x1200, 24bit RGB >> MIPI DSI panel with integrated DCS-controlled backlight

Re: [PATCH 01/99] lib: Add option iterator

2023-03-07 Thread Thomas Zimmermann
Hi Am 06.03.23 um 23:37 schrieb Randy Dunlap: [...] + * + * The call to option_iter_init() initializes the iterator instance + * from the option string. The while loop walks over the individual + * options in the sting and returns each in the second argument. The + * returned memory is owned by

Re: [PATCH v4 08/12] drm/panfrost: Increase MAX_PM_DOMAINS to 5

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > From: Alyssa Rosenzweig > > Increase the MAX_PM_DOMAINS constant from 3 to 5, to support the > extra power domains required by the Mali-G57 on the MT8192. > > Signed-off-by: Alyssa Rosenzweig > Signed-off-by: AngeloGioacchino

Re: [PATCH v4 09/12] drm/panfrost: Add the MT8192 GPU ID

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > From: Alyssa Rosenzweig > > MediaTek MT8192 has a Mali-G57 with a special GPU ID. Add its GPU ID, > but treat it as otherwise identical to a standard Mali-G57. > > We do _not_ fix up the GPU ID here -- userspace needs to be

Re: [PATCH v4 10/12] drm/panfrost: Add mediatek, mt8192-mali compatible

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > From: Alyssa Rosenzweig > > Required for Mali-G57 on the Mediatek MT8192 and MT8195, which > uses even more power domains than the MT8183 before it. > > Signed-off-by: Alyssa Rosenzweig > [Angelo: Removed unneeded "sram"

[PULL] drm-misc-next

2023-03-07 Thread Maarten Lankhorst
Hi Dave, Daniel, I apparently didn't send my 2023-02-23 pull request or at least don't see it on dri-devel, so I added both shortlogs here. Enjoy! ~Maarten drm-misc-next-2023-03-07: drm-misc-next for v6.4-rc1: UAPI Changes: Cross-subsystem Changes: - Add Neil Armstrong as linaro maintainer.

Re: [PATCH v15 00/16] drm: Add Samsung MIPI DSIM bridge

2023-03-07 Thread Jagan Teki
Hi Marek, On Tue, Mar 7, 2023 at 1:25 PM Jagan Teki wrote: > > Hi Marek, > > On Tue, Mar 7, 2023 at 4:11 AM Marek Szyprowski > wrote: > > > > Dear Jagan, > > > > On 06.03.2023 18:24, Jagan Teki wrote: > > > On Mon, Mar 6, 2023 at 4:32 PM Marek Szyprowski > > > wrote: > > >> On 04.03.2023

Re: [PATCH v15 00/16] drm: Add Samsung MIPI DSIM bridge

2023-03-07 Thread Marek Szyprowski
Hello, On 07.03.2023 10:22, Jagan Teki wrote: > On Tue, Mar 7, 2023 at 1:25 PM Jagan Teki wrote: >> On Tue, Mar 7, 2023 at 4:11 AM Marek Szyprowski >> wrote: >>> On 06.03.2023 18:24, Jagan Teki wrote: On Mon, Mar 6, 2023 at 4:32 PM Marek Szyprowski wrote: > On 04.03.2023 19:59,

Re: [PATCH v12 09/11] drm/gem: Export drm_gem_pin/unpin()

2023-03-07 Thread Thomas Zimmermann
Hi Am 05.03.23 um 23:10 schrieb Dmitry Osipenko: Export drm_gem_un/pin() functions. They will be used by VirtIO-GPU driver for pinning of an active framebuffer, preventing it from swapping out by memory shrinker. Please see my reply to [10/11] on why this patch should not be used. Best

Re: [PATCH v4] dt-bindings: display: mediatek: clean unnecessary item

2023-03-07 Thread AngeloGioacchino Del Regno
Il 07/03/23 11:50, Alexandre Mergnat ha scritto: Hi Angelo Le mar. 7 mars 2023 à 11:17, AngeloGioacchino Del Regno a écrit : Il 07/03/23 11:07, Alexandre Mergnat ha scritto: The item which have the mediatek,mt8192-disp-ccorr as const compatible already exist above. Merge all compatibles

Re: [PATCH v2 8/9] dt-bindings: display/msm: dsi-controller-main: Add SM6115

2023-03-07 Thread Konrad Dybcio
On 7.03.2023 10:17, Krzysztof Kozlowski wrote: > On 13/02/2023 13:10, Konrad Dybcio wrote: >> Add a compatible for the DSI on SM6115. >> >> Signed-off-by: Konrad Dybcio >> --- >> .../devicetree/bindings/display/msm/dsi-controller-main.yaml| 2 ++ >> 1 file changed, 2 insertions(+) >> >>

Re: [PATCH 00/99] fbdev: Fix memory leak in option parsing

2023-03-07 Thread Thomas Zimmermann
Hi Geert Am 07.03.23 um 08:53 schrieb Geert Uytterhoeven: Hi Thomas, On Mon, Mar 6, 2023 at 5:00 PM Thomas Zimmermann wrote: Introduce struct option_iter and helpers to parse command-line options with comma-separated key-value pairs. Then convert fbdev drivers to the new interface. Fixes a

Re: [PATCH 11/99] fbdev/aty: Duplicate video-mode option string

2023-03-07 Thread Thomas Zimmermann
Hi Am 06.03.23 um 17:13 schrieb Geert Uytterhoeven: Hi Thomas, Thanks for your patch! On Mon, Mar 6, 2023 at 5:00 PM Thomas Zimmermann wrote: Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only

Re: [PATCH 22/99] fbdev/fsl-diu-fb: Duplicate video-mode option string

2023-03-07 Thread Thomas Zimmermann
Hi Am 06.03.23 um 21:04 schrieb Timur Tabi: On Mon, Mar 6, 2023 at 10:01 AM Thomas Zimmermann wrote: Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of

Re: [PATCH 00/22] drm/dma-helper: Add dedicated fbdev emulation

2023-03-07 Thread Thomas Zimmermann
Hi Am 06.03.23 um 23:19 schrieb Linus Walleij: On Wed, Mar 1, 2023 at 4:31 PM Thomas Zimmermann wrote: Add fbdev emulation that is optimized for DMA helpers, as used by most drivers. It operates directly on GEM DMA buffers in system memory. Memory pages are mmap'ed directly to userspace. No

Re: [PATCH 2/2] gpu/drm/panel: Add Lenovo NT36523W BOE panel

2023-03-07 Thread Neil Armstrong
On 17/02/2023 12:29, Konrad Dybcio wrote: Introduce support for the BOE panel with a NT36523W touch/driver IC found on some Lenovo Tab P11 devices. It's a 2000x1200, 24bit RGB MIPI DSI panel with integrated DCS-controlled backlight (that expects big-endian communication). Signed-off-by: Konrad

Re: [PATCH v3 2/2] dt-bindings: display: msm: sm6115-mdss: Fix DSI compatible

2023-03-07 Thread Krzysztof Kozlowski
On 06/03/2023 11:06, Konrad Dybcio wrote: > > > On 6.03.2023 09:57, Krzysztof Kozlowski wrote: >> On 04/03/2023 16:55, Konrad Dybcio wrote: >>> Since the DSI autodetection is bound to work correctly on 6115 now, >>> switch to using the correct per-SoC + generic fallback compatible >>> combo. >>>

Re: [PATCH v2 8/9] dt-bindings: display/msm: dsi-controller-main: Add SM6115

2023-03-07 Thread Krzysztof Kozlowski
On 13/02/2023 13:10, Konrad Dybcio wrote: > Add a compatible for the DSI on SM6115. > > Signed-off-by: Konrad Dybcio > --- > .../devicetree/bindings/display/msm/dsi-controller-main.yaml| 2 ++ > 1 file changed, 2 insertions(+) > > diff --git >

Re: [Intel-gfx] [PATCH v3 0/2] Fix error propagation amongst request

2023-03-07 Thread Andi Shyti
Hi GG, On Tue, Mar 07, 2023 at 09:33:12AM +0200, Gwan-gyeong Mun wrote: > Hi Andi, > > After applying these two patches, deadlock is being detected in the call > stack below. Please review whether the patch to update the > intel_context_migrate_copy() part affected the deadlock. > >

[RFC 05/12] dma-fence: Track explicit waiters

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Track how many callers are explicity waiting on a fence to signal and allow querying that via new dma_fence_wait_count() API. This provides infrastructure on top of which generic "waitboost" concepts can be implemented by individual drivers. Wait-boosting is any reactive

[RFC 06/12] dma-fence: Export __dma_fence_add_callback

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin ... Signed-off-by: Tvrtko Ursulin --- drivers/dma-buf/dma-fence.c | 9 + include/linux/dma-fence.h | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index bdba5a8e21b1..5607acdb6ccf

[RFC 03/12] drm/i915: Use fence callback initialization helper

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Use the previously added initialization helper to ensure correct operation of the common code. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_active.c | 2 +- drivers/gpu/drm/i915/i915_active.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[RFC 02/12] dma-fence: Add callback initialization helper

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin In preparation of adding a new field to struct dma_fence_cb we will need an initialization helper for those callers who add callbacks by open- coding. That will ensure they initialize all the fields so common code does not get confused by potential garbage in some fields.

[RFC v4 00/12] Waitboost drm syncobj waits

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin In i915 we have this concept of "wait boosting" where we give a priority boost for instance to fences which are actively waited upon from userspace. This has it's pros and cons and can certainly be discussed at lenght. However fact is some workloads really like it. Problem

[RFC 09/12] drm/syncobj: Mark syncobj waits as external waiters

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Use the previously added dma-fence tracking of explicit waiters. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/drm_syncobj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c index

[RFC 08/12] dma-fence-chain: Propagate wait status to contained fences

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin As signaling is enabled on the container fence we need to propagate any external waiting status to individual fences in order to enable owning drivers see it. Signed-off-by: Tvrtko Ursulin --- drivers/dma-buf/dma-fence-chain.c | 22 --

[RFC 07/12] dma-fence-array: Propagate wait status to contained fences

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin As signaling is enabled on the container fence we need to propagate any external waiting status to individual fences in order to enable owning drivers see it. Signed-off-by: Tvrtko Ursulin --- drivers/dma-buf/dma-fence-array.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[RFC 10/12] drm/i915: Waitboost external waits

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Userspace waits coming via the drm_syncobj route have so far been bypassing the waitboost mechanism. Use the previously added dma-fence wait tracking API and apply the same waitboosting logic which applies to other entry points. This should fix the perfomance regressions

[RFC 11/12] drm/i915: Mark waits as explicit

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Use the previously added dma-fence API to mark the direct i915 waits as explicit. This has no significant effect apart from following the new pattern. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_request.c | 3 ++- 1 file changed, 2 insertions(+), 1

[RFC 12/12] drm/i915: Wait boost requests waited upon by others

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Use the newly added dma-fence API to apply waitboost not only requests which have been marked with I915_WAIT_PRIORITY by i915, but which may be waited upon by others (such as for instance buffer sharing in multi-GPU scenarios). Signed-off-by: Tvrtko Ursulin ---

[RFC 01/12] dma-fence: Move i915 helpers into common

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Unhide some i915 helpers which are used for splitting the signalled check vs notification stages during en masse fence processing. Signed-off-by: Tvrtko Ursulin --- drivers/dma-buf/dma-fence.c | 35 +++--

[RFC 04/12] drm/vmwgfx: Use fence callback initialization helper

2023-03-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Use the previously added initialization helper to ensure correct operation of the common code. Signed-off-by: Tvrtko Ursulin Cc: Zack Rusin --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/2] gpu/drm/panel: Add Lenovo NT36523W BOE panel

2023-03-07 Thread Neil Armstrong
Hi, On 17/02/2023 12:29, Konrad Dybcio wrote: Introduce support for the BOE panel with a NT36523W touch/driver IC found on some Lenovo Tab P11 devices. It's a 2000x1200, 24bit RGB MIPI DSI panel with integrated DCS-controlled backlight (that expects big-endian communication). Signed-off-by:

Re: [PATCH v4 06/12] dt-bindings: gpu: mali-bifrost: Add support for MediaTek MT8186

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > MT8186 has a Mali-G52 MC2 2EE GPU (two cores): add a binding with > two power domains (one per core) for it. > > Signed-off-by: AngeloGioacchino Del Regno > > Reviewed-by: Chen-Yu Tsai Tested-by: Chen-Yu Tsai with `make

Re: [PATCH v4 02/12] dt-bindings: gpu: mali-bifrost: Set power-domains maxItems to 5

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > In preparation for adding (and fixing) power-domain-names and MediaTek > MT8192 bindings, allow up to five items for power-domains. > > Signed-off-by: AngeloGioacchino Del Regno > Reviewed-by: Chen-Yu Tsai Tested-by:

Re: [PATCH v4 01/12] dt-bindings: gpu: mali-bifrost: Split out MediaTek power-domains variation

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > In preparation for adding new bindings for new MediaTek SoCs, split out > the power-domains variation from the `else` in the current > mediatek,mt8183-mali conditional. > > The sram-supply part is left in place to be disallowed

Re: [PATCH v4 03/12] dt-bindings: gpu: mali-bifrost: Fix power-domain-names validation

2023-03-07 Thread Chen-Yu Tsai
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno wrote: > > Commit ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") > incorrectly introduced power domain names for MT8183, causing > validation issues. > > Add power-domain-names to the base schema, allowing a maximum of > five

Re: [PATCH] backlight: apple_bl: Use acpi_video_get_backlight_type()

2023-03-07 Thread Andy Shevchenko
On Tue, Mar 07, 2023 at 01:05:40PM +0100, Hans de Goede wrote: > On some MacBooks both the apple_bl and the apple-gmux backlight drivers > may be able to export a /sys/class/backlight device. > > To avoid having 2 backlight devices for one LCD panel until now > the apple-gmux driver has been

Re: [PATCH v4] dt-bindings: display: mediatek: clean unnecessary item

2023-03-07 Thread Krzysztof Kozlowski
On 07/03/2023 11:17, AngeloGioacchino Del Regno wrote: > Il 07/03/23 11:07, Alexandre Mergnat ha scritto: >> The item which have the mediatek,mt8192-disp-ccorr as const compatible >> already exist above. Merge all compatibles which have the same fallback >> under the same item. >> >> Acked-by:

Re: [PATCH] backlight: apple_bl: Use acpi_video_get_backlight_type()

2023-03-07 Thread Hans de Goede
Hi, On 3/7/23 13:27, Andy Shevchenko wrote: > On Tue, Mar 07, 2023 at 01:05:40PM +0100, Hans de Goede wrote: >> On some MacBooks both the apple_bl and the apple-gmux backlight drivers >> may be able to export a /sys/class/backlight device. >> >> To avoid having 2 backlight devices for one LCD

Re: [PATCH v3 08/10] dt-bindings: display/msm: dsi-controller-main: Fix deprecated compatible

2023-03-07 Thread Konrad Dybcio
On 7.03.2023 14:01, Konrad Dybcio wrote: > The point of the previous cleanup was to disallow "qcom,mdss-dsi-ctrl" > alone. This however didn't quite work out and the property became > undocumented instead of deprecated. Fix that. > > Fixes: 0c0f65c6dd44 ("dt-bindings: msm: dsi-controller-main:

Re: [PATCH RFC 3/3] drm/i915/display: Implement fb_mmap callback function

2023-03-07 Thread Das, Nirmoy
Hi Ville, On 3/6/2023 3:32 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:50AM +0100, Nirmoy Das wrote: If stolen memory allocation fails for fbdev, the driver will fallback to system memory. Calculation of smem_start is wrong for such framebuffer objs if the platform comes with no

Re: [PATCH v3 01/17] drm/connector: Convert DRM_MODE_COLORIMETRY to enum

2023-03-07 Thread Simon Ser
On Tuesday, March 7th, 2023 at 16:10, Harry Wentland wrote: > * This enum is used to indicate DP VSC SDP Colorimetry formats. > * It is based on DP 1.4 spec [Table 2-117: VSC SDP Payload for DB16 through > - * DB18] and a name of enum member follows DRM_MODE_COLORIMETRY definition. > + * DB18]

[PATCH v4 01/17] drm/connector: Convert DRM_MODE_COLORIMETRY to enum

2023-03-07 Thread Harry Wentland
This allows us to use strongly typed arguments. v2: - Bring NO_DATA back - Provide explicit enum values v4: Drop unnecessary '&' from kerneldoc (emersion) Signed-off-by: Harry Wentland Reviewed-by: Simon Ser Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar

Re: (subset) [PATCH] drm/sun4i: fix missing component unbind on bind errors

2023-03-07 Thread Maxime Ripard
On Mon, 06 Mar 2023 11:32:42 +0100, Johan Hovold wrote: > Make sure to unbind all subcomponents when binding the aggregate device > fails. > > Applied to drm/drm-misc (drm-misc-fixes). Thanks! Maxime

Re: [PATCH RFC 01/18] rust: drm: ioctl: Add DRM ioctl abstraction

2023-03-07 Thread Maíra Canal
On 3/7/23 11:25, Asahi Lina wrote: DRM drivers need to be able to declare which driver-specific ioctls they support. This abstraction adds the required types and a helper macro to generate the ioctl definition inside the DRM driver. Note that this macro is not usable until further bits of the

Re: [PATCH v2 2/4] drm/bridge: imx: add bridge wrapper driver for i.MX8MP DWC HDMI

2023-03-07 Thread Richard Leitner
Hi Lucas, On Fri, Dec 16, 2022 at 10:07:40PM +0100, Lucas Stach wrote: > Add a simple wrapper driver for the DWC HDMI bridge driver that > implements the few bits that are necessary to abstract the i.MX8MP > SoC integration. > > Signed-off-by: Lucas Stach > Reviewed-by: Laurent Pinchart >

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

2023-03-07 Thread Richard Leitner
Hi Lucas, hope I got the latest version of this series. If not, please feel free to point me to the correct one. On Fri, Dec 16, 2022 at 10:07:42PM +0100, 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

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

2023-03-07 Thread Dmitry Baryshkov
On 28/02/2023 18:31, Jani Nikula wrote: On Tue, 28 Feb 2023, Dmitry Baryshkov wrote: DSC model contains pre-SCR RC parameters for other bpp/bpc combinations, include them here for completeness. Need to run now, note to self: Does i915 use the arrays to limit the bpp/bpc combos supported by

[PATCH RFC 08/18] rust: dma_fence: Add DMA Fence abstraction

2023-03-07 Thread Asahi Lina
DMA fences are the internal synchronization primitive used for DMA operations like GPU rendering, video en/decoding, etc. Add an abstraction to allow Rust drivers to interact with this subsystem. Note: This uses a raw spinlock living next to the fence, since we do not interact with it other than

[PATCH RFC 07/18] rust: drm: mm: Add DRM MM Range Allocator abstraction

2023-03-07 Thread Asahi Lina
drm_mm provides a simple range allocator, useful for managing virtual address ranges. Add a Rust abstraction to expose this module to Rust drivers. Signed-off-by: Asahi Lina --- rust/kernel/drm/mm.rs | 309 + rust/kernel/drm/mod.rs | 1 + 2

[PATCH RFC 12/18] rust: drm: sched: Add GPU scheduler abstraction

2023-03-07 Thread Asahi Lina
The GPU scheduler manages scheduling GPU jobs and dependencies between them. This Rust abstraction allows Rust DRM drivers to use this functionality. Signed-off-by: Asahi Lina --- drivers/gpu/drm/Kconfig | 5 + rust/bindings/bindings_helper.h | 1 + rust/helpers.c |

[PATCH RFC 09/18] rust: drm: syncobj: Add DRM Sync Object abstraction

2023-03-07 Thread Asahi Lina
DRM Sync Objects are a container for a DMA fence, and can be waited on signaled, exported, and imported from userspace. Add a Rust abstraction so Rust DRM drivers can support this functionality. Signed-off-by: Asahi Lina --- rust/bindings/bindings_helper.h | 1 + rust/helpers.c

[PATCH RFC 14/18] rust: drm: gem: Add set_exportable() method

2023-03-07 Thread Asahi Lina
This allows drivers to control whether a given GEM object is allowed to be exported via PRIME to other drivers. --- rust/kernel/drm/gem/mod.rs | 7 +++ 1 file changed, 7 insertions(+) diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs index e66bdef35c2e..196252a25b5a 100644

[PATCH RFC 11/18] drm/scheduler: Clean up jobs when the scheduler is torn down

2023-03-07 Thread Asahi Lina
drm_sched_fini() currently leaves any pending jobs dangling, which causes segfaults and other badness when job completion fences are signaled after the scheduler is torn down. Explicitly detach all jobs from their completion callbacks and free them. This makes it possible to write a sensible safe

[PATCH RFC 13/18] drm/gem: Add a flag to control whether objects can be exported

2023-03-07 Thread Asahi Lina
Drivers may want to support driver-private objects, which cannot be shared. This allows them to share a single lock and enables other optimizations. Add an `exportable` field to drm_gem_object, which blocks PRIME export if set to false. It is initialized to true in drm_gem_private_object_init.

[PATCH RFC 10/18] drm/scheduler: Add can_run_job callback

2023-03-07 Thread Asahi Lina
Some hardware may require more complex resource utilization accounting than the simple job count supported by drm_sched internally. Add a can_run_job callback to allow drivers to implement more logic before deciding whether to run a GPU job. Signed-off-by: Asahi Lina ---

[PATCH v2 5/7] drm/ttm: Don't print error message if eviction was interrupted

2023-03-07 Thread Thomas Hellström
Avoid printing an error message if eviction was interrupted by, for example, the user pressing CTRL-C. That may happen if eviction is waiting for something, like for example a free batch-buffer. Signed-off-by: Thomas Hellström --- drivers/gpu/drm/ttm/ttm_bo.c | 3 ++- 1 file changed, 2

[PATCH v2 6/7] drm/ttm: Reduce the number of used allocation orders for TTM pages

2023-03-07 Thread Thomas Hellström
When swapping out, we will split multi-order pages both in order to move them to the swap-cache and to be able to return memory to the swap cache as soon as possible on a page-by-page basis. Reduce the page max order to the system PMD size, as we can then be nicer to the system and avoid splitting

[PATCH v2 0/7] drm/ttm: Small fixes / cleanups in prep for shrinking

2023-03-07 Thread Thomas Hellström
I collected the, from my POW, uncontroversial patches from V1 of the TTM shrinker series, some corrected after the initial patch submission, one patch added from the Xe RFC ("drm/ttm: Don't print error message if eviction was interrupted"). It would be nice to have these reviewed and merged while

[PATCH v2 4/7] drm/ttm: Unexport ttm_global_swapout()

2023-03-07 Thread Thomas Hellström
Unexport ttm_global_swapout() since it is not used outside of TTM. Signed-off-by: Thomas Hellström --- drivers/gpu/drm/ttm/ttm_device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c index ae2f19dc9f81..64a59f46f6c3 100644

[PATCH v2 2/7] drm/ttm/pool: Fix ttm_pool_alloc error path

2023-03-07 Thread Thomas Hellström
When hitting an error, the error path forgot to unmap dma mappings and could call set_pages_wb() on already uncached pages. Fix this by introducing a common __ttm_pool_free() function that does the right thing. v2: - Simplify __ttm_pool_free() (Christian König) Fixes: d099fc8f540a ("drm/ttm:

[PATCH v2 3/7] drm/ttm: Use the BIT macro for the TTM_TT_FLAGs

2023-03-07 Thread Thomas Hellström
New code is recommended to use the BIT macro instead of the explicit shifts. Change the older defines so that we can keep the style consistent with upcoming changes. v2: - Also change the value of the _PRIV_POPULATED bit (Christian König) Signed-off-by: Thomas Hellström ---

  1   2   3   >