[PATCH] drm/msm/dpu: removed logically dead code

2021-12-06 Thread Ameer Hamza
Fixed coverity warning by removing the dead code Addresses-Coverity: 1494147 ("Logically dead code") Signed-off-by: Ameer Hamza --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/d

[PATCH v2] drm/msm/dpu: removed logically dead code

2021-12-06 Thread Ameer Hamza
Fixed coverity warning by removing the dead code Addresses-Coverity: 1494147 ("Logically dead code") Signed-off-by: Ameer Hamza --- Changes in v2: removed the 'fail' part completely by moving DPU_ERROR and return statement in place of corresponding goto statements. --- .../drm/msm/disp/dpu1/d

Re: [PATCH bpf v2] treewide: add missing includes masked by cgroup -> bpf dependency

2021-12-06 Thread Alexei Starovoitov
On Thu, Dec 2, 2021 at 11:11 PM Greg KH wrote: > > On Thu, Dec 02, 2021 at 12:34:00PM -0800, Jakub Kicinski wrote: > > cgroup.h (therefore swap.h, therefore half of the universe) > > includes bpf.h which in turn includes module.h and slab.h. > > Since we're about to get rid of that dependency we n

[PATCH 8/9] drm/i915/gvt: Constify gtt_type_table_entry

2021-12-06 Thread Rikard Falkeborn
It is never modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c index

[PATCH 5/9] drm/i915/gvt: Constify gvt_mmio_block

2021-12-06 Thread Rikard Falkeborn
These are never modified, so make them const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/gvt.h | 2 +- drivers/gpu/drm/i915/gvt/handlers.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a

[PATCH 2/9] drm/i915/gvt: Constify intel_gvt_gtt_pte_ops

2021-12-06 Thread Rikard Falkeborn
These are never modified, so make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/gtt.c | 62 +- drivers/gpu/drm/i915/gvt/gtt.h | 2 +- 2 files changed, 32 insertions(+), 32 deletions(

[PATCH 1/9] drm/i915/gvt: Constify intel_gvt_gtt_pte_ops

2021-12-06 Thread Rikard Falkeborn
These are never modified, so make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/gtt.c | 4 ++-- drivers/gpu/drm/i915/gvt/gtt.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i

[PATCH 9/9] drm/i915/gvt: Constify vgpu_types

2021-12-06 Thread Rikard Falkeborn
It is never modified, so make it const to allow the compiler to put it in read-only memory. While at it, make name a const char*. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/vgpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/v

[PATCH 0/9] drm/i915/gvt: Constify static structs

2021-12-06 Thread Rikard Falkeborn
Constify a number of static structs that are never modified to allow the compiler to put them in read-only memory. In order to do this, constify a number of local variables and pointers in structs. This is most important for structs that contain function pointers, and the patches for those structs

[PATCH 3/9] drm/i915/gvt: Constify intel_gvt_irq_ops

2021-12-06 Thread Rikard Falkeborn
These are never modified, so make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/interrupt.c | 10 +- drivers/gpu/drm/i915/gvt/interrupt.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 4/9] drm/i915/gvt: Constify intel_gvt_sched_policy_ops

2021-12-06 Thread Rikard Falkeborn
These are never modified, so make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/sched_policy.c | 2 +- drivers/gpu/drm/i915/gvt/scheduler.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH v4 09/22] ASoC: tegra20: spdif: Use more resource-managed helpers

2021-12-06 Thread Dmitry Osipenko
Use resource-managed helpers to make code cleaner. Driver's remove callback isn't needed anymore since driver is completely resource-managed now. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 33 + sound/soc/tegra/tegra_pcm.c | 6 ++

[PATCH v4 22/22] ARM: tegra: paz00: Enable S/PDIF and HDMI audio

2021-12-06 Thread Dmitry Osipenko
Enable S/PDIF controller to enable HDMI audio support on Toshiba AC100. Use nvidia,fixed-parent-rate property that prevents audio rate conflict between S/PDIF and I2S. Tested-by: Agneli Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-paz00.dts | 8 1 file changed, 8 insert

[PATCH v4 18/22] ARM: config: multi v7: Enable NVIDIA Tegra20 APB DMA driver

2021-12-06 Thread Dmitry Osipenko
All Tegra20/30/114 serial and audio drivers depend on the Tegra20 APB DMA driver, enable this DMA driver. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_de

[PATCH 6/9] drm/i915/gvt: Constify cmd_interrupt_events

2021-12-06 Thread Rikard Falkeborn
It is never modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/

[PATCH v4 14/22] drm/tegra: hdmi: Unwind tegra_hdmi_init() errors

2021-12-06 Thread Dmitry Osipenko
Add missing error unwinding to tegra_hdmi_init(), for consistency. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/hdmi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 3242baddc5e7..

[PATCH v1 0/2] Fix broken DRM and Host1x drivers when CONFIG_ARM_DMA_USE_IOMMU=y

2021-12-06 Thread Dmitry Osipenko
Tegra DRM and Host1x don't work properly when CONFIG_ARM_DMA_USE_IOMMU=y, i.e. in case of multiplatform ARM32 kernel. The simple workaround is to detach devices from the offending IOMMU domain. This is a resend of 9 months old patches which we lost and forgotten. The problem still persists. I rebas

[PATCH v1 1/2] gpu: host1x: Add back arm_iommu_detach_device()

2021-12-06 Thread Dmitry Osipenko
Host1x DMA buffer isn't mapped properly when CONFIG_ARM_DMA_USE_IOMMU=y. The memory management code of Host1x driver has a longstanding overhaul overdue and it's not obvious where the problem is in this case. Hence let's add back the old workaround which we already had sometime before. It explicitl

[PATCH v4 13/22] ASoC: tegra20: i2s: Filter out unsupported rates

2021-12-06 Thread Dmitry Osipenko
Support new nvidia,fixed-parent-rate device-tree property which instructs I2S that board wants parent clock rate to stay at a fixed rate. This allows to play audio over S/PDIF and I2S simultaneously. The root of the problem is that audio components on Tegra share the same audio PLL, and thus, only

[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

2021-12-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211277 --- Comment #87 from kolAflash (kolafl...@kolahilft.de) --- (In reply to James Zhu from comment #86) > Hi @kolAflash, thanks so much for your effort on this verification! > Would you mind help apply those patches on 5.12 stable to check also? > it

[PATCH v4 19/22] ARM: tegra: Add S/PDIF node to Tegra20 device-tree

2021-12-06 Thread Dmitry Osipenko
Add S/PDIF node to Tegra20 device-tree. It's needed for enabling HDMI audio support. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 63c

[PATCH v4 10/22] ASoC: tegra20: spdif: Reset hardware

2021-12-06 Thread Dmitry Osipenko
Reset S/PDIF controller on runtime PM suspend/resume to ensure that we always have a consistent hardware state. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 32 sound/soc/tegra/tegra20_spdif.h | 1 + 2 files changed, 33 insertions(+) dif

[PATCH v4 05/22] ASoC: tegra20: spdif: Set FIFO trigger level

2021-12-06 Thread Dmitry Osipenko
FIFO trigger level must be not less than the size of DMA burst, otherwise audio will be played x4 faster that it should be because part of the DMA data will be dropped on FIFO input buffer overflow. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 8 1 file changed,

[PATCH v4 08/22] ASoC: tegra20: spdif: Improve driver's code

2021-12-06 Thread Dmitry Osipenko
- Clean up whitespaces, defines and variables. - Remove obsolete code. - Adhere to upstream coding style. - Don't override returned error code. - Replace pr_err with dev_err. No functional changes are made by this patch. This is a minor code's refactoring that will ease further maintenance of

[PATCH v4 02/22] ASoC: dt-bindings: tegra20-i2s: Convert to schema

2021-12-06 Thread Dmitry Osipenko
Convert NVIDIA Tegra20 I2S binding to schema. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/sound/nvidia,tegra20-i2s.txt | 30 .../bindings/sound/nvidia,tegra20-i2s.yaml| 70 +++ 2 files changed, 70 insertions(+), 30 deletions(-) dele

[PATCH v4 15/22] drm/tegra: hdmi: Register audio CODEC on Tegra20

2021-12-06 Thread Dmitry Osipenko
Tegra20 SoC supports only S/PDIF source for HDMI audio. Register ASoC HDMI S/PDIF CODEC for Tegra20, it will be linked with the S/PDIF CPU DAI. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/Kconfig | 3 + drivers/gpu/drm/tegra/hdmi.c | 153 +++--- 2 file

[PATCH v4 11/22] ASoC: tegra20: spdif: Support system suspend

2021-12-06 Thread Dmitry Osipenko
Support system suspend by enforcing runtime PM suspend/resume. Now there is no doubt that h/w is indeed stopped during suspend and that h/w state will be properly restored after resume. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 2 ++ 1 file changed, 2 insertions(+) di

Re: [PATCH] drm/msm/dp: Add "qcom, sc7280-dp" to support display port.

2021-12-06 Thread Dmitry Baryshkov
On 04/12/2021 01:02, Kuogee Hsieh wrote: Signed-off-by: Kuogee Hsieh Reviewed by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index d44f18b..91582d3

[PATCH 7/9] drm/i915/gvt: Constify formats

2021-12-06 Thread Rikard Falkeborn
These are never modified, so make them const to allow the compiler to put them in read-only memory. WHile at it, make the description const char* since it is never modified. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 24 1 file changed, 1

[PATCH 1/2] drm: fsl-dcu: select CONFIG_DRM_GEM_CMA_HELPER

2021-12-06 Thread Arnd Bergmann
From: Arnd Bergmann The fsl-dcu driver uses the gem_cma_helper code, but does noto enforce enabling this through Kconfig: arm-linux-gnueabi-ld: drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.o:(.rodata+0x32c): undefined reference to `drm_gem_cma_prime_import_sg_table' arm-linux-gnueabi-ld: drivers/g

[PATCH v4 07/22] ASoC: tegra20: spdif: Support device-tree

2021-12-06 Thread Dmitry Osipenko
Tegra20 S/PDIF driver was added in a pre-DT era and was never used since that time. Revive driver by adding device-tree support. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra/tegr

[PATCH v4 21/22] ARM: tegra: acer-a500: Enable S/PDIF and HDMI audio

2021-12-06 Thread Dmitry Osipenko
Enable S/PDIF controller to enable HDMI audio support on Acer A500. Use nvidia,fixed-parent-rate property that prevents audio rate conflict between S/PDIF and I2S. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 8 1 file changed, 8 insertions(+) di

[PATCH v4 03/22] ASoC: dt-bindings: tegra20-i2s: Document new nvidia, fixed-parent-rate property

2021-12-06 Thread Dmitry Osipenko
Document new nvidia,fixed-parent-rate property which instructs that this board wants parent clock to stay at a fixed rate. It allows to prevent conflicts between audio components that share same parent PLL. For instance, this property allows to have HDMI audio, speaker and headphones in the system

[PATCH v4 12/22] ASoC: tegra20: spdif: Filter out unsupported rates

2021-12-06 Thread Dmitry Osipenko
SPDIF and other SoC components share audio PLL on Tegra, thus only one component may set the desired base clock rate. This creates problem for HDMI audio because it uses SPDIF and audio may not work if SPDIF's clock doesn't exactly match standard audio rate since some receivers may reject audio in

[PATCH v4 01/22] ASoC: dt-bindings: Add binding for Tegra20 S/PDIF

2021-12-06 Thread Dmitry Osipenko
Add device-tree binding for Tegra20 S/PDIF controller. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/sound/nvidia,tegra20-spdif.yaml | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra20

Re: [PATCH] drm/msm/dp: Add "qcom, sc7280-dp" to support display port.

2021-12-06 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-12-03 14:02:39) > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/dp/dp_display.c | 1 + > 1 file changed, 1 insertion(+) One nit Reviewed-by: Stephen Boyd > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > b/drivers/gpu/drm/msm/dp/dp_display.c > index

RE: [PATCH] drm/ast: Atomic CR/SR reg R/W

2021-12-06 Thread Kuo-Hsiang Chou
Hi -Original Message- From: Thomas Zimmermann [mailto:tzimmerm...@suse.de] Sent: Friday, December 03, 2021 4:47 PM To: Kuo-Hsiang Chou ; dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org Subject: Re: [PATCH] drm/ast: Atomic CR/SR reg R/W Hi Am 03.12.21 um 02:23 schrieb Kuo-

[PATCH v5 08/11] drm/i915/pxp: Use to_gt() helper

2021-12-06 Thread Andi Shyti
Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/pxp/intel_

[PATCH v4 16/22] ARM: tegra_defconfig: Enable S/PDIF driver

2021-12-06 Thread Dmitry Osipenko
Enable Tegra20 S/PDIF driver. It's a part of HDMI audio subsystem on Tegra. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 736a0d25900b..f8b40cfdfb3e

[PATCH] drm/lima: Handle dma_set_coherent_mask error codes

2021-12-06 Thread Jiasheng Jiang
The return value of dma_set_coherent_mask() is not always 0. To catch the exception in case that dma is not support the mask. Fixes: a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/lima/lima_device.c | 4 +++- 1 file changed, 3 insertions(

[PATCH v4 20/22] ARM: tegra: Add HDMI audio graph to Tegra20 device-tree

2021-12-06 Thread Dmitry Osipenko
Add HDMI audio graph to Tegra20 device-tree to enable HDMI audio on Tegra20 devices. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/teg

[PATCH v4 00/22] Support HDMI audio on NVIDIA Tegra20

2021-12-06 Thread Dmitry Osipenko
This series revives Tegra20 S/PDIF driver which was upstreamed long time ago, but never was used. It also turns Tegra DRM HDMI driver into HDMI audio CODEC provider. Finally, HDMI audio is enabled in device-trees. For now the audio is enable only for Acer A500 tablet and Toshiba AC100 netbook becau

Re: 5.15 regression: CONFIG_SYSFB_SIMPLEFB breaks console scrolling

2021-12-06 Thread Thorsten Leemhuis
Hi, this is your Linux kernel regression tracker speaking. On 03.12.21 12:20, Javier Martinez Canillas wrote: > Sorry for the late reply. > > On 11/21/21 12:47, Thorsten Leemhuis wrote: >> Hi, this is your Linux kernel regression tracker speaking. >> >> On 16.11.21 05:52, Harald Dunkel wrote: >>>

[PATCH v4 17/22] ARM: config: multi v7: Enable NVIDIA Tegra20 S/PDIF driver

2021-12-06 Thread Dmitry Osipenko
Enable Tegra20 S/PDIF driver that is a part of HDMI audio subsystem. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 3d509bc13444..172838566

[PATCH v5 04/11] drm/i915/gt: Use to_gt() helper

2021-12-06 Thread Andi Shyti
From: Michał Winiarski Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski Singed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_engine_user.c | 2 +- drivers/gpu/drm/i915/gt/int

[PATCH v4 04/22] dt-bindings: host1x: Document optional HDMI sound-dai-cells

2021-12-06 Thread Dmitry Osipenko
Document new optional sound-dai-cells property of HDMI node. This node will be used as endpoint of HDMI sound DAI graph. Acked-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt | 1 + 1 file changed, 1 insertion(+) diff --git a

RE: [v3 0/3] Introduce Raptor Lake S

2021-12-06 Thread Srivatsa, Anusha
> -Original Message- > From: Tvrtko Ursulin > Sent: Friday, December 3, 2021 2:57 PM > To: Srivatsa, Anusha ; intel- > g...@lists.freedesktop.org > Cc: x...@kernel.org; dri-devel@lists.freedesktop.org; Ingo Molnar > ; Borislav Petkov ; Dave Hansen > ; Joonas Lahtinen > ; Nikula, Jani >

Re: [PATCH v1 2/4] ARM: dts: imx6dl-prtvt7: Add missing tvp5150 video decoder node

2021-12-06 Thread Shawn Guo
On Mon, Nov 22, 2021 at 01:43:08PM +0100, Oleksij Rempel wrote: > From: Robin van der Gracht > > Signed-off-by: Robin van der Gracht > --- > arch/arm/boot/dts/imx6dl-prtvt7.dts | 40 + > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6dl-prtv

[Bug 215223] New: AMDGPU Driver with Radeon RX 6700 sometimes can not find display

2021-12-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215223 Bug ID: 215223 Summary: AMDGPU Driver with Radeon RX 6700 sometimes can not find display Product: Drivers Version: 2.5 Kernel Version: 5.15.6 Hardware: x86-64

[PATCH] omapdrm: dss: mark runtime PM functions __maybe_unused

2021-12-06 Thread Arnd Bergmann
From: Arnd Bergmann Using the SET_RUNTIME_PM_OPS() macro causes a warning about the referenced functions when they are marked static but not __maybe_unused: drivers/gpu/drm/omapdrm/dss/dss.c:1572:12: error: unused function 'dss_runtime_suspend' [-Werror,-Wunused-function] drivers/gpu/drm/omapdr

Re: [PATCH v2] Revert "drm/fb-helper: improve DRM fbdev emulation device names"

2021-12-06 Thread Johannes Stezenbach
Hi, On Wed, Oct 20, 2021 at 06:57:40PM +0200, Javier Martinez Canillas wrote: > This reverts commit b3484d2b03e4c940a9598aa841a52d69729c582a. > > That change attempted to improve the DRM drivers fbdev emulation device > names to avoid having confusing names like "simpledrmdrmfb" in /proc/fb. > >

[PATCH v1 2/2] drm/tegra: Add back arm_iommu_detach_device()

2021-12-06 Thread Dmitry Osipenko
DMA buffers of 2D/3D engines aren't mapped properly when CONFIG_ARM_DMA_USE_IOMMU=y. The memory management code of Tegra DRM driver has a longstanding overhaul overdue and it's not obvious where the problem is in this case. Hence let's add back the old workaround which we already had sometime befor

[PATCH v4 06/22] ASoC: tegra20-spdif: stop setting slave_id

2021-12-06 Thread Dmitry Osipenko
From: Arnd Bergmann The DMA resource is never set up anywhere, and passing this as slave_id has not been the proper procedure in a long time. As a preparation for removing all slave_id references from the ALSA code, remove this one. According to Dmitry Osipenko, this driver has never been used

[PATCH v2 1/3] drm/ast: Handle failed I2C initialization gracefully

2021-12-06 Thread Thomas Zimmermann
I2C initialization is allowed to fail. In this case, create a connector without DDC adapter. The current code would dereference a NULL pointer. Reading the modes from the connector is supposed to work without I2C adapter. Add the respective test. v2: * init edid to NULL to avoid uninitial

[PATCH v5 01/11] drm/i915: Store backpointer to GT in uncore

2021-12-06 Thread Andi Shyti
From: Michał Winiarski We now support a per-gt uncore, yet we're not able to infer which GT we're operating upon. Let's store a backpointer for now. Signed-off-by: Michał Winiarski Signed-off-by: Matt Roper Reviewed-by: Andi Shyti Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel

Re: [PATCH] Revert "video: fbdev: amba-clcd: Retire elder CLCD driver"

2021-12-06 Thread Linus Walleij
Hi Peter, [Paging John Stultz on this] On Tue, Sep 29, 2020 at 6:30 PM Peter Collingbourne wrote: > On Tue, Sep 29, 2020 at 2:32 AM Daniel Vetter wrote: > > On Tue, Sep 29, 2020 at 09:28:56AM +0200, Neil Armstrong wrote: > > > Can't Android FVP use drm-hwcomposer instead ? > > Not without kern

[PATCH v2 2/3] drm/ast: Convert I2C code to managed cleanup

2021-12-06 Thread Thomas Zimmermann
Release the I2C adapter as part of the DRM device cleanup. Remove ast's dedicated helper for struct drm_connector_funcs.destroy. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 36 +++--- 1 file changed, 16 insertions(+), 20 deletions(-) diff --

[PATCH 2/2] drm: aspeed: select CONFIG_DRM_GEM_CMA_HELPER

2021-12-06 Thread Arnd Bergmann
From: Arnd Bergmann The aspeed driver uses the gem_cma_helper code, but does noto enforce enabling this through Kconfig: x86_64-linux-ld: drivers/gpu/drm/aspeed/aspeed_gfx_drv.o:(.rodata+0x2c8): undefined reference to `drm_gem_cma_prime_import_sg_table' x86_64-linux-ld: drivers/gpu/drm/aspeed/a

[RFC PATCH] drm/panel: Fix panel removal if mipi_dsi_attach fail

2021-12-06 Thread Michael Trimarchi
If mipi_dsi_attach fail the panel must be removed from panel list because it get be probed back but later for -EPROBE_DEFER. A lot of panels are affect on same issue, fix them all Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 6 +- drivers/gpu/d

[PATCH v5 05/11] drm/i915/gem: Use to_gt() helper

2021-12-06 Thread Andi Shyti
From: Michał Winiarski Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 22 drivers/gpu/drm/i91

[PATCH v5 00/11] More preparation for multi gt patches

2021-12-06 Thread Andi Shyti
Hi, the first patch concludes the first stage of refactoring which makes the use of intel_gt on the different subsystem. It's taken from Matt's series and it has alread been reviewed. The patch has just been replaced before any multitile patches and I think it can be already pushed. Patch 2-10 ar

[PATCH v5 07/11] drm/i915/selftests: Use to_gt() helper

2021-12-06 Thread Andi Shyti
Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Andi Shyti Cc: Michał Winiarski --- drivers/gpu/drm/i915/selftests/i915_active.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem.c | 2 +- .../gpu/drm/i9

[PATCH v5 02/11] drm/i915: Introduce to_gt() helper

2021-12-06 Thread Andi Shyti
From: Michał Winiarski To allow further refactoring and abstract away the fact that GT is stored inside i915 private. No functional changes. Signed-off-by: Michał Winiarski Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_gt_buffer_pool.c | 7 +-- drivers/gpu/drm/i915/i915_drv.

Re: [PATCH v2 0/8] Host1x context isolation support

2021-12-06 Thread Jon Hunter
Will, Joerg, Rob, On 08/11/2021 10:36, Mikko Perttunen wrote: On 9/16/21 5:32 PM, Mikko Perttunen wrote: Hi all, *** New in v2: Added support for Tegra194 Use standard iommu-map property instead of custom mechanism *** this series adds support for Host1x 'context isolation'. Since when progr

[PATCH v2 0/3] ast: Fix I2C corner cases wrt init/cleanup

2021-12-06 Thread Thomas Zimmermann
The VGA connector in ast is supposed to work without I2C. Currently, this isn't implemented correctly in several places. Fix this. Also add managed cleanup of the I2C code and move it into separate source file. Tested on AST2100 hardware. v2: * init edid to NULL to avoid uninitialized rea

Re: [PATCH 2/2] drm: aspeed: select CONFIG_DRM_GEM_CMA_HELPER

2021-12-06 Thread Thomas Zimmermann
Hi Arnd Am 04.12.21 um 18:46 schrieb Arnd Bergmann: From: Arnd Bergmann The aspeed driver uses the gem_cma_helper code, but does noto enforce enabling this through Kconfig: x86_64-linux-ld: drivers/gpu/drm/aspeed/aspeed_gfx_drv.o:(.rodata+0x2c8): undefined reference to `drm_gem_cma_prime_imp

[PATCH v5 03/11] drm/i915/display: Use to_gt() helper

2021-12-06 Thread Andi Shyti
From: Michał Winiarski Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski Signed-off-by: Andi Shyti --- .../gpu/drm/i915/display/intel_atomic_plane.c | 4 ++-- drivers/gpu/drm/i915/display/i

[PATCH v5 10/11] drm/i915: Use to_gt() helper for GGTT accesses

2021-12-06 Thread Andi Shyti
From: Michał Winiarski GGTT is currently available both through i915->ggtt and gt->ggtt, and we eventually want to get rid of the i915->ggtt one. Use to_gt() for all i915->ggtt accesses to help with the future refactoring. Signed-off-by: Michał Winiarski Cc: Michal Wajdeczko Signed-off-by: And

[PATCH v5 09/11] drm/i915: Use to_gt() helper

2021-12-06 Thread Andi Shyti
From: Michał Winiarski Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/i915_debugfs.c| 38 +++ drivers/gpu/drm/i915/i9

[PATCH v2 3/3] drm/ast: Move I2C code into separate source file

2021-12-06 Thread Thomas Zimmermann
Move I2C code into its own source file. Makes the mode-setting code a little less convoluted. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_drv.h | 3 + drivers/gpu/drm/ast/ast_i2c.c | 152 + drivers/gpu/

Re: [PATCH v1 4/4] ARM: dts: imx6dl: plym2m, prtvt7, victgo: make use of new resistive-adc-touch driver

2021-12-06 Thread Shawn Guo
On Mon, Nov 22, 2021 at 01:43:10PM +0100, Oleksij Rempel wrote: > The tsc2046 is an ADC used as touchscreen controller. To share as mach > code as possible, we should use it as actual ADC + virtual tochscreen > controller. > With this patch we make use of the new kernel IIO and HID infrastructure.

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-12-06 Thread Michael Nazzareno Trimarchi
Hi Jagan @@ -1503,28 +1506,18 @@ static int samsung_dsim_panel_or_bridge(struct samsung_dsim *dsi, { struct drm_bridge *panel_bridge; struct drm_panel *panel; - struct device_node *remote; - - if (of_graph_is_present(node)) { - remote = of_graph_get_remot

[PATCH v5 06/11] drm/i915/gvt: Use to_gt() helper

2021-12-06 Thread Andi Shyti
From: Michał Winiarski Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gvt/gvt.c | 2 +- drivers/gpu/drm/i915/gvt/scheduler.c | 2 +-

Re: [PATCH 1/6] dt-bindings: display: sitronix, st7735r: Fix backlight in example

2021-12-06 Thread Geert Uytterhoeven
On Thu, Nov 25, 2021 at 4:17 PM Noralf Trønnes wrote: > The backlight property was lost during conversion to yaml in commit > abdd9e3705c8 ("dt-bindings: display: sitronix,st7735r: Convert to DT schema"). > Put it back. > > Fixes: abdd9e3705c8 ("dt-bindings: display: sitronix,st7735r: Convert to D

[PATCH v5 11/11] drm/i915: Rename i915->gt to i915->gt0

2021-12-06 Thread Andi Shyti
In preparation of the multitile support, highlight the root GT by calling it gt0 inside the drm i915 private data. Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Lucas De Marchi Cc: Rodrigo Vivi Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- 1 file chan

[PATCH] drm: make drm_syncobj_array_wait() use the range hrtimer feature

2021-12-06 Thread Tatsuyuki Ishi
select(), poll() and epoll_wait() all already supports high-precision timeout handling. This patch makes drm_syncobj_array_wait() to handle the timeout in high precision using the same heuristics and functions implemented for select(). Signed-off-by: Tatsuyuki Ishi --- drivers/gpu/drm/drm_syncob

Re: [PATCH] drm: Return error codes from struct drm_driver.gem_create_object

2021-12-06 Thread Dan Carpenter
On Tue, Nov 30, 2021 at 10:52:55AM +0100, Thomas Zimmermann wrote: > GEM helper libraries use struct drm_driver.gem_create_object to let > drivers override GEM object allocation. On failure, the call returns > NULL. > > Change the semantics to make the calls return a pointer-encoded error. > This

[PATCH v2 0/3] drm/vc4: Support for 30 bits YUV formats

2021-12-06 Thread Maxime Ripard
Hi, Here are a few patches adding support for the P030 and the BT709 and BT2020 colorspaces. Let me know what you think, Maxime Changes from v1: - Reworded the format description - Fixed use before initialisation Dave Stevenson (3): drm/fourcc: Add packed 10bit YUV 4:2:0 format drm/vc4: p

[PATCH v2 1/3] drm/fourcc: Add packed 10bit YUV 4:2:0 format

2021-12-06 Thread Maxime Ripard
From: Dave Stevenson Adds a format that is 3 10bit YUV 4:2:0 samples packed into a 32bit work (with 2 spare bits). Supported on Broadcom BCM2711 chips. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_fourcc.c | 3 +++ include/uapi/drm/drm_fourcc.h | 11 ++

[PATCH v2 2/3] drm/vc4: plane: Add support for DRM_FORMAT_P030

2021-12-06 Thread Maxime Ripard
From: Dave Stevenson The P030 format, used with the DRM_FORMAT_MOD_BROADCOM_SAND128 modifier, is a format output by the video decoder on the BCM2711. Add native support to the KMS planes for that format. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_p

[PATCH v2 3/3] drm/vc4: plane: Add support for YUV color encodings and ranges

2021-12-06 Thread Maxime Ripard
From: Dave Stevenson The BT601/BT709 color encoding and limited vs full range properties were not being exposed, defaulting always to BT601 limited range. Expose the parameters and set the registers appropriately. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm

Re: [PATCH] omapdrm: dss: mark runtime PM functions __maybe_unused

2021-12-06 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Sun, Dec 05, 2021 at 02:15:56PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Using the SET_RUNTIME_PM_OPS() macro causes a warning about the > referenced functions when they are marked static but not __maybe_unused: > > drivers/gpu/drm/omapdrm/dss/

Re: [PATCH] drm: Return error codes from struct drm_driver.gem_create_object

2021-12-06 Thread Thomas Zimmermann
Hi Am 06.12.21 um 11:42 schrieb Dan Carpenter: On Tue, Nov 30, 2021 at 10:52:55AM +0100, Thomas Zimmermann wrote: GEM helper libraries use struct drm_driver.gem_create_object to let drivers override GEM object allocation. On failure, the call returns NULL. Change the semantics to make the call

Re: [PATCH v9 00/15] Clean up "mediatek,larb"

2021-12-06 Thread Joerg Roedel
On Fri, Nov 12, 2021 at 06:54:54PM +0800, Yong Wu wrote: > Yong Wu (14): > dt-binding: mediatek: Get rid of mediatek, larb for multimedia HW > iommu/mediatek-v1: Free the existed fwspec if the master dev already > has > iommu/mediatek: Return ENODEV if the device is NULL > iommu/mediate

Re: [PATCH v2 1/3] drm/fourcc: Add packed 10bit YUV 4:2:0 format

2021-12-06 Thread Dave Stevenson
On Mon, 6 Dec 2021 at 11:01, Maxime Ripard wrote: > > From: Dave Stevenson > > Adds a format that is 3 10bit YUV 4:2:0 samples packed into > a 32bit work (with 2 spare bits). Quite possibly my typo, but s/work/word > Supported on Broadcom BCM2711 chips. > > Signed-off-by: Dave Stevenson > Sign

Re: [PATCH v2 3/3] drm/vc4: plane: Add support for YUV color encodings and ranges

2021-12-06 Thread Dave Stevenson
On Mon, 6 Dec 2021 at 11:02, Maxime Ripard wrote: > > From: Dave Stevenson Minor note that we've changed to raspberrypi.com instead of .org, but it currently forwards through anyway. The other two patches have the .com address. > The BT601/BT709 color encoding and limited vs full > range proper

Re: [PATCH 1/9] gpu: host1x: Add missing DMA API include

2021-12-06 Thread Joerg Roedel
Hi Robin, On Wed, Nov 24, 2021 at 02:05:15PM +, Robin Murphy wrote: > Bah, seems like tegra-vic needs the same treatment too, but wasn't in my > local config. Should I squash that into a respin of this patch on the > grounds of being vaguely related, or would you prefer it separate? In case t

[syzbot] KASAN: out-of-bounds Write in virtio_gpu_cmd_transfer_to_host_2d

2021-12-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e66435936756 mm: fix mismerge of folio page flag manipulat.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14c79e0eb0 kernel config: https://syzkaller.appspot.com/x/.config?x=ca1c2027dfeaf335 das

[syzbot] general protection fault in virtio_gpu_array_put_free

2021-12-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d58071a8a76d Linux 5.16-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11f773f6b0 kernel config: https://syzkaller.appspot.com/x/.config?x=171728a464c05f2b dashboard link: https://syzkaller.ap

Regression in 5.15 in nouveau

2021-12-06 Thread Stefan Fritsch
Hi, when updating from 5.14 to 5.15 on a system with NVIDIA GP108 [GeForce GT 1030] (NV138) and Ryzen 9 3900XT using kde/plasma on X (not wayland), there is a regression: There is now some annoying black flickering in some applications, for example thunderbird, firefox, or mpv. It mostly happ

[syzbot] general protection fault in virtio_gpu_object_create

2021-12-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:136057256686 Linux 5.16-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14029126b0 kernel config: https://syzkaller.appspot.com/x/.config?x=bf85c53718a1e697 dashboard link: https://syzkaller.ap

Re: [PATCH v9 00/15] Clean up "mediatek,larb"

2021-12-06 Thread Hans Verkuil
Hi Yong Wu, On 12/11/2021 11:54, Yong Wu wrote: > MediaTek IOMMU block diagram always like below: > > M4U > | > smi-common > | > - > | | ... > | | > larb1 larb2 > | | > vdec venc > > All the consumer connect wit

Re: [PATCH v9 00/15] Clean up "mediatek,larb"

2021-12-06 Thread Hans Verkuil
On 06/12/2021 12:52, Joerg Roedel wrote: > On Fri, Nov 12, 2021 at 06:54:54PM +0800, Yong Wu wrote: >> Yong Wu (14): >> dt-binding: mediatek: Get rid of mediatek, larb for multimedia HW >> iommu/mediatek-v1: Free the existed fwspec if the master dev already >> has >> iommu/mediatek: Retur

Re: [PATCH v9 00/15] Clean up "mediatek,larb"

2021-12-06 Thread Hsin-Yi Wang
On Mon, Dec 6, 2021 at 8:23 PM Hans Verkuil wrote: > > Hi Yong Wu, > > On 12/11/2021 11:54, Yong Wu wrote: > > MediaTek IOMMU block diagram always like below: > > > > M4U > > | > > smi-common > > | > > - > > | | ... > > | | > > larb1

Re: [Intel-gfx] [PATCH v2 03/16] drm/i915: Remove pages_mutex and intel_gtt->vma_ops.set/clear_pages members, v2.

2021-12-06 Thread Matthew Auld
On Mon, 29 Nov 2021 at 13:57, Maarten Lankhorst wrote: > > Big delta, but boils down to moving set_pages to i915_vma.c, and removing > the special handling, all callers use the defaults anyway. We only remap > in ggtt, so default case will fall through. > > Because we still don't require locking i

Re: [PATCH v2 04/16] drm/i915: Take object lock in i915_ggtt_pin if ww is not set

2021-12-06 Thread Matthew Auld
On Mon, 29 Nov 2021 at 13:58, Maarten Lankhorst wrote: > > i915_vma_wait_for_bind needs the vma lock held, fix the caller. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Matthew Auld

Re: Regression in 5.15 in nouveau

2021-12-06 Thread Thorsten Leemhuis
[TLDR: adding this regression to regzbot; most of this mail is compiled from a few templates paragraphs some of you will have seen aready.] Hi, this is your Linux kernel regression tracker speaking. Top-posting for once, to make this easy accessible to everyone. Adding the regression mailing lis

Re: [PATCH 4/6] dt-bindings: gpu: mali-bifrost: Document RZ/G2L support

2021-12-06 Thread Geert Uytterhoeven
Hi Biju, On Fri, Dec 3, 2021 at 12:52 PM Biju Das wrote: > The Renesas RZ/G2{L, LC} SoC (a.k.a R9A07G044) has a Bifrost Mali-G31 GPU, > add a compatible string for it. > > Signed-off-by: Biju Das > Reviewed-by: Lad Prabhakar Thanks for your patch! > --- a/Documentation/devicetree/bindings/gpu

[PATCH v3 0/8] DG2 accelerated migration/clearing support

2021-12-06 Thread Matthew Auld
Enable accelerated moves and clearing on DG2. On such HW we have minimum page size restrictions when accessing LMEM from the GTT, where we now have to use 64K GTT pages or larger. With the ppGTT the page-table also has a slightly different layout from past generations when using the 64K GTT mode(wh

[PATCH v3 1/8] drm/i915/migrate: don't check the scratch page

2021-12-06 Thread Matthew Auld
The scratch page might not be allocated in LMEM(like on DG2), so instead of using that as the deciding factor for where the paging structures live, let's just query the pt before mapping it. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C Reviewed-by: Ramalingam C --- driver

  1   2   3   >