Skip to contentSkip to conversation

parisc stable patch for kernel v6.13

PATCH In review Helge Deller 2 participants 2 messages May 5, 2025 – May 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc stable patch for kernel v6.13

Hi Greg,

below is a backport for upstream patch
fd87b7783802 ("net: Fix the devmem sock opts and msgs for parisc").

This upstream patch does not apply cleanly against v6.13, and backporting all intermediate changes are too big, so I created this trivial standalone patch instead.

Can you please add the patch below to the stable queue for v6.13?

Thanks!
Helge

---

From: Pranjal Shrivastava <[email protected]>
Date: Mon, 24 Mar 2025 07:42:27 +0000
Subject: [PATCH] net: Fix the devmem sock opts and msgs for parisc

The devmem socket options and socket control message definitions introduced in the TCP devmem series[1] incorrectly continued the socket definitions for arch/parisc.

The UAPI change seems safe as there are currently no drivers that declare support for devmem TCP RX via PP_FLAG_ALLOW_UNREADABLE_NETMEM. Hence, fixing this UAPI should be safe.

Fix the devmem socket options and socket control message definitions to reflect the series followed by arch/parisc.

[1] https://lore.kernel.org/lkml/[email protected]/

Patch modified for kernel 6.13 by Helge Deller.

Fixes 8f0b3cc9a4c10 ("tcp: RX path for devmem TCP")
arch/parisc/include/uapi/asm/socket.h +7 -5
index d268d69bfcd2..96831c988606 100644
@@ -132,13 +132,15 @@
 #define SO_PASSPIDFD		0x404A
 #define SO_PEERPIDFD		0x404B
 
-#define SO_DEVMEM_LINEAR	78
+#define SCM_TS_OPT_ID		0x404C
+
+#define SO_RCVPRIORITY		0x404D
+
+#define SO_DEVMEM_LINEAR	0x404E
 #define SCM_DEVMEM_LINEAR	SO_DEVMEM_LINEAR
-#define SO_DEVMEM_DMABUF	79
+#define SO_DEVMEM_DMABUF	0x404F
 #define SCM_DEVMEM_DMABUF	SO_DEVMEM_DMABUF
-#define SO_DEVMEM_DONTNEED	80
-
-#define SCM_TS_OPT_ID		0x404C
+#define SO_DEVMEM_DONTNEED	0x4050
 
 #if !defined(__KERNEL__)
 
#1 lore raw
Quoted 10 lines · Helge Deller

Hi Greg,

below is a backport for upstream patch
fd87b7783802 ("net: Fix the devmem sock opts and msgs for parisc").

This upstream patch does not apply cleanly against v6.13, and backporting all intermediate changes are too big, so I created this trivial standalone patch instead.

Can you please add the patch below to the stable queue for v6.13?

6.13.y is long end-of-life, sorry, no new patches being added there.

greg k-h