Re: [PATCH] drm/panel/raydium-rm692e5: select CONFIG_DRM_DISPLAY_DP_HELPER

2023-12-27 Thread Luca Weiss
On Mon Oct 23, 2023 at 3:25 PM CEST, Neil Armstrong wrote: > Hi, > > On 23/10/2023 13:55, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > As with several other panel drivers, this fails to link without the DP > > helper library: > > > > ld: drivers/gpu/drm/panel/panel-raydium-rm692e5.o: in

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

2023-12-27 Thread 胡俊光

[PATCH v9 0/2] Resolve suspend-resume racing with GuC destroy-context-worker

2023-12-27 Thread Alan Previn
This series is the result of debugging issues root caused to races between the GuC's destroyed_worker_func being triggered vs repeating suspend-resume cycles with concurrent delayed fence signals for engine-freeing. The reproduction steps require that an app is launched right before the start of

[PATCH v9 1/2] drm/i915/guc: Flush context destruction worker at suspend

2023-12-27 Thread Alan Previn
When suspending, flush the context-guc-id deregistration worker at the final stages of intel_gt_suspend_late when we finally call gt_sanitize that eventually leads down to __uc_sanitize so that the deregistration worker doesn't fire off later as we reset the GuC microcontroller. Signed-off-by:

[PATCH v9 2/2] drm/i915/guc: Close deregister-context race against CT-loss

2023-12-27 Thread Alan Previn
If we are at the end of suspend or very early in resume its possible an async fence signal (via rcu_call) is triggered to free_engines which could lead us to the execution of the context destruction worker (after a prior worker flush). Thus, when suspending, insert rcu_barriers at the start of

Re: [PATCH v8 2/2] drm/i915/guc: Close deregister-context race against CT-loss

2023-12-27 Thread Teres Alexis, Alan Previn
On Tue, 2023-12-26 at 10:11 -0500, Vivi, Rodrigo wrote: > On Wed, Dec 20, 2023 at 11:08:59PM +, Teres Alexis, Alan Previn wrote: > > On Wed, 2023-12-13 at 16:23 -0500, Vivi, Rodrigo wrote: alan:snip > > > > > > alan: Thanks Rodrigo for the RB last week, just quick update: > > > > I've cant

Re: [syzbot] [dri?] WARNING in drm_prime_destroy_file_private (2)

2023-12-27 Thread Qi Zheng
On 2023/12/28 04:51, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:5254c0cbc92d Merge tag 'block-6.7-2023-12-22' of git://git.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=10cc6995e8 kernel config:

[syzbot] [dri?] WARNING in drm_prime_destroy_file_private (2)

2023-12-27 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:5254c0cbc92d Merge tag 'block-6.7-2023-12-22' of git://git.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=10cc6995e8 kernel config: https://syzkaller.appspot.com/x/.config?x=314e9ad033a7d3a7

Re: [PATCH 2/3] drm/msm/adreno: Add A305B support

2023-12-27 Thread Luca Weiss
On Donnerstag, 30. November 2023 21:35:19 CET Luca Weiss wrote: > Add support for the Adreno 305B GPU that is found in MSM8226(v2) SoC. > Previously this was mistakenly claimed to be supported but using wrong > a configuration. > > In MSM8226v1 there's also a A305B but with chipid 0x03000510

RPI4B: what is needed for /dev/video10 to work ( v4l_m2m )

2023-12-27 Thread AL13N
Hi, I have a RPI4B with upstream kernel 6.1 64bit and there is no /dev/video10 present. I thought if I waited a bit more, it would appear in the kernel, but that was folly on my part. Currently, watching a movie is painful since the software decoding is way too slow and it has very low fps

Re: [PATCH 1/2] drm/bridge: add ->edid_read hook and drm_bridge_edid_read()

2023-12-27 Thread Jani Nikula
On Fri, 22 Dec 2023, Dmitry Baryshkov wrote: > On Thu, 26 Oct 2023 at 12:40, Jani Nikula wrote: >> >> Add new struct drm_edid based ->edid_read hook and >> drm_bridge_edid_read() function to call the hook. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/drm_bridge.c | 46

[PATCH] drm/bridge: parade-ps8640: Ensure bridge is suspended in .post_disable()

2023-12-27 Thread Pin-yen Lin
Disable the autosuspend of runtime PM and use completion to make sure ps8640_suspend() is called in ps8640_atomic_post_disable(). The ps8640 bridge seems to expect everything to be power cycled at the disable process, but sometimes ps8640_aux_transfer() holds the runtime PM reference and prevents

Re: [PATCH] drm: Check output polling initialized before disabling

2023-12-27 Thread Saurabh Singh Sengar
On Tue, Dec 26, 2023 at 11:27:15PM -0800, Shradha Gupta wrote: > In drm_mode_config_helper_suspend() check if output polling > support is initialized before enabling/disabling polling. > For drivers like hyperv-drm, that do not initialize connector > polling, if suspend is called without this

[PATCH v9 4/6] udmabuf: Convert udmabuf driver to use folios (v2)

2023-12-27 Thread Vivek Kasireddy
This is mainly a preparatory patch to use memfd_pin_folios() API for pinning folios. Using folios instead of pages makes sense as the udmabuf driver needs to handle both shmem and hugetlb cases. However, the function vmap_udmabuf() still needs a list of pages; so, we collect all the head pages

[PATCH v9 6/6] selftests/dma-buf/udmabuf: Add tests to verify data after page migration

2023-12-27 Thread Vivek Kasireddy
Since the memfd pages associated with a udmabuf may be migrated as part of udmabuf create, we need to verify the data coherency after successful migration. The new tests added in this patch try to do just that using 4k sized pages and also 2 MB sized huge pages for the memfd. Successful

[PATCH v9 5/6] udmabuf: Pin the pages using memfd_pin_folios() API (v7)

2023-12-27 Thread Vivek Kasireddy
Using memfd_pin_folios() will ensure that the pages are pinned correctly using FOLL_PIN. And, this also ensures that we don't accidentally break features such as memory hotunplug as it would not allow pinning pages in the movable zone. Using this new API also simplifies the code as we no longer

[PATCH v9 3/6] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios (v9)

2023-12-27 Thread Vivek Kasireddy
For drivers that would like to longterm-pin the folios associated with a memfd, the memfd_pin_folios() API provides an option to not only pin the folios via FOLL_PIN but also to check and migrate them if they reside in movable zone or CMA block. This API currently works with memfds but it should

[PATCH v9 2/6] udmabuf: Add back support for mapping hugetlb pages (v6)

2023-12-27 Thread Vivek Kasireddy
A user or admin can configure a VMM (Qemu) Guest's memory to be backed by hugetlb pages for various reasons. However, a Guest OS would still allocate (and pin) buffers that are backed by regular 4k sized pages. In order to map these buffers and create dma-bufs for them on the Host, we first need

[PATCH v9 1/6] udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap

2023-12-27 Thread Vivek Kasireddy
Add VM_PFNMAP to vm_flags in the mmap handler to ensure that the mappings would be managed without using struct page. And, in the vm_fault handler, use vmf_insert_pfn to share the page's pfn to userspace instead of directly sharing the page (via struct page *). Cc: David Hildenbrand Cc: Daniel

[PATCH v9 0/6] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios (v9)

2023-12-27 Thread Vivek Kasireddy
The first two patches were previously reviewed but not yet merged. These ones need to be merged first as the fourth patch depends on the changes introduced in them and they also fix bugs seen in very specific scenarios (running Qemu with hugetlb=on, blob=true and rebooting guest VM). The third