RE: [RFC 0/7] drm/virtio: Import scanout buffers from other devices

2024-05-23 Thread Kasireddy, Vivek
Hi Gurchetan, Thank you for taking a look at this patch series! On Thu, Mar 28, 2024 at 2:01 AM Vivek Kasireddy mailto:vivek.kasire...@intel.com>> wrote: Having virtio-gpu import scanout buffers (via prime) from other devices means that we'd be adding a head to headless GPUs assigned to a Gues

Re: [PATCH v2 1/6] drm/ci: uprev mesa version

2024-05-23 Thread Vignesh Raman
Hi Dmitry, On 23/05/24 15:29, Dmitry Baryshkov wrote: On Thu, 23 May 2024 at 09:07, Vignesh Raman wrote: Hi Dmitry, On 20/05/24 16:13, Dmitry Baryshkov wrote: On Fri, May 17, 2024 at 02:54:57PM +0530, Vignesh Raman wrote: zlib.net is not allowing tarball download anymore and results in bel

Re: [PATCH v4 04/15] dt-bindings: display: mediatek: dither: add compatible for MT8365 SoC

2024-05-23 Thread 胡俊光

Re: [PATCH v4 03/15] dt-bindings: display: mediatek: color: add compatible for MT8365 SoC

2024-05-23 Thread 胡俊光

Re: [PATCH v4 02/15] dt-bindings: display: mediatek: ccorr: add compatible for MT8365 SoC

2024-05-23 Thread 胡俊光

Re:[PATCH v2 1/3] vop2: Add clock resets support

2024-05-23 Thread Andy Yan
Hi Detlev, At 2024-05-23 02:57:48, "Detlev Casanova" wrote: >At the end of initialization, each VP clock needs to be reset before >they can be used. > >Failing to do so can put the VOP in an undefined state where the >generated HDMI signal is either lost or not matching the selected mode. Woul

[PATCH] drm/bochs: Add check for drm_simple_display_pipe_init

2024-05-23 Thread Chen Ni
Add check for the return value of drm_simple_display_pipe_init() and return the error if it fails in order to catch the error. Signed-off-by: Chen Ni --- drivers/gpu/drm/tiny/bochs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu

Re: [PATCH v4 01/15] dt-bindings: display: mediatek: aal: add compatible for MT8365 SoC

2024-05-23 Thread 胡俊光

[PATCH] drm/amd/display: clean up some inconsistent indenting

2024-05-23 Thread Jiapeng Chong
No functional modification involved. drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:5200 dc_power_down_on_boot() warn: inconsistent indenting. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9166 Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/

Re: [RFC] drm/print: Introduce drm_line_printer

2024-05-23 Thread John Harrison
On 5/23/2024 16:54, Daniele Ceraolo Spurio wrote: Forwarded Message Subject:[RFC] drm/print: Introduce drm_line_printer Date: Tue, 14 May 2024 16:56:31 +0200 From: Michal Wajdeczko To: dri-devel@lists.freedesktop.org This drm printer wrapper can be used to in

[PATCH v2] drm/i915: Increase FLR timeout from 3s to 9s

2024-05-23 Thread Andi Shyti
Following the guidelines it takes 3 seconds to perform an FLR reset. Let's give it a bit more slack because this time can change depending on the platform and on the firmware Signed-off-by: Andi Shyti --- Hi, In this second version I removed patch 2 that was ignoring the FLR reset timeouts, unti

Re: [PATCH] drm/i915: 2 GiB of relocations ought to be enough for anybody*

2024-05-23 Thread Kees Cook
On Tue, May 21, 2024 at 11:12:01AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Kernel test robot reports i915 can hit a warn in kvmalloc_node which has > a purpose of dissalowing crazy size kernel allocations. This was added in > 7661809d493b ("mm: don't allow oversized kvmalloc() cal

[PATCH v2] drm: xlnx: zynqmp_dpsub: Enable plane in atomic update

2024-05-23 Thread Anatoliy Klymenko
Unconditionally enable the DPSUB layer in the corresponding atomic plane update callback. Setting the new display mode may require disabling and re-enabling the CRTC. This effectively resets DPSUB to the default state with all layers disabled. The original implementation of the plane atomic update

Re: [PATCH RFC] drm/panel-edp: add fat warning against adding new panel compatibles

2024-05-23 Thread Dmitry Baryshkov
On Thu, May 23, 2024 at 08:36:39AM -0700, Doug Anderson wrote: > Hi, > > On Wed, May 22, 2024 at 3:07 PM Dmitry Baryshkov > wrote: > > > > Add a fat warning against adding new panel compatibles to the panel-edp > > driver. All new users of the eDP panels are supposed to use the generic > > "edp-p

RE: [PATCH v14 0/8] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios

2024-05-23 Thread Kasireddy, Vivek
Hi Gerd, Dave, > > On Thu, May 23, 2024 at 01:13:11PM GMT, Dave Airlie wrote: > > Hey > > > > Gerd, do you have any time to look at this series again, I think at > > v14 we should probably consider landing it. > > Phew. Didn't follow recent MM changes closely, don't know much about > folios bey

Re: [RFC 0/7] drm/virtio: Import scanout buffers from other devices

2024-05-23 Thread Gurchetan Singh
On Thu, Mar 28, 2024 at 2:01 AM Vivek Kasireddy wrote: > Having virtio-gpu import scanout buffers (via prime) from other > devices means that we'd be adding a head to headless GPUs assigned > to a Guest VM or additional heads to regular GPU devices that are > passthrough'd to the Guest. In these

[PATCH v10 7/8] x86/vmware: Remove legacy VMWARE_HYPERCALL* macros

2024-05-23 Thread Alexey Makhalov
No more direct use of these macros should be allowed. vmware_hypercallX api still use new implementation of VMWARE_HYPERCALL macro internally, but it is not exposed outside of the vmware.h. Signed-off-by: Alexey Makhalov --- arch/x86/include/asm/vmware.h | 26 -- 1 file c

[PATCH v10 8/8] x86/vmware: Add TDX hypercall support

2024-05-23 Thread Alexey Makhalov
VMware hypercalls use I/O port, VMCALL or VMMCALL instructions. Add __tdx_hypercall path to support TDX guests. No change in high bandwidth hypercalls, as only low bandwidth ones are supported for TDX guests. Co-developed-by: Tim Merrifield Signed-off-by: Tim Merrifield Signed-off-by: Alexey Ma

[PATCH v10 6/8] x86/vmware: Correct macro names

2024-05-23 Thread Alexey Makhalov
VCPU_RESERVED and LEGACY_X2APIC are not VMware hypercall commands. These are bits in return value of VMWARE_CMD_GETVCPU_INFO command. Change VMWARE_CMD_ prefix to GETVCPU_INFO_ one. And move bit-shift operation to the macro body. Signed-off-by: Alexey Makhalov --- arch/x86/kernel/cpu/vmware.c |

[PATCH v10 4/8] drm/vmwgfx: Use VMware hypercall API

2024-05-23 Thread Alexey Makhalov
Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. Eliminate arch specific code. drivers/gpu/drm/vmwgfx/vmwgfx_msg_arm64.h: implement arm64 variant of vmware_hypercall. And keep it here until introduction of ARM64 VMWare hypervisor interface. Signed-off-by: Alexey Makhalov --- drivers/

[PATCH v10 3/8] input/vmmouse: Use VMware hypercall API

2024-05-23 Thread Alexey Makhalov
Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. Eliminate arch specific code. No functional changes intended. Signed-off-by: Alexey Makhalov --- drivers/input/mouse/vmmouse.c | 76 ++- 1 file changed, 22 insertions(+), 54 deletions(-) diff --git a/dri

[PATCH v10 2/8] ptp/vmware: Use VMware hypercall API

2024-05-23 Thread Alexey Makhalov
Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. Eliminate arch specific code. No functional changes intended. Signed-off-by: Alexey Makhalov --- drivers/ptp/ptp_vmw.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/ptp/ptp_vmw.c b/drivers/ptp/

[PATCH v10 5/8] x86/vmware: Use VMware hypercall API

2024-05-23 Thread Alexey Makhalov
Remove VMWARE_CMD macro and move to vmware_hypercall API. No functional changes intended. Use u32/u64 instead of uint32_t/uint64_t across the file Signed-off-by: Alexey Makhalov --- arch/x86/kernel/cpu/vmware.c | 95 ++-- 1 file changed, 25 insertions(+), 70 dele

[PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-05-23 Thread Alexey Makhalov
Introduce vmware_hypercall family of functions. It is a common implementation to be used by the VMware guest code and virtual device drivers in architecture independent manner. The API consists of vmware_hypercallX and vmware_hypercall_hb_{out,in} set of functions by analogy with KVM hypercall API

[PATCH v10 0/8] VMware hypercalls enhancements

2024-05-23 Thread Alexey Makhalov
VMware hypercalls invocations were all spread out across the kernel implementing same ABI as in-place asm-inline. With encrypted memory and confidential computing it became harder to maintain every changes in these hypercall implementations. Intention of this patchset is to introduce arch independ

Re: [PATCH v4 1/5] clk: sunxi-ng: common: Support minimum and maximum rate

2024-05-23 Thread Måns Rullgård
Måns Rullgård writes: > Frank Oltmanns writes: > >> Hi Måns, >> >> 21.05.2024 15:43:10 Måns Rullgård : >> >>> Frank Oltmanns writes: >>> The Allwinner SoC's typically have an upper and lower limit for their clocks' rates. Up until now, support for that has been implemented separa

[PULL] drm-misc-fixes

2024-05-23 Thread Thomas Zimmermann
Hi Dave, Sima, here's the weekly PR for drm-misc-fixes. There's one important patch included, which fixes a kernel panic that can be triggered from userspace. Best regards Thomas drm-misc-fixes-2024-05-23: Short summary of fixes pull: buddy: - stop using PAGE_SIZE shmem-helper: - avoid kernel

Re: [PATCH 4/4] drm: enable -Wformat-truncation across the subsystem

2024-05-23 Thread Sam Ravnborg
Hi Jani, On Thu, May 23, 2024 at 06:51:09PM +0300, Jani Nikula wrote: > With the -Wformat-truncation warnings fixed, finish the job started in > commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across > the subsystem"), and enable that warning too. > > Signed-off-by: Jani Nikula

Re: [PATCH 1/4] drm/amdgpu: fix -Wformat-truncation warning in amdgpu_gfx_kiq_init_ring()

2024-05-23 Thread Alex Deucher
On Thu, May 23, 2024 at 11:51 AM Jani Nikula wrote: > > Enabling -Wformat-truncation yields the following warning: > > ../drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c: In function > ‘amdgpu_gfx_kiq_init_ring’: > ../drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:332:61: error: ‘%d’ directive > output may be

[PATCH v4 2/2] drm/msm: Extend gpu devcore dumps with pgtbl info

2024-05-23 Thread Rob Clark
From: Rob Clark In the case of iova fault triggered devcore dumps, include additional debug information based on what we think is the current page tables, including the TTBR0 value (which should match what we have in adreno_smmu_fault_info unless things have gone horribly wrong), and the pagetabl

[PATCH v4 1/2] iommu/io-pgtable-arm: Add way to debug pgtable walk

2024-05-23 Thread Rob Clark
From: Rob Clark Add an io-pgtable method to walk the pgtable returning the raw PTEs that would be traversed for a given iova access. Signed-off-by: Rob Clark --- drivers/iommu/io-pgtable-arm.c | 51 -- include/linux/io-pgtable.h | 4 +++ 2 files changed, 46

[PATCH v4 0/2] io-pgtable-arm + drm/msm: Extend iova fault debugging

2024-05-23 Thread Rob Clark
From: Rob Clark This series extends io-pgtable-arm with a method to retrieve the page table entries traversed in the process of address translation, and then beefs up drm/msm gpu devcore dump to include this (and additional info) in the devcore dump. This is a respin of https://patchwork.freedes

[PATCH] drm/print: Add missing [drm] prefix to drm based WARN

2024-05-23 Thread Michal Wajdeczko
All drm_device based logging macros, except those related to WARN, include the [drm] prefix. Fix that. [ ] :00:00.0: this is a warning [ ] :00:00.0: drm_WARN_ON(true) vs [ ] :00:00.0: [drm] this is a warning [ ] :00:00.0: [drm] drm_WARN_ON(true) Signed-off-by: Michal Wajde

Re: [PATCH] drm/xe: remove unused struct 'xe_gt_desc'

2024-05-23 Thread Rodrigo Vivi
On Wed, May 22, 2024 at 06:58:40PM +0100, li...@treblig.org wrote: > From: "Dr. David Alan Gilbert" > > 'xe_gt_desc' is unused since > commit 1e6c20be6c83 ("drm/xe: Drop extra_gts[] declarations and > XE_GT_TYPE_REMOTE"). > > Remove it. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: R

Re: [PATCH 3/4] drm/imx: fix -Wformat-truncation warning in imx_ldb_probe()

2024-05-23 Thread Ville Syrjälä
On Thu, May 23, 2024 at 06:51:08PM +0300, Jani Nikula wrote: > Enabling -Wformat-truncation yields the following warning: > > ../drivers/gpu/drm/imx/ipuv3/imx-ldb.c: In function ‘imx_ldb_probe’: > ../drivers/gpu/drm/imx/ipuv3/imx-ldb.c:658:57: error: ‘_sel’ directive output > may be truncated wri

[PATCH] Revert "drm/amdgpu: init iommu after amdkfd device init"

2024-05-23 Thread Armin Wolf
This reverts commit 56b522f4668167096a50c39446d6263c96219f5f. A user reported that this commit breaks the integrated gpu of his notebook, causing a black screen. He was able to bisect the problematic commit and verified that by reverting it the notebook works again. He also confirmed that kernel 6

Re: [v14,06/28] drm/tests: Add output bpc tests

2024-05-23 Thread Sui Jingfeng
Hi, Maxime I love you patch, yet it generates warnning calltrace. Despite it's just a warning but it can overwhelm when we run kunit tests. Hence, I suggest switch to the drm_atomic_connector_get_property() function. Logs are pasted as below for easier to ready. [ cut here ]-

Re: Kernel 5.15.150 black screen with AMD Raven/Picasso GPU

2024-05-23 Thread Greg KH
On Thu, May 23, 2024 at 05:59:39PM +0200, Armin Wolf wrote: > Am 23.05.24 um 15:13 schrieb Barry Kauler: > > > On Wed, May 22, 2024 at 12:58 AM Armin Wolf wrote: > > > Am 20.05.24 um 18:22 schrieb Alex Deucher: > > > > > > > On Sat, May 18, 2024 at 8:17 PM Armin Wolf wrote: > > > > > Am 17.05.2

Re: Kernel 5.15.150 black screen with AMD Raven/Picasso GPU

2024-05-23 Thread Barry Kauler
On Wed, May 22, 2024 at 12:58 AM Armin Wolf wrote: > > Am 20.05.24 um 18:22 schrieb Alex Deucher: > > > On Sat, May 18, 2024 at 8:17 PM Armin Wolf wrote: > >> Am 17.05.24 um 03:30 schrieb Barry Kauler: > >> > >>> Armin, Yifan, Prike, > >>> I will top-post, so you don't have to scroll down. > >>>

Re: Kernel 5.15.150 black screen with AMD Raven/Picasso GPU

2024-05-23 Thread Armin Wolf
Am 23.05.24 um 15:13 schrieb Barry Kauler: On Wed, May 22, 2024 at 12:58 AM Armin Wolf wrote: Am 20.05.24 um 18:22 schrieb Alex Deucher: On Sat, May 18, 2024 at 8:17 PM Armin Wolf wrote: Am 17.05.24 um 03:30 schrieb Barry Kauler: Armin, Yifan, Prike, I will top-post, so you don't have to

[PATCH 4/4] drm: enable -Wformat-truncation across the subsystem

2024-05-23 Thread Jani Nikula
With the -Wformat-truncation warnings fixed, finish the job started in commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), and enable that warning too. Signed-off-by: Jani Nikula --- Gut feeling says there are more issues, and my configs just don't catch the

[PATCH 3/4] drm/imx: fix -Wformat-truncation warning in imx_ldb_probe()

2024-05-23 Thread Jani Nikula
Enabling -Wformat-truncation yields the following warning: ../drivers/gpu/drm/imx/ipuv3/imx-ldb.c: In function ‘imx_ldb_probe’: ../drivers/gpu/drm/imx/ipuv3/imx-ldb.c:658:57: error: ‘_sel’ directive output may be truncated writing 4 bytes into a region of size between 3 and 13 [-Werror=format-tr

[PATCH 2/4] drm/nouveau: fix -Wformat-truncation warning in nouveau_backlight_init()

2024-05-23 Thread Jani Nikula
Enabling -Wformat-truncation yields the following warning: ../drivers/gpu/drm/nouveau/nouveau_backlight.c: In function ‘nouveau_backlight_init’: ../drivers/gpu/drm/nouveau/nouveau_backlight.c:56:69: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of siz

[PATCH 1/4] drm/amdgpu: fix -Wformat-truncation warning in amdgpu_gfx_kiq_init_ring()

2024-05-23 Thread Jani Nikula
Enabling -Wformat-truncation yields the following warning: ../drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c: In function ‘amdgpu_gfx_kiq_init_ring’: ../drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:332:61: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size bet

[PATCH 0/4] drm: enable -Wformat-truncation

2024-05-23 Thread Jani Nikula
Jani Nikula (4): drm/amdgpu: fix -Wformat-truncation warning in amdgpu_gfx_kiq_init_ring() drm/nouveau: fix -Wformat-truncation warning in nouveau_backlight_init() drm/imx: fix -Wformat-truncation warning in imx_ldb_probe() drm: enable -Wformat-truncation across the subsystem driv

Re: [PATCH RFC] drm/panel-edp: add fat warning against adding new panel compatibles

2024-05-23 Thread Doug Anderson
Hi, On Wed, May 22, 2024 at 3:07 PM Dmitry Baryshkov wrote: > > Add a fat warning against adding new panel compatibles to the panel-edp > driver. All new users of the eDP panels are supposed to use the generic > "edp-panel" compatible device on the AUX bus. The remaining compatibles > are either

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-05-23 Thread Simon Ser
On Thursday, February 29th, 2024 at 11:52, Daniel Vetter wrote: > I think some weston (or whatever compositor you like) config file support > to set a bunch of "really only way to configure is by hand" output > properties would clear the bar here for me. Because that is a feature I > already men

Re: [PATCH v2 3/3] dt-bindings: display: vop2: Add VP clock resets

2024-05-23 Thread Conor Dooley
On Wed, May 22, 2024 at 02:57:50PM -0400, Detlev Casanova wrote: > Add the documentation for VOP2 video ports reset clocks. > One reset can be set per video port. Reviewed-by: Conor Dooley Cheers, Conor. signature.asc Description: PGP signature

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-05-23 Thread Maxime Ripard
Hi, Reviving this thread because I'm not sure what the outcome was. On Thu, Feb 29, 2024 at 11:52:12AM GMT, Daniel Vetter wrote: > > The only thing I'm saying is that this breaks the usual DRM requirements. > > If, as a maintainer, you're fine with breaking the rules and have a good > > motivatio

[linux-next:master] BUILD REGRESSION 3689b0ef08b70e4e03b82ebd37730a03a672853a

2024-05-23 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 3689b0ef08b70e4e03b82ebd37730a03a672853a Add linux-next specific files for 20240523 Unverified Error/Warning (likely false positive, please contact us if interested): drivers/gpu/drm/xe

Re: [PATCH v2] drm/amd/display: Enable colorspace property for MST connectors

2024-05-23 Thread Harry Wentland
On 2024-05-08 17:45, Mario Limonciello wrote: MST colorspace property support was disabled due to a series of warnings that came up when the device was plugged in since the properties weren't made at device creation. Create the properties in advance instead. Suggested-by: Ville Syrjälä Fixes: 6

[PATCH 3/3] drm/amdgpu: drop redundant W=1 warnings from Makefile

2024-05-23 Thread Jani Nikula
Since commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), most of the extra warnings in the driver Makefile are redundant. Remove them. Note that -Wmissing-declarations and -Wmissing-prototypes are always enabled by default in scripts/Makefile.extrawarn. Signe

[PATCH 2/3] drm/xe: drop redundant W=1 warnings from Makefile

2024-05-23 Thread Jani Nikula
Since commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), most of the extra warnings in the driver Makefile are redundant. Remove them. Note that -Wmissing-declarations and -Wmissing-prototypes are always enabled by default in scripts/Makefile.extrawarn. Signe

[PATCH 1/3] drm/i915: drop redundant W=1 warnings from Makefile

2024-05-23 Thread Jani Nikula
Since commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), most of the extra warnings in the driver Makefile are redundant. Remove them. Note that -Wmissing-declarations and -Wmissing-prototypes are always enabled by default in scripts/Makefile.extrawarn. Signe

[PATCH 0/3] amd, i915, xe: drop redundant warnings from driver makefiles

2024-05-23 Thread Jani Nikula
I'm sending these together, as they're related, and almost identical, but I expect them to be merged individually to each driver. BR, Jani. Jani Nikula (3): drm/i915: drop redundant W=1 warnings from Makefile drm/xe: drop redundant W=1 warnings from Makefile drm/amdgpu: drop redundant W=1 w

Re: [PATCH v6, 23/24] media: mediatek: vcodec: support av1 svp decoder for mt8188

2024-05-23 Thread Andrzej Pietrasiewicz
Hi Yunfei and Xiaoyong, W dniu 16.05.2024 o 14:21, Yunfei Dong pisze: From: Xiaoyong Lu Change av1 driver to support secure video playback(svp) for mt8188. Need to map shared memory with optee interface and wait interrupt in optee-os. Signed-off-by: Xiaoyong Lu Signed-off-by: Yunfei Dong --

Re: [PATCH 1/3] kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing

2024-05-23 Thread Daniel Vetter
On Mon, Mar 04, 2024 at 06:45:33PM -0300, Helen Koike wrote: > Hi Linus, > > Thank you for your reply and valuable inputs. > > On 01/03/2024 17:10, Linus Torvalds wrote: > > On Fri, 1 Mar 2024 at 02:27, Nikolai Kondrashov wrote: > > > > > > I agree, it's hard to imagine even a simple majority a

[PATCH 3/5] drm/panic: Add a set_pixel() callback to drm_scanout_buffer

2024-05-23 Thread Jocelyn Falempe
This allows drivers to draw the pixel, and handle tiling, or specific color formats. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 120 +++- include/drm/drm_panic.h | 9 +++ 2 files changed, 85 insertions(+), 44 deletions(-) diff --git a/

[PATCH 5/5] drm/nouveau: Add drm_panic support for nv50+

2024-05-23 Thread Jocelyn Falempe
Add drm_panic support, for nv50+ cards. It's enough to get the panic screen while running Gnome/Wayland on a GTX 1650. It doesn't support multi-plane or compressed format. Support for other formats and older cards will come later. Tiling is only tested on GTX1650, and might be wrong for other cards

[PATCH 4/5] drm/panic: add a private pointer to drm_scanout_buffer

2024-05-23 Thread Jocelyn Falempe
So you can pass a parameter to the set_pixel() callback. Signed-off-by: Jocelyn Falempe --- include/drm/drm_panic.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h index 73bb3f3d9ed9..f7c32d64af5f 100644 --- a/include/drm/drm_panic.h ++

[PATCH 2/5] drm/panic: only draw the foreground color in drm_panic_blit()

2024-05-23 Thread Jocelyn Falempe
The whole framebuffer is cleared, so it's useless to rewrite the background colored pixels. It allows to simplify the drawing functions, and prepare the work for the set_pixel() callback. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 63 +++-- 1

[PATCH 1/5] drm/panic: Add ABGR2101010 support

2024-05-23 Thread Jocelyn Falempe
Add support for ABGR2101010, used by the nouveau driver. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/drm_panic.c b/drivers/gpu/drm/drm_panic.c index 7ece67086cec..78fdecfede84 100644 --- a/drivers/

[PATCH 0/5] drm/nouveau: Add drm_panic support for nv50+

2024-05-23 Thread Jocelyn Falempe
This series adds basic drm_panic support for nouveau. Patches 1-4 Add missing bits in drm_panic (ABGR2101010, set_pixel() for tiling, ...) Patch 5 registers nouveau to drm_panic, and handle tiling. I've tested on a GTX1650, while running Gnome/Wayland desktop. I didn't find documentation about nV

Re: [RESEND 0/6] drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups

2024-05-23 Thread Jani Nikula
On Mon, 13 May 2024, Alex Deucher wrote: > On Mon, May 13, 2024 at 8:20 AM Jani Nikula wrote: >> >> On Fri, 10 May 2024, Alex Deucher wrote: >> > On Fri, May 10, 2024 at 11:17 AM Jani Nikula wrote: >> > Series is: >> > Acked-by: Alex Deucher >> >> Thanks, do you want to pick these up via your

Re: [PATCH v9 3/8] x86/vmware: Introduce VMware hypercall API

2024-05-23 Thread Simon Horman
[ resending as I mangled the previous attempt , sorry ] + Joe Perches On Wed, May 22, 2024 at 04:39:57PM -0700, Alexey Makhalov wrote: > Hi Simon, apologize for long delay > > On 5/11/24 8:02 AM, Simon Horman wrote: > > > diff --git a/arch/x86/include/asm/vmware.h b/arch/x86/include/asm/vmware.h

[no subject]

2024-05-23 Thread Simon Horman
Bcc: Subject: Re: [PATCH v9 3/8] x86/vmware: Introduce VMware hypercall API Reply-To: In-Reply-To: <683225e0-1cd3-4dea-bb68-086d46b23...@broadcom.com> + Joe Perches On Wed, May 22, 2024 at 04:39:57PM -0700, Alexey Makhalov wrote: > Hi Simon, apologize for long delay > > On 5/11/24 8:02 AM, Sim

[PATCH v4 15/15] arm64: dts: mediatek: add display support for mt8365-evk

2024-05-23 Thread Alexandre Mergnat
MIPI DSI: - Add "vsys_lcm_reg" regulator support and setup the "mt6357_vsim1_reg", to power the pannel plugged to the DSI connector. - Setup the Display Parallel Interface. - Add the startek kd070fhfid015 pannel support. HDMI: - Add HDMI connector support. - Add the "ite,it66121" HDMI bridge sup

[PATCH v4 04/15] dt-bindings: display: mediatek: dither: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Dither on MT8365, which is compatible with that of the MT8183. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml | 1 + 1 file changed, 1 inserti

[PATCH v4 09/15] dt-bindings: display: mediatek: ovl: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Overlay on MT8365, which is compatible with that of the MT8192. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml | 1 + 1 file changed, 1 insertion

[PATCH v4 10/15] dt-bindings: display: mediatek: rdma: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Data Path Read DMA on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml | 1 + 1 file changed,

[PATCH v4 05/15] dt-bindings: display: mediatek: dsi: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the Display Serial Interface on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1 file changed, 1

[PATCH v4 14/15] arm64: dts: mediatek: add display blocks support for the MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
- Add aliases for each display components to help display drivers. - Add the Display Pulse Width Modulation (DISP_PWM) to provide PWM signals for the LED driver of mobile LCM. - Add the MIPI Display Serial Interface (DSI) PHY support. (up to 4-lane output) - Add the display mutex support. - Add

[PATCH v4 13/15] arm64: defconfig: enable display connector support

2024-05-23 Thread Alexandre Mergnat
Enable this feature for the i350-evk HDMI connector support. Signed-off-by: Alexandre Mergnat --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6281975199c4..7dac8f92b0b9 100644 --- a/arch/arm64/

[PATCH v4 12/15] drm/mediatek: add MT8365 SoC support

2024-05-23 Thread amergnat
From: Fabien Parent Add DRM support for MT8365 SoC. Signed-off-by: Fabien Parent Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_d

[PATCH v4 11/15] drm/mediatek: dsi: Improves the DSI lane setup robustness

2024-05-23 Thread Alexandre Mergnat
Currently, mtk_dsi_lane_ready (which setup the DSI lane) is triggered before mtk_dsi_poweron. lanes_ready flag toggle to true during mtk_dsi_lane_ready function, and the DSI module is set up during mtk_dsi_poweron. Later, during panel driver init, mtk_dsi_lane_ready is triggered but does nothing b

[PATCH v4 07/15] dt-bindings: display: mediatek: dpi: add compatible for MT8365

2024-05-23 Thread Alexandre Mergnat
Add dt-binding documentation of dpi for MediaTek MT8365 SoC. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 4 1 file changed, 4 insertions(+) diff --git a/D

[PATCH v4 08/15] dt-bindings: display: mediatek: gamma: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Gamma on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml | 1 + 1 file changed, 1 insertion

[PATCH v4 06/15] dt-bindings: display: mediatek: dpi: add power-domains property

2024-05-23 Thread amergnat
From: Fabien Parent DPI is part of the display / multimedia block in MediaTek SoCs, and always have a power-domain (at least in the upstream device-trees). Add the power-domains property to the binding documentation. Fixes: 9273cf7d3942 ("dt-bindings: display: mediatek: convert the dpi bindings

[PATCH v4 02/15] dt-bindings: display: mediatek: ccorr: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Color Correction on MT8365, which is compatible with that of the MT8183. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml | 3 +++ 1 file changed

[PATCH v4 03/15] dt-bindings: display: mediatek: color: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Color on MT8365, which is compatible with that of the MT8173. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion

[PATCH v4 01/15] dt-bindings: display: mediatek: aal: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Adaptive Ambient Light on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file chang

[PATCH v4 00/15] Add display support for the MT8365-EVK board

2024-05-23 Thread Alexandre Mergnat
drivers are also improved. The series is rebased on top of Angelo's series [1] to use the OF graphs support. Regards, Alex Signed-off-by: Alexandre Mergnat --- Changes in v4: - Rebase to "next-20240523" branch. - Patch merged, then removed from the series: - dt-bindings: di

Re: [PATCH v2 5/7] drm/msm/adreno: Add A702 support

2024-05-23 Thread Connor Abbott
On Fri, Feb 23, 2024 at 9:28 PM Konrad Dybcio wrote: > > The A702 is a weird mix of 600 and 700 series.. Perhaps even a > testing ground for some A7xx features with good ol' A6xx silicon. > It's basically A610 that's been beefed up with some new registers > and hw features (like APRIV!), that was

Re: [PATCH v4 3/3] drm/gem-shmem: Add import attachment warning to locked pin function

2024-05-23 Thread Boris Brezillon
On Thu, 23 May 2024 12:32:19 +0100 Adrián Larumbe wrote: > Commit ec144244a43f ("drm/gem-shmem: Acquire reservation lock in GEM > pin/unpin callbacks") moved locking DRM object's dma reservation to > drm_gem_shmem_object_pin, and made drm_gem_shmem_pin_locked public, so we > need to make sure the

Re: [PATCH v4 2/3] drm/lima: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Boris Brezillon
On Thu, 23 May 2024 12:32:18 +0100 Adrián Larumbe wrote: > Commit a78027847226 ("drm/gem: Acquire reservation lock in > drm_gem_{pin/unpin}()") moved locking the DRM object's dma reservation to > drm_gem_pin(), but Lima's pin callback kept calling drm_gem_shmem_pin, > which also tries to lock the

Re: [PATCH v4 1/3] drm/panfrost: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Boris Brezillon
On Thu, 23 May 2024 12:32:17 +0100 Adrián Larumbe wrote: > When Panfrost must pin an object that is being prepared a dma-buf > attachment for on behalf of another driver, the core drm gem object pinning > code already takes a lock on the object's dma reservation. > > However, Panfrost GEM object

Re:[PATCH v14 28/28] drm/sun4i: hdmi: Switch to HDMI connector

2024-05-23 Thread Andy Yan
Hi Maxime, At 2024-05-21 18:14:01, "Maxime Ripard" wrote: >The new HDMI connector infrastructure allows to remove some boilerplate, >especially to generate infoframes. Let's switch to it. > >Reviewed-by: Jernej Skrabec >Acked-by: Sui Jingfeng >Signed-off-by: Maxime Ripard Reviewed-by: Andy Y

Re:[PATCH v14 27/28] drm/rockchip: inno_hdmi: Switch to HDMI connector

2024-05-23 Thread Andy Yan
Hi Maxime, At 2024-05-21 18:14:00, "Maxime Ripard" wrote: >The new HDMI connector infrastructure allows to remove some boilerplate, >especially to generate infoframes. Let's switch to it. > >Reviewed-by: Heiko Stuebner >Acked-by: Heiko Stuebner >Signed-off-by: Maxime Ripard Acked-by: Andy Y

Re: [PATCH v14 23/28] drm/connector: hdmi: Create Infoframe DebugFS entries

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:56PM +0200, Maxime Ripard wrote: > There has been some discussions recently about the infoframes sent by > drivers and if they were properly generated. > > In parallel, there's been some interest in creating an infoframe-decode > tool similar to edid-decode. > > Both

Re: [PATCH v14 22/28] drm/tests: Add infoframes test

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:55PM +0200, Maxime Ripard wrote: > The previous patch added the generation of the infoframes matching an > HDMI connector state. Let's add a few tests to make sure it works as > expected. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/tests/drm_connector_t

Re: [PATCH v14 21/28] drm/connector: hdmi: Add Infoframes generation

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:54PM +0200, Maxime Ripard wrote: > Infoframes in KMS is usually handled by a bunch of low-level helpers > that require quite some boilerplate for drivers. This leads to > discrepancies with how drivers generate them, and which are actually > sent. > > Now that we have

[PATCH v4 2/3] drm/lima: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Adrián Larumbe
Commit a78027847226 ("drm/gem: Acquire reservation lock in drm_gem_{pin/unpin}()") moved locking the DRM object's dma reservation to drm_gem_pin(), but Lima's pin callback kept calling drm_gem_shmem_pin, which also tries to lock the same dma_resv, leading to a double lock situation. As was already

[PATCH v4 3/3] drm/gem-shmem: Add import attachment warning to locked pin function

2024-05-23 Thread Adrián Larumbe
Commit ec144244a43f ("drm/gem-shmem: Acquire reservation lock in GEM pin/unpin callbacks") moved locking DRM object's dma reservation to drm_gem_shmem_object_pin, and made drm_gem_shmem_pin_locked public, so we need to make sure the non-NULL check warning is also added to the latter. Cc: Thomas Zi

[PATCH v4 0/3] drm: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Adrián Larumbe
This is v4 of https://lore.kernel.org/lkml/20240521181817.097af...@collabora.com/T/ The goal of this patch series is fixing a deadlock upon locking the dma reservation of a DRM gem object when pinning it, at a prime import operation. Changelog: v3: - Split driver fixes into separate commits fo

[PATCH v4 1/3] drm/panfrost: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Adrián Larumbe
When Panfrost must pin an object that is being prepared a dma-buf attachment for on behalf of another driver, the core drm gem object pinning code already takes a lock on the object's dma reservation. However, Panfrost GEM object's pinning callback would eventually try taking the lock on the same

Re: [PATCH v14 19/28] drm/connector: hdmi: Add RGB Quantization Range to the connector state

2024-05-23 Thread Luc Ma
Hi, On Tue, 21 May 2024 at 18:52, Maxime Ripard wrote: > > HDMI controller drivers will need to figure out the RGB range they need > to configure based on a mode and property values. Let's expose that in > the HDMI connector state so drivers can just use that value. > > Reviewed-by: Dave Stevenso

Re: [v5, 3/3] drm/mediatek: Implement OF graphs support for display paths

2024-05-23 Thread Chen-Yu Tsai
On Wed, May 22, 2024 at 8:32 PM Sui Jingfeng wrote: > > Hi, > > > On 5/21/24 15:57, AngeloGioacchino Del Regno wrote: > > +static int mtk_drm_of_ddp_path_build(struct device *dev, struct > > device_node *node, > > + struct mtk_mmsys_driver_data *data) > > +{ > > +

Re: [PATCH v6,14/24] media: mediatek: vcodec: Add capture format to support one plane memory

2024-05-23 Thread Chen-Yu Tsai
On Thu, May 23, 2024 at 6:14 PM Andrzej Pietrasiewicz wrote: > > Hi, > > I'm having second thoughts, please see inline, > > W dniu 22.05.2024 o 14:26, Andrzej Pietrasiewicz pisze: > > Hi Yunfei, > > > > W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: > >> Define one uncompressed capture format V4L2_

Re: [PATCH v14 20/28] drm/tests: Add RGB Quantization tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:53PM +0200, Maxime Ripard wrote: > The previous commit added the infrastructure to the connector state to > track what RGB Quantization should be used in a given state for an HDMI > connector. > > Let's add some kunit tests to make sure it works as expected. > > Revi

Re: [PATCH v14 19/28] drm/connector: hdmi: Add RGB Quantization Range to the connector state

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:52PM +0200, Maxime Ripard wrote: > HDMI controller drivers will need to figure out the RGB range they need > to configure based on a mode and property values. Let's expose that in > the HDMI connector state so drivers can just use that value. > > Reviewed-by: Dave Ste

  1   2   >