[PATCH 2/3] drm/vc4: crtc: use drm managed resources

2022-07-13 Thread Danilo Krummrich
. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- drivers/gpu/drm/vc4/vc4_txp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 9355213dc883..4b0c61cc3265 100644 --- a/drivers/gpu

[PATCH 3/3] drm/vc4: encoder: use drm managed resources

2022-07-13 Thread Danilo Krummrich
or EPROBE_DEFERRED backoff. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/vc4/vc4_dpi.c | 11 ++- drivers/gpu/drm/vc4/vc4_dsi.c | 10 +- drivers/gpu/drm/vc4/vc4_hdmi.c | 10 ++ drivers/gpu/drm/vc4/vc4_vec.c | 11 ++- 4 files changed, 23 insertions(+), 19 deletions

[PATCH 1/3] drm/vc4: plane: use drm managed resources

2022-07-13 Thread Danilo Krummrich
or EPROBE_DEFERRED backoff. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/vc4/vc4_plane.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 1e866dc00ac3..0d88de31aa9c 100644 --- a/drivers/gpu/drm

[PATCH 0/3] drm/vc4: use drm managed resources

2022-07-13 Thread Danilo Krummrich
unload or EPROBE_DEFERRED backoff. Danilo Krummrich (3): drm/vc4: plane: use drm managed resources drm/vc4: crtc: use drm managed resources drm/vc4: encoder: use drm managed resources drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- drivers/gpu/drm/vc4/vc4_dpi.c | 11 ++- drivers/gpu/drm/vc4

[PATCH drm-misc-next v4 4/4] drm/todo: remove task to rename CMA helpers

2022-07-12 Thread Danilo Krummrich
Both, GEM and FB, CMA helpers were renamed to "GEM DMA" and "FB DMA", hence the task can be removed. Acked-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart Signed-off-by: Danilo Krummrich --- Documentation/gpu/todo.rst | 13 - 1 file changed, 13 dele

[PATCH drm-misc-next v4 3/4] drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}

2022-07-12 Thread Danilo Krummrich
-time tested with: ``` make ARCH={x86_64,arm,arm64} allyesconfig make ARCH={x86_64,arm,arm64} drivers/gpu/drm` ``` Reviewed-by: Laurent Pinchart Signed-off-by: Danilo Krummrich --- .../arm/display/komeda/komeda_framebuffer.c | 4 +-- drivers/gpu/drm/arm/malidp_mw.c | 2

[PATCH drm-misc-next v4 1/4] drm/fb: rename FB CMA helpers to FB DMA helpers

2022-07-12 Thread Danilo Krummrich
ollowing modifications in some DRM Kconfig files - select CMA if HAVE_DMA_CONTIGUOUS + select DMA if HAVE_DMA_CONTIGUOUS as well as manually picking the occurrences of 'CMA'/'cma' in comments and documentation which relate to "FB CMA", but not "GEM CMA&quo

[PATCH drm-misc-next v4 0/4] drm: rename CMA helpers to DMA helpers

2022-07-12 Thread Danilo Krummrich
- Rebased all patches on drm-misc/drm-misc-next. Danilo Krummrich (4): drm/fb: rename FB CMA helpers to FB DMA helpers drm/gem: rename GEM CMA helpers to GEM DMA helpers drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} drm/todo: remove task to rename CMA helpers Document

Re: [PATCH 00/10] drm: use idr_init_base() over idr_init() if applicable

2022-07-12 Thread Danilo Krummrich
Hi Laurent, On 7/1/22 20:52, d...@redhat.com wrote: From: Danilo Krummrich This patch series initializes IDRs with idr_init_base(, 1) rather than idr_init() in case for the particular IDR no IDs < 1 are ever requested - this avoids unnecessary tree walks. Guess this would go through

Re: [PATCH v3 0/4] drm: rename CMA helpers to DMA helpers

2022-07-11 Thread Danilo Krummrich
On 7/7/22 19:39, Danilo Krummrich wrote: This patch series renames all CMA helpers to DMA helpers - considering the hierarchy of APIs (mm/cma -> dma -> gem/fb dma helpers) calling them DMA helpers seems to be more applicable. Additionally, commit e57924d4ae80 ("drm/doc: Task to

[PATCH v3 3/4] drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}

2022-07-07 Thread Danilo Krummrich
-time tested with: ``` make ARCH={x86_64,arm,arm64} allyesconfig make ARCH={x86_64,arm,arm64} drivers/gpu/drm` ``` Reviewed-by: Laurent Pinchart Signed-off-by: Danilo Krummrich --- .../arm/display/komeda/komeda_framebuffer.c | 4 +-- drivers/gpu/drm/arm/malidp_mw.c | 2

[PATCH v3 1/4] drm/fb: rename FB CMA helpers to FB DMA helpers

2022-07-07 Thread Danilo Krummrich
ollowing modifications in some DRM Kconfig files - select CMA if HAVE_DMA_CONTIGUOUS + select DMA if HAVE_DMA_CONTIGUOUS as well as manually picking the occurrences of 'CMA'/'cma' in comments and documentation which relate to "FB CMA", but not "GEM CMA&quo

[PATCH v3 4/4] drm/todo: remove task to rename CMA helpers

2022-07-07 Thread Danilo Krummrich
Both, GEM and FB, CMA helpers were renamed to "GEM DMA" and "FB DMA", hence the task can be removed. Acked-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart Signed-off-by: Danilo Krummrich --- Documentation/gpu/todo.rst | 13 - 1 file changed, 13 dele

[PATCH v3 0/4] drm: rename CMA helpers to DMA helpers

2022-07-07 Thread Danilo Krummrich
guous) - Added a patch to rename struct drm_gem_dma_object.{paddr => dma_addr} Changes in v3: - Use a ccoccinelle script for "drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}" for fixing up missing drivers and compile-test on x86_64, arm and arm64. Danilo Krummr

Re: [PATCH v2 3/4] drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}

2022-07-07 Thread Danilo Krummrich
Hi Laurent, On 7/6/22 19:28, Laurent Pinchart wrote: Hi Danilo, Thank you for the patch. On Wed, Jul 06, 2022 at 02:43:51PM +0200, Danilo Krummrich wrote: The field paddr of struct drm_gem_dma_object holds a DMA address, which might actually be a physical address. However, depending

[PATCH v2 1/4] drm/fb: rename FB CMA helpers to FB DMA helpers

2022-07-06 Thread Danilo Krummrich
ollowing modifications in some DRM Kconfig files - select CMA if HAVE_DMA_CONTIGUOUS + select DMA if HAVE_DMA_CONTIGUOUS as well as manually picking the occurrences of 'CMA'/'cma' in comments and documentation which relate to "FB CMA", but not "GEM CMA&quo

[PATCH v2 4/4] drm/todo: remove task to rename CMA helpers

2022-07-06 Thread Danilo Krummrich
Both, GEM and FB, CMA helpers were renamed to "GEM DMA" and "FB DMA", hence the task can be removed. Acked-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart Signed-off-by: Danilo Krummrich --- Documentation/gpu/todo.rst | 13 - 1 file changed, 13 dele

[PATCH v2 3/4] drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}

2022-07-06 Thread Danilo Krummrich
' is a very commonly used term and symbol name a simple regex does not do the trick. Instead, users of the struct were fixed up iteratively with a trial and error approach building with `make allyesconfig && make drivers/gpu/drm`. Signed-off-by: Danilo Krummrich --- .../arm/displa

[PATCH v2 0/4] drm: rename CMA helpers to DMA helpers

2022-07-06 Thread Danilo Krummrich
guous) - Added a patch to rename struct drm_gem_dma_object.{paddr => dma_addr} Danilo Krummrich (4): drm/fb: rename FB CMA helpers to FB DMA helpers drm/gem: rename GEM CMA helpers to GEM DMA helpers drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} drm/todo: remove task to rena

[PATCH 1/3] drm/fb: rename FB CMA helpers to FB DMA helpers

2022-07-05 Thread Danilo Krummrich
ollowing modifications in some DRM Kconfig files - select CMA if HAVE_DMA_CONTIGUOUS + select DMA if HAVE_DMA_CONTIGUOUS as well as manually picking the occurrences of 'CMA'/'cma' in comments and documentation which relate to "FB CMA", but not "GEM CMA". This p

[PATCH 3/3] drm/todo: remove task to rename CMA helpers

2022-07-05 Thread Danilo Krummrich
Both, GEM and FB, CMA helpers were renamed to "GEM DMA" and "FB DMA", hence the task can be removed. Signed-off-by: Danilo Krummrich --- Documentation/gpu/todo.rst | 13 - 1 file changed, 13 deletions(-) diff --git a/Documentation/gpu/todo.rst b/Documentatio

[PATCH 0/3] drm: rename CMA helpers to DMA helpers

2022-07-05 Thread Danilo Krummrich
the CMA helpers and implies that people seem to be confused about the naming. The patches are compile-time tested building a x86_64 kernel with `make allyesconfig && make drivers/gpu/drm`. Danilo Krummrich (3): drm/fb: rename FB CMA helpers to FB DMA helpers drm/gem: rename GEM CMA he

[PATCH 0/1] drm/nouveau/disp: prefer identity-mapped route of SOR <-> macro link

2018-02-05 Thread Danilo Krummrich
macro link over a random one instead of having my orignally proposed quirk. So here's the patch doing exactly that. Regards, Danilo Danilo Krummrich (1): drm/nouveau/disp: prefer identity-mapped route of SOR <-> macro link drivers/gpu/drm/nouveau/nvkm/engine/disp

[PATCH 1/1] drm/nouveau/disp: prefer identity-mapped route of SOR <-> macro link

2018-02-05 Thread Danilo Krummrich
connected to a particular macro link not matching the identity of each other are causing failures. To fix this, when searching for a suitable SOR to be mapped to a macro link prefer a SOR which maps the identity of the macro link. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop

[PATCH v2 3/3] drm/nouveau/pci: SOR crossbar quirk for 10b0:1b81

2018-02-05 Thread Danilo Krummrich
link and instead use identity mapping. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop.de> --- v2: quirk for the actual macro link instead of the outp index --- drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff

[PATCH v2 1/3] drm/nouveau/pci: PCI IDs for pascal architecture

2018-02-05 Thread Danilo Krummrich
Taken from NVIDIA binary driver (Linux 64-bit, revision 390.25) from README.txt. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop.de> --- drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 41 1 file changed, 41 insertions(+) diff --git a/drivers/g

[PATCH v2 2/3] drm/nouveau/disp: quirk for SOR crossbar routing

2018-02-05 Thread Danilo Krummrich
this issue, supply a quirk for such cards which prevents a dynamic mapping of SOR sublink and macro link and instead relies on identity mapping. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop.de> --- v2: checking actual pad macro and link instead of outp index --- drivers/gpu/drm/n

Re: [Nouveau] [PATCH 3/3] drm/nouveau/pci: SOR crossbar quirk for 10b0:1b81

2018-02-05 Thread Danilo Krummrich
On 2018-02-05 03:47, Ben Skeggs wrote: On Mon, Feb 5, 2018 at 12:19 PM, Danilo Krummrich <danilokrummr...@dk-develop.de> wrote: On 2018-02-05 02:39, Ben Skeggs wrote: On 5 February 2018 at 11:37, Ben Skeggs <skeg...@gmail.com> wrote: On 5 February 2018 at 11:22, Dani

[PATCH 3/3] drm/nouveau/pci: SOR crossbar quirk for 10b0:1b81

2018-02-04 Thread Danilo Krummrich
and instead use identity mapping. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop.de> --- drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c b/drivers/g

[PATCH 2/3] drm/nouveau/disp: quirk for SOR crossbar routing

2018-02-04 Thread Danilo Krummrich
this issue, supply a quirk for such cards which prevents a dynamic mapping of SOR sublink and macro link and instead relies on identity mapping. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop.de> --- drivers/gpu/drm/nouveau/include/nvkm/core/device.h | 1 + drivers/gpu/drm/nouvea

[PATCH 1/3] drm/nouveau/pci: PCI IDs for pascal architecture

2018-02-04 Thread Danilo Krummrich
Taken from NVIDIA binary driver (Linux 64-bit, revision 390.25) from README.txt. Signed-off-by: Danilo Krummrich <danilokrummr...@dk-develop.de> --- drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 41 1 file changed, 41 insertions(+) diff --git a/drivers/g

<    4   5   6   7   8   9