[PATCH v2 0/3] drm/mediatek: Fixes for DDP component search/destroy

2024-04-04 Thread AngeloGioacchino Del Regno
Changes in v2: - Fixed patch [2/3] This series performs some cleanups for DDP component CRTC search and correctly iounmaps the previously of_iomap() calls from drm_ddp_comp. Tested on MT8195 Cherry Tomato AngeloGioacchino Del Regno (3): drm/mediatek: drm_ddp_comp: Fix and cleanup DDP

[PATCH v2 2/3] drm/mediatek: Perform iounmap on simple DDP component destruction

2024-04-04 Thread AngeloGioacchino Del Regno
Add a new mtk_ddp_comp_destroy() function and call it in the teardown path of mtk_drm_drv to make sure that we unmap the iospace of the simple DDP components. While at it, also fix iounmapping on mtk_ddp_comp_init() error path. Fixes: ff1395609e20 ("drm/mediatek: Move mtk_ddp_comp_init() from

[PATCH v2 1/3] drm/mediatek: drm_ddp_comp: Fix and cleanup DDP component CRTC search

2024-04-04 Thread AngeloGioacchino Del Regno
Finding a possible CRTC by DDP component is done by first checking static routes in three paths (main, external, third/extra path) and then, if not found, we check for dynamic connection on a per-route basis because, for example, on some SoCs the main route may output to either a DSI display or

[PATCH v13 5/8] udmabuf: Add back support for mapping hugetlb pages

2024-04-04 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 v13 6/8] udmabuf: Convert udmabuf driver to use folios

2024-04-04 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 v13 7/8] udmabuf: Pin the pages using memfd_pin_folios() API

2024-04-04 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 v13 1/8] mm/gup: Introduce unpin_folio/unpin_folios helpers

2024-04-04 Thread Vivek Kasireddy
These helpers are the folio versions of unpin_user_page/unpin_user_pages. They are currently only useful for unpinning folios pinned by memfd_pin_folios() or other associated routines. However, they could find new uses in the future, when more and more folio-only helpers are added to GUP. We

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

2024-04-04 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 v13 4/8] udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap

2024-04-04 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 v13 8/8] selftests/udmabuf: Add tests to verify data after page migration

2024-04-04 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 v13 0/8] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios

2024-04-04 Thread Vivek Kasireddy
Currently, some drivers (e.g, Udmabuf) that want to longterm-pin the pages/folios associated with a memfd, do so by simply taking a reference on them. This is not desirable because the pages/folios may reside in Movable zone or CMA block. Therefore, having drivers use memfd_pin_folios() API

[PATCH v13 2/8] mm/gup: Introduce check_and_migrate_movable_folios()

2024-04-04 Thread Vivek Kasireddy
This helper is the folio equivalent of check_and_migrate_movable_pages(). Therefore, all the rules that apply to check_and_migrate_movable_pages() also apply to this one as well. Currently, this helper is only used by memfd_pin_folios(). This patch also includes changes to rename and convert the

Re: [RESEND v7 19/37] dt-bindings: interrupt-controller: renesas,sh7751-irl-ext: Add json-schema

2024-04-04 Thread Rob Herring
On Thu, 04 Apr 2024 14:14:30 +0900, Yoshinori Sato wrote: > Renesas SH7751 external interrupt encoder json-schema. > > Signed-off-by: Yoshinori Sato > --- > .../renesas,sh7751-irl-ext.yaml | 57 +++ > 1 file changed, 57 insertions(+) > create mode 100644 >

[PATCH] drm: xlnx: db: fix a memory leak in probe

2024-04-04 Thread Dan Carpenter
Free "dp" before returning. Fixes: be318d01a903 ("drm: xlnx: dp: Reset DisplayPort IP") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/xlnx/zynqmp_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c index

Re: [PATCH v5 02/10] PCI: Deprecate iomap-table functions

2024-04-04 Thread Philipp Stanner
te iomap-table functions > config: i386-randconfig-141-20240404 > (https://download.01.org/0day-ci/archive/20240404/202404040920.QIxhNe > mu-...@intel.com/config) > compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 > > If you fix the issue in a separate patch/commit (i.e. not just a new &g

Re: [PATCH v7 00/37] Device Tree support for SH7751 based board

2024-04-04 Thread Niklas Cassel
On Thu, Apr 04, 2024 at 01:59:25PM +0900, Yoshinori Sato wrote: > This is an updated version of something I wrote about 7 years ago. > Minimum support for R2D-plus and LANDISK. > I think R2D-1 will work if you add AX88796 to dts. > And board-specific functions and SCI's SPI functions are not

Re: [RESEND v7 27/37] dt-bindings: ata: ata-generic: Add new targets

2024-04-04 Thread Krzysztof Kozlowski
On 04/04/2024 07:14, Yoshinori Sato wrote: > Added new ata-generic target. > - iodata,usl-5p-ata > - renesas,rts7751r2d-ata > > Each boards have simple IDE Interface. Use ATA generic driver. > This is a friendly reminder during the review process. It looks like you received a tag and forgot to

Re: [RESEND v7 26/37] dt-bindings: vendor-prefixes: Add iodata

2024-04-04 Thread Krzysztof Kozlowski
On 04/04/2024 07:14, Yoshinori Sato wrote: > Add IO DATA DEVICE INC. > https://www.iodata.com/ > > Signed-off-by: Yoshinori Sato > Reviewed-by: Geert Uytterhoeven > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > This is a friendly

Re: [PATCH v5 02/10] PCI: Deprecate iomap-table functions

2024-04-04 Thread Dan Carpenter
/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20240403080712.13986-5-pstanner%40redhat.com patch subject: [PATCH v5 02/10] PCI: Deprecate iomap-table functions config: i386-randconfig-141-20240404 (https://download.01.org/0day-ci/archive/20240404/202404040920

Re: [PATCH v2 21/25] nvdimm: virtio_pmem: drop owner assignment

2024-04-04 Thread Gupta, Pankaj
On 3/31/2024 10:44 AM, Krzysztof Kozlowski wrote: virtio core already sets the .owner, so driver does not need to. Acked-by: Dave Jiang Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch. --- drivers/nvdimm/virtio_pmem.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [RESEND v7 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-04-04 Thread Krzysztof Kozlowski
On 04/04/2024 07:14, Yoshinori Sato wrote: > Renesas SH7751 Interrupt controller priority register define. > > Signed-off-by: Yoshinori Sato I got two 37-patchsets... Anyway, this also did not improve. NAK. This is a friendly reminder during the review process. It seems my or other

Re: [PATCH v7 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-04-04 Thread Krzysztof Kozlowski
On 04/04/2024 06:59, Yoshinori Sato wrote: > Renesas SH7751 Interrupt controller priority register define. > > Signed-off-by: Yoshinori Sato Nothing improved, still NAK. This is a friendly reminder during the review process. It seems my or other reviewer's previous comments were not fully

<    1   2