Re: [PATCH v6 05/10] tee: implement restricted DMA-heap

2025-04-09 Thread Jens Wiklander
On Wed, Apr 9, 2025 at 2:50 PM Sumit Garg wrote: > > On Tue, Apr 08, 2025 at 03:28:45PM +0200, Jens Wiklander wrote: > > On Tue, Apr 8, 2025 at 11:14 AM Sumit Garg wrote: > > > > > > On Tue, Apr 01, 2025 at 10:33:04AM +0200, Jens Wiklander wrote: > > > > On Tue, Apr 1, 2025 at 9:58 AM Sumit Garg

Re: [PATCH 0/8] DRM Rust abstractions

2025-04-09 Thread Simona Vetter
On Thu, Apr 10, 2025 at 07:29:30AM +1000, Dave Airlie wrote: > On Wed, 9 Apr 2025 at 17:49, Asahi Lina wrote: > > > > > > > > On 4/9/25 4:17 AM, Danilo Krummrich wrote: > > > On Wed, Apr 09, 2025 at 03:06:38AM +0900, Asahi Lina wrote: > > >> On 4/9/25 2:04 AM, Danilo Krummrich wrote: > > >>> On We

Re: [PATCH v6 4/4] drm/panthor: show device-wide list of DRM GEM objects over DebugFS

2025-04-09 Thread Boris Brezillon
On Wed, 9 Apr 2025 22:22:22 +0100 Adrián Larumbe wrote: > Add a device DebugFS file that displays a complete list of all the DRM > GEM objects that are exposed to UM through a DRM handle. > > Since leaking object identifiers that might belong to a different NS is > inadmissible, this functional

Re: [PATCH 2/2] drm/i915/backlight: Modify condition to use panel luminance

2025-04-09 Thread Nautiyal, Ankit K
On 4/8/2025 10:31 AM, Suraj Kandpal wrote: According to our internal spec we need to now check if both panel luminance and smooth brightness are available in panel for us to be able to change brightness using luminance value. Since DP_EDP_SMOOTH_BRIGHTNESS_CAPABLE is introduced in eDP2.0 and

Re: [PATCH v2 03/10] dt-bindings: display: msm: document DSI controller and phy on SA8775P

2025-04-09 Thread Krzysztof Kozlowski
On 09/04/2025 17:24, Dmitry Baryshkov wrote: > On 09/04/2025 09:07, Krzysztof Kozlowski wrote: >> On 08/04/2025 22:26, Dmitry Baryshkov wrote: > + - const: qcom,sa8775p-dsi-ctrl > + - const: qcom,mdss-dsi-ctrl Drop fallback >>> >>

Re: [PATCH] drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later

2025-04-09 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga El mié, 09-04-2025 a las 17:50 -0300, Maíra Canal escribió: > This commit is a resubmission of commit 1fe1c66274fb ("drm/v3d: Fix > Indirect Dispatch configuration for V3D 7.1.6 and later"), which was > accidentally reverted by commit 91dae758bdb8 ("Merge tag > 'dr

Re: [PATCH 2/2] drm/i915/backlight: Modify condition to use panel luminance

2025-04-09 Thread Nautiyal, Ankit K
On 4/10/2025 11:11 AM, Nautiyal, Ankit K wrote: On 4/8/2025 10:31 AM, Suraj Kandpal wrote: According to our internal spec we need to now check if both panel luminance and smooth brightness are available in panel for us to be able to change brightness using luminance value. Since DP_EDP_SMOO

Re: [PATCH 1/2] drm/dp: Add smooth brightness register bit definition

2025-04-09 Thread Nautiyal, Ankit K
On 4/8/2025 10:31 AM, Suraj Kandpal wrote: Add DP_EDP_SMOOTH_BRIGHTNESS register bit definition for EDP_GENERAL_CAPABILITY 2 register. Signed-off-by: Suraj Kandpal --- include/drm/display/drm_dp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/display/drm_dp.h b/include/dr

Re: [PATCH v4 03/13] media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Arend Van Spriel
On April 10, 2025 12:06:52 AM Johannes Berg wrote: On Wed, 2025-04-09 at 20:43 +0200, Arend van Spriel wrote: This is orthogonal to the change to parity_odd() though. More specific to the new parity_odd() you can now do following as parity_odd() argument is u64: err = !parity_odd(*(u16 *)p);

Re: [PATCH 2/2] drm/i915/backlight: Modify condition to use panel luminance

2025-04-09 Thread Murthy, Arun R
On 08-04-2025 10:31, Suraj Kandpal wrote: According to our internal spec we need to now check if both panel luminance and smooth brightness are available in panel for us to be able to change brightness using luminance value. Signed-off-by: Suraj Kandpal --- Reviewed-by: Arun R Murthy Thanks

Re: [PATCH 1/2] drm/dp: Add smooth brightness register bit definition

2025-04-09 Thread Murthy, Arun R
On 08-04-2025 10:31, Suraj Kandpal wrote: Add DP_EDP_SMOOTH_BRIGHTNESS register bit definition for EDP_GENERAL_CAPABILITY 2 register. Signed-off-by: Suraj Kandpal --- Reviewed-by: Arun R Murthy Thanks and Regards, Arun R Murthy include/drm/display/drm_dp.h | 1 + 1

Re: [PATCH v2 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access

2025-04-09 Thread Matthew Brost
On Thu, Apr 03, 2025 at 03:28:48PM -0600, Cavitt, Jonathan wrote: > -Original Message- > From: Intel-xe On Behalf Of Matthew > Brost > Sent: Thursday, April 3, 2025 1:27 PM > To: intel...@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Subject: [PATCH v2 2/4] drm/xe: Update

Re: [PATCH 1/4] soc: qcom: Expose DDR data from SMEM

2025-04-09 Thread Bjorn Andersson
On Wed, Apr 09, 2025 at 04:47:29PM +0200, Konrad Dybcio wrote: > From: Konrad Dybcio > > Most modern Qualcomm platforms (>= SM8150) expose information about the > DDR memory present on the system via SMEM. > > Details from this information is used in various scenarios, such as > multimedia drive

Re: [PATCH v4 00/13] Introduce parity_odd() and refactor redundant parity code

2025-04-09 Thread H. Peter Anvin
On 4/9/25 11:33, Yury Norov wrote: I don't have a strong preference for the name, but if I had to guess the return value from the function prototype, I would intuitively expect an int to return "0 for even and 1 for odd," and a bool to return "true for even, false for odd." I recall Jiri and Ja

[PATCH V1] accel/amdxdna: Fix incorrect size of ERT_START_NPU commands

2025-04-09 Thread Lizhi Hou
When multiple ERT_START_NPU commands are combined in one buffer, the buffer size calculation is incorrect. Also, the condition to make sure the buffer size is not beyond 4K is also fixed. Fixes: aac243092b70 ("accel/amdxdna: Add command execution") Signed-off-by: Lizhi Hou --- drivers/accel/amdx

Re: [PATCH v4 03/13] media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Arend van Spriel
On 4/9/2025 5:43 PM, Kuan-Wei Chiu wrote: Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/media/pci/cx18/cx18-av-vbi.c | 1

[PATCH v6 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-04-09 Thread Adrián Larumbe
Allow UM to label a BO for which it possesses a DRM handle. Signed-off-by: Adrián Larumbe Reviewed-by: Liviu Dudau Reviewed-by: Boris Brezillon --- drivers/gpu/drm/panthor/panthor_drv.c | 42 ++- drivers/gpu/drm/panthor/panthor_gem.h | 2 ++ include/uapi/drm/panthor_dr

[PATCH v8 3/6] rust: enable `clippy::as_ptr_cast_mut` lint

2025-04-09 Thread Tamir Duberstein
In Rust 1.66.0, Clippy introduced the `as_ptr_cast_mut` lint [1]: > Since `as_ptr` takes a `&self`, the pointer won’t have write > permissions unless interior mutability is used, making it unlikely > that having it as a mutable pointer is correct. There is only one affected callsite, and the chan

RE: [RFC] PCI: add CONFIG_MMU dependency

2025-04-09 Thread Deucher, Alexander
[Public] > -Original Message- > From: Arnd Bergmann > Sent: Monday, April 7, 2025 6:38 AM > To: Bjorn Helgaas > Cc: Arnd Bergmann ; Jeff Hugo > ; Carl Vanderlip ; Oded > Gabbay ; Takashi Sakamoto ; > Maarten Lankhorst ; Maxime Ripard > ; Thomas Zimmermann ; David > Airlie ; Simona Vetter

Re: [PATCH v4 03/13] media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Johannes Berg
On Wed, 2025-04-09 at 20:43 +0200, Arend van Spriel wrote: > > This is orthogonal to the change to parity_odd() though. More specific > to the new parity_odd() you can now do following as parity_odd() > argument is u64: > > err = !parity_odd(*(u16 *)p); > Can it though? Need to

[PULL] drm-intel-fixes

2025-04-09 Thread Jani Nikula
Hi Dave & Sima - Fixes for v6.15-rc2. drm-intel-fixes-2025-04-09: drm/i915 fixes for v6.15-rc2: - Fix scanline offset for LNL+ and BMG+ - Fix GVT unterminated-string-initialization build warning - Fix DP rate limit when sink doesn't support TPS4 - Handle GDDR + ECC memory type detection - Fix

Re: [PATCH v5 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-04-09 Thread Boris Brezillon
On Tue, 8 Apr 2025 23:24:22 +0100 Adrián Larumbe wrote: > Allow UM to label a BO for which it possesses a DRM handle. > > Signed-off-by: Adrián Larumbe > Reviewed-by: Liviu Dudau Just one minor doc issue below, but with this fixed, it's Reviewed-by: Boris Brezillon > --- > drivers/gpu/dr

Re: [PATCH 04/10] panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()

2025-04-09 Thread Dixit, Ashutosh
On Mon, 07 Apr 2025 08:49:23 -0700, Imre Deak wrote: > > Hi, > > On Tue, Apr 01, 2025 at 12:03:47PM -0400, Anusha Srivatsa wrote: > > Move to using the new API devm_drm_panel_alloc() to allocate the > > panel. > > > > Signed-off-by: Anusha Srivatsa > > --- > > drivers/gpu/drm/panel/panel-auo-a030

Re: [PATCH v4 01/13] bitops: Change parity8() to parity_odd() with u64 input and bool return type

2025-04-09 Thread Kuan-Wei Chiu
On Wed, Apr 09, 2025 at 11:39:22AM -0700, Guenter Roeck wrote: > On 4/9/25 11:25, Kuan-Wei Chiu wrote: > > On Wed, Apr 09, 2025 at 12:59:14PM -0400, Yury Norov wrote: > > > On Wed, Apr 09, 2025 at 11:43:44PM +0800, Kuan-Wei Chiu wrote: > > > > Redesign the parity8() helper as parity_odd(), changing

[PATCH] drm/meson: fix resource cleanup in meson_drv_bind_master() on error

2025-04-09 Thread Martin Blumenstingl
meson_drv_bind_master() does not free resources in the order they are allocated. This can lead to crashes such as: Unable to handle kernel NULL pointer dereference at virtual address 00c8 [...] Hardware name: Beelink GT-King Pro (DT) pstate: 6005 (nZCv daif -PAN -UA

Re: [PATCH 0/8] DRM Rust abstractions

2025-04-09 Thread Dave Airlie
On Wed, 9 Apr 2025 at 17:49, Asahi Lina wrote: > > > > On 4/9/25 4:17 AM, Danilo Krummrich wrote: > > On Wed, Apr 09, 2025 at 03:06:38AM +0900, Asahi Lina wrote: > >> On 4/9/25 2:04 AM, Danilo Krummrich wrote: > >>> On Wed, Apr 09, 2025 at 01:29:35AM +0900, Asahi Lina wrote: > On 3/26/25 8:54

[PATCH v6 4/4] drm/panthor: show device-wide list of DRM GEM objects over DebugFS

2025-04-09 Thread Adrián Larumbe
Add a device DebugFS file that displays a complete list of all the DRM GEM objects that are exposed to UM through a DRM handle. Since leaking object identifiers that might belong to a different NS is inadmissible, this functionality is only made available in debug builds with DEBUGFS support enabl

[PATCH v6 3/4] drm/panthor: Label all kernel BO's

2025-04-09 Thread Adrián Larumbe
Kernel BO's aren't exposed to UM, so labelling them is the responsibility of the driver itself. This kind of tagging will prove useful in further commits when want to expose these objects through DebugFS. Expand panthor_kernel_bo_create() interface to take a NULL-terminated string. No bounds check

[PATCH v6 0/4] Panthor BO tagging and GEMS debug display

2025-04-09 Thread Adrián Larumbe
This patch series is aimed at providing UM with detailed memory profiling information in debug builds. It is achieved through a device-wide list of DRM GEM objects, and also implementing the ability to label BO's from UM through a new IOCTL. The new debugfs file shows a list of driver DRM GEM obje

Re: Need Help Enabling HDMI on Debix Model A

2025-04-09 Thread Laurent Pinchart
Hi Tarang, On Mon, Apr 07, 2025 at 02:06:35PM +, Tarang Raval wrote: > > On Mon, Apr 07, 2025 at 11:10:23AM +, Tarang Raval wrote: > > > Hi Laurent, > > > > > > I’m trying to bring up HDMI on the Debix Model A board using the > > > mainline kernel, but I’m currently facing issues. > > > >

[PATCH] drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later

2025-04-09 Thread Maíra Canal
This commit is a resubmission of commit 1fe1c66274fb ("drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later"), which was accidentally reverted by commit 91dae758bdb8 ("Merge tag 'drm-misc-next-2024-08-01' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next"), likely due

Reminder: Seeking nominations for the 2025 X.Org Board of Directors Elections

2025-04-09 Thread Mark Filion
Hello! The nomination period is currently open for the upcoming election to the X.Org Foundation Board of Directors. All X.Org Foundation members are eligible for election to the board. Nominations for the 2025 election are now open and will remain open until 23:59 UTC on 16 April 2025. The Boar

Re: [PATCH v8 00/10] Improve gpu_scheduler trace events + UAPI

2025-04-09 Thread Pierre-Eric Pelloux-Prayer
Hi, I've rebased the series on top of drm-next, applied the minor tweaks suggested by Tvrtko on v8 and the R-b tags. The result can be found on gitlab.fdo: https://gitlab.freedesktop.org/pepp/linux/-/commits/improve_gpu_scheduler_trace_v9 I believe it's ready to be merged, unless I've missed

[PATCH v4 08/13] net: ethernet: oa_tc6: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/net/ethernet/oa_tc6.c | 19 +++ 1 file changed, 3 insertions(

Re: [PATCH v4 07/13] Input: joystick - Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Dmitry Torokhov
On Wed, Apr 09, 2025 at 11:43:50PM +0800, Kuan-Wei Chiu wrote: > Refactor parity calculations to use the standard parity_odd() helper. > This change eliminates redundant implementations. > > Co-developed-by: Yu-Chun Lin > Signed-off-by: Yu-Chun Lin > Signed-off-by: Kuan-Wei Chiu Acked-by: Dmit

Re: [PATCH v4 02/13] media: media/test_drivers: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Yury Norov
On Thu, Apr 10, 2025 at 02:23:09AM +0800, Kuan-Wei Chiu wrote: > On Wed, Apr 09, 2025 at 01:03:42PM -0400, Yury Norov wrote: > > On Wed, Apr 09, 2025 at 11:43:45PM +0800, Kuan-Wei Chiu wrote: > > > Refactor parity calculations to use the standard parity_odd() helper. > > > This change eliminates re

Re: [PATCH v4 03/13] media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
On Wed, Apr 09, 2025 at 08:43:09PM +0200, Arend van Spriel wrote: > On 4/9/2025 5:43 PM, Kuan-Wei Chiu wrote: > > Refactor parity calculations to use the standard parity_odd() helper. > > This change eliminates redundant implementations. > > > > Co-developed-by: Yu-Chun Lin > > Signed-off-by: Yu-

Re: [PATCH 1/2] dma-fence: Rename dma_fence_is_signaled()

2025-04-09 Thread Christian König
Am 09.04.25 um 16:01 schrieb Philipp Stanner: > On Wed, 2025-04-09 at 15:14 +0200, Christian König wrote: >> Am 09.04.25 um 14:56 schrieb Philipp Stanner: >>> On Wed, 2025-04-09 at 14:51 +0200, Philipp Stanner wrote: On Wed, 2025-04-09 at 14:39 +0200, Boris Brezillon wrote: > Hi Philipp, >

Re: [PATCH 1/2] dma-fence: Rename dma_fence_is_signaled()

2025-04-09 Thread Philipp Stanner
On Wed, 2025-04-09 at 15:14 +0200, Christian König wrote: > Am 09.04.25 um 14:56 schrieb Philipp Stanner: > > On Wed, 2025-04-09 at 14:51 +0200, Philipp Stanner wrote: > > > On Wed, 2025-04-09 at 14:39 +0200, Boris Brezillon wrote: > > > > Hi Philipp, > > > > > > > > On Wed,  9 Apr 2025 14:06:37 +

[PATCH v2] drm/amd/display: Add error check for avi and vendor infoframe setup function

2025-04-09 Thread Wentao Liang
The function fill_stream_properties_from_drm_display_mode() calls the function drm_hdmi_avi_infoframe_from_display_mode() and the function drm_hdmi_vendor_infoframe_from_display_mode(), but does not check its return value. Log the error messages to prevent silent failure if either function fails.

Re: [PATCH v4 01/13] bitops: Change parity8() to parity_odd() with u64 input and bool return type

2025-04-09 Thread Guenter Roeck
On 4/9/25 11:25, Kuan-Wei Chiu wrote: On Wed, Apr 09, 2025 at 12:59:14PM -0400, Yury Norov wrote: On Wed, Apr 09, 2025 at 11:43:44PM +0800, Kuan-Wei Chiu wrote: Redesign the parity8() helper as parity_odd(), changing its input type from u8 to u64 to support broader use cases and its return type

Re: [PATCH RESEND RFC v4 3/6] drm/display: dp: use new DCPD access helpers

2025-04-09 Thread Kees Bakker
Op 24-03-2025 om 12:51 schreef Dmitry Baryshkov: From: Dmitry Baryshkov Switch drm_dp_helper.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_helper.c | 296 +

[PATCH 0/4] Add support for Saef SFTO340XC panel.

2025-04-09 Thread Kory Maincent
Add support for Saef Technology Limited SFTO340XC LCD panel. Add alongside the number of lanes configuration in the ili9881c driver as the board on my desc use the panel with only two lanes. Signed-off-by: Kory Maincent --- Kory Maincent (4): dt-bindings: display: panel: ili9881c: Add dsi-l

Re: [PATCH v2 01/18] drm/tidss: Fix missing includes and struct decls

2025-04-09 Thread Aradhya Bhatia
On 02/04/25 19:00, Tomi Valkeinen wrote: > Fix missing includes and struct declarations. Even if these don't cause > any compile issues at the moment, it's good to have them correct. > > Signed-off-by: Tomi Valkeinen > --- > drivers/gpu/drm/tidss/tidss_dispc.h | 3 +++ > drivers/gpu/drm

Re: [PATCH v4 00/13] Introduce parity_odd() and refactor redundant parity code

2025-04-09 Thread Yury Norov
On Thu, Apr 10, 2025 at 02:15:30AM +0800, Kuan-Wei Chiu wrote: > On Wed, Apr 09, 2025 at 12:54:35PM -0400, Yury Norov wrote: > > On Wed, Apr 09, 2025 at 11:43:43PM +0800, Kuan-Wei Chiu wrote: > > > Several parts of the kernel contain open-coded and redundant > > > implementations of parity calculat

Re: [PATCH v4 05/13] serial: max3100: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
On Wed, Apr 09, 2025 at 01:24:08PM -0400, Yury Norov wrote: > On Wed, Apr 09, 2025 at 11:43:48PM +0800, Kuan-Wei Chiu wrote: > > Refactor parity calculations to use the standard parity_odd() helper. > > This change eliminates redundant implementations. > > > > Co-developed-by: Yu-Chun Lin > > Sig

Re: [PATCH v2 2/9] drm/panthor: Use 64-bit and poll register accessors

2025-04-09 Thread Karunika Choo
On 21/03/2025 07:53, Boris Brezillon wrote: > On Thu, 20 Mar 2025 11:17:34 + > Karunika Choo wrote: > >> This patch updates Panthor to use the new 64-bit accessors and poll >> functions. > > nit: I don't think it makes sense to dissociate the introduction of the > new helpers and their use.

Re: [PATCH v2 0/2] drm/ci: Add devicetree validation and KUnit tests

2025-04-09 Thread Helen Koike
Hi Vignesh, Thank you for your patch. On 09/04/2025 03:15, Vignesh Raman wrote: Add jobs to validate devicetrees and run KUnit tests. Pipeline link, https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1400550 I see the checks are in the same stage as build, does it make sense to c

Re: [PATCH v4 02/13] media: media/test_drivers: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
On Wed, Apr 09, 2025 at 01:03:42PM -0400, Yury Norov wrote: > On Wed, Apr 09, 2025 at 11:43:45PM +0800, Kuan-Wei Chiu wrote: > > Refactor parity calculations to use the standard parity_odd() helper. > > This change eliminates redundant implementations. > > > > Co-developed-by: Yu-Chun Lin > > Sig

Re: [PATCH 2/2] dma-fence: Improve docu for dma_fence_check_and_signal()

2025-04-09 Thread Li, Yunxiang (Teddy)
[AMD Official Use Only - AMD Internal Distribution Only] Hi Philipp, I feel like the problem has two parts. The documentation does not make explicit that DMA_FENCE_FLAG_SIGNALED_BIT is "caching" the hardware state when a fence is backed by hardware, so what dma_fence_is_signaled here is doing i

Re: [PATCH v4 00/13] Introduce parity_odd() and refactor redundant parity code

2025-04-09 Thread Kuan-Wei Chiu
On Wed, Apr 09, 2025 at 12:54:35PM -0400, Yury Norov wrote: > On Wed, Apr 09, 2025 at 11:43:43PM +0800, Kuan-Wei Chiu wrote: > > Several parts of the kernel contain open-coded and redundant > > implementations of parity calculation. This patch series introduces > > a unified helper, parity_odd(), t

[PATCH v4 11/13] mtd: ssfdc: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/mtd/ssfdc.c | 20 1 file changed, 4 insertions(+), 16 de

[PATCH v2 3/3] accel/amdpk: add debugfs support

2025-04-09 Thread Nipun Gupta
Add debugfs support for AMD PKI accelerator. The debugfs support prints the following: - Hardware info - Hardware configuration - Busy and idle cycles count in the PK engines - pending requests for each queue Signed-off-by: Nipun Gupta --- Changes RFC->v2: - this is a new patch which adds debug

[PULL] drm-misc-next

2025-04-09 Thread Maarten Lankhorst
Hi Dave, Simona, Here's the first pull request for drm-misc-next in the v6.16 cycle, enjoy! Notably, UAPI header for asahi is merged! Best regards, ~Maarten drm-misc-next-2025-04-09: drm-misc-next for v6.16-rc1: UAPI Changes: - Add ASAHI uapi header! - Add apple fourcc modifiers. - Add capset

Re: [PATCH v4 05/13] serial: max3100: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Yury Norov
On Wed, Apr 09, 2025 at 11:43:48PM +0800, Kuan-Wei Chiu wrote: > Refactor parity calculations to use the standard parity_odd() helper. > This change eliminates redundant implementations. > > Co-developed-by: Yu-Chun Lin > Signed-off-by: Yu-Chun Lin > Signed-off-by: Kuan-Wei Chiu > --- > driver

Re: [PATCH v3 12/15] drm/tests: hdmi: Setup ycbcr_420_allowed before initializing connector

2025-04-09 Thread Maxime Ripard
On Wed, 26 Mar 2025 12:20:01 +0200, Cristian Ciocaltea wrote: > Initializing HDMI connector via drmm_connector_hdmi_init() requires its > ->ycbcr_420_allowed flag to be adjusted according to the supported > formats passed as function argument, prior to the actual invocation. > > In order to allow

Re: [PATCH v3 08/15] drm/tests: hdmi: Add macros to simplify EDID setup

2025-04-09 Thread Maxime Ripard
On Wed, Mar 26, 2025 at 12:19:57PM +0200, Cristian Ciocaltea wrote: > Introduce a few macros to facilitate setting custom (i.e. non-default) > EDID data during connector initialization. > > The actual conversion to use the new helpers is handled separately. > > Signed-off-by: Cristian Ciocaltea

[PATCH v2 1/3] dt-bindings: accel: add device tree for AMD PKI accelerator

2025-04-09 Thread Nipun Gupta
Add binding documentation for AMD PKI accelerator supported for AMD versal-net SoC. AMD PKI accelerator is a device on AMD versa-net SoC to execute public key asymmetric crypto operations like ECDSA, ECDH, RSA etc. with high performance. The driver provides accel interface to applications for conf

[PATCH v2 2/3] accel/amdpk: add driver for AMD PKI accelerator

2025-04-09 Thread Nipun Gupta
The AMD PKI accelerator driver provides a accel interface to interact with the device for offloading and accelerating asymmetric crypto operations. Signed-off-by: Nipun Gupta --- Changes RFC->v2: - moved from misc to accel - added architecture and compile test dependency in Kconfig - removed sys

Re: [lvc-project] [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-09 Thread Linus Torvalds
On Wed, 9 Apr 2025 at 00:29, Christian König wrote: > > I mean open coding the limit checks everywhere certainly works, but as far as > I can see it would be more defensive if we do that inside kvmalloc_array(). No. If we add some limit to kvmalloc_array(), I guarantee that people will just the

RE: [PATCH v7 00/12] mtd: add driver for Intel discrete graphics

2025-04-09 Thread Usyskin, Alexander
> On Wed, Mar 26, 2025 at 05:26:11PM +0200, Alexander Usyskin wrote: > > Add driver for access to Intel discrete graphics card > > internal NVM device. > > Expose device on auxiliary bus by i915 and Xe drivers and > > provide mtd driver to register this device with MTD framework. > > > > This is a

[PATCH v4 00/13] Introduce parity_odd() and refactor redundant parity code

2025-04-09 Thread Kuan-Wei Chiu
Several parts of the kernel contain open-coded and redundant implementations of parity calculation. This patch series introduces a unified helper, parity_odd(), to simplify and standardize these cases. The first patch renames parity8() to parity_odd(), changes its argument type from u8 to u64 for

[PATCH v8 6/6] rust: enable `clippy::ref_as_ptr` lint

2025-04-09 Thread Tamir Duberstein
In Rust 1.78.0, Clippy introduced the `ref_as_ptr` lint [1]: > Using `as` casts may result in silently changing mutability or type. While this doesn't eliminate unchecked `as` conversions, it makes such conversions easier to scrutinize. It also has the slight benefit of removing a degree of free

Re: [PATCH] drm/mediatek: mtk_dp: Fix hdmi codec and phy driver unregistration

2025-04-09 Thread Chen-Yu Tsai
On Thu, Apr 3, 2025 at 7:09 PM AngeloGioacchino Del Regno wrote: > > During probe, this driver is registering two platform devices: one > for the HDMI Codec driver and one for the DisplayPort PHY driver. > > In the probe function, none of the error cases are unregistering > any of the two platform

Re: [PATCH v4 02/13] media: media/test_drivers: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Yury Norov
On Wed, Apr 09, 2025 at 11:43:45PM +0800, Kuan-Wei Chiu wrote: > Refactor parity calculations to use the standard parity_odd() helper. > This change eliminates redundant implementations. > > Co-developed-by: Yu-Chun Lin > Signed-off-by: Yu-Chun Lin > Signed-off-by: Kuan-Wei Chiu > --- > driver

Re: [PATCH v4 00/13] Introduce parity_odd() and refactor redundant parity code

2025-04-09 Thread Yury Norov
On Wed, Apr 09, 2025 at 11:43:43PM +0800, Kuan-Wei Chiu wrote: > Several parts of the kernel contain open-coded and redundant > implementations of parity calculation. This patch series introduces > a unified helper, parity_odd(), to simplify and standardize these > cases. > > The first patch renam

Re: [PATCH v4 01/13] bitops: Change parity8() to parity_odd() with u64 input and bool return type

2025-04-09 Thread Yury Norov
On Wed, Apr 09, 2025 at 11:43:44PM +0800, Kuan-Wei Chiu wrote: > Redesign the parity8() helper as parity_odd(), changing its input type > from u8 to u64 to support broader use cases and its return type from > int to bool to clearly reflect the function's binary output. The > function now returns tr

Re: [PATCH v3 11/15] drm/tests: hdmi: Drop unused drm_kunit_helper_connector_hdmi_init_funcs()

2025-04-09 Thread Maxime Ripard
On Wed, Mar 26, 2025 at 12:20:00PM +0200, Cristian Ciocaltea wrote: > After updating the code to make use of the new EDID setup helpers, > drm_kunit_helper_connector_hdmi_init_funcs() became unused, hence drop > it. > > Signed-off-by: Cristian Ciocaltea > --- > drivers/gpu/drm/tests/drm_hdmi_sta

[pull] amdgpu, amdkfd drm-fixes-6.15

2025-04-09 Thread Alex Deucher
Hi Dave, Sima, Fixes for 6.15. The following changes since commit dce8bd9137b88735dd0efc4e2693213d98c15913: drm/amdgpu/gfx12: fix num_mec (2025-03-26 17:47:18 -0400) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-fixes-6.15-2025-04-09

[PATCH v8 05/23] drm/mediatek: mtk_hdmi: Convert to module_platform_driver macro

2025-04-09 Thread AngeloGioacchino Del Regno
Now that all of the mtk_hdmi subdrivers are a platform driver on their own it is possible to remove the custom init/exit functions in this driver and just use the module_platform_driver() macro. While at it, also compress struct of_device_id entries and remove stray commas in mtk_hdmi_driver assig

[PATCH 0/1] drm/amd/display: Add quirk to force backlight type on some TUXEDO devices

2025-04-09 Thread Werner Sembach
This is a quirk we currently manually apply via our installer, but we don't have this exact device + panel configuration in our archive anymore so I could only test the qurik moking in other ids. Werner Sembach (1): drm/amd/display: Add quirk to force backlight type on some TUXEDO devices

[PATCH 2/2] drm/v3d: client ranges from axi_ids are different with V3D 7.1

2025-04-09 Thread Jose Maria Casanova Crespo
The client mask has been reduced from 8 bits on V3D 4.1 to 7 bits on V3d 7.1, so the ranges for each client are not compatible. A new CSD client can now report MMU errors on 7.1 Signed-off-by: Jose Maria Casanova Crespo --- drivers/gpu/drm/v3d/v3d_irq.c | 21 - 1 file change

[PATCH 1/2] drm/v3d: fix client obtained from axi_ids on V3D 4.1

2025-04-09 Thread Jose Maria Casanova Crespo
The client that causes an MMU error is expected to be reported. But in the case of MMU TFU errors, a non existing client was being reported. This happened because because the client calculation was taking into account more than the bits 0-7 from the axi_id that were representing the client. This

[PATCH v4 04/13] media: saa7115: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/media/i2c/saa7115.c | 12 ++-- 1 file changed, 2 insertions(+), 10 de

Re: [PATCH v2 10/15] drm: renesas: rz-du: mipi_dsi: Use mHz for D-PHY frequency calculations

2025-04-09 Thread Lad, Prabhakar
Hi Geert, Thank you for the review. On Wed, Apr 9, 2025 at 9:16 AM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Tue, 8 Apr 2025 at 22:09, Prabhakar wrote: > > From: Lad Prabhakar > > > > Pass the HSFREQ in milli-Hz to the `dphy_init()` callback to improve > > precision, especially for th

Re: [PATCH 3/4] drm/msm/a6xx: Get HBB dynamically, if available

2025-04-09 Thread Konrad Dybcio
On 4/9/25 5:44 PM, Connor Abbott wrote: > On Wed, Apr 9, 2025 at 11:40 AM Konrad Dybcio > wrote: >> >> On 4/9/25 5:30 PM, Connor Abbott wrote: >>> On Wed, Apr 9, 2025 at 11:22 AM Konrad Dybcio >>> wrote: On 4/9/25 5:12 PM, Connor Abbott wrote: > On Wed, Apr 9, 2025 at 10:48 AM Konra

Re: [PATCH 3/4] drm/msm/a6xx: Get HBB dynamically, if available

2025-04-09 Thread Connor Abbott
On Wed, Apr 9, 2025 at 11:40 AM Konrad Dybcio wrote: > > On 4/9/25 5:30 PM, Connor Abbott wrote: > > On Wed, Apr 9, 2025 at 11:22 AM Konrad Dybcio > > wrote: > >> > >> On 4/9/25 5:12 PM, Connor Abbott wrote: > >>> On Wed, Apr 9, 2025 at 10:48 AM Konrad Dybcio > >>> wrote: > > From: Ko

Re: [PATCH 0/4] Retrieve information about DDR from SMEM

2025-04-09 Thread Konrad Dybcio
On 4/9/25 5:44 PM, Dmitry Baryshkov wrote: > On 09/04/2025 17:47, Konrad Dybcio wrote: >> SMEM allows the OS to retrieve information about the DDR memory. >> Among that information, is a semi-magic value called 'HBB', or Highest >> Bank address Bit, which multimedia drivers (for hardware like Adren

[PATCH v4 13/13] nfp: bpf: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/net/ethernet/netronome/nfp/nfp_asm.c | 7 +-- 1 file changed, 1 insertion

[PATCH v4 12/13] fsi: i2cr: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/fsi/fsi-master-i2cr.c | 20 +++- 1 file changed, 3 insertions

[PATCH v4 10/13] drm/bridge: dw-hdmi: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c | 8 ++-- 1 file changed, 2 i

[PATCH v4 09/13] wifi: brcm80211: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu Acked-by: Arend van Spriel --- .../wireless/broadcom/brcm80211/brcmsmac/dma.c | 18 ++---

[PATCH v4 07/13] Input: joystick - Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/input/joystick/grip_mp.c| 17 ++--- drivers/input/joystick/si

[PATCH v4 05/13] serial: max3100: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/tty/serial/max3100.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v4 06/13] lib/bch: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- lib/bch.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff

[PATCH v4 03/13] media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/media/pci/cx18/cx18-av-vbi.c | 12 ++-- 1 file changed, 2 insertions(

[PATCH v4 02/13] media: media/test_drivers: Replace open-coded parity calculation with parity_odd()

2025-04-09 Thread Kuan-Wei Chiu
Refactor parity calculations to use the standard parity_odd() helper. This change eliminates redundant implementations. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- drivers/media/test-drivers/vivid/vivid-vbi-gen.c | 8 ++-- 1 file changed, 2 inse

[PATCH v4 01/13] bitops: Change parity8() to parity_odd() with u64 input and bool return type

2025-04-09 Thread Kuan-Wei Chiu
Redesign the parity8() helper as parity_odd(), changing its input type from u8 to u64 to support broader use cases and its return type from int to bool to clearly reflect the function's binary output. The function now returns true for odd parity and false for even parity, making its behavior more i

Re: [PATCH 0/4] Retrieve information about DDR from SMEM

2025-04-09 Thread Dmitry Baryshkov
soc/qcom/smem.h | 4 + 8 files changed, 371 insertions(+), 16 deletions(-) --- base-commit: 46086739de22d72319e37c37a134d32db52e1c5c change-id: 20250409-topic-smem_dramc-6467187ac865 Best regards, -- With best wishes Dmitry

Re: [PATCH v2 03/10] dt-bindings: display: msm: document DSI controller and phy on SA8775P

2025-04-09 Thread Dmitry Baryshkov
On 09/04/2025 09:07, Krzysztof Kozlowski wrote: On 08/04/2025 22:26, Dmitry Baryshkov wrote: + - const: qcom,sa8775p-dsi-ctrl + - const: qcom,mdss-dsi-ctrl Drop fallback Hi Krzysztof, I couldn't understand the meaning of "Drop fallback", could please elaborate it ? L

Re: [PATCH 3/4] drm/msm/a6xx: Get HBB dynamically, if available

2025-04-09 Thread Konrad Dybcio
On 4/9/25 5:30 PM, Connor Abbott wrote: > On Wed, Apr 9, 2025 at 11:22 AM Konrad Dybcio > wrote: >> >> On 4/9/25 5:12 PM, Connor Abbott wrote: >>> On Wed, Apr 9, 2025 at 10:48 AM Konrad Dybcio >>> wrote: From: Konrad Dybcio The Highest Bank address Bit value can change based

Re: [PATCH 3/4] drm/msm/a6xx: Get HBB dynamically, if available

2025-04-09 Thread Connor Abbott
On Wed, Apr 9, 2025 at 11:22 AM Konrad Dybcio wrote: > > On 4/9/25 5:12 PM, Connor Abbott wrote: > > On Wed, Apr 9, 2025 at 10:48 AM Konrad Dybcio > > wrote: > >> > >> From: Konrad Dybcio > >> > >> The Highest Bank address Bit value can change based on memory type used. > >> > >> Attempt to ret

Re: [PATCH v4 0/3] Use proper printk format in appletbdrm

2025-04-09 Thread Petr Mladek
On Tue 2025-04-08 12:38:50, Andy Shevchenko wrote: > On Tue, Apr 08, 2025 at 08:52:10AM +, Aditya Garg wrote: > > > On 8 Apr 2025, at 2:11 PM, Andy Shevchenko > > > wrote: > > > On Tue, Apr 08, 2025 at 12:17:13PM +0530, Aditya Garg wrote: > > >> The vsprint patch was originally being sent as

Re: [PATCH v3 09/15] drm/tests: hdmi: Fixup CamelCase warning

2025-04-09 Thread Maxime Ripard
On Wed, Mar 26, 2025 at 12:19:58PM +0200, Cristian Ciocaltea wrote: > Rename the reject_100_MHz_connector_hdmi_funcs variable to make > checkpatch.pl happy: > > CHECK: Avoid CamelCase: > > While at it, also rename reject_100MHz_connector_tmds_char_rate_valid() > for consistency. > > Signed-of

Re: [PATCH v2] drm/amd/display: Add error check for avi and vendor infoframe setup function

2025-04-09 Thread Alex Hung
On 4/7/25 20:20, Wentao Liang wrote: The function fill_stream_properties_from_drm_display_mode() calls the function drm_hdmi_avi_infoframe_from_display_mode() and the function drm_hdmi_vendor_infoframe_from_display_mode(), but does not check its return value. Log the error messages to prevent

Re: [PATCH 3/4] drm/msm/a6xx: Get HBB dynamically, if available

2025-04-09 Thread Konrad Dybcio
On 4/9/25 5:12 PM, Connor Abbott wrote: > On Wed, Apr 9, 2025 at 10:48 AM Konrad Dybcio wrote: >> >> From: Konrad Dybcio >> >> The Highest Bank address Bit value can change based on memory type used. >> >> Attempt to retrieve it dynamically, and fall back to a reasonable >> default (the one used

Re: [PATCH v3 10/15] drm/tests: hdmi: Replace open coded EDID setup

2025-04-09 Thread Maxime Ripard
On Wed, Mar 26, 2025 at 12:19:59PM +0200, Cristian Ciocaltea wrote: > Make use of the recently introduced macros to reduce boilerplate code > around EDID setup. This also helps dropping the redundant calls to > set_connector_edid(). > > No functional changes intended. > > Signed-off-by: Cristian

Re: [PATCH 3/4] drm/msm/a6xx: Get HBB dynamically, if available

2025-04-09 Thread Connor Abbott
On Wed, Apr 9, 2025 at 10:48 AM Konrad Dybcio wrote: > > From: Konrad Dybcio > > The Highest Bank address Bit value can change based on memory type used. > > Attempt to retrieve it dynamically, and fall back to a reasonable > default (the one used prior to this change) on error. > > Signed-off-by

Re: [PATCH v3 07/15] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-04-09 Thread Maxime Ripard
On Wed, Mar 26, 2025 at 12:19:56PM +0200, Cristian Ciocaltea wrote: > Try to make use of YUV420 when computing the best output format and > RGB cannot be supported for any of the available color depths. > > Signed-off-by: Cristian Ciocaltea > --- > drivers/gpu/drm/display/drm_hdmi_state_helper.c

Re: [PATCH v4 0/7] Support for GPU ACD feature on Adreno X1-85

2025-04-09 Thread Konrad Dybcio
On 3/18/25 2:12 PM, Anthony Ruhier wrote: > Using this patch serie on 6.14-rc (tested over multiple RCs, up to rc7) on a > Yoga Slim 7x (x1e80100), I often get a video output freeze a few seconds after > my wayland compositor loads. I can still ssh into the laptop. I get these > kernel errors in lo

  1   2   >