[PATCH v5 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph

2024-12-05 Thread Ian Rogers
Previously the pid was highlighted through being a tagged paragraph but not mentioned in the description. Add italics to the path emphasizing pid and then change the first sentence to include pid in the definition. Suggested-by: G. Branden Robinson --- v5. Switch .IR pid to .I pid --- man/man5/p

[PATCH v5 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types

2024-12-05 Thread Ian Rogers
Make the sections about eventfd, epoll, signalfd, inotify, fanotify, timerfd better separated with a clearer subsection header. --- man/man5/proc_pid_fdinfo.5 | 6 ++ 1 file changed, 6 insertions(+) diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5 index 2797ae216..c4914f1f

[PATCH v5 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page

2024-12-05 Thread Ian Rogers
When /proc/pid/fdinfo was part of proc.5 man page the indentation made sense. As a standalone man page the indentation doesn't need to be so far over to the right. Remove the initial tagged pragraph, move the "since Linux 2.6.22" to a new history subsection. Suggested-by: G. Branden Robinson ---

[PATCH v5 4/4] proc_pid_fdinfo.5: Add DRM subsection

2024-12-05 Thread Ian Rogers
Add description of DRM fdinfo information based on the Linux kernel's `Documentation/gpu/drm-usage-stats.rst`: https://docs.kernel.org/gpu/drm-usage-stats.html --- v5. Update style a suggested-by G. Branden Robinson --- man/man5/proc_pid_fdinfo.5 | 107 + 1

Re: [PATCH v2] Documentation: dma-buf: heaps: Add heap name definitions

2024-12-05 Thread Maxime Ripard
On Thu, Dec 05, 2024 at 03:17:57PM -0800, John Stultz wrote: > On Tue, Dec 3, 2024 at 11:04 AM Andrew Davis wrote: > > On 12/3/24 1:44 AM, Maxime Ripard wrote: > > > On Mon, Dec 02, 2024 at 11:12:23AM -0800, John Stultz wrote: > > >> Hrm. I'm not sure I see the value in enumerating things in this

Re: [PATCH v3 04/11] driver core: Constify API device_find_child() then adapt for various usages

2024-12-05 Thread Uwe Kleine-König
Hello, On Thu, Dec 05, 2024 at 08:10:13AM +0800, Zijun Hu wrote: > From: Zijun Hu > > Constify the following API: > struct device *device_find_child(struct device *dev, void *data, > int (*match)(struct device *dev, void *data)); > To : > struct device *device_find_child(struct dev

Re: [PATCH v3 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph

2024-12-05 Thread Ian Rogers
On Sat, Nov 2, 2024 at 3:17 AM G. Branden Robinson wrote: > > Hi Ian, > > At 2024-11-01T12:11:54-0700, Ian Rogers wrote: > > diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5 > > index 87e6dbe56..935b54b4c 100644 > > --- a/man/man5/proc_pid_fdinfo.5 > > +++ b/man/man5/proc_pid_f

[PATCH] virtio: Add hsakmt capset definition

2024-12-05 Thread Honglei Huang
From: Honglei Huang Add libhsakmt native context capset in the VIRTIO-GPU protocol header. Virglrenderer related patch: https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1450 OpenCL based on libhsakmt native context patch in progress: https://gitlab.freedesktop.org/virgl/virglr

Re: [PATCH v2 1/1] drm/virtio: Implement device_attach

2024-12-05 Thread Zhang, Julia
Hi Christian, Thanks for your reply. I get your point. Actually I have a design to send a command from guest with pci notations of amdgpu and virtio-gpu to host side to calculate physical p2pdma_distance. I will send out those patches soon. Best regards, Julia On 2024/12/4 17:32, Christian Kö

Re: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-05 Thread Linus Torvalds
On Thu, 5 Dec 2024 at 18:26, David Laight wrote: > > From: Vincent Mailhol > > ACK. Would adding a suggested--by Linus tag solve your concern? I'm genberally the one person who doesn't need any more credit ;) > I actually suspect the first patches to change __is_constexpr() to > use _Generic wer

[Bug 211807] [drm:drm_dp_mst_dpcd_read] *ERROR* mstb 000000004e6288dd port 3: DPCD read on addr 0x60 for 1 bytes NAKed

2024-12-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211807 Mosis1944 (lettie.allesvmw1mk...@gmail.com) changed: What|Removed |Added CC||lettie.alles

[PATCH 31/45] drm/msm/dp: add dp_mst_drm to manage DP MST bridge operations

2024-12-05 Thread Abhinav Kumar
Add a new file dp_mst_drm to manage the DP MST bridge operations similar to the dp_drm file which manages the SST bridge operations. Each MST encoder creates one bridge and each bridge is bound to its own dp_panel abstraction to manage the operations of its pipeline. Signed-off-by: Abhinav Kumar

[PATCH 04/45] drm/msm/dp: split msm_dp_panel_read_sink_caps() into two parts

2024-12-05 Thread Abhinav Kumar
In preparation of DP MST where link caps are read for the immediate downstream device and the edid is read through sideband messaging, split the msm_dp_panel_read_sink_caps() into two parts which read the link parameters and the edid parts respectively. Signed-off-by: Abhinav Kumar --- drivers/g

[PATCH 34/45] drm/msm/dp: add support to re-use and clear the panel edid

2024-12-05 Thread Abhinav Kumar
During certain cases, the dp mst connector's panel edid can be re-used such as getting multiple get_modes() without irq_hpd and should be cleared in cases when the connector is destroyed or when irq hpd is received. Add support to handle these cases for the mst_connector's panel edid. Signed-off-b

[PATCH 37/45] drm/msm: add support for non-blocking commits

2024-12-05 Thread Abhinav Kumar
Hook up the mst framework APIs with atomic_commit_setup() and atomic_commit_tail() APIs to handle non-blocking commits. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/msm_atomic.c | 2 ++ drivers/gpu/drm/msm/msm_drv.h| 1 + drivers/gpu/drm/msm/msm_kms.c| 1 + 3 files changed, 4 ins

[PATCH 39/45] drm/msm/dp: initialize dp_mst module for each DP MST controller

2024-12-05 Thread Abhinav Kumar
For each MST capable DP controller, initialize a dp_mst module to manage its DP MST operations. The DP MST module for each controller is the central entity to manage its topology related operations as well as interfacing with the rest of the DP driver. Signed-off-by: Abhinav Kumar --- drivers/gp

[PATCH 43/45] drm/msm/dp: populate the max_streams for sa8775 mst controller

2024-12-05 Thread Abhinav Kumar
Populate the max_streams for DP controllers to indicate MST support. If the pixel clock handle for the second stream fails, treat it as SST case rather than a complete failure. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 9 + drivers/gpu/drm/msm/dp/dp_ctrl.h

[PATCH 44/45] arm64: dts: qcom: add mst support for pixel stream clk for DP0

2024-12-05 Thread Abhinav Kumar
From: Yongxing Mou Populate the pixel clock for stream 1 for DP0 for sa8775p DP controller. Signed-off-by: Yongxing Mou Signed-off-by: Abhinav Kumar --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/q

[PATCH 35/45] drm/msm/dp: add a mst session mutex to protect bridge ops

2024-12-05 Thread Abhinav Kumar
To protect against concurrent access of the dp mst bridges introduce a session mutex. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_mst_drm.c | 20 drivers/gpu/drm/msm/dp/dp_mst_drm.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/msm/dp

[PATCH 38/45] drm/msm: initialize DRM MST encoders for DP controllers

2024-12-05 Thread Abhinav Kumar
Initiliaze a DPMST encoder for each MST capable DP controller and the number of encoders it supports depends on the number of streams it supports. Replace the opencoded instances of max_stream with the newly introduced API to centralize the usage. Signed-off-by: Abhinav Kumar --- drivers/gpu/dr

[PATCH 24/45] drm/msm/dp: abstract out the dp_display stream helpers to accept a panel

2024-12-05 Thread Abhinav Kumar
Currently the dp_display bridge helpers, in particular the dp_display_enable()/dp_display_disable() use the cached panel. To be able to re-use these helpers for MST use-case abstract the helpers to use the panel which is passed in to them. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/

[PATCH 36/45] drm/msm/dp: propagate hpd state changes to dp mst module

2024-12-05 Thread Abhinav Kumar
From: Yongxing Mou Propagate the hpd state changes to dp mst module so that it can be synchronized with the cable connect/disconnect. Signed-off-by: Yongxing Mou Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 20 drivers/gpu/drm/msm/dp/dp_mst_drm.c

[PATCH 41/45] drm/msm/dpu: use msm_dp_get_mst_intf_id() to get the intf id

2024-12-05 Thread Abhinav Kumar
Use msm_dp_get_mst_intf_id() to get the intf id for the DP MST controller as the intf_id is unique for each MST stream of each DP controller. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 25 - 1 file changed, 20 insertions(+), 5 deletions

[PATCH 40/45] drm/msm: add a stream to intf map for DP controller

2024-12-05 Thread Abhinav Kumar
Each DP controller capable of MST can support multiple streams and each of the streams maps to an interface block ID which can vary based on chipset. Add a stream to interface map for MST capable DP controllers. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 46 ++

[PATCH 29/45] drm/msm/dp: skip reading the EDID for MST cases

2024-12-05 Thread Abhinav Kumar
For MST cases, EDID is handled through AUX sideband messaging. Skip the EDID read during hotplug handle for MST cases. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_displa

[PATCH 26/45] drm/msm/dp: replace power_on with active_stream_cnt for dp_display

2024-12-05 Thread Abhinav Kumar
For DP MST, the link clock and power domain resources stay on until both streams have been disabled OR we receive hotplug. Introduce an active_stream_cnt to track the number of active streams and necessary state handling. Replace the power_on variable with active_stream_cnt as power_on boolean work

[PATCH 33/45] drm/msm/dp: add irq hpd callback for dp mst

2024-12-05 Thread Abhinav Kumar
Add irq hpd callback for the dp mst module which shall be invoked from the dp_display's irq hpd handler to perform mst specific operations in case of irq hpd. In MST case, route the IRQ HPD messages to MST module. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 17

[PATCH 32/45] drm/msm/dp: add connector abstraction for DP MST

2024-12-05 Thread Abhinav Kumar
Add connector abstraction for the DP MST. Each MST encoder is connected through a DRM bridge to a MST connector and each MST connector has a DP panel abstraction attached to it. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_mst_drm.c | 517 drive

[PATCH 45/45] arm64: dts: qcom: add mst support for pixel 1 stream clk for DP1

2024-12-05 Thread Abhinav Kumar
Populate the pixel clock for stream 1 for DP1 for sa8775p DP controller. Signed-off-by: Abhinav Kumar --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775

[PATCH 42/45] drm/msm/dp: mark ST_DISCONNECTED only if all streams are disabled

2024-12-05 Thread Abhinav Kumar
HPD state machine assumes only one active stream. Fix it to account for both while marking the state of the hpd as disconnected. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_disp

[PATCH 25/45] drm/msm/dp: move link related operations to dp_display_unprepare()

2024-12-05 Thread Abhinav Kumar
Move the link related operations to dp_display_unprepare() and keep only stream related operations in dp_display_disable(). Make dp_display_unprepare() available to other clients such as DP MST. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 31 --

[PATCH 21/45] drm/msm/dp: add support for mst channel slot allocation

2024-12-05 Thread Abhinav Kumar
For DP MST streams, the 64 MTP slots are time-shared between the streams. Add the support to calculate the rate governor, slots and reservation of the slots to the DP controller. Each DP MST stream shall reserve its streams by calling the dp_display_set_stream_info() from its bridge calls. Signed-

[PATCH 03/45] drm/msm/dp: fix the intf_type of MST interfaces

2024-12-05 Thread Abhinav Kumar
Interface type of MST interfaces is currently INTF_NONE. Fix this to INTF_DP. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p

[PATCH 30/45] drm/msm/dp: add dp_display_get_panel() to initialize DP panel

2024-12-05 Thread Abhinav Kumar
Add an API dp_display_get_panel() to initialize and return a DP panel to be used by DP MST module. Since some of the fields of DP panel are private, dp_display module needs to initialize these parts and return the panel back. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c |

[PATCH 28/45] drm/msm/dp: add an API to initialize MST on sink side

2024-12-05 Thread Abhinav Kumar
If the DP controller is capable of supporting multiple streams then initialize the DP sink in MST mode by programming the DP_MSTM_CTRL DPCD register to enable MST mode. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 32 1 file changed, 32

[PATCH 20/45] drm/msm/dp: no need to update tu calculation for mst

2024-12-05 Thread Abhinav Kumar
DP stream is transmitted in transfer units only for SST case there is no need to calculate and program TU parameters for MST case. Skip the TU programming for MST cases. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) dif

[PATCH 10/45] drm/msm/dp: move the pixel clock control to its own API

2024-12-05 Thread Abhinav Kumar
Enable/Disable of DP pixel clock happens in multiple code paths leading to code duplication. Move it into individual helpers so that the helpers can be called wherever necessary. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 76 ++-- 1 fi

[PATCH 05/45] drm/msm/dp: add a helper to read mst caps for dp_panel

2024-12-05 Thread Abhinav Kumar
Add a helper to check whether a dp_panel is mst capable. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_aux.h | 1 + drivers/gpu/drm/msm/dp/dp_panel.c | 14 ++ drivers/gpu/drm/msm/dp/dp_panel.h | 1 + 3 files changed, 16 insertions(+) diff --git a/drivers/gpu/drm/msm

[PATCH 17/45] drm/msm/dp: use stream_id to change offsets in dp_catalog

2024-12-05 Thread Abhinav Kumar
Use the dp_panel's stream_id to adjust the offsets for stream 1 which will be used for MST in the dp_catalog. Also add additional register defines for stream 1. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.c | 99 - drivers/gpu/drm/msm/dp

[PATCH 18/45] drm/msm/dp: add support to send ACT packets for MST

2024-12-05 Thread Abhinav Kumar
Whenever virtual channel slot allocation changes, the DP source must send the action control trigger sequence to notify the sink about the same. This would be applicable during the start and stop of the pixel stream. Add the infrastructure to be able to send ACT packets for the DP controller when o

[PATCH 16/45] drm/msm/dp: add support for programming p1 register block

2024-12-05 Thread Abhinav Kumar
p1 register block is needed for the second mst stream. Add support in the catalog to be able to program this block. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_ca

[PATCH 19/45] drm/msm/dp: add support to program mst support in mainlink

2024-12-05 Thread Abhinav Kumar
Add support to program the MST enabled bit in the mainlink control when a mst session is active and disabled. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.c | 17 + drivers/gpu/drm/msm/dp/dp_catalog.h | 1 + drivers/gpu/drm/msm/dp/dp_ctrl.c| 4 3

[PATCH 09/45] drm/msm/dp: allow dp_ctrl stream APIs to use any panel passed to it

2024-12-05 Thread Abhinav Kumar
Currently, the dp_ctrl stream APIs operate on their own dp_panel which is cached inside the dp_ctrl's private struct. However with MST, the cached panel represents the fixed link and not the sinks which are hotplugged. Allow the stream related APIs to work on the panel which is passed to them rathe

[PATCH 23/45] drm/msm/dp: always program MST_FIFO_CONSTANT_FILL for MST

2024-12-05 Thread Abhinav Kumar
As required by the hardware programming guide, always program the MST_FIFO_CONSTANT_FILL for MST use-cases. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.c | 24 drivers/gpu/drm/msm/dp/dp_catalog.h | 1 + drivers/gpu/drm/msm/dp/dp_ctrl.c| 3 +++

[PATCH 15/45] drm/msm/dp: convert dp_display_set_mode() to use dp_panel argument

2024-12-05 Thread Abhinav Kumar
Convert dp_display_set_mode() to use the dp_panel passed to it as an argument rather than the cached one in dp_display_private. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 60 ++--- 1 file changed, 30 insertions(+), 30 deletions(-) diff

[PATCH 12/45] drm/msm/dp: make bridge helpers use dp_display to allow re-use

2024-12-05 Thread Abhinav Kumar
dp_bridge helpers take drm_bridge as an input and extract the dp_display object to be used in the dp_display module. Rather than doing it in a roundabout way, directly pass the dp_display object to these helpers so that the MST bridge can also re-use the same helpers. Signed-off-by: Abhinav Kumar

[PATCH 27/45] drm/msm/dp: make the SST bridge disconnected when mst is active

2024-12-05 Thread Abhinav Kumar
Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c index 920392b3c688821bccdc66d50fb7052ac3a9a85a..225858c6240512cf2c5ca3b5eb52cf9b7f4db3e3 100644

[PATCH 22/45] drm/msm/dp: add support to send vcpf packets in dp controller

2024-12-05 Thread Abhinav Kumar
VC payload fill sequence is inserted by the DP controller in the absence of stream symbols that is before stream is disabled. Add support to send the VCPF sequence for msm dp controller. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.c | 25 +++ drivers/gp

[PATCH 14/45] drm/msm/dp: introduce stream_id for each DP panel

2024-12-05 Thread Abhinav Kumar
With MST, each DP controller can handle multiple streams. There shall be one dp_panel for each stream but the dp_display object shall be shared among them. To represent this abstraction, create a stream_id for each DP panel which shall be set by the MST stream. For SST, default this to stream 0. U

[PATCH 08/45] drm/msm/dp: re-arrange dp_display_disable() into functional parts

2024-12-05 Thread Abhinav Kumar
dp_display_disable() handles special case of when monitor is disconnected from the dongle while the dongle stays connected thereby needing a separate function dp_ctrl_off_link_stream() for this. However with a slight rework this can still be handled by keeping common paths same for regular and spec

[PATCH 00/45] drm/msm/dp: Add MST support for MSM chipsets

2024-12-05 Thread Abhinav Kumar
rs/gpu/drm/msm/msm_atomic.c |2 + drivers/gpu/drm/msm/msm_drv.h | 29 + drivers/gpu/drm/msm/msm_kms.c |1 + 24 files changed, 2589 insertions(+), 296 deletions(-) --- base-commit: b166256c1e6ce356fa1404d4c8531830e6f100a8 change-id

[PATCH 02/45] drm/msm/dp: disable the opp table request even for dp_ctrl_off_link()

2024-12-05 Thread Abhinav Kumar
dp_ctrl_off_link() was created to handle a case where we received a cable connect and then get a cable disconnect without the corresponding dp_display_enable(). For such cases the pixel clock will be off but the link clock will still be on. dp_ctrl_off_link() handles this case by turning off the li

[PATCH 06/45] drm/msm/dp: remove dp_display's dp_mode and use dp_panel's instead

2024-12-05 Thread Abhinav Kumar
dp_display caches the current display mode and then passes it onto the panel to be used for programming the panel params. Remove this two level passing and directly populated the panel's dp_display_mode instead. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 46 ++

[PATCH 01/45] drm/msm/dp: dont call dp_catalog_ctrl_mainlink_ctrl in dp_ctrl_configure_source_params()

2024-12-05 Thread Abhinav Kumar
Once the link has already been setup there is no need to call dp_catalog_ctrl_mainlink_ctrl() as this does a reset on the mainlink thereby tearing down the link briefly. Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_

[PATCH 13/45] drm/msm/dp: separate dp_display_prepare() into its own API

2024-12-05 Thread Abhinav Kumar
dp_display_prepare() only prepares the link in case its not already ready before dp_display_enable(). Hence separate it into its own API. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 24 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 + drivers/gpu/dr

[PATCH 07/45] drm/msm/dp: break up dp_display_enable into two parts

2024-12-05 Thread Abhinav Kumar
dp_display_enable() currently re-trains the link if needed and then enables the pixel clock, programs the controller to start sending the pixel stream. Break up these two parts into separate APIs to distinguish these two parts better. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_ct

[PATCH 11/45] drm/msm/dp: split dp_ctrl_off() into stream and link parts

2024-12-05 Thread Abhinav Kumar
Split dp_ctrl_off() into stream and link parts so that for MST cases we can control the link and pixel parts separately. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 29 +++-- drivers/gpu/drm/msm/dp/dp_ctrl.h| 2 +- drivers/gpu/drm/msm/dp/dp

RE: [PATCH 01/10] compiler.h: add statically_false()

2024-12-05 Thread David Laight
From: Vincent Mailhol > Sent: 05 December 2024 15:26 > > On Thu. 5 Dec 2024 at 03:30, David Laight wrote: > > From: Vincent Mailhol > > > Sent: 02 December 2024 17:33 > > > > > > From: Vincent Mailhol > > > > > > For completion, add statically_false() which is the equivalent of > > > statically_

Re: [PATCH v1 04/10] phy: phy-rockchip-samsung-hdptx: Add support for eDP mode

2024-12-05 Thread Damon Ding
Hi Sebastian, On 2024/12/6 2:04, Sebastian Reichel wrote: Hello Damon, On Thu, Dec 05, 2024 at 09:13:33AM +0800, Damon Ding wrote: Firstly, the term "the HDMI and eDP dynamic switching" can be somewhat misleading, because the eDP usually does not support hot plug. The RK3588 eDP is often used

[syzbot] [dri?] possible deadlock in drm_mode_atomic_ioctl

2024-12-05 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7b1d1d4cfac0 Merge remote-tracking branch 'iommu/arm/smmu'.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=1759633058 kernel conf

Re: [PATCH 0/5] Some more drm/amd/display deadcoding

2024-12-05 Thread Dr. David Alan Gilbert
* li...@treblig.org (li...@treblig.org) wrote: > From: "Dr. David Alan Gilbert" > > Hi, > This removes a bunch more functions (and a field) from > drm/amd/display that are unused. > > Signed-off-by: Dr. David Alan Gilbert Hi Alex, Harry, Gentle ping on this set - I think you've already pul

RE: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-05 Thread David Laight
From: Vincent Mailhol > Sent: 05 December 2024 15:31 > > -CC: Martin Uecker > +CC: Martin Uecker > (seems that Martin changed his address) > > On Thu. 5 Dec. 2024 at 03:39, David Laight wrote: > > > Sent: 02 December 2024 17:33 > > > > > > From: Vincent Mailhol > > > > > > __is_constexpr(), w

Re: [PATCH V1 6/7] accel/amdxdna: Enhance power management settings

2024-12-05 Thread Lizhi Hou
On 12/4/24 19:52, Mario Limonciello wrote: On 12/4/2024 15:37, Lizhi Hou wrote: Add SET_STATE ioctl to configure device power mode for aie2 device. Three modes are supported initially. POWER_MODE_DEFAULT: Enable clock gating and set DPM (Dynamic Power Management) level to value which has been

Re: [PATCH v3 10/11] cxl/pmem: Remove match_nvdimm_bridge()

2024-12-05 Thread Zijun Hu
On 2024/12/6 06:49, Alison Schofield wrote: > On Thu, Dec 05, 2024 at 08:10:19AM +0800, Zijun Hu wrote: >> From: Zijun Hu > > Suggest conveying more detail in the commit msg: > > cxl/pmem> Replace match_nvdimm_bridge() w device_match_type() > good suggestions will take it in v4. >> >> match_n

Re: [PATCH v3 08/11] gpio: sim: Remove gpio_sim_dev_match_fwnode()

2024-12-05 Thread Zijun Hu
On 2024/12/6 00:24, Bartosz Golaszewski wrote: > On Thu, Dec 5, 2024 at 1:15 AM Zijun Hu wrote: >> >> From: Zijun Hu >> >> gpio_sim_dev_match_fwnode() is a simple wrapper of device_match_fwnode() >> Remvoe the unnecessary wrapper. >> >> Signed-off-by: Zijun Hu >> --- >> drivers/gpio/gpio-sim.c

Re: [PATCH v3 01/11] libnvdimm: Simplify nd_namespace_store() implementation

2024-12-05 Thread Zijun Hu
On 2024/12/6 07:30, Alison Schofield wrote: > On Thu, Dec 05, 2024 at 08:10:10AM +0800, Zijun Hu wrote: >> From: Zijun Hu > > Hi Zihun, > > Similar to my comment on Patch 10/11, this commit msg can be > explicit: > > libnvdimm: Replace namespace_match() w device_find_child_by_name() > >> >> Si

Re: [PATCH AUTOSEL 6.11 08/15] drm: display: Set fwnode for aux bus devices

2024-12-05 Thread Saravana Kannan
On Thu, Dec 5, 2024 at 4:06 PM Saravana Kannan wrote: > > On Wed, Dec 4, 2024 at 3:29 PM Sasha Levin wrote: > > > > From: Saravana Kannan > > > > [ Upstream commit fe2e59aa5d7077c5c564d55b7e2997e83710c314 ] > > > > fwnode needs to be set for a device for fw_devlink to be able to > > track/enforc

Re: [PATCH AUTOSEL 6.12 08/15] drm: display: Set fwnode for aux bus devices

2024-12-05 Thread Saravana Kannan
On Wed, Dec 4, 2024 at 3:28 PM Sasha Levin wrote: > > From: Saravana Kannan > > [ Upstream commit fe2e59aa5d7077c5c564d55b7e2997e83710c314 ] > > fwnode needs to be set for a device for fw_devlink to be able to > track/enforce its dependencies correctly. Without this, you'll see error > messages l

Re: [PATCH AUTOSEL 6.11 08/15] drm: display: Set fwnode for aux bus devices

2024-12-05 Thread Saravana Kannan
On Wed, Dec 4, 2024 at 3:29 PM Sasha Levin wrote: > > From: Saravana Kannan > > [ Upstream commit fe2e59aa5d7077c5c564d55b7e2997e83710c314 ] > > fwnode needs to be set for a device for fw_devlink to be able to > track/enforce its dependencies correctly. Without this, you'll see error > messages l

Re: [PATCH AUTOSEL 6.6 04/10] drm: display: Set fwnode for aux bus devices

2024-12-05 Thread Saravana Kannan
On Wed, Dec 4, 2024 at 3:29 PM Sasha Levin wrote: > > From: Saravana Kannan > > [ Upstream commit fe2e59aa5d7077c5c564d55b7e2997e83710c314 ] > > fwnode needs to be set for a device for fw_devlink to be able to > track/enforce its dependencies correctly. Without this, you'll see error > messages l

Re: [PATCH AUTOSEL 6.1 4/8] drm: display: Set fwnode for aux bus devices

2024-12-05 Thread Saravana Kannan
On Wed, Dec 4, 2024 at 3:30 PM Sasha Levin wrote: > > From: Saravana Kannan > > [ Upstream commit fe2e59aa5d7077c5c564d55b7e2997e83710c314 ] > > fwnode needs to be set for a device for fw_devlink to be able to > track/enforce its dependencies correctly. Without this, you'll see error > messages l

[PATCH v3] drm/panthor: Expose size of driver internal BO's over fdinfo

2024-12-05 Thread Adrián Larumbe
This will display the sizes of kenrel BO's bound to an open file, which are otherwise not exposed to UM through a handle. The sizes recorded are as follows: - Per group: suspend buffer, protm-suspend buffer, syncobjcs - Per queue: ringbuffer, profiling slots, firmware interface - For all heaps

Re: [v2 09/25] drm: Add helper to initialize segmented 1D LUT

2024-12-05 Thread Dmitry Baryshkov
On Tue, Dec 03, 2024 at 09:14:58AM +, Shankar, Uma wrote: > > > > -Original Message- > > From: Dmitry Baryshkov > > Sent: Saturday, November 30, 2024 3:17 PM > > To: Shankar, Uma > > Cc: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org; intel- > > x...@lists.freedesk

Re: [PATCH v6 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-12-05 Thread Dmitry Baryshkov
On Mon, Dec 02, 2024 at 09:13:22PM +0800, Yongbang Shi wrote: > From: baihan li > > To support DP interface displaying in hibmc driver. Add > a encoder and connector for DP modual. The HPD function > and get_edid function will be add in next series, so temporarily > using 1024x768 as default in h

Re: [PATCH v3 01/11] libnvdimm: Simplify nd_namespace_store() implementation

2024-12-05 Thread Alison Schofield
On Thu, Dec 05, 2024 at 08:10:10AM +0800, Zijun Hu wrote: > From: Zijun Hu Hi Zihun, Similar to my comment on Patch 10/11, this commit msg can be explicit: libnvdimm: Replace namespace_match() w device_find_child_by_name() > > Simplify nd_namespace_store() implementation by device_find_child

Re: [PATCH v6 drm-dp 4/5] drm/hisilicon/hibmc: separate struct of vdac

2024-12-05 Thread Dmitry Baryshkov
On Mon, Dec 02, 2024 at 09:13:21PM +0800, Yongbang Shi wrote: > From: baihan li > > Refactored struct hibmc_drm_private to separate VGA module from > generic struct. > > Signed-off-by: Baihan Li > Signed-off-by: Yongbang Shi > --- > ChangeLog: > v3 -> v4: > - separating hibmc_vdac and hibmc_

Re: [PATCH v6 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-12-05 Thread Dmitry Baryshkov
On Mon, Dec 02, 2024 at 09:13:20PM +0800, Yongbang Shi wrote: > From: baihan li > > Build a dp level that hibmc driver can enable dp by > calling their functions. > > Signed-off-by: Baihan Li > Signed-off-by: Yongbang Shi > --- > ChangeLog: > v5 -> v6: > - using drm_dbg_dp() to print debug i

Re: [PATCH v6 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-12-05 Thread Dmitry Baryshkov
On Mon, Dec 02, 2024 at 09:13:19PM +0800, Yongbang Shi wrote: > From: baihan li > > Add link training process functions in this moduel. > > Signed-off-by: Baihan Li > Signed-off-by: Yongbang Shi > --- > Changelog: > v5 -> v6: > - using drm_dbg_dp() to print debug info instead of drm_info(),

Re: [WIP RFC v2 13/35] WIP: rust: drm/kms: Add OpaqueConnector and OpaqueConnectorState

2024-12-05 Thread Lyude Paul
On Wed, 2024-11-27 at 12:51 -0300, Daniel Almeida wrote: > Hi Lyude, > > > On 30 Sep 2024, at 20:09, Lyude Paul wrote: > > > > Since we allow drivers to have multiple implementations of DriverConnector > > and DriverConnectorState (in C, the equivalent of this is having multiple > > structs whic

Re: [PATCH v2] Documentation: dma-buf: heaps: Add heap name definitions

2024-12-05 Thread John Stultz
On Tue, Dec 3, 2024 at 11:04 AM Andrew Davis wrote: > On 12/3/24 1:44 AM, Maxime Ripard wrote: > > On Mon, Dec 02, 2024 at 11:12:23AM -0800, John Stultz wrote: > >> Hrm. I'm not sure I see the value in enumerating things in this way, > >> it seems like it will be a nuisance to keep current? Maybe

Re: [PATCH v3 10/11] cxl/pmem: Remove match_nvdimm_bridge()

2024-12-05 Thread Alison Schofield
On Thu, Dec 05, 2024 at 08:10:19AM +0800, Zijun Hu wrote: > From: Zijun Hu Suggest conveying more detail in the commit msg: cxl/pmem> Replace match_nvdimm_bridge() w device_match_type() > > match_nvdimm_bridge(), as matching function of device_find_child(), is to > match a device with device t

Re: [PATCH v2 15/15] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-05 Thread kernel test robot
Hi AngeloGioacchino, kernel test robot noticed the following build errors: [auto build test ERROR on robh/for-next] [also build test ERROR on pza/reset/next linus/master drm-misc/drm-misc-next v6.13-rc1 next-20241205] [cannot apply to pza/imx-drm/next] [If your patch is applied to the wrong git

Re: [PATCH v4 2/3] drm/bridge: ti-sn65dsi83: Add ti,lvds-vod-swing optional properties

2024-12-05 Thread Dmitry Baryshkov
On Thu, Dec 05, 2024 at 02:40:20PM +0100, Andrej Picej wrote: > Add a optional properties to change LVDS output voltage. This should not > be static as this depends mainly on the connected display voltage > requirement. We have three properties: > - "ti,lvds-termination-ohms", which sets near end t

Re: [PATCH v3 04/11] driver core: Constify API device_find_child() then adapt for various usages

2024-12-05 Thread Alison Schofield
On Thu, Dec 05, 2024 at 08:10:13AM +0800, Zijun Hu wrote: > From: Zijun Hu > > Constify the following API: > struct device *device_find_child(struct device *dev, void *data, > int (*match)(struct device *dev, void *data)); > To : > struct device *device_find_child(struct device *dev

Re: [PATCH 1/1] dt-bindings: display: nwl-dsi: Allow 'data-lanes' property for port@1

2024-12-05 Thread Frank Li
On Mon, Nov 04, 2024 at 09:40:59AM -0600, Rob Herring wrote: > On Thu, Oct 31, 2024 at 03:47:14PM -0400, Frank Li wrote: > > Change $ref of port@1 from 'port' to 'port-base' and add 'endpoint' > > property referencing video-interfaces.yaml. Allow 'data-lanes' values > > 1, 2, 3, and 4 for port@1. >

Re: [PATCH v9 2/6] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-12-05 Thread Thomas Zimmermann
Am 04.12.24 um 16:45 schrieb Jocelyn Falempe: drm_log is a simple logger that uses the drm_client API to print the kmsg boot log on the screen. This is not a full replacement to fbcon, as it will only print the kmsg. It will never handle user input, or a terminal because this is better done i

[PULL] drm-misc-fixes

2024-12-05 Thread Maarten Lankhorst
Hi Dave, Simona, Filled with pepernoten, still had to send a drm-misc-fixes pull request. May contain DP-MST fixes with traces of v3d. :-) Cheers, ~Maarten drm-misc-fixes-2024-12-05: drm-misc-fixes v6.13-rc2: - v3d performance counter fix. - A lot of DP-MST related fixes. The following changes s

Re: [PATCH 2/3] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-05 Thread Konrad Dybcio
On 26.11.2024 3:06 PM, Akhil P Oommen wrote: > From: Jie Zhang > > Add gpu and gmu nodes for qcs615 chipset. > > Signed-off-by: Jie Zhang > Signed-off-by: Akhil P Oommen > --- > arch/arm64/boot/dts/qcom/qcs615.dtsi | 86 > > 1 file changed, 86 insertions(

Re: [PATCHv2 01/10] drm/crtc: Add histogram properties

2024-12-05 Thread Dmitry Baryshkov
On Thu, Dec 05, 2024 at 04:29:55PM +, Murthy, Arun R wrote: > > > > -Original Message- > > > > From: Dmitry Baryshkov > > > > Sent: Wednesday, December 4, 2024 5:17 PM > > > > To: Murthy, Arun R > > > > Cc: intel...@lists.freedesktop.org; intel-...@lists.freedesktop.org; > > > > dri-

Re: [PATCH v2] drm/panel: visionox-rm69299: Remove redundant assignments of panel fields

2024-12-05 Thread Dmitry Baryshkov
On Wed, Dec 04, 2024 at 05:39:41PM +0800, Chen-Yu Tsai wrote: > drm_panel_init() was made to initialize the fields in |struct drm_panel|. > There is no need to separately initialize them again. > > Drop the separate assignments that are redundant. Also fix up any uses > of `ctx->panel.dev` to use

Re: [PATCH v2] drm/bridge: ite-it6263: Support VESA-24 input format

2024-12-05 Thread Dmitry Baryshkov
On Thu, Dec 05, 2024 at 04:54:09PM +0800, Liu Ying wrote: > On 12/05/2024, tomm.merc...@gmail.com wrote: > > From: Tommaso Merciai > > > > Introduce it6263_is_input_bus_fmt_valid() and refactor the > > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA-24 > > format by selecting t

Re: [PATCH v2 15/15] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2024-12-05 Thread Dmitry Baryshkov
On Thu, Dec 05, 2024 at 02:30:51PM +0100, AngeloGioacchino Del Regno wrote: > Il 05/12/24 13:56, Dmitry Baryshkov ha scritto: > > On Thu, Dec 05, 2024 at 12:45:17PM +0100, AngeloGioacchino Del Regno wrote: > > > Add support for the newer HDMI-TX (Encoder) v2 and DDC v2 IPs > > > found in MediaTek's

Re: [PATCH v2 07/10] drm/rcar-du: Add support for r8a779h0

2024-12-05 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Thu, Dec 05, 2024 at 03:45:02PM +0200, Tomi Valkeinen wrote: > From: Tomi Valkeinen > > Add support for r8a779h0. It is very similar to r8a779g0, but has only > one output. > > Signed-off-by: Tomi Valkeinen > Tested-by: Geert Uytterhoeven Reviewed-by: La

Re: [PATCH v5 00/10] drm/display: hdmi: add drm_hdmi_connector_mode_valid()

2024-12-05 Thread Dmitry Baryshkov
On Sat, 30 Nov 2024 03:52:25 +0200, Dmitry Baryshkov wrote: > Several HDMI drivers have common code pice in the .mode_valid function > that validates RGB / 8bpc rate using the TMDS char rate callbacks. > > Move this code piece to the common helper and remove the need to perform > this check manual

[Bug 219563] amdgpu graphical glitches on Thinkpad E14 G6 with panel self-refresh enabled

2024-12-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219563 --- Comment #2 from Artem S. Tashkinov (a...@gmx.com) --- AFAIK, this could be solved in 6.12.2. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.

Re:Re: [PATCH v7] rockchip/drm: vop2: add support for gamma LUT

2024-12-05 Thread Piotr Zalewski
On Thursday, December 5th, 2024 at 1:53 PM, Andy Yan wrote: > I guess it returned because crtc_state->color_mgmt_changed is false when > called from > > vop2_crtc_atomic_enable from s2r. > Hi Heiko and Andy, Yes that was it. Moving the check out of *try_set_gamma and checking it only in the

[Bug 219563] amdgpu graphical glitches on Thinkpad E14 G6 with panel self-refresh enabled

2024-12-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219563 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED Reso

Re: [PATCH v4 15/18] dt-bindings: usb: Add ports to google,cros-ec-typec for DP altmode

2024-12-05 Thread Dmitry Baryshkov
On Tue, Dec 03, 2024 at 03:50:58PM -0800, Stephen Boyd wrote: > Quoting Dmitry Baryshkov (2024-11-21 14:59:42) > > On Tue, Nov 19, 2024 at 08:09:31PM -0500, Stephen Boyd wrote: > > > > > > It sounds like we're debating how to handle lane assignment in the > > > kernel. Either way, the code is going

Re: [PATCH 3/8] phy: qcom: qmp-usbc: Add DP phy mode support on QCS615

2024-12-05 Thread Dmitry Baryshkov
On Thu, Dec 05, 2024 at 09:26:47PM +0800, Xiangxu Yin wrote: > > > On 11/29/2024 10:33 PM, Dmitry Baryshkov wrote: > > On Fri, 29 Nov 2024 at 09:59, Xiangxu Yin wrote: > >> > >> Extended DP support for QCS615 USB or DP phy. Differentiated between > >> USBC and DP PHY using the match table’s type

Re: [PATCH v1 04/10] phy: phy-rockchip-samsung-hdptx: Add support for eDP mode

2024-12-05 Thread Sebastian Reichel
Hello Damon, On Thu, Dec 05, 2024 at 09:13:33AM +0800, Damon Ding wrote: > Firstly, the term "the HDMI and eDP dynamic switching" can be somewhat > misleading, because the eDP usually does not support hot plug. The RK3588 > eDP is often used as DP, and it actually supports DP 1.2. Therefore, it is

  1   2   3   >