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

2021-11-10 Thread H. Nikolaus Schaller
PATCH V6 2021-11-10 20:43:33: - changed CONFIG_DRM_INGENIC_DW_HDMI to "m" (by h...@goldelico.com) - made ingenic-dw-hdmi an independent platform driver which can be compiled as module and removed error patch fixes for IPU (suggested by p...@crapouillou.net) - moved assigned-clocks from jz4780.dt

[PATCH v6 7/8] MIPS: defconfig: CI20: configure for DRM_DW_HDMI_JZ4780

2021-11-10 Thread H. Nikolaus Schaller
Enable CONFIG options as modules. Signed-off-by: Ezequiel Garcia Signed-off-by: H. Nikolaus Schaller --- arch/mips/configs/ci20_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig index ab7ebb0668340..cc69b21585

[PATCH v6 3/8] dt-bindings: display: Add ingenic, jz4780-dw-hdmi DT Schema

2021-11-10 Thread H. Nikolaus Schaller
From: Sam Ravnborg Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. Based on .txt binding from Zubair Lutfullah Kakakhel We also add add generic ddc-i2c-bus to synopsys,dw-hdmi.yaml Signed-off-by: Sam Ravnborg Signed-off-by: H. Nikolaus Schaller Cc: Rob Herring Cc: devicet...@

[PATCH v6 4/8] drm/ingenic: Add dw-hdmi driver for jz4780

2021-11-10 Thread H. Nikolaus Schaller
From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Signed-off-by: Paul Boddie Signed-off-by: Ezequiel Garcia Signed-off-by: H. Nikolaus Schaller --- drivers/

[PATCH v6 6/8] MIPS: DTS: CI20: Add DT nodes for HDMI setup

2021-11-10 Thread H. Nikolaus Schaller
From: Paul Boddie We need to hook up * HDMI connector * HDMI power regulator * JZ4780_CLK_HDMI @ 27 MHz * DDC pinmux * HDMI and LCDC endpoint connections Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 73 +++--

[PATCH v6 5/8] MIPS: DTS: jz4780: Account for Synopsys HDMI driver and LCD controllers

2021-11-10 Thread H. Nikolaus Schaller
From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/jz4780.dtsi |

[PATCH v6 8/8] [RFC] MIPS: DTS: Ingenic: adjust register size to available registers

2021-11-10 Thread H. Nikolaus Schaller
After getting the regmap size from the device tree we should reduce the ranges to the really available registers. This allows to read only existing registers from the debug fs and makes the regmap check out-of-bounds access. For the jz4780 we have done this already. Suggested-for: Paul Cercueil

Re: [PATCH v6 2/7] dt-bindings: mediatek, dp: Add Display Port binding

2021-11-10 Thread Rob Herring
On Wed, 10 Nov 2021 14:06:18 +0100, Guillaume Ranquet wrote: > From: Markus Schneider-Pargmann > > This controller is present on several mediatek hardware. Currently > mt8195 and mt8395 have this controller without a functional difference, > so only one compatible field is added. > > The control

Re: [PATCH v3 1/5] dt-bindings: timer: Update maintainers for st,stm32-timer

2021-11-10 Thread Rob Herring
On Wed, 10 Nov 2021 16:01:40 +0100, patrice.chot...@foss.st.com wrote: > From: Patrice Chotard > > Benjamin has left the company, add Fabrice and myself as maintainers. > > Signed-off-by: Patrice Chotard > --- > Documentation/devicetree/bindings/timer/st,stm32-timer.yaml | 3 ++- > 1 file chan

Re: printk deadlock due to double lock attempt on current CPU's runqueue

2021-11-10 Thread Sultan Alsawaf
On Wed, Nov 10, 2021 at 10:00:35AM +0100, Vincent Guittot wrote: > Is it the same SCHED_WARN_ON(rq->tmp_alone_branch != > &rq->leaf_cfs_rq_list); that generates the deadlock on v5.15 too ? > > one remaining tmp_alone_branch warning has been fixed in v5.15 with > 2630cde26711 ("sched/fair: Add ance

Re: [PATCH v3 3/5] dt-bindings: media: Update maintainers for st,stm32-cec.yaml

2021-11-10 Thread Rob Herring
On Wed, 10 Nov 2021 16:01:42 +0100, patrice.chot...@foss.st.com wrote: > From: Patrice Chotard > > Benjamin has left the company, remove his name from maintainers. > > Signed-off-by: Patrice Chotard > --- > Documentation/devicetree/bindings/media/st,stm32-cec.yaml | 1 - > 1 file changed, 1 de

Re: [PATCH v3 4/5] dt-bindings: media: Update maintainers for st,stm32-hwspinlock.yaml

2021-11-10 Thread Rob Herring
On Wed, 10 Nov 2021 16:01:43 +0100, patrice.chot...@foss.st.com wrote: > From: Patrice Chotard > > Benjamin has left the company, remove his name from maintainers. > > Signed-off-by: Patrice Chotard > --- > .../devicetree/bindings/hwlock/st,stm32-hwspinlock.yaml | 1 - > 1 file change

Re: [PATCH v3 5/5] dt-bindings: treewide: Update @st.com email address to @foss.st.com

2021-11-10 Thread Rob Herring
On Wed, 10 Nov 2021 16:01:44 +0100, patrice.chot...@foss.st.com wrote: > From: Patrice Chotard > > Not all @st.com email address are concerned, only people who have > a specific @foss.st.com email will see their entry updated. > For some people, who left the company, remove their email. > > Cc:

Re: [PATCH v3 2/5] dt-bindings: mfd: timers: Update maintainers for st,stm32-timers

2021-11-10 Thread Rob Herring
On Wed, 10 Nov 2021 16:01:41 +0100, patrice.chot...@foss.st.com wrote: > From: Patrice Chotard > > Benjamin has left the company, remove his name from maintainers. > > Signed-off-by: Patrice Chotard > --- > Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml | 1 - > 1 file changed, 1 d

Re: printk deadlock due to double lock attempt on current CPU's runqueue

2021-11-10 Thread Sultan Alsawaf
On Wed, Nov 10, 2021 at 11:13:37AM +0106, John Ogness wrote: > Even after we introduce kthread printers, there will still be situations > where direct printing is used: booting (before kthreads exist) and > shutdown/suspend/crash situations, when the kthreads may not be > active. Although I'm unaw

[PATCH v3 0/3] Update VMware maintainer entries

2021-11-10 Thread Srivatsa S. Bhat
This series updates a few maintainer entries for VMware-maintained subsystems and cleans up references to VMware's private mailing lists to make it clear that they are effectively email-aliases to reach out to reviewers. Changes from v1->v3: - Add Zack as the named maintainer for vmmouse driver -

[PATCH v3 3/3] MAINTAINERS: Mark VMware mailing list entries as email aliases

2021-11-10 Thread Srivatsa S. Bhat
From: Srivatsa S. Bhat (VMware) VMware mailing lists in the MAINTAINERS file are private lists meant for VMware-internal review/notification for patches to the respective subsystems. Anyone can post to these addresses, but there is no public read access like open mailing lists, which makes them m

Re: [PATCH] drm: bridge: dw-hdmi: Fix RGB to YUV color space conversion

2021-11-10 Thread Jernej Škrabec
Hi Alex, Dne sobota, 06. november 2021 ob 14:00:44 CET je Alex Bee napisal(a): > As per CEA-861 quantization range is always limited in case of YUV > output - indepentently which CEA mode it is or if it is an DMT mode. > > This is already correctly setup in HDMI AVI inforame, but we always do > a

Re: [PATCH] drm: bridge: dw-hdmi: Fix RGB to YUV color space conversion

2021-11-10 Thread Jernej Škrabec
Dne sreda, 10. november 2021 ob 21:20:46 CET je Jernej Škrabec napisal(a): > Hi Alex, > > Dne sobota, 06. november 2021 ob 14:00:44 CET je Alex Bee napisal(a): > > As per CEA-861 quantization range is always limited in case of YUV > > output - indepentently which CEA mode it is or if it is an DMT

[PATCH] drm/radeon: correct indentation

2021-11-10 Thread Xu Wang
Correct indentation in radeon_driver_load_kms. Signed-off-by: Xu Wang --- drivers/gpu/drm/radeon/radeon_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 482fb0ae6cb5..7afe28408085 100644 ---

[PATCH] drm/bridge/tc358775: Fix for dual-link LVDS

2021-11-10 Thread Jiri Vanek
Fixed wrong register shift for single/dual link LVDS output. Signed-off-by: Jiri Vanek --- drivers/gpu/drm/bridge/tc358775.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index 2272adcc5b4a..1d6ec1baeff2

[PATCH] drm/v3d: pass null pointers using NULL

2021-11-10 Thread Colin Ian King
There are a couple of calls that are passing null pointers as integer zeros rather than NULL. Fix this by using NULL instead. Fixes: 07c2a41658c4 ("drm/v3d: alloc and init job in one shot") Signed-off-by: Colin Ian King --- drivers/gpu/drm/v3d/v3d_gem.c | 4 ++-- 1 file changed, 2 insertions(+),

Re: [Intel-gfx] [PATCH 1/1] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-10 Thread Rodrigo Vivi
On Wed, Nov 10, 2021 at 01:46:46PM +0200, Ville Syrjälä wrote: > On Wed, Nov 10, 2021 at 10:59:26AM +0530, Tilak Tangudu wrote: > > Enable runtime pm autosuspend by default for gen12 and > > later versions. > > > > Signed-off-by: Tilak Tangudu > > --- > > drivers/gpu/drm/i915/intel_runtime_pm.c

[pull] amdgpu, amdkfd drm-fixes-5.16

2021-11-10 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 5.16. The following changes since commit 78469728809b8604dc37ae4e6b12ae12decac5be: drm/amd/display: 3.2.160 (2021-11-03 12:32:34 -0400) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-fixes-5.16-2021-11-10 for

Re: linux-next: manual merge of the char-misc tree with the drm-intel tree

2021-11-10 Thread Stephen Rothwell
Hi all, On Fri, 5 Nov 2021 12:51:22 +1100 Stephen Rothwell wrote: > > On Thu, 28 Oct 2021 18:27:53 +1100 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the char-misc tree got a conflict in: > > > > drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c > > > > between commit: > > > >

Re: [REGRESSION]: drivers/firmware: move x86 Generic System Framebuffers support

2021-11-10 Thread Javier Martinez Canillas
[ adding dri-devel mailing list as Cc ] Hello Ilya, On 11/10/21 21:02, Ilya Trukhanov wrote: > Suspend-to-RAM with elogind under Wayland stopped working in 5.15. > > This occurs with 5.15, 5.15.1 and latest master at > 89d714ab6043bca7356b5c823f5335f5dce1f930. 5.14 and earlier releases work > fi

Re: [PATCH v3 05/10] drm/i915: Prepare for multiple gts

2021-11-10 Thread Andi Shyti
Hi, > > +#define for_each_gt(i915__, id__, gt__) \ > > + for ((id__) = 0; \ > > +(id__) < I915_MAX_TILES; \ > > +(id__)++) \ > > + for_each_if(((gt__) = (i915__)->gts[(id__)])) > > In this patch set, symbol I915_MAX_TILES is introduced. > In a later patch set of this s

Re: [PATCH v3 05/10] drm/i915: Prepare for multiple gts

2021-11-10 Thread Stimson, Dale B
[Redundant sending of this email due to some mail issues] On 2021-10-28 20:28:12, Matt Roper wrote: > From: Tvrtko Ursulin > > Add some basic plumbing to support more than one dynamically allocated > struct intel_gt. Up to four gts are supported in i915->gts[], with slot > zero shadowing the ex

Re: [PATCH v7 19/20] drm/mediatek: modify mediatek-drm for mt8195 multi mmsys support

2021-11-10 Thread Chun-Kuang Hu
Hi, Nancy: Nancy.Lin 於 2021年10月29日 週五 下午3:52寫道: > > MT8195 have two mmsys. Modify drm for MT8195 multi-mmsys support. > The two mmsys (vdosys0 and vdosys1) will bring up two drm drivers, > only one drm driver register as the drm device. > Each drm driver binds its own component. The last bind drm

[RFC PATCH 0/1] drm: selftest: Convert to KUnit

2021-11-10 Thread André Almeida
Hi, This RFC is a preview of the progress we made in the KUnit hackathon[0]. This patch, made by Maíra and Arthur, converts the damage helper test from the original DRM selftest framework to use the KUnit framework. [0] https://groups.google.com/g/kunit-dev/c/YqFR1q2uZvk/m/IbvItSfHBAAJ The IGT p

[RFC PATCH 1/1] drm: selftest: convert drm_damage_helper selftest to KUnit

2021-11-10 Thread André Almeida
From: Maíra Canal Considering the current adoption of the KUnit framework, convert the DRM damage helper selftest to the KUnit API. Co-developed-by: Arthur Grillo Signed-off-by: Arthur Grillo Signed-off-by: Maíra Canal Signed-off-by: André Almeida --- drivers/gpu/drm/Kconfig

Re: [Nouveau] [PATCH] drm/nouveau: hdmigv100.c: fix corrupted HDMI Vendor InfoFrame

2021-11-10 Thread Ben Skeggs
On Thu, 11 Nov 2021 at 01:43, Hans Verkuil wrote: > > gv100_hdmi_ctrl() writes vendor_infoframe.subpack0_high to 0x6f0110, and > then overwrites it with 0. Just drop the overwrite with 0, that's clearly > a mistake. > > Because of this issue the HDMI VIC is 0 instead of 1 in the HDMI Vendor > Info

Re: [Nouveau] [PATCH] drm/nouveau: set RGB quantization range to FULL

2021-11-10 Thread Ben Skeggs
On Thu, 11 Nov 2021 at 01:58, Hans Verkuil wrote: > > The nouveau driver outputs full range RGB, but the AVI InfoFrame just says > 'Default' instead of 'Full'. > > Call drm_hdmi_avi_infoframe_quant_range to fill in the quantization field of > the AVI InfoFrame correctly. Now displays that advertis

Re: [Nouveau] [PATCH] MAINTAINERS: update information for nouveau

2021-11-10 Thread Ben Skeggs
On Wed, 10 Nov 2021 at 23:32, Karol Herbst wrote: > > Some side notes on this. Atm we do want to use gitlab for bug tracking and > merge requests. But due to the nature of the current linux kernel > development, we can only do so for nouveau internal changes. > > Everything else still needs to be

Re: [PATCH v3 3/3] MAINTAINERS: Mark VMware mailing list entries as email aliases

2021-11-10 Thread Jakub Kicinski
On Wed, 10 Nov 2021 12:09:06 -0800 Srivatsa S. Bhat wrote: > DRM DRIVER FOR VMWARE VIRTUAL GPU > -M: "VMware Graphics" > M: Zack Rusin > +R: VMware Graphics Reviewers > L: dri-devel@lists.freedesktop.org > S: Supported > T: git git://anongit.freedesktop.org/drm/drm-misc It'd be

Re: [PATCH v9, 06/19] media: mtk-vcodec: Manage multi hardware information

2021-11-10 Thread yunfei.d...@mediatek.com
Hi Tzung-Bi, Thanks for your suggestion. On Wed, 2021-11-10 at 18:30 +0800, Tzung-Bi Shih wrote: > On Tue, Nov 09, 2021 at 08:50:17PM +0800, Yunfei Dong wrote: > > Manage each hardware information which includes irq/power/clk. > > The hardware includes LAT0, LAT1 and CORE. > > The commit message

Re: [PATCH v9, 06/19] media: mtk-vcodec: Manage multi hardware information

2021-11-10 Thread Chen-Yu Tsai
On Thu, Nov 11, 2021 at 11:49 AM yunfei.d...@mediatek.com wrote: > > Hi Tzung-Bi, > > Thanks for your suggestion. > On Wed, 2021-11-10 at 18:30 +0800, Tzung-Bi Shih wrote: > > On Tue, Nov 09, 2021 at 08:50:17PM +0800, Yunfei Dong wrote: > > > Manage each hardware information which includes irq/pow

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

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

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

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

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

2021-11-10 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 diffe

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

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

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

2021-11-10 Thread Yunfei Dong
Register each hardware as platform device, need to call pm functions to open/close power and clock from module mtk-vcodec-dec, export these functions. Signed-off-by: Yunfei Dong --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/dr

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

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

[PATCH v10, 06/19] media: mtk-vcodec: Manage multi hardware information

2021-11-10 Thread Yunfei Dong
Register each hardware(subdev) as platform device used to manage each hardware information which includes irq/power/clk. The hardware includes LAT0, LAT1 and CORE. And call of_platform_populate in main device. Using subdev_bitmap to record whether each device is register done. Then check whether a

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

2021-11-10 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 + .../platform/mtk-vcodec

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

2021-11-10 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 --- .../media/platform/mtk-vcodec/mtk_vcodec_dec.h | 1 + .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 4 .../mtk-vcodec/

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

2021-11-10 Thread Yunfei Dong
Adds irq interface for multi hardware. Signed-off-by: Yunfei Dong --- .../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 ++ .../platform/mtk-vcodec/mtk_vcod

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

2021-11-10 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 --- drivers/media/platform/mtk-vcodec/Makefile| 1 + .../plat

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

2021-11-10 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 ++-- dri

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

2021-11-10 Thread Yunfei Dong
Generalizes power and clock on/off interfaces to support different hardware. Signed-off-by: Yunfei Dong --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 6 +- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.c | 2 +- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.h | 4 + .../platform/mtk-vcodec/

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

2021-11-10 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 --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 16 +++- .../pla

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

2021-11-10 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 nod

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

2021-11-10 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 --- .../media/platform/mtk-vcodec/vdec_vpu_if.c

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

2021-11-10 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 .../media/platform/mtk

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

2021-11-10 Thread Yunfei Dong
Adds decoder dt-bindings for mt8192. Signed-off-by: Yunfei Dong --- .../media/mediatek,vcodec-subdev-decoder.yaml | 261 ++ 1 file changed, 261 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml diff --git a/Documentat

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

2021-11-10 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 v10, 18/19] media: mtk-vcodec: Remove mtk_vcodec_release_dec_pm

2021-11-10 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. Si

Re: [PATCH v3 02/10] drm/i915: split general MMIO setup from per-GT uncore init

2021-11-10 Thread Matt Roper
On Thu, Oct 28, 2021 at 08:28:09PM -0700, Matt Roper wrote: > From: Daniele Ceraolo Spurio > > In coming patches we'll be doing the actual tile initialization between > these two uncore init phases. > > Signed-off-by: Daniele Ceraolo Spurio > Signed-off-by: Matt Roper > Reviewed-by: Lucas De M

Re: [PATCH v3 3/3] MAINTAINERS: Mark VMware mailing list entries as email aliases

2021-11-10 Thread Joe Perches
On Wed, 2021-11-10 at 17:39 -0800, Jakub Kicinski wrote: > On Wed, 10 Nov 2021 12:09:06 -0800 Srivatsa S. Bhat wrote: > > DRM DRIVER FOR VMWARE VIRTUAL GPU > > -M: "VMware Graphics" > > M: Zack Rusin > > +R: VMware Graphics Reviewers > > L: dri-devel@lists.freedesktop.org > > S: Supported >

[PATCH 0/6] drm/i915/ttm: Async migration

2021-11-10 Thread Thomas Hellström
This patch series deals with async migration and async vram management. It still leaves an important part out, which is async unbinding which will reduce latency further, at least when trying to migrate already active objects. Patches 1/6 and 2/6 deal with accessing and waiting for the TTM moving

[PATCH 1/6] drm/i915: Add functions to set/get moving fence

2021-11-10 Thread Thomas Hellström
From: Maarten Lankhorst We want to get rid of i915_vma tracking to simplify the code and lifetimes. Add a way to set/put the moving fence, in preparation for removing the tracking. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/gem/i915_gem_object.c | 37 ++ driv

[PATCH 2/6] drm/i915: Add support for asynchronous moving fence waiting

2021-11-10 Thread Thomas Hellström
From: Maarten Lankhorst For now, we will only allow async migration when TTM is used, so the paths we care about are related to TTM. The mmap path is handled by having the fence in ttm_bo->moving, when pinning, the binding only becomes available after the moving fence is signaled, and pinning a

[PATCH 3/6] drm/i915/ttm: Move the i915_gem_obj_copy_ttm() function

2021-11-10 Thread Thomas Hellström
Move the i915_gem_obj_copy_ttm() function to i915_gem_ttm_move.h. This will help keep a number of functions static when introducing async moves. Signed-off-by: Thomas Hellström --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 47 --- drivers/gpu/drm/i915/gem/i915_gem_ttm.h |

[PATCH 5/6] drm/i915/ttm: Implement asynchronous TTM moves

2021-11-10 Thread Thomas Hellström
Don't wait sync while migrating, but rather make the GPU blit await the dependencies and add a moving fence to the object. This also enables asynchronous VRAM management in that on eviction, rather than waiting for the moving fence to expire before freeing VRAM, it is freed immediately and the fen

[PATCH 4/6] drm/i915/ttm: Break refcounting loops at device region unref time

2021-11-10 Thread Thomas Hellström
There is an interesting refcounting loop: struct intel_memory_region has a struct ttm_resource_manager, ttm_resource_manager->move may hold a reference to i915_request, i915_request may hold a reference to intel_context, intel_context may hold a reference to drm_i915_gem_object, drm_i915_gem_object

[PATCH 6/6] drm/i915/ttm: Update i915_gem_obj_copy_ttm() to be asynchronous

2021-11-10 Thread Thomas Hellström
Update the copy function i915_gem_obj_copy_ttm() to be asynchronous for future users and update the only current user to sync the objects as needed after this function. Signed-off-by: Thomas Hellström --- drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c | 40 ++-- drivers/gpu/drm/i91

Re: [REGRESSION]: drivers/firmware: move x86 Generic System Framebuffers support

2021-11-10 Thread Javier Martinez Canillas
Hello Ilya, On 11/11/21 01:45, Ilya Trukhanov wrote: [snip] >> Can you please share the kernel boot log for any of these cases too ? > Thanks a lot for the testing and providing the info! >> This is just a guess though. Would be good if you could test following cases: >> >> 1) CONFIG_FB_EFI n

Re: [REGRESSION]: drivers/firmware: move x86 Generic System Framebuffers support

2021-11-10 Thread Ilya Trukhanov
On Thu, Nov 11, 2021 at 12:07:19AM +0100, Javier Martinez Canillas wrote: > [ adding dri-devel mailing list as Cc ] > > Hello Ilya, > > On 11/10/21 21:02, Ilya Trukhanov wrote: > > Suspend-to-RAM with elogind under Wayland stopped working in 5.15. > > > > This occurs with 5.15, 5.15.1 and latest

[PATCH] drm/amdgpu: fix set scaling mode Full/Full aspect/Center not works on vga and dvi connectors

2021-11-10 Thread hongao
amdgpu_connector_vga_get_modes missed function amdgpu_get_native_mode which assign amdgpu_encoder->native_mode with *preferred_mode result in amdgpu_encoder->native_mode.clock always be 0. That will cause amdgpu_connector_set_property returned early on: if ((rmx_type != DRM_MODE_SCALE_NONE) &&

<    1   2