Re: [PATCH] dt-bindings: yamllint: Require a space after a comment '#'

2023-03-05 Thread Simon Horman
On Fri, Mar 03, 2023 at 03:42:23PM -0600, Rob Herring wrote: > Enable yamllint to check the prefered commenting style of requiring a fwiiw: prefered -> preferred > space after a comment character '#'. Fix the cases in the tree which > have a warning with this enabled. Most cases just need a space

[PATCH] drm: fix typo in margin connector properties docs

2023-03-05 Thread Simon Ser
This was pointed out by Ville and Pekka in their replies, but forgot to apply the change properly before pushing. Sorry for the noise! Signed-off-by: Simon Ser Fixes: 409f07d353b3 ("drm: document connector margin properties") Cc: Ville Syrjälä Cc: Pekka Paalanen Cc: Maxime Ripard Cc: Dave Stev

[PATCH] drm/amd/display: change several dcn30 variables storage-class-specifier to static

2023-03-05 Thread Tom Rix
smatch reports these similar problems in dcn30 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dwb.c:223:25: warning: symbol 'dcn30_dwbc_funcs' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_mmhubbub.c:214:28: warning: symbol 'dcn30_mmhubbub_fun

[Bug 217141] New: [amdgpu] ring gfx_0.0.0 timeout steam deck AMD APU

2023-03-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217141 Bug ID: 217141 Summary: [amdgpu] ring gfx_0.0.0 timeout steam deck AMD APU Product: Drivers Version: 2.5 Kernel Version: 6.1.12 Hardware: AMD OS: Linux Tree:

Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-05 Thread Christian König
Am 05.03.23 um 06:21 schrieb Huacai Chen: LoongArch maintains cache coherency in hardware, but its WUC attribute (Weak-ordered UnCached, which is similar to WC) is out of the scope of cache coherency machanism. This means WUC can only used for write-only memory regions. So use uncached ioremap()

Re: gud: set PATH connector property

2023-03-05 Thread Noralf Trønnes
On 3/2/23 13:01, Simon Ser wrote: > On Tuesday, February 28th, 2023 at 16:16, Peter Stuge wrote: > >> Simon Ser wrote: >> > Would it be possible to set the PATH connector property based on the > USB port used by gud? Sadly not really easily. The physical topology un

IMX8MM: assign panel to mipi_dsi in a device tree

2023-03-05 Thread Patrick Boettcher
Hi list, After several days of trying I realize my too small/old brain is unable to map around how to assign/connect a panel to the mipi_dsi-node in a device. We are using a 'tdo,tl070wsh30' panel connected to the mipi-dsi-interface of a imx8mm. Of all the references I found on the in public rep

Re: IMX8MM: assign panel to mipi_dsi in a device tree

2023-03-05 Thread Jagan Teki
On Sun, Mar 5, 2023 at 11:39 PM Patrick Boettcher wrote: > > Hi list, > > After several days of trying I realize my too small/old brain is unable > to map around how to assign/connect a panel to the mipi_dsi-node in a > device. > > We are using a 'tdo,tl070wsh30' panel connected to the > mipi-dsi-

[PATCH] media: stm32-dcmi: Enable incoherent buffer allocation

2023-03-05 Thread Marek Vasut
Set allow_cache_hints to 1 for the vb2_queue capture queue in the STM32MP15xx DCMI V4L2 driver. This allows us to allocate buffers with the V4L2_MEMORY_FLAG_NON_COHERENT set. On STM32MP15xx SoCs, this enables caching for this memory, which improves performance when being read from CPU. This change

[PATCH v12 00/11] Add generic memory shrinker to VirtIO-GPU and Panfrost DRM drivers

2023-03-05 Thread Dmitry Osipenko
This series: 1. Adds common drm-shmem memory shrinker 2. Enables shrinker for VirtIO-GPU driver 3. Switches Panfrost driver to the common shrinker Changelog: v12:- Fixed the "no previous prototype for function" warning reported by kernel build bot for v11. - Fixed the missing re

[PATCH v12 01/11] drm/shmem-helper: Switch to reservation lock

2023-03-05 Thread Dmitry Osipenko
Replace all drm-shmem locks with a GEM reservation lock. This makes locks consistent with dma-buf locking convention where importers are responsible for holding reservation lock for all operations performed over dma-bufs, preventing deadlock between dma-buf importers and exporters. Suggested-by: D

[PATCH v12 04/11] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin

2023-03-05 Thread Dmitry Osipenko
The vmapped pages shall be pinned in memory. Previously get/put pages were implicitly pinning/unpinning the pages. This will no longer be the case with addition of memory shrinker because pages_use_count>0 won't determine whether pages are pinned anymore, while the new pages_pin_count will do that.

[PATCH v12 02/11] drm/shmem-helper: Factor out pages alloc/release from drm_gem_shmem_get/put_pages()

2023-03-05 Thread Dmitry Osipenko
Factor out pages allocation from drm_gem_shmem_get_pages() into drm_gem_shmem_acquire_pages() function and similar for the put_pages() in a preparation for addition of shrinker support to drm-shmem. Once shrinker will be added, the pages_use_count>0 will no longer determine whether pages are pinne

[PATCH v12 05/11] drm/shmem-helper: Factor out unpinning part from drm_gem_shmem_purge()

2023-03-05 Thread Dmitry Osipenko
Factor out pages unpinning code from drm_gem_shmem_purge() into new drm_gem_shmem_unpin_pages(). This prepares code for addition of memory shrinker support. The new common function will be used by shrinker for eviction of shmem pages. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_sh

[PATCH v12 03/11] drm/shmem-helper: Add pages_pin_count field

2023-03-05 Thread Dmitry Osipenko
And new pages_pin_count field to struct drm_gem_shmem_object that will determine whether pages are evictable by memory shrinker. The pages will be evictable only when pages_pin_count=0. This patch prepares code for addition of the memory shrinker that will utilize the new field. Signed-off-by: Dmi

[PATCH v12 06/11] drm/shmem-helper: Add memory shrinker

2023-03-05 Thread Dmitry Osipenko
Introduce common drm-shmem shrinker for DRM drivers. To start using drm-shmem shrinker drivers should do the following: 1. Implement evict() callback of GEM object where driver should check whether object is purgeable or evictable using drm-shmem helpers and perform the shrinking action 2.

[PATCH v12 07/11] drm/shmem-helper: Remove obsoleted is_iomem test

2023-03-05 Thread Dmitry Osipenko
Everything that uses the mapped buffer should by agnostic to is_iomem. The only reason for the is_iomem test is is that we're setting shmem->vaddr to the returned map->vaddr. Now that the shmem->vaddr code is gone, remove the obsoleted is_iomem test to clean up the code. Suggested-by: Thomas Zimme

[PATCH v12 08/11] drm/shmem-helper: Export drm_gem_shmem_get_pages_sgt_locked()

2023-03-05 Thread Dmitry Osipenko
Export drm_gem_shmem_get_pages_sgt_locked() that will be used by virtio-gpu shrinker during GEM swap-in operation done under the held reservation lock. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 3 ++- include/drm/drm_gem_shmem_helper.h | 1 + 2 files changed

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

2023-03-05 Thread 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. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem.c | 2 ++ drivers/gpu/drm/drm_internal.h | 2 -- include/drm/drm_gem

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

2023-03-05 Thread Dmitry Osipenko
Support generic drm-shmem memory shrinker and add new madvise IOCTL to the VirtIO-GPU driver. BO cache manager of Mesa driver will mark BOs as "don't need" using the new IOCTL to let shrinker purge the marked BOs on OOM, the shrinker will also evict unpurgeable shmem BOs from memory if guest suppor

[PATCH v12 11/11] drm/panfrost: Switch to generic memory shrinker

2023-03-05 Thread Dmitry Osipenko
Replace Panfrost's custom memory shrinker with a common drm-shmem memory shrinker. Tested-by: Steven Price # Firefly-RK3288 Reviewed-by: Steven Price Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/panfrost/Makefile | 1 - drivers/gpu/drm/panfrost/panfrost_device.h| 4 -

Re: IMX8MM: assign panel to mipi_dsi in a device tree

2023-03-05 Thread Patrick Boettcher
On Mon, 6 Mar 2023 00:05:03 +0530 Jagan Teki wrote: >On Sun, Mar 5, 2023 at 11:39 PM Patrick Boettcher > wrote: >> >> Hi list, >> >> After several days of trying I realize my too small/old brain is >> unable to map around how to assign/connect a panel to the >> mipi_dsi-node in a device. >> >> We

[PATCH] drivers/gpu: fix typo in comment

2023-03-05 Thread Husain Alshehhi
Replace "isntance" with "instance". Signed-off-by: Husain Alshehhi --- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h| 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd/display/dmub/inc/dmu

Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-05 Thread Huacai Chen
Hi, Christian, On Mon, Mar 6, 2023 at 12:40 AM Christian König wrote: > > Am 05.03.23 um 06:21 schrieb Huacai Chen: > > LoongArch maintains cache coherency in hardware, but its WUC attribute > > (Weak-ordered UnCached, which is similar to WC) is out of the scope of > > cache coherency machanism.

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

2023-03-05 Thread SR
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Friday, March 3, 2023 11:51 PM > To: Andrzej Hajda ; Inki Dae ; > Marek Szyprowski ; Neil Armstrong > ; Marek Vasut ; Maxime Ripard > > Cc: Seung-Woo Kim ; Kyungmin Park > ; Frieder Schrempf ; > Tim Harvey ; Adam Ford ; Matteo > L

[Bug 216625] [regression] GPU lockup on Radeon R7 Kaveri

2023-03-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216625 --- Comment #9 from Pierre Ossman (pierre-bugzi...@ossman.eu) --- FYI, it seems to have gotten worse since upgrading from kernel-6.1.8-100.fc36.x86_64 to kernel-6.1.13-100.fc36.x86_64. It now hangs more arbitrarily, not just when trying to play a

Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-05 Thread Christian König
Am 06.03.23 um 04:01 schrieb WANG Xuerui: On 2023/3/6 10:49, Huacai Chen wrote: Hi, Christian, On Mon, Mar 6, 2023 at 12:40 AM Christian König wrote: Am 05.03.23 um 06:21 schrieb Huacai Chen: LoongArch maintains cache coherency in hardware, but its WUC attribute (Weak-ordered UnCached, whic

Re: [PATCH v1] drm/virtio: Fix handling CONFIG_DRM_VIRTIO_GPU_KMS option

2023-03-05 Thread Gerd Hoffmann
> +++ b/drivers/gpu/drm/virtio/virtgpu_kms.c > @@ -45,9 +45,11 @@ static void virtio_gpu_config_changed_work_func(struct > work_struct *work) > if (events_read & VIRTIO_GPU_EVENT_DISPLAY) { > if (vgdev->has_edid) > virtio_gpu_cmd_get_edids(vgdev); > -