Re: [PATCH v2] drm/amd/display: fix documentation warnings for mpc.h

2024-05-10 Thread Stephen Rothwell
Hi Marcelo, On Sat, 11 May 2024 13:37:17 +1000 Stephen Rothwell wrote: > > Thanks for doing this. > > I haven't tested it, but just a couple of little things: > > On Fri, 10 May 2024 21:02:02 -0300 Marcelo Mendes Spessoto Junior > wrote: > > > > Fix most of the display documentation

Re: [PATCH v2] drm/amd/display: fix documentation warnings for mpc.h

2024-05-10 Thread Stephen Rothwell
Hi Marcelo, Thanks for doing this. I haven't tested it, but just a couple of little things: On Fri, 10 May 2024 21:02:02 -0300 Marcelo Mendes Spessoto Junior wrote: > > Fix most of the display documentation compile warnings by > documenting struct mpc_funcs functions in dc/inc/hw/mpc.h file.

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

2024-05-10 Thread Jiapeng Chong
No functional modification involved. drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn401/dcn401_resource.c:792 dcn401_i2c_hw_create() warn: inconsistent indenting. drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn401/dcn401_resource.c:894 dcn401_hubp_create() warn: inconsistent

[PATCH v6 6/7] dt-bindings: display: panel: Add compatible for IVO t109nw41

2024-05-10 Thread Cong Yang
The IVO t109nw41 is a 11.0" WUXGA TFT LCD panel with himax-hx83102 controller. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang Acked-by: Conor Dooley --- Chage since V6: - No change. V5:

[PATCH v6 7/7] drm/panel: himax-hx83102: Support for IVO t109nw41 MIPI-DSI panel

2024-05-10 Thread Cong Yang
The IVO t109nw41 is a 11.0" WUXGA TFT LCD panel, use hx83102 controller which fits in nicely with the existing panel-himax-hx83102 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang --- Chage since V6: - Add hx83102_enable_extended_cmds(_ctx, false) at

[PATCH v6 5/7] drm/panel: himax-hx83102: Support for BOE nv110wum-l60 MIPI-DSI panel

2024-05-10 Thread Cong Yang
The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, use hx83102 controller which fits in nicely with the existing panel-himax-hx83102 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang --- Chage since V6: - No change. V5:

[PATCH v6 4/7] dt-bindings: display: panel: Add compatible for BOE nv110wum-l60

2024-05-10 Thread Cong Yang
The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel with himax-hx83102 controller. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang Acked-by: Conor Dooley --- Chage since V5: - No change. V5:

[PATCH v6 3/7] arm64: defconfig: Enable HIMAX_HX83102 panel

2024-05-10 Thread Cong Yang
DRM_PANEL_HIMAX_HX83102 is being split out from DRM_PANEL_BOE_TV101WUM_NL6. Since the arm64 defconfig had the BOE panel driver enabled, let's also enable the himax driver. Signed-off-by: Cong Yang Reviewed-by: Douglas Anderson --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1

[PATCH v6 2/7] drm/panel: himax-hx83102: Break out as separate driver

2024-05-10 Thread Cong Yang
The Starry HX83102 based mipi panel should never have been part of the boe tv101wum-n16 driver. Discussion with Doug and Linus in V1 [1], we need a separate driver to enable the hx83102 controller. In hx83102 driver, add DSI commands as macros. So it can add some panels with same control model in

[PATCH v6 1/7] dt-bindings: display: panel: Add himax hx83102 panel bindings

2024-05-10 Thread Cong Yang
In V1, discussed with Doug and Linus [1], we need break out as separate driver for the himax83102-j02 controller. Beacuse "starry,himax83102-j02" and in this series "BOE nv110wum-l60" "IVO t109nw41" panels use same controller, they have some common CMDS. So add new documentation for this panels.

[PATCH v6 0/7] Break out as separate driver and add BOE nv110wum-l60 IVO t109nw41 MIPI-DSI panel

2024-05-10 Thread Cong Yang
Discussion with Doug and Linus in V1, we need a separate driver to enable the hx83102 controller. So this series this series mainly Break out as separate driver for Starry-himax83102-j02 panels from boe tv101wum driver. Then add BOE nv110wum-l60 and IVO t109nw41 in himax-hx83102 driver. Add

[PATCH v2] drm/amd/display: fix documentation warnings for mpc.h

2024-05-10 Thread Marcelo Mendes Spessoto Junior
Fix most of the display documentation compile warnings by documenting struct mpc_funcs functions in dc/inc/hw/mpc.h file. Remove the following warnings: ./drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:579: warning: Function parameter or struct member 'read_mpcc_state' not described in 'mpc_funcs'

[PATCH net-next v9 12/14] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-05-10 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry ---

[PATCH net-next v9 11/14] tcp: RX path for devmem TCP

2024-05-10 Thread Mina Almasry
In tcp_recvmsg_locked(), detect if the skb being received by the user is a devmem skb. In this case - if the user provided the MSG_SOCK_DEVMEM flag - pass it to tcp_recvmsg_devmem() for custom handling. tcp_recvmsg_devmem() copies any data in the skb header to the linear buffer, and returns a

[PATCH net-next v9 14/14] selftests: add ncdevmem, netcat for devmem TCP

2024-05-10 Thread Mina Almasry
ncdevmem is a devmem TCP netcat. It works similarly to netcat, but it sends and receives data using the devmem TCP APIs. It uses udmabuf as the dmabuf provider. It is compatible with a regular netcat running on a peer, or a ncdevmem running on a peer. In addition to normal netcat support,

[PATCH net-next v9 13/14] net: add devmem TCP documentation

2024-05-10 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry --- v9: https://lore.kernel.org/netdev/20240403002053.2376017-14-almasrym...@google.com/ - Bagas doc suggestions. v8: - Applied docs suggestions (Randy). Thanks! v7: - Applied docs suggestions

[PATCH net-next v9 09/14] net: support non paged skb frags

2024-05-10 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry --- v6: - Rebased on top of the merged netmem changes. Changes in v1: - Fix illegal_highdma() (Yunsheng). - Rework napi_pp_put_page()

[PATCH net-next v9 10/14] net: add support for skbs with unreadable frags

2024-05-10 Thread Mina Almasry
For device memory TCP, we expect the skb headers to be available in host memory for access, and we expect the skb frags to be in device memory and unaccessible to the host. We expect there to be no mixing and matching of device memory frags (unaccessible) with host memory frags (accessible) in the

[PATCH net-next v9 08/14] memory-provider: dmabuf devmem memory provider

2024-05-10 Thread Mina Almasry
Implement a memory provider that allocates dmabuf devmem in the form of net_iov. The provider receives a reference to the struct netdev_dmabuf_binding via the pool->mp_priv pointer. The driver needs to set this pointer for the provider in the net_iov. The provider obtains a reference on the

[PATCH net-next v9 06/14] page_pool: convert to use netmem

2024-05-10 Thread Mina Almasry
Abstrace the memory type from the page_pool so we can later add support for new memory types. Convert the page_pool to use the new netmem type abstraction, rather than use struct page directly. As of this patch the netmem type is a no-op abstraction: it's always a struct page underneath. All the

[PATCH net-next v9 07/14] page_pool: devmem support

2024-05-10 Thread Mina Almasry
Convert netmem to be a union of struct page and struct netmem. Overload the LSB of struct netmem* to indicate that it's a net_iov, otherwise it's a page. Currently these entries in struct page are rented by the page_pool and used exclusively by the net stack: struct { unsigned long

[PATCH net-next v9 04/14] netdev: support binding dma-buf to netdevice

2024-05-10 Thread Mina Almasry
Add a netdev_dmabuf_binding struct which represents the dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to rx queues on the netdevice. On the binding, the dma_buf_attach & dma_buf_map_attachment will occur. The entries in the sg_table from mapping will be inserted into a

[PATCH net-next v9 02/14] net: page_pool: create hooks for custom page providers

2024-05-10 Thread Mina Almasry
From: Jakub Kicinski The page providers which try to reuse the same pages will need to hold onto the ref, even if page gets released from the pool - as in releasing the page from the pp just transfers the "ownership" reference from pp to the provider, and provider will wait for other references

[PATCH net-next v9 05/14] netdev: netdevice devmem allocator

2024-05-10 Thread Mina Almasry
Implement netdev devmem allocator. The allocator takes a given struct netdev_dmabuf_binding as input and allocates net_iov from that binding. The allocation simply delegates to the binding's genpool for the allocation logic and wraps the returned memory region in a net_iov struct. Signed-off-by:

[PATCH net-next v9 03/14] net: netdev netlink api to bind dma-buf to a net device

2024-05-10 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- v7: - Use flags: [ admin-perm ] instead of a CAP_NET_ADMIN check. Changes in v1: - Add rx-queue-type

[PATCH net-next v9 01/14] netdev: add netdev_rx_queue_restart()

2024-05-10 Thread Mina Almasry
Add netdev_rx_queue_restart() function to netdev_rx_queue.h Signed-off-by: David Wei Signed-off-by: Mina Almasry --- v9: https://lore.kernel.org/all/20240502045410.3524155-4...@davidwei.uk/ (submitted by David). - fixed SPDX license identifier (Simon). - Rebased on top of merged queue API

[PATCH net-next v9 00/14] Device Memory TCP

2024-05-10 Thread Mina Almasry
v9: === Major Changes: -- GVE queue API has been merged. Submitting this version as non-RFC after rebasing on top of the merged API, and dropped the out of tree queue API I was carrying on github. Addressed the little feedback v8 has received. Detailed changelog: --

Re: [PATCH RFC 6/7] drm/panel: lg-sw43408: add missing error handling

2024-05-10 Thread Doug Anderson
Hi, On Fri, May 10, 2024 at 3:25 PM Dmitry Baryshkov wrote: > > On Fri, May 10, 2024 at 02:47:05PM -0700, Doug Anderson wrote: > > Hi, > > > > On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov > > wrote: > > > > > > Add missing error handling for the mipi_dsi_ functions that actually > > > return

Re: [PATCH RFC 6/7] drm/panel: lg-sw43408: add missing error handling

2024-05-10 Thread Dmitry Baryshkov
On Fri, May 10, 2024 at 02:47:05PM -0700, Doug Anderson wrote: > Hi, > > On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov > wrote: > > > > Add missing error handling for the mipi_dsi_ functions that actually > > return error code instead of silently ignoring it. > > > > Fixes: 069a6c0e94f9 ("drm:

Re: [PATCH RFC 1/7] drm/mipi-dsi: wrap more functions for streamline handling

2024-05-10 Thread Dmitry Baryshkov
On Fri, May 10, 2024 at 02:45:45PM -0700, Doug Anderson wrote: > Hi, > > On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov > wrote: > > > > +/** > > + * mipi_dsi_compression_mode_ext() - enable/disable DSC on the peripheral > > + * @ctx: Context for multiple DSI transactions > > + * @enable:

Re: [PATCH RFC 7/7] drm/panel: lg-sw43408: use new streamlined MIPI DSI API

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > Use newer mipi_dsi_*_multi() functions in order to simplify and cleanup > panel's prepare() and unprepare() functions. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/panel/panel-lg-sw43408.c | 95 >

Re: [PATCH RFC 6/7] drm/panel: lg-sw43408: add missing error handling

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > Add missing error handling for the mipi_dsi_ functions that actually > return error code instead of silently ignoring it. > > Fixes: 069a6c0e94f9 ("drm: panel: Add LG sw43408 panel driver") > Signed-off-by: Dmitry Baryshkov > --- >

Re: [PATCH RFC 5/7] drm/panel: novatek-nt36672e: use wrapped MIPI DCS functions

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > Remove conditional code and always use mipi_dsi_dcs_*multi() wrappers to > simplify driver's init/exit code. This also includes passing context to > the init_sequence() function instead of passing the DSI device. > > Signed-off-by:

Re: [PATCH RFC 4/7] drm/panel: innolux-p079zca: use mipi_dsi_dcs_nop_multi()

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > Remove conditional code and use mipi_dsi_dcs_nop_multi() wrapper to > simplify driver code. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/panel/panel-innolux-p079zca.c | 9 + > 1 file changed, 1 insertion(+),

Re: [PATCH RFC 3/7] drm/panel: ilitek-ili9882t: use wrapped MIPI DCS functions

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > @@ -424,20 +420,14 @@ static inline struct ili9882t *to_ili9882t(struct > drm_panel *panel) > > static int ili9882t_enter_sleep_mode(struct ili9882t *ili) > { > - struct mipi_dsi_device *dsi = ili->dsi; > - int ret; >

Re: [PATCH RFC 2/7] drm/panel: boe-tv101wum-nl6: use wrapped MIPI DCS functions

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > Remove conditional code and always use mipi_dsi_dcs_*multi() wrappers to > simplify driver's init/exit code. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 73 >

Re: [PATCH RFC 1/7] drm/mipi-dsi: wrap more functions for streamline handling

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 3:37 PM Dmitry Baryshkov wrote: > > +/** > + * mipi_dsi_compression_mode_ext() - enable/disable DSC on the peripheral > + * @ctx: Context for multiple DSI transactions > + * @enable: Whether to enable or disable the DSC > + * @algo: Selected compression algorithm > + *

Re: [PATCH] drm/panel: jdi-fhd-r63452: move DCS off commands to disable

2024-05-10 Thread Barnabás Czémán
On Fri, May 10, 2024 at 8:02 PM Dmitry Baryshkov wrote: > > On Fri, May 10, 2024 at 09:10:34AM +0200, Barnabás Czémán wrote: > > On Fri, May 10, 2024 at 8:46 AM Barnabás Czémán wrote: > > > > > > On Fri, May 10, 2024 at 2:56 AM Dmitry Baryshkov > > > wrote: > > > > > > > > On Thu, May 09, 2024

Re: [git pull] drm fixes for 6.9 final

2024-05-10 Thread pr-tracker-bot
The pull request you sent on Sat, 11 May 2024 07:18:11 +1000: > https://gitlab.freedesktop.org/drm/kernel.git tags/drm-fixes-2024-05-11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cf87f46fd34d6c19283d9625a7822f20d90b64a4 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v3 08/10] media: dt-bindings: Add Chameleon v3 video interface

2024-05-10 Thread Rob Herring (Arm)
On Tue, 07 May 2024 15:54:11 +, Paweł Anikiel wrote: > Add dt binding for the video interface present on the Google > Chameleon v3. The Chameleon v3 uses the video interface to capture > a single video source from a given HDMI or DP connector and write > the resulting frames to memory. > >

Re: [PATCH v3 09/10] media: dt-bindings: Add Intel Displayport RX IP

2024-05-10 Thread Rob Herring
On Tue, May 07, 2024 at 03:54:12PM +, Paweł Anikiel wrote: > Add dt binding for the Intel Displayport receiver FPGA IP. > It is a part of the DisplayPort Intel FPGA IP Core, and supports > DisplayPort 1.4, HBR3 video capture and Multi-Stream Transport. > > The user guide can be found here: >

[git pull] drm fixes for 6.9 final

2024-05-10 Thread Dave Airlie
Hi Linus, This should be the last set of fixes for 6.9, i915, xe and amdgpu are the bulk here, one of the previous nouveau fixes turned up an issue, so reverting it, otherwise one core and a couple of meson fixes. drm-fixes-2024-05-11: drm fixes for 6.9 final core: - fix connector debugging

Re: [PATCH v3 05/10] media: dt-bindings: video-interfaces: Support DisplayPort MST

2024-05-10 Thread Rob Herring
On Tue, May 07, 2024 at 03:54:08PM +, Paweł Anikiel wrote: > Add a DisplayPort bus type and a multi-stream-support property > indicating whether the interface supports MST. > > Signed-off-by: Paweł Anikiel > --- > .../devicetree/bindings/media/video-interfaces.yaml| 7 +++ >

[PATCH] drm/i915: Correct error handler

2024-05-10 Thread Jiasheng Jiang
Replace "slab_priorities" with "slab_dependencies" in the error handler to avoid memory leak. Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/i915/i915_scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/i915: Correct error handler

2024-05-10 Thread Jiasheng Jiang
Replace "slab_priorities" with "slab_dependencies" in the error handler to avoid memory leak. Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/i915/i915_scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Rob Clark
On Fri, May 10, 2024 at 3:09 AM Jani Nikula wrote: > > On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: > > Em Fri, 10 May 2024 11:08:38 +0300 > > Jani Nikula escreveu: > > > >> On Thu, 09 May 2024, Dmitry Baryshkov wrote: > >> > The drm/msm driver had adopted using Python3 script to generate

Re: [RESEND 1/6] drm/nouveau: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Lyude Paul
Reviewed-by: Lyude Paul On Fri, 2024-05-10 at 18:08 +0300, Jani Nikula wrote: > Prefer the parsed results for is_hdmi and has_audio in display info > over > calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), > respectively. > > Conveniently, this also removes the need to use

[PATCH 01/20] drm/drm_managed: try to improve the drmm DOC

2024-05-10 Thread Matthew Auld
Hopefully make it clearer when to use devm vs drmm. Signed-off-by: Matthew Auld Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/drm_managed.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/drivers/gpu/drm/drm_managed.c

Re: [PATCH] drm/panel: jdi-fhd-r63452: move DCS off commands to disable

2024-05-10 Thread Dmitry Baryshkov
On Fri, May 10, 2024 at 09:10:34AM +0200, Barnabás Czémán wrote: > On Fri, May 10, 2024 at 8:46 AM Barnabás Czémán wrote: > > > > On Fri, May 10, 2024 at 2:56 AM Dmitry Baryshkov > > wrote: > > > > > > On Thu, May 09, 2024 at 08:14:07PM +0200, Barnabás Czémán wrote: > > > > Move DCS off commands

Re: [PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Ville Syrjälä
On Fri, May 10, 2024 at 08:33:59PM +0300, Ville Syrjälä wrote: > On Fri, May 10, 2024 at 12:09:51PM +0300, Jani Nikula wrote: > > libdrm does not like the empty string for driver date. Use "0" instead, > > which has been used by virtio previously. > > > > Reported-by: Steven Price > > Closes: >

Re: [PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Ville Syrjälä
On Fri, May 10, 2024 at 12:09:51PM +0300, Jani Nikula wrote: > libdrm does not like the empty string for driver date. Use "0" instead, > which has been used by virtio previously. > > Reported-by: Steven Price > Closes: https://lore.kernel.org/r/9d0cff47-308e-4b11-a9f3-4157dc26b...@arm.com >

[pull] amdgpu, amdkfd drm-fixes-6.9

2024-05-10 Thread Alex Deucher
Hi Dave, Sima, Fixes for 6.9. Same as Wednesday, but drop unncessary patch. The following changes since commit dd5a440a31fae6e459c0d627162825505361: Linux 6.9-rc7 (2024-05-05 14:06:01 -0700) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git

Re: [pull] amdgpu, amdkfd drm-fixes-6.9

2024-05-10 Thread Alex Deucher
Never mind. I'll send a new PR now. Alex On Fri, May 10, 2024 at 10:01 AM Alex Deucher wrote: > > On Thu, May 9, 2024 at 11:22 PM Dave Airlie wrote: > > > > On Thu, 9 May 2024 at 09:00, Alex Deucher wrote: > > > > > > Hi Dave, Sima, > > > > > > Fixes for 6.9. > > > > > > The following

Re: [PATCH 12/12] accel/ivpu: Share NPU busy time in sysfs

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:29 AM, Jacek Lawrynowicz wrote: From: Tomasz Rusinowicz The driver tracks the time spent by NPU executing jobs and shares it through sysfs `npu_busy_time_us` file. It can be then used by user space applications to monitor device utilization. NPU is considered 'busy' starting

Re: [PATCH 11/12] accel/ivpu: Increase reset counter when warm boot fails

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:29 AM, Jacek Lawrynowicz wrote: Failed warm boot causes a cold boot that looses FW state and is equivalent to a recovery or reset, so reset_counter should be incremented in order for this failure to be detected by tests. Signed-off-by: Jacek Lawrynowicz Reviewed-by: Jeffrey

Re: [PATCH 09/12] accel/ivpu: Add force snoop module parameter

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: From: "Wachowski, Karol" Add module parameter that enforces snooping for all NPU accesses, both through MMU PTEs mappings and through TCU page table walk override register bits for MMU page walks / configuration access. Signed-off-by: Wachowski,

Re: [PATCH 08/12] accel/ivpu: Add NPU profiling support

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: From: Tomasz Rusinowicz Implement time based Metric Streamer profiling UAPI. This is a generic mechanism allowing user mode tools to sample NPU metrics. These metrics are defined by the FW and transparent to the driver. The user space can check

Re: [PATCH v2 0/5] Add support for GE SUNH hot-pluggable connector (was: "drm: add support for hot-pluggable bridges")

2024-05-10 Thread Rob Herring
On Fri, May 10, 2024 at 09:10:36AM +0200, Luca Ceresoli wrote: > Hello, > > this series aims at supporting a Linux device with a connector to > physically add and remove an add-on to/from the main device to augment its > features at runtime, using device tree overlays. > > This is the v2 of

Re: [PATCH 07/12] accel/ivpu: Add resume engine support

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: From: "Wachowski, Karol" Create debugfs interface that triggers sending resume engine IPC command to VPU. Why? Who would use this and for what purpose? -Jeff

Re: [PATCH 06/12] accel/ivpu: Implement support for hardware scheduler

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: +#define IVPU_FOCUS_PRESENT_TIMER_MS 1000 + static char *ivpu_firmware; module_param_named_unsafe(firmware, ivpu_firmware, charp, 0644); MODULE_PARM_DESC(firmware, "NPU firmware binary in /lib/firmware/.."); @@ -467,6 +469,10 @@ static void

Re: [PATCH 05/12] accel/ivpu: Add HWS JSM messages

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: From: "Wachowski, Karol" Add JSM messages that will be used to implement hardware scheduler. Most of these messages are used to create and manage HWS specific command queues. Signed-off-by: Wachowski, Karol Signed-off-by: Jacek Lawrynowicz

Re: [PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Rob Herring
On Fri, May 10, 2024 at 09:10:37AM +0200, Luca Ceresoli wrote: > Add bindings for the GE SUNH add-on connector. This is a physical, > hot-pluggable connector that allows to attach and detach at runtime an > add-on adding peripherals on non-discoverable busses. > > Signed-off-by: Luca Ceresoli >

Re: [PATCH 04/12] accel/ivpu: Implement support for preemption buffers

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: From: "Wachowski, Karol" Allocate per-context preemption buffers that are required by HWS. There are two preemption buffers: * primary - allocated in user memory range (PIOVA accessible) * secondary - allocated in shave memory range

dma-buf sg mangling

2024-05-10 Thread Zack Rusin
Hey, so this is a bit of a silly problem but I'd still like to solve it properly. The tldr is that virtualized drivers abuse drm_driver::gem_prime_import_sg_table (at least vmwgfx and xen do, virtgpu and xen punt on it) because there doesn't seem to be a universally supported way of converting

Re: [PATCH 03/12] accel/ivpu: Create priority based command queues

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote: From: "Wachowski, Karol" Create multiple command queues per engine with different priorities. The cmdqs are created on-demand and they support 4 priority levels. These priorities will later be used by the HWS (hardware scheduler). Signed-off-by:

Re: [PATCH 02/12] accel/ivpu: Add sched_mode module param

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:20 AM, Jacek Lawrynowicz wrote: From: "Wachowski, Karol" This param will be used to enable/disable HWS (hardware scheduler). The HWS is a FW side feature and may not be available on all HW generations and FW versions. Signed-off-by: Wachowski, Karol Signed-off-by: Jacek

Re: [PATCH 01/12] accel/ivpu: Update VPU FW API headers

2024-05-10 Thread Jeffrey Hugo
On 5/8/2024 7:20 AM, Jacek Lawrynowicz wrote: Update JSM API to 3.16.0. Signed-off-by: Jacek Lawrynowicz Reviewed-by: Jeffrey Hugo

Re: [PATCH v6 0/7] Adds support for ConfigFS to VKMS!

2024-05-10 Thread Louis Chauvet
Le 09/05/24 - 18:18, Jim Shargo a écrit : > Sima--thanks SO MUCH for going through with everything leaving a > detailed review. I am excited to go through your feedback. > > It makes me extremely happy to see these patches get people excited. > > They've bounced between a few people, and I

[PATCH v3 0/5] drm/udl: Convert to struct drm_edid

2024-05-10 Thread Thomas Zimmermann
Convert udl to use struct drm_edid and its helpers. Also clean up a few things in the process. Patch 1 fixes a bug. Patches 2 to 4 convert the current EDID handling to struct drm_edid and its helpers. Patch 4 also separates the helpers for .get_modes() and .detect_ctx() from each other. Patch 5

[PATCH v3 3/5] drm/udl: Clean up Makefile

2024-05-10 Thread Thomas Zimmermann
Clean up Makefile before listing new object files. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Jani Nikula --- drivers/gpu/drm/udl/Makefile | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/udl/Makefile

[PATCH v3 5/5] drm/udl: Remove struct udl_connector

2024-05-10 Thread Thomas Zimmermann
Udl's struct udl_connector is an empty wrapper around struct drm_connector. Remove it. Allocate the connector as part of struct udl_device and inline the init function into its only caller. v2: - fix return value in udl_modeset_init() (Dan) Signed-off-by: Thomas Zimmermann Reviewed-by: Jani

[PATCH v3 4/5] drm/udl: Untangle .get_modes() and .detect_ctx()

2024-05-10 Thread Thomas Zimmermann
Provide separate implementations of .get_modes() and .detect_ctx() from struct drm_connector. Switch to struct drm_edid. Udl's .detect() helper used to fetch the EDID from the adapter and the .get_modes() helper provided display modes from the data. But this relied on the DRM helpers to call the

[PATCH v3 1/5] drm/udl: Remove DRM_CONNECTOR_POLL_HPD

2024-05-10 Thread Thomas Zimmermann
DisplayLink devices do not generate hotplug events. Remove the poll flag DRM_CONNECTOR_POLL_HPD, as it may not be specified together with DRM_CONNECTOR_POLL_CONNECT or DRM_CONNECTOR_POLL_DISCONNECT. Signed-off-by: Thomas Zimmermann Fixes: afdfc4c6f55f ("drm/udl: Fixed problem with UDL adpater

[PATCH v3 2/5] drm/udl: Move drm_dev_{enter, exit}() into udl_get_edid_block()

2024-05-10 Thread Thomas Zimmermann
Protect the code in udl_get_edid_block() with drm_dev_enter() and drm_dev_exit(), so that all callers automatically invoke it. The function uses hardware resources, which can be hot-unplugged at any time. The other code in udl_connector_detect() does not use the resources of the hardware device

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

2024-05-10 Thread Alex Deucher
On Fri, May 10, 2024 at 11:17 AM Jani Nikula wrote: > > I've sent this some moths ago, let's try again... > > BR, > Jani. > > Jani Nikula (6): > drm/nouveau: convert to using is_hdmi and has_audio from display info > drm/radeon: convert to using is_hdmi and has_audio from display info >

Re: [PATCH v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 06:16:42PM +0300, Laurent Pinchart wrote: > On Fri, May 10, 2024 at 06:03:52PM +0300, Andy Shevchenko wrote: > > On Fri, May 10, 2024 at 12:10:10AM +0530, Devarsh Thakkar wrote: > > > Use generic macro round_closest_up for rounding to nearest multiple > > > instead > > >

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Luca Ceresoli
Hi Greg, Arnd, On Fri, 10 May 2024 12:57:24 +0200 "Arnd Bergmann" wrote: > On Fri, May 10, 2024, at 12:54, Luca Ceresoli wrote: > > On Fri, 10 May 2024 12:24:06 +0200 "Arnd Bergmann" wrote: > >> On Fri, May 10, 2024, at 09:55, Greg Kroah-Hartman wrote: > >> > On Fri, May 10, 2024 at

Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 06:15:34PM +0300, Jani Nikula wrote: > On Fri, 10 May 2024, Andy Shevchenko > wrote: > > On Fri, May 10, 2024 at 12:09:52AM +0530, Devarsh Thakkar wrote: > >> Add macros to round to nearest specified power of 2. > > > > This is not what they are doing. For the above we

Re: [PATCH v2 4/5] drm/udl: Untangle .get_modes() and .detect_ctx()

2024-05-10 Thread Thomas Zimmermann
Hi Am 10.05.24 um 14:17 schrieb Jani Nikula: + /* +* The adapter sends all-zeros if no monitor has been +* connected. We consider anything else a connection. +*/ + return memcmp(no_edid, hdr, 8) != 0; Nitpick, this works, but you can drop the no_edid buf by

Re: [PATCH v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Laurent Pinchart
On Fri, May 10, 2024 at 06:03:52PM +0300, Andy Shevchenko wrote: > On Fri, May 10, 2024 at 12:10:10AM +0530, Devarsh Thakkar wrote: > > Use generic macro round_closest_up for rounding to nearest multiple instead > > round_closest_up() > > We refer to the functions as func(). > > > of using

Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Andy Shevchenko wrote: > On Fri, May 10, 2024 at 12:09:52AM +0530, Devarsh Thakkar wrote: >> Add macros to round to nearest specified power of 2. > > This is not what they are doing. For the above we already have macros defined. > >> Two macros are added : > > (Yes, after I

Re: [PATCH v7 7/8] media: imagination: Round to closest multiple for cropping region

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 12:10:01AM +0530, Devarsh Thakkar wrote: > If neither of the flags to round down (V4L2_SEL_FLAG_LE) or round up > (V4L2_SEL_FLAG_GE) are specified by the user, then round to nearest > multiple of requested value while updating the crop rectangle coordinates. > > Use the

[RESEND 6/6] drm/connector: update edid_blob_ptr documentation

2024-05-10 Thread Jani Nikula
Accessing the EDID via edid_blob_ptr causes chicken-and-egg problems. Keep edid_blob_ptr as the userspace interface that should be accessed via dedicated functions. Signed-off-by: Jani Nikula --- include/drm/drm_connector.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[RESEND 5/6] drm/edid: add a helper for EDID sysfs property show

2024-05-10 Thread Jani Nikula
Add a helper to get the EDID property for sysfs property show. This hides all the edid_blob_ptr usage within drm_edid.c. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_crtc_internal.h | 2 ++ drivers/gpu/drm/drm_edid.c | 33 +

[RESEND 4/6] drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptr

2024-05-10 Thread Jani Nikula
amdgpu_connector_edid() copies the EDID from edid_blob_ptr as a side effect if amdgpu_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using

[RESEND 3/6] drm/radeon: remove radeon_connector_edid() and stop using edid_blob_ptr

2024-05-10 Thread Jani Nikula
radeon_connector_edid() copies the EDID from edid_blob_ptr as a side effect if radeon_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using

[RESEND 2/6] drm/radeon: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Cc: Alex Deucher Cc: Christian König Cc: Pan, Xinhui Cc: amd-...@lists.freedesktop.org Signed-off-by: Jani Nikula ---

[RESEND 1/6] drm/nouveau: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Conveniently, this also removes the need to use edid_blob_ptr. v2: Reverse a backwards if condition (Ilia) Cc: Karol Herbst Cc: Lyude Paul

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

2024-05-10 Thread Jani Nikula
I've sent this some moths ago, let's try again... BR, Jani. Jani Nikula (6): drm/nouveau: convert to using is_hdmi and has_audio from display info drm/radeon: convert to using is_hdmi and has_audio from display info drm/radeon: remove radeon_connector_edid() and stop using

Re: [PATCH RESEND v7 0/8] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 01:56:03PM +0530, Devarsh Thakkar wrote: > Resending this V7 series to have proper linking of patches in the series > with cover-letter while doing git send-email. > > Original cover letter: > This adds support for V4L2 M2M based driver for E5010 JPEG Encoder > which is a

Re: [PATCH v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 12:10:10AM +0530, Devarsh Thakkar wrote: > Use generic macro round_closest_up for rounding to nearest multiple instead round_closest_up() We refer to the functions as func(). > of using local function. ... > @@ -565,7 +563,7 @@ static void find_best_seam(struct

Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 12:09:52AM +0530, Devarsh Thakkar wrote: > Add macros to round to nearest specified power of 2. This is not what they are doing. For the above we already have macros defined. > Two macros are added : (Yes, after I wrapped to comment this line looks better on its own, so

[GIT PULL] Immutable branch between Backlight, HID and fbdev due for the v6.10 merge window

2024-05-10 Thread Lee Jones
Enjoy! The following changes since commit 4cece764965020c22cff7665b18a012006359095: Linux 6.9-rc1 (2024-03-24 14:10:05 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git ib-backlight-hid-fbdev-lcd-scripts-v6.10 for you to fetch

Re: [PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Luca Ceresoli
Hello Rob, On Fri, 10 May 2024 08:22:53 -0500 Rob Herring wrote: > On Fri, May 10, 2024 at 5:37 AM Luca Ceresoli > wrote: > > > > Hello Rob, > > > > On Fri, 10 May 2024 03:41:35 -0500 > > "Rob Herring (Arm)" wrote: > > > > > On Fri, 10 May 2024 09:10:37 +0200, Luca Ceresoli wrote: > > >

Re: [PATCH v5 7/7] drm/panel: himax-hx83102: Support for IVO t109nw41 MIPI-DSI panel

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 11:05 PM cong yang wrote: > > Hi, > > Doug Anderson 于2024年5月10日周五 00:49写道: > > > > Hi, > > > > On Wed, May 8, 2024 at 6:53 PM Cong Yang > > wrote: > > > > > > +static int ivo_t109nw41_init(struct hx83102 *ctx) > > > +{ > > > + struct mipi_dsi_multi_context

Re: [pull] amdgpu, amdkfd drm-fixes-6.9

2024-05-10 Thread Alex Deucher
On Thu, May 9, 2024 at 11:22 PM Dave Airlie wrote: > > On Thu, 9 May 2024 at 09:00, Alex Deucher wrote: > > > > Hi Dave, Sima, > > > > Fixes for 6.9. > > > > The following changes since commit dd5a440a31fae6e459c0d627162825505361: > > > > Linux 6.9-rc7 (2024-05-05 14:06:01 -0700) > > > >

Re: [PATCH v2 0/2] drm/msm/gen_header: allow skipping the validation

2024-05-10 Thread Helen Koike
On 03/05/2024 17:23, Dmitry Baryshkov wrote: On Fri, 3 May 2024 at 21:15, Dmitry Baryshkov wrote: In order to remove pointless messages regarding missing lxml, skip validation of MSM register files against the schema. Only the driver developers really care and/or can fix the files. Keep

Re: [PATCH v2 2/2] drm/ci: validate drm/msm XML register files against schema

2024-05-10 Thread Helen Koike
On 03/05/2024 21:07, Abhinav Kumar wrote: On 5/3/2024 5:02 PM, Dmitry Baryshkov wrote: On Sat, 4 May 2024 at 01:38, Abhinav Kumar wrote: On 5/3/2024 1:20 PM, Dmitry Baryshkov wrote: On Fri, 3 May 2024 at 22:42, Abhinav Kumar wrote: On 5/3/2024 11:15 AM, Dmitry Baryshkov wrote:

Re: [PATCH 00/15] drm: struct drm_edid conversions

2024-05-10 Thread Jani Nikula
On Tue, 07 May 2024, Thomas Zimmermann wrote: > Hi > > Am 16.04.24 um 15:22 schrieb Jani Nikula: >> I've these laying in a branch for a while, maybe let's try to make some >> forward progress in this front. > > Could you take another look at the udl patches at [1]? The second > iteration of the

[RESEND 6/6] drm/virtio: switch to struct drm_edid

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: David Airlie Cc: Gerd Hoffmann Cc: Gurchetan Singh Cc: Chia-I Wu Cc: virtualizat...@lists.linux.dev --- drivers/gpu/drm/virtio/virtgpu_display.c | 10 --

  1   2   >