Re: [PATCH V2] dmabuf: ensure unique directory name for dmabuf stats

2022-05-11 Thread Christian König
Am 11.05.22 um 08:49 schrieb Charan Teja Kalla: Thanks Christian for the inputs!! On 5/10/2022 10:52 PM, Christian König wrote:      if (!dmabuf || !dmabuf->file)    return -EINVAL; @@ -192,7 +193,8 @@ int dma_buf_stats_setup(struct dma_buf *dmabuf)      /* create the directo

Re: [PATCH 3/3] drm/virtio: use the fence for every plane update

2022-05-11 Thread kernel test robot
tgpu-fence-release/20220511-081226 base: git://anongit.freedesktop.org/drm/drm drm-next config: arm-randconfig-r015-20220509 (https://download.01.org/0day-ci/archive/20220511/202205111533.lazm5cyp-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/ll

Re: [PATCH v2] drm/probe-helper: Default to 640x480 if no EDID

2022-05-11 Thread Thomas Zimmermann
Hi Am 10.05.22 um 22:51 schrieb Douglas Anderson: If we're unable to read the EDID for a display because it's corrupt / bogus / invalid then we'll add a set of standard modes for the display. When userspace looks at these modes it doesn't really have a good concept for which mode to pick and it'

Re: [PATCH v2 1/3] dt-bindings: mediatek: add vdosys1 RDMA definition for mt8195

2022-05-11 Thread Krzysztof Kozlowski
On 11/05/2022 04:26, Rex-BC Chen wrote: > Hello Krzysztof and Chen-Yu, > > Nancy thinks our IP is more like rdma. > Blitter may be somthing for reading memory and writing to another > memory, but we don't have the function of writing memory. > If we use rdma, is it ok? Sure. Best regards, Krzys

Re: [Intel-gfx] [PATCH] drm/i915/gem: Flush TLBs for all the tiles

2022-05-11 Thread Tvrtko Ursulin
On 10/05/2022 21:33, Andi Shyti wrote: During object cleanup we invalidate the TLBs but we do it only for gt0. Invalidate the caches for all the tiles. Reported-by: Chris Wilson Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 11 --- 1 file changed, 8 ins

Re: [PATCH v2 1/2] drm/probe-helper: Add helper for drm_helper_probe_single_connector_modes()

2022-05-11 Thread Thomas Zimmermann
Hi Am 10.05.22 um 22:13 schrieb Douglas Anderson: The drm_helper_probe_single_connector_modes() is a bit long. Let's break a chunk off to update and validate modes. This helps avoid one goto and also will allow us to more easily call the helper a second time in a future patch without adding loop

Re: [PATCH 1/3] dt-bindings: display: rockchip: make reg-names mandatory for VOP2

2022-05-11 Thread Sascha Hauer
On Tue, May 10, 2022 at 12:15:29PM -0500, Rob Herring wrote: > On Tue, May 10, 2022 at 09:09:12AM +0200, Sascha Hauer wrote: > > The VOP2 driver relies on reg-names properties, but these are not > > documented. Add the missing documentation, make reg-names mandatory > > and increase minItems to 2 a

Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add prefix for EBBG

2022-05-11 Thread Krzysztof Kozlowski
On 11/05/2022 07:28, Joel Selvaraj wrote: > Add a prefix for EBBG. They manufacture displays which are used in some > Xiaomi phones, but I could not find much details about the company. > > Signed-off-by: Joel Selvaraj > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 fi

[PATCH v2 1/3] dt-bindings: display: rockchip: make reg-names mandatory for VOP2

2022-05-11 Thread Sascha Hauer
The VOP2 driver relies on reg-names properties, but these are not documented. Add the missing documentation, make reg-names mandatory and increase minItems to 2 as always both register spaces are needed. Signed-off-by: Sascha Hauer --- Notes: Changes since v1: - Drop minItems - Add r

[PATCH v2 2/3] drm: rockchip: Change register space names

2022-05-11 Thread Sascha Hauer
"regs" seems to generic when there are multiple register spaces, so rename that one to "vop". Also change "gamma_lut" to better looking "gamma-lut". Signed-off-by: Sascha Hauer --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 3/3] arm64: dts: rockchip: rk356x: Change VOP2 register space names

2022-05-11 Thread Sascha Hauer
"regs" seems to generic when there are multiple register spaces, so rename to "vop". Also, replace "gamma_lut" with better looking "gamma-lut". This has been changed in the driver and binding documentation as well. Signed-off-by: Sascha Hauer --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 2 +-

[PATCH v2 0/3] RK356x VOP2: Change register space names

2022-05-11 Thread Sascha Hauer
The VOP2 driver sitting in next uses named register spaces, but the binding lacks documentation for that. Add the missing documentation and while at it take the opportunity to rename the register spaces from too generic "regs" to "vop" and from "gamma_lut" to better looking "gamma-lut". Changes si

Re: [PATCH v2 2/3] dt-bindings: display: Add bindings for EBBG FT8719

2022-05-11 Thread Krzysztof Kozlowski
On 11/05/2022 07:28, Joel Selvaraj wrote: > Add bindings for the EBBG FT8719 6.18" 2246x1080 DSI video mode panel, > which can be found on some Xiaomi Poco F1 phones. The backlight is > managed through the QCOM WLED driver. > > Signed-off-by: Joel Selvaraj Reviewed-by: Krzysztof Kozlowski Be

Re: [Intel-gfx] [PATCH v4 1/3] drm/i915/gt: Ignore TLB invalidations on idle engines

2022-05-11 Thread Tvrtko Ursulin
On 11/05/2022 02:11, Andi Shyti wrote: From: Chris Wilson As an extension of the current skip TLB invalidations if the device is powered down, we recognised that prior to any engine activity, all the TLBs are explicitly invalidated. Thus anytime we know the engine is asleep, we can skip inval

Re: [PATCH] drm/i915/gt: Fix use of static in macro mismatch

2022-05-11 Thread Jani Nikula
On Tue, 10 May 2022, Andi Shyti wrote: > The INTEL_GT_RPS_SYSFS_ATTR was creating to different structures > but. When called with the "static" keyword this is affecting only > the first structure, while the second is created as non static. > > Move the static keyword inside the macros to affect bo

[PATCH v3] drm/edid: keep propagating drm_edid to display info

2022-05-11 Thread Jani Nikula
We'll need to propagate drm_edid everywhere. v3: Update comment to refer to update_display_info() (Ankit) v2: Use drm_edid_legacy_init() Signed-off-by: Jani Nikula Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/drm_edid.c | 50 +++--- 1 file changed, 30 insert

[PATCH v3] drm/edid: propagate drm_edid to drm_edid_to_eld()

2022-05-11 Thread Jani Nikula
We'll need to propagate drm_edid everywhere. v3: Rebase Signed-off-by: Jani Nikula Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/drm_edid.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index

[PATCH v3] drm/edid: convert drm_edid_connector_update() to drm_edid fully

2022-05-11 Thread Jani Nikula
We'll need to propagate drm_edid everywhere. v3: s/edid/drm_edid/ in comment too (Ankit) Signed-off-by: Jani Nikula Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/drm_edid.c | 97 ++ 1 file changed, 47 insertions(+), 50 deletions(-) diff --git a/drivers/gp

[Bug 205089] amdgpu : drm:amdgpu_cs_ioctl : Failed to initialize parser -125

2022-05-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205089 emlodn...@gmail.com changed: What|Removed |Added CC||emlodn...@gmail.com --- Comment #41

Re: [PATCH] MAINTAINERS: Add simpledrm driver co-maintainer

2022-05-11 Thread Javier Martinez Canillas
On 5/5/22 19:26, Javier Martinez Canillas wrote: > Thomas asked me to serve as co-maintainer for the simpledrm driver. > > Signed-off-by: Javier Martinez Canillas > --- Pushed this to drm-misc (drm-misc-next). -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH] drm/todo: Add entry for converting kselftests to kunit

2022-05-11 Thread Javier Martinez Canillas
On 5/9/22 15:08, Javier Martinez Canillas wrote: > Many of the kselftests in DRM can be converted to kunit tests instead, > since that framework is more suitable for unit testing. > > Suggested-by: Maxime Ripard > Signed-off-by: Javier Martinez Canillas > --- Pushed this to drm-misc (drm-misc-n

Re: [PATCH RFC v6 00/21] DEPT(Dependency Tracker)

2022-05-11 Thread Hyeonggon Yoo
On Wed, May 11, 2022 at 08:39:29AM +0900, Byungchul Park wrote: > On Tue, May 10, 2022 at 08:18:12PM +0900, Hyeonggon Yoo wrote: > > On Mon, May 09, 2022 at 09:16:37AM +0900, Byungchul Park wrote: > > > On Sat, May 07, 2022 at 04:20:50PM +0900, Hyeonggon Yoo wrote: > > > > On Fri, May 06, 2022 at 0

Re: [PATCH 1/4] drm/i915: add gen6 ppgtt dummy creation function

2022-05-11 Thread Thomas Hellström
Hi, On Tue, 2022-05-03 at 19:13 +, Robert Beckett wrote: > Internal gem objects will soon just be volatile system memory region > objects. > To enable this, create a separate dummy object creation function > for gen6 ppgtt It's not clear from the commit message why we need a special case for

Re: [PATCH v2 08/12] drm: bridge: samsung-dsim: Add atomic_check

2022-05-11 Thread Andrzej Hajda
On 04.05.2022 13:40, Jagan Teki wrote: Fixing up the mode flags is required in order to correlate the correct sync flags of the surrounding components in the chain to make sure the whole pipeline can work properly. So, handle the mode flags via bridge, atomic_check. v2: * none v1: * fix mode f

Re: [PATCH v2] drm/tegra: Stop using iommu_present()

2022-05-11 Thread Dmitry Osipenko
On 5/4/22 14:52, Robin Murphy wrote: > On 2022-05-04 01:52, Dmitry Osipenko wrote: >> On 4/11/22 16:46, Robin Murphy wrote: >>> @@ -1092,6 +1092,19 @@ static bool host1x_drm_wants_iommu(struct >>> host1x_device *dev) >>>   struct host1x *host1x = dev_get_drvdata(dev->dev.parent); >>>   stru

[PATCH v5 0/7] Fix some races between sysfb device registration and drivers probe

2022-05-11 Thread Javier Martinez Canillas
Hello, The patches in this series contain mostly changes suggested by Daniel Vetter Thomas Zimmermann. They aim to fix existing races between the Generic System Framebuffer (sysfb) infrastructure and the fbdev and DRM device registration. For example, it is currently possible for sysfb to registe

Re: [PATCH 2/4] drm/i915: setup ggtt scratch page after memory regions

2022-05-11 Thread Thomas Hellström
On Tue, 2022-05-03 at 19:13 +, Robert Beckett wrote: > reorder scratch page allocation so that memory regions are available Nit: s/reorder/Reorder/ Reviewed-by: Thomas Hellström > to allocate the buffers > > Signed-off-by: Robert Beckett > --- >  drivers/gpu/drm/i915/gt/intel_gt_gmch.c |

[PATCH v5 1/7] firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer

2022-05-11 Thread Javier Martinez Canillas
This function just returned 0 on success or an errno code on error, but it could be useful for sysfb_init() callers to have a pointer to the device. Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Vetter Reviewed-by: Thomas Zimmermann --- (no changes since v3) Changes in v3: - Ad

[PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Javier Martinez Canillas
These can be used by subsystems to unregister a platform device registered by sysfb and also to disable future platform device registration in sysfb. Suggested-by: Daniel Vetter Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Vetter --- (no changes since v4) Changes in v4: - Make

[PATCH v5 3/7] fbdev: Restart conflicting fb removal loop when unregistering devices

2022-05-11 Thread Javier Martinez Canillas
Drivers that want to remove registered conflicting framebuffers prior to register their own framebuffer, calls remove_conflicting_framebuffers(). This function takes the registration_lock mutex, to prevent a races when drivers register framebuffer devices. But if a conflicting framebuffer device i

[PATCH v5 4/7] fbdev: Make sysfb to unregister its own registered devices

2022-05-11 Thread Javier Martinez Canillas
The platform devices registered in sysfb match with a firmware-based fbdev or DRM driver, that are used to have early graphics using framebuffers set up by the system firmware. Real DRM drivers later are probed and remove all conflicting framebuffers, leading to these platform devices for generic

[PATCH v5 5/7] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-05-11 Thread Javier Martinez Canillas
The platform devices registered by sysfb match with firmware-based DRM or fbdev drivers, that are used to have early graphics using a framebuffer provided by the system firmware. DRM or fbdev drivers later are probed and remove all conflicting framebuffers, leading to these platform devices for ge

[PATCH v5 6/7] Revert "fbdev: Prevent probing generic drivers if a FB is already registered"

2022-05-11 Thread Javier Martinez Canillas
From: Daniel Vetter This reverts commit fb561bf9abde49f7e00fdbf9ed2ccf2d86cac8ee. With commit 27599aacbaefcbf2af7b06b0029459bbf682000d Author: Thomas Zimmermann Date: Tue Jan 25 10:12:18 2022 +0100 fbdev: Hot-unplug firmware fb devices on forced removal this should be fixed properly an

[PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Javier Martinez Canillas
From: Daniel Vetter Well except when the olpc dcon fbdev driver is enabled, that thing digs around in there in rather unfixable ways. Cc oldc_dcon maintainers as fyi. v2: I typoed the config name (0day) Cc: kernel test robot Cc: Jens Frederich Cc: Jon Nettleton Cc: Greg Kroah-Hartman Cc: l

[PATCH v2 0/3] add Pine64 touch panel support to rockpro64

2022-05-11 Thread Peter Geis
Good Morning, Apologies Heiko on taking so long for this v2. This patch series adds support for the Pine64 touch panel to the rockpro64 single board computer. This panel attaches to the dsi port and includes an i2c touch screen. The first two patches involve making the reset pin to the Feiyang f

[PATCH v2 1/3] dt-bindings: display: panel: feiyang, fy07024di26a30d: make reset gpio optional

2022-05-11 Thread Peter Geis
Some implementations do not use the reset signal, instead tying it to dvdd. Make the reset gpio optional to permit this. Signed-off-by: Peter Geis Acked-by: Rob Herring --- .../bindings/display/panel/feiyang,fy07024di26a30d.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Docum

[PATCH v2 2/3] drm/panel: feiyang-fy07024di26a30d: make reset gpio optional

2022-05-11 Thread Peter Geis
Some implementations do not use the reset signal, instead tying it to dvdd. Make the reset gpio optional to permit this. Signed-off-by: Peter Geis --- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/p

[PATCH v2 3/3] arm64: dts: rockchip: add pine64 touch panel display to rockpro64

2022-05-11 Thread Peter Geis
The Pine64 touch panel is a panel consisting of the Feiyang fy07024di26a30d panel with a Goodix gt911 touch screen. Add the device tree nodes to the rockpro64 to permit attaching this display to the device. Signed-off-by: Peter Geis --- .../boot/dts/rockchip/rk3399-rockpro64.dtsi | 80

Re: [PATCH v5 3/7] fbdev: Restart conflicting fb removal loop when unregistering devices

2022-05-11 Thread Thomas Zimmermann
Hi Javier Am 11.05.22 um 13:30 schrieb Javier Martinez Canillas: Drivers that want to remove registered conflicting framebuffers prior to register their own framebuffer, calls remove_conflicting_framebuffers(). This function takes the registration_lock mutex, to prevent a races when drivers reg

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Greg Kroah-Hartman
On Wed, May 11, 2022 at 12:26:05PM +0200, Michel Dänzer wrote: > On 2022-05-11 08:22, Greg Kroah-Hartman wrote: > > On Wed, May 11, 2022 at 03:06:47PM +1000, Dave Airlie wrote: > >>> And use it to store expectations about what the drm/msm driver is > >>> supposed to pass in the IGT test suite. > >>

Re: [PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Thomas Zimmermann
Hi Am 11.05.22 um 13:24 schrieb Javier Martinez Canillas: These can be used by subsystems to unregister a platform device registered by sysfb and also to disable future platform device registration in sysfb. I find it very hard to review these patches, as related things are put into separate

Re: [PATCH v5 3/7] fbdev: Restart conflicting fb removal loop when unregistering devices

2022-05-11 Thread Javier Martinez Canillas
Hello Thomas, On 5/11/22 13:47, Thomas Zimmermann wrote: > Hi Javier > > Am 11.05.22 um 13:30 schrieb Javier Martinez Canillas: >> Drivers that want to remove registered conflicting framebuffers prior to >> register their own framebuffer, calls remove_conflicting_framebuffers(). >> >> This functi

[PATCH] drm/i915: Use i915_gem_object_ggtt_pin_ww for reloc_iomap

2022-05-11 Thread Maarten Lankhorst
Instead of its own path, use the common path when it doesn't result in evicting any vma. This fixes the case where we don't wait for binding. Fixes: b5cfe6f7a6e1 ("drm/i915: Remove short-term pins from execbuf, v6.") Cc: Matthew Auld Reported-by: Mateusz Jończyk Tested-by: Hans de Goede Signed-

Re: [PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Javier Martinez Canillas
Hello Thomas, On 5/11/22 13:54, Thomas Zimmermann wrote: > Hi > > Am 11.05.22 um 13:24 schrieb Javier Martinez Canillas: >> These can be used by subsystems to unregister a platform device registered >> by sysfb and also to disable future platform device registration in sysfb. >> > > I find it ve

Re: [PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Thomas Zimmermann
Am 11.05.22 um 13:24 schrieb Javier Martinez Canillas: These can be used by subsystems to unregister a platform device registered by sysfb and also to disable future platform device registration in sysfb. Suggested-by: Daniel Vetter Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel

Re: [PATCH v2 10/11] dt-bindings: display: convert Arm Mali-DP to DT schema

2022-05-11 Thread Liviu Dudau
On Mon, May 09, 2022 at 02:49:01PM +0100, Andre Przywara wrote: > On Fri, 06 May 2022 17:39:53 -0500 > Rob Herring wrote: > > > On Fri, 06 May 2022 15:05:32 +0100, Andre Przywara wrote: > > > The Arm Mali Display Processor (DP) 5xx/6xx is a series of IP that scans > > > out a framebuffer and hand

Re: [PATCH v5 1/7] firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer

2022-05-11 Thread Javier Martinez Canillas
On 5/11/22 13:24, Javier Martinez Canillas wrote: > This function just returned 0 on success or an errno code on error, but it > could be useful for sysfb_init() callers to have a pointer to the device. > > Signed-off-by: Javier Martinez Canillas > Reviewed-by: Daniel Vetter > Reviewed-by: Thoma

Re: [PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Thomas Zimmermann
Hi Am 11.05.22 um 14:01 schrieb Javier Martinez Canillas: Hello Thomas, On 5/11/22 13:54, Thomas Zimmermann wrote: Hi Am 11.05.22 um 13:24 schrieb Javier Martinez Canillas: These can be used by subsystems to unregister a platform device registered by sysfb and also to disable future platform

Re: [PATCH v2 01/12] drm: bridge: Add Samsung DSIM bridge driver

2022-05-11 Thread Marek Szyprowski
On 04.05.2022 13:40, Jagan Teki wrote: > Samsung MIPI DSIM controller is common DSI IP that can be used in various > SoCs like Exynos, i.MX8M Mini/Nano. > > In order to access this DSI controller between various platform SoCs, > the ideal way to incorporate this in the drm stack is via the drm brid

Re: [PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Javier Martinez Canillas
Hello Thomas, On 5/11/22 14:02, Thomas Zimmermann wrote: [snip] >> + >> +/** >> + * sysfb_disable() - disable the Generic System Framebuffers support >> + * >> + * This disables the registration of system framebuffer devices that match >> the >> + * generic drivers that make use of the system f

Re: [PATCH v5 2/7] firmware: sysfb: Add helpers to unregister a pdev and disable registration

2022-05-11 Thread Javier Martinez Canillas
Hello Thomas, On 5/11/22 14:05, Thomas Zimmermann wrote: [snip] >> >> Other subsystems ask you to do the opposite, to split the definition and >> usage in separate patches. But I'm fine with merging those if you prefer. > > Usually, I have no strong opinion on this. But in the case of this > s

Re: [PATCH] drm/bridge: cdns-dsi: Add support for pre_enable and post_enable control functions.

2022-05-11 Thread Robert Foss
On Mon, 11 Apr 2022 at 16:07, Jayshri Pawar wrote: > > From: jpawar This should be "Jayshri Pawar " > > Add support for pre_enable and post_enable drm bridge control functions. > Making sure that host to be prepared before panel is powered up, > for the panels like TC358762. > > Signed-off-by:

Re: [PATCH v9 01/22] dt-bindings: mediatek, dpi: Add DP_INTF compatible

2022-05-11 Thread Guillaume Ranquet
On Fri, 22 Apr 2022 12:57, Maxime Ripard wrote: >Hi, > >On Mon, Mar 28, 2022 at 12:39:06AM +0200, Guillaume Ranquet wrote: >> From: Markus Schneider-Pargmann >> >> DP_INTF is similar to DPI but does not have the exact same feature set >> or register layouts. >> >> DP_INTF is the sink of the displ

Re: [PATCH 3/4] drm/i915: allow volatile buffers to use ttm pool allocator

2022-05-11 Thread Thomas Hellström
Hi, Bob, On Tue, 2022-05-03 at 19:13 +, Robert Beckett wrote: > internal buffers should be shmem backed. > if a volatile buffer is requested, allow ttm to use the pool > allocator > to provide volatile pages as backing > > Signed-off-by: Robert Beckett > --- >  drivers/gpu/drm/i915/gem/i915_

Re: [PATCH v9 18/22] drm/mediatek: Add mt8195 Embedded DisplayPort driver

2022-05-11 Thread Guillaume Ranquet
On Fri, 29 Apr 2022 10:39, Maxime Ripard wrote: >Hi Guillaume, > Hi Maxime, Thx for your review. >On Mon, Mar 28, 2022 at 12:39:23AM +0200, Guillaume Ranquet wrote: >> From: Markus Schneider-Pargmann >> >> This patch adds a DisplayPort driver for the Mediatek mt8195 SoC. >> >> It supports the m

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Daniel Vetter
On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > On 5/9/22 16:42, Daniel Vetter wrote: > > On Fri, May 06, 2022 at 01:49:12AM +0300, Dmitry Osipenko wrote: > >> On 5/5/22 11:12, Daniel Vetter wrote: > >>> On Wed, May 04, 2022 at 06:56:09PM +0300, Dmitry Osipenko wrote: > On 5

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-11 Thread Daniel Vetter
On Tue, May 10, 2022 at 04:47:52PM +0300, Dmitry Osipenko wrote: > On 5/9/22 16:49, Daniel Vetter wrote: > > On Fri, May 06, 2022 at 03:10:43AM +0300, Dmitry Osipenko wrote: > >> On 5/5/22 11:34, Thomas Zimmermann wrote: > >>> Hi > >>> > >>> Am 18.04.22 um 00:37 schrieb Dmitry Osipenko: > Intr

Re: [PATCH v3 1/4] fbdev: Prevent possible use-after-free in fb_release()

2022-05-11 Thread Daniel Vetter
On Mon, May 09, 2022 at 10:00:41PM +0200, Javier Martinez Canillas wrote: > Hello Thomas, > > On 5/9/22 20:32, Thomas Zimmermann wrote: > > Hi > > > > Am 09.05.22 um 18:33 schrieb Javier Martinez Canillas: > >> On 5/9/22 17:51, Andrzej Hajda wrote: > >> > >> [snip] > >> > >> + > > Regardi

Re: [PATCH v3 1/4] fbdev: Prevent possible use-after-free in fb_release()

2022-05-11 Thread Daniel Vetter
On Tue, May 10, 2022 at 09:50:38AM +0200, Javier Martinez Canillas wrote: > On 5/10/22 09:19, Andrzej Hajda wrote: > > > > > > On 10.05.2022 00:42, Javier Martinez Canillas wrote: > >> On 5/10/22 00:22, Andrzej Hajda wrote: > >> > >> [snip] > >> > static void drm_fbdev_fb_destroy(struct f

Re: [RFC v3] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Tue, May 10, 2022 at 11:15 PM Tomeu Vizoso wrote: > > And use it to store expectations about what the drm/msm driver is > supposed to pass in the IGT test suite. > > Also include a configuration file that points to the out-of-tree CI > scripts. > > By storing the test expectations along the cod

Re: [PATCH v7 0/6] Proposal for a GPU cgroup controller

2022-05-11 Thread Nicolas Dufresne
Hi, Le mardi 10 mai 2022 à 23:56 +, T.J. Mercier a écrit : > This patch series revisits the proposal for a GPU cgroup controller to > track and limit memory allocations by various device/allocator > subsystems. The patch series also contains a simple prototype to > illustrate how Android inten

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 4:50 AM Greg Kroah-Hartman wrote: > > On Wed, May 11, 2022 at 12:26:05PM +0200, Michel Dänzer wrote: > > On 2022-05-11 08:22, Greg Kroah-Hartman wrote: > > > On Wed, May 11, 2022 at 03:06:47PM +1000, Dave Airlie wrote: > > >>> And use it to store expectations about what the

Re: [PATCH 3/3] drm/virtio: use the fence for every plane update

2022-05-11 Thread Dan Carpenter
Hi Dongwon, url: https://github.com/intel-lab-lkp/linux/commits/Dongwon-Kim/drm-virtio-release-ops-for-virtgpu-fence-release/20220511-081226 base: git://anongit.freedesktop.org/drm/drm drm-next config: parisc-randconfig-m031-20220509 (https://download.01.org/0day-ci/archive/20220511

Re: [RFC v3] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Tomeu Vizoso
On 5/11/22 3:20 PM, Rob Clark wrote: On Tue, May 10, 2022 at 11:15 PM Tomeu Vizoso wrote: And use it to store expectations about what the drm/msm driver is supposed to pass in the IGT test suite. Also include a configuration file that points to the out-of-tree CI scripts. By storing the test

Re: [PATCH 4/4] drm/i915: internal buffers use ttm backend

2022-05-11 Thread Thomas Hellström
On Tue, 2022-05-03 at 19:13 +, Robert Beckett wrote: > refactor internal buffer backend to allocate volatile pages via > ttm pool allocator > > Signed-off-by: Robert Beckett > --- >  drivers/gpu/drm/i915/gem/i915_gem_internal.c | 264 - > -- >  drivers/gpu/drm/i915/gem/i915_gem

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Christian König
Am 11.05.22 um 15:00 schrieb Daniel Vetter: On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: [SNIP] Since vmapping implies implicit pinning, we can't use a separate lock in drm_gem_shmem_vmap() because we need to protect the drm_gem_shmem_get_pages(), which is invoked by drm_gem_

Re: [RFC] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Jani Nikula
On Tue, 10 May 2022, Tomeu Vizoso wrote: > And use it to store expectations about what the drm/msm driver is > supposed to pass in the IGT test suite. > > Also include a configuration file that points to the out-of-tree CI > scripts. > > By storing the test expectations along the code we can make

Re: [PATCH v6 1/4] dt-bindings: display: mediatek: dsi: Convert dsi_dtbinding to .yaml

2022-05-11 Thread Rob Herring
On Wed, 04 May 2022 17:19:20 +0800, Rex-BC Chen wrote: > From: Xinlei Lee > > Convert mediatek,dsi.txt to mediatek,dsi.yaml format > > Signed-off-by: Xinlei Lee > Signed-off-by: Rex-BC Chen > --- > .../display/mediatek/mediatek,dsi.txt | 62 -- > .../display/mediatek/mediatek

Re: [PATCH v6 1/4] dt-bindings: display: mediatek: dsi: Convert dsi_dtbinding to .yaml

2022-05-11 Thread Rob Herring
On Wed, May 11, 2022 at 2:24 AM Rex-BC Chen wrote: > > On Wed, 2022-05-04 at 17:19 +0800, Rex-BC Chen wrote: > > From: Xinlei Lee > > > > Convert mediatek,dsi.txt to mediatek,dsi.yaml format > > > > Signed-off-by: Xinlei Lee > > Signed-off-by: Rex-BC Chen > > --- > > .../display/mediatek/media

Re: [PATCH 0/4] Remove support for Hyper-V 2008 and 2008R2/Win7

2022-05-11 Thread Wei Liu
On Mon, May 02, 2022 at 09:36:27AM -0700, Michael Kelley wrote: > Linux code for running as a Hyper-V guest includes special cases for the > first released versions of Hyper-V: 2008 and 2008R2/Windows 7. These > versions were very thinly used for running Linux guests when first > released more than

Re: [RFC] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 7:26 AM Jani Nikula wrote: > > On Tue, 10 May 2022, Tomeu Vizoso wrote: > > And use it to store expectations about what the drm/msm driver is > > supposed to pass in the IGT test suite. > > > > Also include a configuration file that points to the out-of-tree CI > > scripts

Re: [PATCH V2 0/3] DSI host and peripheral initialisation ordering

2022-05-11 Thread Marek Szyprowski
ort to Samsung DSIM. If one is interested, here is my git repo with all the PoC patches: https://github.com/mszyprow/linux/tree/v5.18-next-20220511-dsi-rework Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland

Re: [PATCH] drm/bridge: cdns-dsi: Add support for pre_enable and post_enable control functions.

2022-05-11 Thread Laurent Pinchart
Hi Jayshri, Thank you for the patch. On Mon, Apr 11, 2022 at 04:06:06PM +0200, Jayshri Pawar wrote: > From: jpawar > > Add support for pre_enable and post_enable drm bridge control functions. > Making sure that host to be prepared before panel is powered up, > for the panels like TC358762. > >

Re: [PATCH v2 05/12] drm: bridge: samsung-dsim: Add DSI init in bridge pre_enable()

2022-05-11 Thread Marek Szyprowski
On 04.05.2022 13:40, Jagan Teki wrote: > Host transfer() in DSI master will invoke only when the DSI commands > are sent from DSI devices like DSI Panel or DSI bridges and this > host transfer wouldn't invoke for I2C-based-DSI bridge drivers. > > Handling DSI host initialization in transfer calls m

Re: [PATCH v5, 4/5] drm/mediatek: keep dsi as LP00 before dcs cmds transfer

2022-05-11 Thread AngeloGioacchino Del Regno
Il 11/05/22 04:36, xinlei@mediatek.com ha scritto: From: Jitao Shi To comply with the panel sequence, hold the mipi signal to LP00 before the dcs cmds transmission, and pull the mipi signal high from LP00 to LP11 until the start of the dcs cmds transmission. The normal panel timing is : (

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 04:24:28PM +0200, Christian König wrote: > Am 11.05.22 um 15:00 schrieb Daniel Vetter: > > On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > > > [SNIP] > > > Since vmapping implies implicit pinning, we can't use a separate lock in > > > drm_gem_shmem_vmap()

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Dmitry Osipenko
On 5/11/22 17:24, Christian König wrote: > Am 11.05.22 um 15:00 schrieb Daniel Vetter: >> On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: >>> [SNIP] >>> Since vmapping implies implicit pinning, we can't use a separate lock in >>> drm_gem_shmem_vmap() because we need to protect the

Re: [PATCH 1/8] drm: execution context for GEM buffers v2

2022-05-11 Thread Daniel Vetter
On Mon, May 09, 2022 at 05:01:33PM +0200, Christian König wrote: > Am 09.05.22 um 16:31 schrieb Daniel Vetter: > > On Wed, May 04, 2022 at 09:47:32AM +0200, Christian König wrote: > > > [SNIP] > > > +/* Make sure we have enough room and add an object the container */ > > > +static int drm_exec_obje

[PATCH v2] mgag200: Enable atomic gamma lut update

2022-05-11 Thread Jocelyn Falempe
Add support for atomic update of gamma lut. With this patch the "Night light" feature of gnome3 is working properly on mgag200. v2: - Add a default linear gamma function - renamed functions with mgag200 prefix - use format's 4cc code instead of bit depth - use better interpolation for 16bits g

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 06:14:00PM +0300, Dmitry Osipenko wrote: > On 5/11/22 17:24, Christian König wrote: > > Am 11.05.22 um 15:00 schrieb Daniel Vetter: > >> On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > >>> [SNIP] > >>> Since vmapping implies implicit pinning, we can't use

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Dmitry Osipenko
On 5/11/22 18:29, Daniel Vetter wrote: > On Wed, May 11, 2022 at 06:14:00PM +0300, Dmitry Osipenko wrote: >> On 5/11/22 17:24, Christian König wrote: >>> Am 11.05.22 um 15:00 schrieb Daniel Vetter: On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > [SNIP] > Since vmappi

Re: [PATCH V2 0/3] DSI host and peripheral initialisation ordering

2022-05-11 Thread Marek Vasut
SIM. If one is interested, here is my git repo with all the PoC patches: https://github.com/mszyprow/linux/tree/v5.18-next-20220511-dsi-rework Can you CC me on the iMX DSIM discussion/patches ? It seems I was left out of it all, even though I work with the iMX8M DRM stuff extensively.

Re: [PATCH V2 0/3] DSI host and peripheral initialisation ordering

2022-05-11 Thread Dave Stevenson
tialization issues! The bridge chain finally matches > the hardware, no hack are needed, and everything is controlled by the > DRM core. This prototype also includes the Jagan's patches, which add > IMX support to Samsung DSIM. If one is interested, here is my git repo > with all the PoC patches: > > https://github.com/mszyprow/linux/tree/v5.18-next-20220511-dsi-rework

Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add prefix for EBBG

2022-05-11 Thread Joel Selvaraj
On 11/05/22 13:50, Krzysztof Kozlowski wrote: > Please add Acked-by/Reviewed-by tags when posting new versions. However, > there's no need to repost patches *only* to add the tags. The upstream > maintainer will do that for acks received on the version they apply. > > https://elixir.bootlin.com

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-11 Thread Dmitry Osipenko
On 5/11/22 16:09, Daniel Vetter wrote: > I'd like to ask you to reduce the scope of the patchset and build the > shrinker only for virtio-gpu. I know that I first suggested to build > upon shmem helpers, but it seems that it's easier to do that in a later > patchset. The first

Re: [PATCH v4 5/7] drm/i915/gvt: Change from vfio_group_(un)pin_pages to vfio_(un)pin_pages

2022-05-11 Thread Wang, Zhi A
On 5/6/22 12:08 AM, Jason Gunthorpe wrote: > Use the existing vfio_device versions of vfio_(un)pin_pages(). There is no > reason to use a group interface here, kvmgt has easy access to a > vfio_device. > > Delete kvmgt_vdev::vfio_group since these calls were the last users. > > Reviewed-by: Kevin

Re: [PATCH v11 20/24] arm64: dts: rockchip: enable vop2 and hdmi tx on rock-3a

2022-05-11 Thread Piotr Oniszczuk
> Wiadomość napisana przez Peter Geis w dniu 11.05.2022, > o godz. 00:49: > > I've pulled your dts and with a few fixes got a working system from > it. At least on the v1.1 board cec is functional: > Total for dwhdmi-rockchip device /dev/cec0: 1, Succeeded: 1, Failed: > 0, Warnings: 0 Peter,

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Wed, 11 May 2022 at 15:33, Rob Clark wrote: > On Wed, May 11, 2022 at 4:50 AM Greg Kroah-Hartman > wrote: > > > > On Wed, May 11, 2022 at 12:26:05PM +0200, Michel Dänzer wrote: > > > On 2022-05-11 08:22, Greg Kroah-Hartman wrote: > > > > On Wed, May 11, 2022 at 03:06:47PM +1000, Dave Airlie wr

Re: [PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Sam Ravnborg
Hi Javier. On Wed, May 11, 2022 at 01:32:30PM +0200, Javier Martinez Canillas wrote: > From: Daniel Vetter > > Well except when the olpc dcon fbdev driver is enabled, that thing > digs around in there in rather unfixable ways. > > Cc oldc_dcon maintainers as fyi. Another way to fix this is to

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > wrote: > > > > > > > > On 5/10/2022 7:13 AM, Tomeu Vizoso wrote: > > > And use it to store expectations about what the drm/msm driver is > > > supposed to pass in the IGT test suite. > > > > > > Al

Re: [PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Guenter Roeck
On 5/11/22 10:00, Sam Ravnborg wrote: Hi Javier. On Wed, May 11, 2022 at 01:32:30PM +0200, Javier Martinez Canillas wrote: From: Daniel Vetter Well except when the olpc dcon fbdev driver is enabled, that thing digs around in there in rather unfixable ways. Cc oldc_dcon maintainers as fyi.

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 9:43 AM Daniel Vetter wrote: > > On Wed, 11 May 2022 at 15:33, Rob Clark wrote: > > On Wed, May 11, 2022 at 4:50 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, May 11, 2022 at 12:26:05PM +0200, Michel Dänzer wrote: > > > > On 2022-05-11 08:22, Greg Kroah-Hartman wro

Re: [PATCH V2 0/3] DSI host and peripheral initialisation ordering

2022-05-11 Thread Marek Szyprowski
d a prototype of such solution. This approach finally >> resolved all the initialization issues! The bridge chain finally matches >> the hardware, no hack are needed, and everything is controlled by the >> DRM core. This prototype also includes the Jagan's patches, which ad

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Linus Torvalds
On Tue, May 10, 2022 at 10:07 PM Dave Airlie wrote: > > > And use it to store expectations about what the drm/msm driver is > > supposed to pass in the IGT test suite. > > I wanted to loop in Linus/Greg to see if there are any issues raised > by adding CI results file to the tree in their minds, o

Re: [PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Javier Martinez Canillas
Hello Guenter, On 5/11/22 19:17, Guenter Roeck wrote: > On 5/11/22 10:00, Sam Ravnborg wrote: [snip] >>> struct fb_info *registered_fb[FB_MAX] __read_mostly; >>> -EXPORT_SYMBOL(registered_fb); >>> - >>> int num_registered_fb __read_mostly; >>> +#if IS_ENABLED(CONFIG_FB_OLPC_DCON) >>> +EXPORT

Re: [PATCH v2 3/3] drm/panel: introduce ebbg,ft8719 panel

2022-05-11 Thread Sam Ravnborg
Hi Joel, On Wed, May 11, 2022 at 10:58:11AM +0530, Joel Selvaraj wrote: > Add DRM panel driver for EBBG FT8719 6.18" 2246x1080 DSI video mode > panel, which can be found on some Xiaomi Poco F1 phones. The panel's > backlight is managed through QCOM WLED driver. > > Signed-off-by: Joel Selvaraj D

[pull] amdgpu drm-fixes-5.18

2022-05-11 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 5.18. The following changes since commit 5727375215b0915f28806c337a7ba9835efd340b: Merge tag 'drm-msm-fixes-2022-04-30' of https://gitlab.freedesktop.org/drm/msm into drm-fixes (2022-05-06 11:22:03 +1000) are available in the Git repository at: https://gitlab.f

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 10:12 AM Daniel Vetter wrote: > > On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > > wrote: > > > > > > > > > > > > On 5/10/2022 7:13 AM, Tomeu Vizoso wrote: > > > > And use it to store expectations about what the drm

[PATCH] drm/amdgpu: Add 'modeset' module parameter

2022-05-11 Thread Lyude Paul
Many DRM drivers feature a 'modeset' argument, which can be used to enable/disable the entire driver (as opposed to passing nomodeset to the kernel, which would disable modesetting globally and make it difficult to load amdgpu afterwards). Apparently amdgpu is actually missing this however, so let'

Re: [PATCH] drm/i915: Use i915_gem_object_ggtt_pin_ww for reloc_iomap

2022-05-11 Thread Matthew Auld
On 11/05/2022 12:52, Maarten Lankhorst wrote: Instead of its own path, use the common path when it doesn't result in evicting any vma. This fixes the case where we don't wait for binding. https://gitlab.freedesktop.org/drm/intel/-/issues/5806 If I'm reading that correctly waiting for the bind

  1   2   >