Re: [PATCH] drm/panfrost: Avoid user size passed to kvmalloc()

2021-12-16 Thread Tomeu Vizoso
On 12/16/21 6:49 PM, Alyssa Rosenzweig wrote: This provides an easy method for user space to trigger the OOM killer (by temporarily allocating large amounts of kernel memory) panfrost user space has a lot of easy ways to trigger to the OOM killer unfortunately if this is something we want

Re: [PATCH] drm/panfrost: Avoid user size passed to kvmalloc()

2021-12-16 Thread Dan Carpenter
On Thu, Dec 16, 2021 at 12:49:53PM -0500, Alyssa Rosenzweig wrote: > > This provides an easy method for user > > space to trigger the OOM killer (by temporarily allocating large amounts > > of kernel memory) > > panfrost user space has a lot of easy ways to trigger to the OOM killer >

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

2021-12-16 Thread Vinod Koul
On 16-12-21, 17:29, Dmitry Osipenko wrote: > 15.12.2021 22:19, Dmitry Osipenko пишет: > > 15.12.2021 21:57, Mark Brown пишет: > >> On Sat, Dec 04, 2021 at 05:37:03PM +0300, Dmitry Osipenko wrote: > >> > >>> I based S/PDIF patches on Arnd's Bergmann patch from a separate series [1] > >>> that

[git pull] drm fixes for 5.16-rc6

2021-12-16 Thread Dave Airlie
Hi Linus, Mostly amdgpu fixes this week scattered around the driver, otherwise one i915, one ast, one simpledrm. There is a revert in the fb-helper for places userspace was using a string that we tried to change. Regards, Dave. drm-fixes-2021-12-17-1: drm fixes for 5.16-rc6 i915: - Fix a bound

Re: [PATCH v1, 12/12] media: mtk-vcodec: Add h264 slice api driver for mt8192

2021-12-16 Thread yunfei.d...@mediatek.com
Hi Nicolas, Thanks for your suggestion. On Wed, 2021-12-15 at 10:27 -0500, Nicolas Dufresne wrote: > Hi Yunfei, > > Le mercredi 15 décembre 2021 à 14:59 +0800, Yunfei Dong a écrit : > > From: Yunfei Dong > > > > Adds h264 lat and core driver for mt8192. > > This is purely a nit, but I have

回复: Re: Re: 回复: Re: [PATCH] drm/amdgpu: fixup bad vram size on gmc v8

2021-12-16 Thread 周宗敏
Dear Alex:>Is the issue reproducible with the same board in bare metal on x86?Or does it only happen with passthrough on ARM?Unfortunately, my current environment is not convenient to test this GPU board on x86 platform.but I can tell you the problem still occurs on ARM without passthrough to

[PATCH] drm/amdgpu: potential dereference of null pointer

2021-12-16 Thread Jiasheng Jiang
The return value of dma_alloc_coherent() needs to be checked. To avoid use of null pointer in memcpy_toio() in case of the failure of alloc. Fixes: 57430471e2fa ("drm/amdgpu: Add support for USBC PD FW download") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4

[PATCH v17, 17/19] media: mtk-vcodec: Use codec type to separate different hardware

2021-12-16 Thread Yunfei Dong
There is just one core thread, in order to separate different hardware, using codec type to separeate it in scp driver. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- .../media/platform/mtk-vcodec/vdec_ipi_msg.h | 12 ---

[PATCH v17, 18/19] media: mtk-vcodec: Remove mtk_vcodec_release_dec_pm

2021-12-16 Thread Yunfei Dong
There are only two lines in mtk_vcodec_release_dec_pm, using pm_runtime_disable and put_device instead directly. Move pm_runtime_enable outside mtk_vcodec_init_dec_pm to symmetry with pm_runtime_disable, after that, rename mtk_vcodec_init_dec_pm to *_clk since it only has clock operations now.

[PATCH v17, 12/19] media: mtk-vcodec: Add new interface to lock different hardware

2021-12-16 Thread Yunfei Dong
For add new hardware, not only need to lock lat hardware, also need to lock core hardware in case of different instance start to decoder at the same time. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 4 ++--

[PATCH v17, 08/19] media: mtk-vcodec: Use pure single core for MT8183

2021-12-16 Thread Yunfei Dong
Separates different architecture for hardware: pure_sin_core and lat_sin_core. MT8183 is pure single core. Uses .hw_arch to distinguish. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- .../platform/mtk-vcodec/mtk_vcodec_dec_stateful.c | 1 +

[PATCH v17, 19/19] media: mtk-vcodec: Remove mtk_vcodec_release_enc_pm

2021-12-16 Thread Yunfei Dong
There are only two lines in mtk_vcodec_release_enc_pm, using pm_runtime_disable and put_device instead directly. Move pm_runtime_enable outside mtk_vcodec_release_enc_pm to symmetry with pm_runtime_disable, after that, rename mtk_vcodec_init_enc_pm to *_clk since it only has clock operations now.

[PATCH v17, 11/19] media: mtk-vcodec: Generalize power and clock on/off interfaces

2021-12-16 Thread Yunfei Dong
Generalizes power and clock on/off interfaces to support different hardware. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 6 +- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.c | 2 +-

[PATCH v17, 14/19] media: mtk-vcodec: Support 34bits dma address for vdec

2021-12-16 Thread Yunfei Dong
Use the dma_set_mask_and_coherent helper to set vdec DMA bit mask to support 34bits iova space(16GB) that the mt8192 iommu HW support. Whole the iova range separate to 0~4G/4G~8G/8G~12G/12G~16G, regarding which iova range VDEC actually locate, it depends on the dma-ranges property of vdec dtsi

[PATCH v17, 15/19] dt-bindings: media: mtk-vcodec: Adds decoder dt-bindings for mt8192

2021-12-16 Thread Yunfei Dong
Adds decoder dt-bindings for mt8192. Signed-off-by: Yunfei Dong Reviewed-by: Rob Herring --- .../media/mediatek,vcodec-subdev-decoder.yaml | 265 ++ 1 file changed, 265 insertions(+) create mode 100644

[PATCH v17, 16/19] media: mtk-vcodec: Add core dec and dec end ipi msg

2021-12-16 Thread Yunfei Dong
Add core dec and dec end ipi msg: AP_IPIMSG_DEC_CORE/AP_IPIMSG_DEC_CORE_END. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- .../media/platform/mtk-vcodec/vdec_ipi_msg.h | 4 .../media/platform/mtk-vcodec/vdec_vpu_if.c| 12

[PATCH v17, 13/19] media: mtk-vcodec: Add work queue for core hardware decode

2021-12-16 Thread Yunfei Dong
Add work queue to process core hardware information. First, get lat_buf from message queue, then call core hardware of each codec(H264/VP9/AV1) to decode, finally puts lat_buf back to the message. Signed-off-by: Yunfei Dong Reviewed-by: Steve Cho ---

[PATCH v17, 10/19] media: mtk-vcodec: Add msg queue feature for lat and core architecture

2021-12-16 Thread Yunfei Dong
For lat and core architecture, lat thread will send message to core thread when lat decode done. Core hardware will use the message from lat to decode, then free message to lat thread when decode done. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno ---

[PATCH v17, 07/19] dt-bindings: media: mtk-vcodec: Separate video encoder and decoder dt-bindings

2021-12-16 Thread Yunfei Dong
Separate decoder and encoder document for the dts are big difference. Signed-off-by: Yunfei Dong Reviewed-by: Rob Herring --- .../media/mediatek,vcodec-decoder.yaml| 176 + .../media/mediatek,vcodec-encoder.yaml| 187 ++

[PATCH v17, 06/19] media: mtk-vcodec: Add to support multi hardware decode

2021-12-16 Thread Yunfei Dong
There are more than two hardwares for decoder: LAT0, LAT1 and CORE. In order to manage these hardwares, register each hardware as independent platform device for the larbs are different. Each hardware module controls its own information which includes interrupt/power/ clocks/registers. Calling

[PATCH v17, 09/19] media: mtk-vcodec: Add irq interface for multi hardware

2021-12-16 Thread Yunfei Dong
Adds irq interface for multi hardware. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 33 --- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.c | 2 +- .../platform/mtk-vcodec/mtk_vcodec_drv.h | 25

[PATCH v17, 05/19] media: mtk-vcodec: Support MT8192

2021-12-16 Thread Yunfei Dong
From: Yunfei Dong Adds MT8192's compatible "mediatek,mt8192-vcodec-dec". Adds MT8192's device private data mtk_lat_sig_core_pdata. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- .../media/platform/mtk-vcodec/mtk_vcodec_dec.h | 1 +

[PATCH v17, 04/19] media: mtk-vcodec: export decoder pm functions

2021-12-16 Thread Yunfei Dong
When mtk vcodec decoder is build as a module, we need to export mtk-vcodec-dec pm functions to make them visible by the other components. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Benjamin Gaignard ---

[PATCH v17, 01/19] media: mtk-vcodec: Get numbers of register bases from DT

2021-12-16 Thread Yunfei Dong
Different platforms may have different numbers of register bases. Gets the numbers of register bases from dts (sizeof(u32) * 4 bytes for each). Signed-off-by: Yunfei Dong Reviewed-by: Tzung-Bi Shih --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 37 ++- 1 file changed, 28

[PATCH v17, 03/19] media: mtk-vcodec: Refactor vcodec pm interface

2021-12-16 Thread Yunfei Dong
Using the needed params for pm init/release function and remove unused param mtkdev in 'struct mtk_vcodec_pm'. Signed-off-by: Yunfei Dong Reviewed-by: Tzung-Bi Shih Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Steve Cho --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 6 ++---

[PATCH v17, 00/19] Support multi hardware decode using of_platform_populate

2021-12-16 Thread Yunfei Dong
This series adds support for multi hardware decode into mtk-vcodec, by first adding use of_platform_populate to manage each hardware information: interrupt, clock, register bases and power. Secondly add core work queue to deal with core hardware message, at the same time, add msg queue for

[PATCH v17, 02/19] media: mtk-vcodec: Align vcodec wake up interrupt interface

2021-12-16 Thread Yunfei Dong
Vdec and venc can use the same function to wake up interrupt event. Signed-off-by: Yunfei Dong Reviewed-by: Tzung-Bi Shih Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Steve Cho --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 9 +

RE: [PATCH v8 11/16] drm/i915/gem: Use to_gt() helper for GGTT accesses

2021-12-16 Thread Sundaresan, Sujaritha
-Original Message- From: dri-devel On Behalf Of Andi Shyti Sent: Tuesday, December 14, 2021 11:34 AM To: Intel GFX ; DRI Devel Cc: Winiarski, Michal ; Andi Shyti ; De Marchi, Lucas ; Chris Wilson ; Andi Shyti Subject: [PATCH v8 11/16] drm/i915/gem: Use to_gt() helper for GGTT

[PATCH v2 35/37] drm/tegra: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 33/37] drm/sprd: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 34/37] drm/sti: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 37/37] drm/xen: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 24/37] drm/hyperv: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 36/37] drm/tilcdc: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 15/37] drm/stm: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/stm/drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 32/37] drm/rockchip: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 28/37] drm/mediatek: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 12/37] drm/meson: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/meson/meson_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 19/37] drm/tve200: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas Reviewed-by: Linus Walleij --- (no changes since v1) drivers/gpu/drm/tve200/tve200_drv.c | 2 +- 1 file changed, 1

[PATCH v2 26/37] drm/ingenic: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 17/37] drm/tidss: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/tidss/tidss_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 31/37] drm: rcar-du: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 29/37] drm/msm: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 05/37] drm/malidp: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/arm/malidp_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 23/37] drm/gma500: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 22/37] drm/exynos: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 09/37] drm/hisilicon/kirin: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 30/37] drm/omap: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 27/37] drm/mcde: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 20/37] drm/xlnx: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 14/37] drm/shmobile: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/shmobile/shmob_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 18/37] drm/arc: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/tiny/arcpgu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 21/37] drm/armada: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 25/37] drm/imx: Add support for the nomodeset kernel parameter

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few DRM

[PATCH v2 16/37] drm/sun4i: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 13/37] drm: mxsfb: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 03/37] drm/komeda: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2 11/37] drm/kmb: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/kmb/kmb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 07/37] drm/atmel-hlcdc: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 06/37] drm/aspeed: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 10/37] drm/imx/dcss: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas Reviewed-by: Lucas Stach --- (no changes since v1) drivers/gpu/drm/imx/dcss/dcss-drv.c | 2 +- 1 file changed, 1

[PATCH v2 08/37] drm/fsl-dcu: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 02/37] drm/hisilicon/hibmc: Use drm_module_pci_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific PCI driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 04/37] drm/arm/hdlcd: Use drm_module_platform_driver() to register the driver

2021-12-16 Thread Javier Martinez Canillas
The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 01/37] drm: Add drm_module_{pci, platform}_driver() helper macros

2021-12-16 Thread Javier Martinez Canillas
According to disable Documentation/admin-guide/kernel-parameters.txt, the nomodeset parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the system framebuffer will be available if it was set-up. But only a few

[PATCH v2 00/37] drm: Make drivers to honour the nomodeset parameter

2021-12-16 Thread Javier Martinez Canillas
The nomodeset kernel command line parameter is used to prevent the KMS/DRM drivers to be registered/probed. But only a few drivers implement support for this and most DRM drivers just ignore it. This patch series is a v2 to make DRM drivers to honour nomodeset. It is posted as separate patches to

[PATCH v6] drm/msm/dp: Add sc8180x DP controllers

2021-12-16 Thread Bjorn Andersson
The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Signed-off-by: Bjorn Andersson --- Changes since v5: - Dropped DPU hw catalog change from the patch - Rebased the patch drivers/gpu/drm/msm/dp/dp_display.c | 11 +++ 1 file changed, 11 insertions(+)

[GIT PULL] mediatek drm next for 5.17

2021-12-16 Thread Chun-Kuang Hu
Hi, Dave & Daniel: This includes: 1. Add support for MT8192 2. CMDQ refinement. 3. Miscellaneous clean up and reorder. 4. Set the default value of rotation to DRM_MODE_ROTATE_0 Regards, Chun-Kuang. The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf: Linux 5.16-rc1

[PATCH v2] drm/msm/dp: Only create debugfs for PRIMARY minor

2021-12-16 Thread Bjorn Andersson
dpu_kms_debugfs_init() is invoked for each minor being registered. Most of the files created are unrelated to the minor, so there's no reason to present them per minor. The exception to this is the DisplayPort code, which ends up invoking dp_debug_get() for each minor, each time associate the

[PATCH] drm/i915/guc: Request RP0 before loading firmware

2021-12-16 Thread Vinay Belgaumkar
By default, GT (and GuC) run at RPn. Requesting for RP0 before firmware load can speed up DMA and HuC auth as well. In addition to writing to 0xA008, we also need to enable swreq in 0xA024 so that Punit will pay heed to our request. SLPC will restore the frequency back to RPn after

Re: [Intel-gfx] [PATCH v8 12/16] drm/i915/display: Use to_gt() helper for GGTT accesses

2021-12-16 Thread Sundaresan, Sujaritha
On 12/14/2021 11:33 AM, Andi Shyti wrote: 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ł

Re: [Intel-gfx] [PATCH v8 13/16] drm/i915/gt: Use to_gt() helper for GGTT accesses

2021-12-16 Thread Sundaresan, Sujaritha
On 12/14/2021 11:33 AM, Andi Shyti wrote: 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ł

Re: [Intel-gfx] [PATCH v8 14/16] drm/i915/selftests: Use to_gt() helper for GGTT accesses

2021-12-16 Thread Sundaresan, Sujaritha
On 12/14/2021 11:33 AM, Andi Shyti wrote: 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ł

Re: [PATCH v3] dt-bindings: display: tegra: Convert to json-schema

2021-12-16 Thread Rob Herring
On Thu, Dec 16, 2021 at 03:20:12PM +0100, Thierry Reding wrote: > From: Thierry Reding > > Convert the Tegra host1x controller bindings from the free-form text > format to json-schema. > > This also adds the missing display-hub DT bindings that were not > previously documented. > >

[PATCH v2] drm/cma-helper: Describe what a "contiguous chunk" actually means

2021-12-16 Thread Daniel Thompson
Since it's inception in 2012 it has been understood that the DRM GEM CMA helpers do not depend on CMA as the backend allocator. In fact the first bug fix to ensure the cma-helpers work correctly with an IOMMU backend appeared in 2014. However currently the documentation for drm_gem_cma_create()

Re: [Intel-gfx] [PATCH v8 16/16] drm/i915: Remove unused i915->ggtt

2021-12-16 Thread Sundaresan, Sujaritha
On 12/14/2021 11:33 AM, Andi Shyti wrote: The reference to the GGTT from the private date is not used anymore. Remove it. -Quick spellcheck for "data". Suggested-by: Matt Roper Signed-off-by: Andi Shyti Cc: Michał Winiarski --- drivers/gpu/drm/i915/gt/intel_gt.c| 7 +--

[PATCH] drm/hisilicon/hibmc: Allow to be built if COMPILE_TEST is enabled

2021-12-16 Thread Javier Martinez Canillas
The commit feeb07d0ca5a ("drm/hisilicon/hibmc: Make CONFIG_DRM_HISI_HIBMC depend on ARM64") made the driver Kconfig symbol to depend on ARM64 since it only supports that architecture and loading the module on others would lead to incorrect video modes being used. But it also prevented the driver

Re: [Intel-gfx] [PATCH] drm/i915/guc: Check for wedged before doing stuff

2021-12-16 Thread John Harrison
On 12/16/2021 00:47, Tvrtko Ursulin wrote: On 15/12/2021 22:45, john.c.harri...@intel.com wrote: From: John Harrison A fault injection probe test hit a BUG_ON in a GuC error path. It showed that the GuC code could potentially attempt to do many things when the device is actually wedged. So,

[pull] amdgpu, amdkfd, radeon drm-next-5.17

2021-12-16 Thread Alex Deucher
Hi Dave, Daniel, More updates for 5.17. The following changes since commit 3c021931023a30316db415044531b116b85e6ebd: drm/amdgpu: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi (2021-12-07 13:13:07 -0500) are available in the Git repository at:

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

2021-12-16 Thread Wang, Zhi A
On 12/12/2021 3:25 PM, Rikard Falkeborn worte: > On Fri, Dec 10, 2021 at 09:00:56AM +, Wang, Zhi A wrote: >> On 12/4/2021 12:55 PM, Rikard Falkeborn wrote: >>> 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

Re: [PATCH] mediatek: Set default value for Panel Orientation connector prop.

2021-12-16 Thread Mark Yacoub
This makes sense. Thanks for pointing that out I wasn't aware of it. I'll take a closer look and try to come up with something better. Thanks Chun-Kuang! On Thu, Dec 16, 2021 at 11:53 AM Chun-Kuang Hu wrote: > > Hi, Mark: > > Mark Yacoub 於 2021年12月16日 週四 上午1:25寫道: > > > > On Wed, Dec 15, 2021

[PATCH] drm/amd/display: fix dereference before NULL check

2021-12-16 Thread José Expósito
The "plane_state" pointer was access before checking if it was NULL. Avoid a possible NULL pointer dereference by accessing the plane address after the check. Addresses-Coverity-ID: 1474582 ("Dereference before null check") Fixes: 3f68c01be9a22 ("drm/amd/display: add cyan_skillfish display

Re: [PATCH] drm/panfrost: Avoid user size passed to kvmalloc()

2021-12-16 Thread Alyssa Rosenzweig
> This provides an easy method for user > space to trigger the OOM killer (by temporarily allocating large amounts > of kernel memory) panfrost user space has a lot of easy ways to trigger to the OOM killer unfortunately if this is something we want to fix there are a lot more patches coming

Re: [PATCH] drm/panfrost: Avoid user size passed to kvmalloc()

2021-12-16 Thread Rob Herring
On Thu, Dec 16, 2021 at 10:16 AM Steven Price wrote: > > panfrost_copy_in_sync() takes the number of fences from user space > (in_sync_count) and used to kvmalloc() an array to hold that number of > fences before processing them. This provides an easy method for user > space to trigger the OOM

[PATCH] drm/cma-helper: Describe what a "contiguous chunk" actually means

2021-12-16 Thread Daniel Thompson
Since it's inception in 2012 it has been understood that the DRM GEM CMA helpers do not depend on CMA as the backend allocator. In fact the first bug fix to ensure the cma-helpers work correctly with an IOMMU backend appeared in 2014. However currently the documentation for drm_gem_cma_create()

Re: [PATCH] drm/vkms: set plane modifiers

2021-12-16 Thread José Expósito
On Wed, Dec 15, 2021 at 05:23:10PM +, Simon Ser wrote: > You'll need to set the format_mod_supported hook as well, otherwise the kernel > will expose a bogus IN_FORMATS prop with one modifier and zero formats. Hi Simon, Thank you very much for reviewing this patch, I just started learning

[PATCH v2 2/2] drm/vkms: set plane modifiers

2021-12-16 Thread José Expósito
Where no modifiers are exposed, usually linear modifier is assumed. However, userspace code is starting to expect IN_FORMATS even when the only supported modifiers are linear [1]. To avoid possible issues, explicitly set the DRM_FORMAT_MOD_LINEAR modifier. [1]

[PATCH v2 1/2] drm/vkms: add function to get plane formats

2021-12-16 Thread José Expósito
Move the logic to get the plane formats depending on the plane type to its own function. Refactor, no functional changes. Signed-off-by: José Expósito --- drivers/gpu/drm/vkms/vkms_plane.c | 37 --- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git

Re: [PATCH] mediatek: Set default value for Panel Orientation connector prop.

2021-12-16 Thread Chun-Kuang Hu
Hi, Mark: Mark Yacoub 於 2021年12月16日 週四 上午1:25寫道: > > On Wed, Dec 15, 2021 at 11:14 AM Chun-Kuang Hu > wrote: > > > > Hi, Mark: > > > > Mark Yacoub 於 2021年12月14日 週二 下午11:13寫道: > > > > > > Hey CK, can we have this merged? > > > Thank you! > > > > > > On Mon, Oct 25, 2021 at 9:13 PM Sean Paul

Re: [PATCH] dt-bindings: display: bridge: document Toshiba TC358768 cells and panel node

2021-12-16 Thread Dmitry Osipenko
16.12.2021 18:13, Rob Herring пишет: > On Wed, Dec 15, 2021 at 9:38 AM David Heidelberg wrote: >> >> Properties #address-cells and #size-cells are valid. >> The bridge node can also contains panel node. >> >> Signed-off-by: David Heidelberg >> --- >>

[PATCH] drm/panfrost: Avoid user size passed to kvmalloc()

2021-12-16 Thread Steven Price
panfrost_copy_in_sync() takes the number of fences from user space (in_sync_count) and used to kvmalloc() an array to hold that number of fences before processing them. This provides an easy method for user space to trigger the OOM killer (by temporarily allocating large amounts of kernel memory)

Re: [PATCH 53/60] drm/repaper: Add support for the nomodeset kernel parameter

2021-12-16 Thread Noralf Trønnes
Den 15.12.2021 02.00, skrev Javier Martinez Canillas: > According to disable Documentation/admin-guide/kernel-parameters.txt, this > parameter can be used to disable kernel modesetting. > > DRM drivers will not perform display-mode changes or accelerated rendering > and only the systewm system

Re: [PATCH 52/60] drm/mi0283qt: Add support for the nomodeset kernel parameter

2021-12-16 Thread Noralf Trønnes
Den 15.12.2021 02.00, skrev Javier Martinez Canillas: > According to disable Documentation/admin-guide/kernel-parameters.txt, this > parameter can be used to disable kernel modesetting. > > DRM drivers will not perform display-mode changes or accelerated rendering > and only the systewm system

Re: [PATCH 11/60] drm/gud: Add support for the nomodeset kernel parameter

2021-12-16 Thread Noralf Trønnes
Den 16.12.2021 09.20, skrev Thomas Zimmermann: > Hi > > Am 15.12.21 um 22:37 schrieb Noralf Trønnes: >> >> >> Den 15.12.2021 01.59, skrev Javier Martinez Canillas: >>> According to disable Documentation/admin-guide/kernel-parameters.txt, >>> this >>> parameter can be used to disable kernel

Re: [PATCH v11 0/8] MIPS: JZ4780 and CI20 HDMI

2021-12-16 Thread H. Nikolaus Schaller
Hi Paul and Thomas, thanks for already applying some of the patches of this series! > Am 16.12.2021 um 16:24 schrieb Paul Cercueil : > > Hi, > > Patches 1 and 2 added to drm-misc-next. > > I'll pick the rest when the regulator situation is sorted out. > I had started working on the regulator

[PATCH v4 3/3] drm/i915/migrate: add acceleration support for DG2

2021-12-16 Thread Matthew Auld
This is all kinds of awkward since we now have to contend with using 64K GTT pages when mapping anything in LMEM(including the page-tables themselves). v2(Ram) - Document the ppGTT layout and add a better description for the different windows. Signed-off-by: Matthew Auld Cc: Thomas

[PATCH v4 2/3] drm/i915/gtt: add xehpsdv_ppgtt_insert_entry

2021-12-16 Thread Matthew Auld
If this is LMEM then we get a 32 entry PT, with each PTE pointing to some 64K block of memory, otherwise it's just the usual 512 entry PT. This very much assumes the caller knows what they are doing. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C Reviewed-by: Ramalingam C

[PATCH v4 1/3] drm/i915/gtt: allow overriding the pt alignment

2021-12-16 Thread Matthew Auld
On some platforms we have alignment restrictions when accessing LMEM from the GTT. In the next few patches we need to be able to modify the page-tables directly via the GTT itself. Suggested-by: Ramalingam C Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Ramalingam C Reviewed-by:

[PATCH v4 0/3] DG2 accelerated migration/clearing support

2021-12-16 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

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

2021-12-16 Thread Thierry Reding
On Sat, Dec 04, 2021 at 05:37:16PM +0300, Dmitry Osipenko wrote: > 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 >

  1   2   3   >