Skip to contentSkip to conversation

s390/net: Remove LCS driver

PATCH Applied Alexandra Winter 3 participants 3 messages Feb 4, 2025 – Feb 6, 2025

Subsystems (5)
lore
Share & tools
lore

Alexandra Winter

author maintainer
#0 lore raw

PATCH 1/1 s390/net: Remove LCS driver

From: Aswin Karuvally <[email protected]>

The original Open Systems Adapter (OSA) was introduced by IBM in the mid-90s. These were then superseded by OSA-Express in 1999 which used Queued Direct IO to greatly improve throughput. The newer cards retained the older, slower non-QDIO (OSE) modes for compatibility with older systems. In Linux, the lcs driver was responsible for cards operating in the older OSE mode and the qeth driver was introduced to allow the OSA-Express cards to operate in the newer QDIO (OSD) mode.

For an S390 machine from 1998 or later, there is no reason to use the OSE mode and lcs driver as all OSA cards since 1999 provide the faster OSD mode. As a result, it's been years since we have heard of a customer configuration involving the lcs driver.

This patch removes the lcs driver. The technology it supports has been obsolete for past 25+ years and is irrelevant for current use cases.

---
 Documentation/arch/s390/driver-model.rst |    2 +-
 arch/s390/include/asm/irq.h              |    1 -
 arch/s390/kernel/irq.c                   |    1 -
 drivers/s390/net/Kconfig                 |   11 +-
 drivers/s390/net/Makefile                |    1 -
 drivers/s390/net/lcs.c                   | 2385 ----------------------
 drivers/s390/net/lcs.h                   |  342 ----
 7 files changed, 2 insertions(+), 2741 deletions(-)
 delete mode 100644 drivers/s390/net/lcs.c
 delete mode 100644 drivers/s390/net/lcs.h
Documentation/arch/s390/driver-model.rst +1 -1
index ad4bc2dbea43..ad18f129fb0b 100644
@@ -244,7 +244,7 @@ information about the interrupt from the irb parameter.
 --------------------
 
 The ccwgroup mechanism is designed to handle devices consisting of multiple ccw
-devices, like lcs or ctc.
+devices, like qeth or ctc.
 
 The ccw driver provides a 'group' attribute. Piping bus ids of ccw devices to
 this attributes creates a ccwgroup device consisting of these ccw devices (if
arch/s390/include/asm/irq.h +0 -1
index d9e705f4a697..bde6a496df5f 100644
@@ -54,7 +54,6 @@ enum interruption_class {
 	IRQIO_C70,
 	IRQIO_TAP,
 	IRQIO_VMR,
-	IRQIO_LCS,
 	IRQIO_CTC,
 	IRQIO_ADM,
 	IRQIO_CSC,
arch/s390/kernel/irq.c +0 -1
index ef7be599e1f7..7ca157ffab30 100644
@@ -84,7 +84,6 @@ static const struct irq_class irqclass_sub_desc[] = {
 	{.irq = IRQIO_C70,  .name = "C70", .desc = "[I/O] 3270"},
 	{.irq = IRQIO_TAP,  .name = "TAP", .desc = "[I/O] Tape"},
 	{.irq = IRQIO_VMR,  .name = "VMR", .desc = "[I/O] Unit Record Devices"},
-	{.irq = IRQIO_LCS,  .name = "LCS", .desc = "[I/O] LCS"},
 	{.irq = IRQIO_CTC,  .name = "CTC", .desc = "[I/O] CTC"},
 	{.irq = IRQIO_ADM,  .name = "ADM", .desc = "[I/O] EADM Subchannel"},
 	{.irq = IRQIO_CSC,  .name = "CSC", .desc = "[I/O] CHSC Subchannel"},
drivers/s390/net/Kconfig +1 -10
index c61e6427384c..9eb9e3c49f81 100644
@@ -2,15 +2,6 @@
 menu "S/390 network device drivers"
 	depends on NETDEVICES && S390
 
-config LCS
-	def_tristate m
-	prompt "Lan Channel Station Interface"
-	depends on CCW && NETDEVICES && ETHERNET
-	help
-	  Select this option if you want to use LCS networking on IBM System z.
-	  To compile as a module, choose M. The module name is lcs.
-	  If you do not use LCS, choose N.
-
 config CTCM
 	def_tristate m
 	prompt "CTC and MPC SNA device support"
@@ -98,7 +89,7 @@ config QETH_OSX
 
 config CCWGROUP
 	tristate
-	default (LCS || CTCM || QETH || SMC)
+	default (CTCM || QETH || SMC)
 
 config ISM
 	tristate "Support for ISM vPCI Adapter"
drivers/s390/net/Makefile +0 -1
index bc55ec316adb..b5aaba290127 100644
@@ -8,7 +8,6 @@ obj-$(CONFIG_CTCM) += ctcm.o fsm.o
 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
 obj-$(CONFIG_SMSGIUCV) += smsgiucv.o
 obj-$(CONFIG_SMSGIUCV_EVENT) += smsgiucv_app.o
-obj-$(CONFIG_LCS) += lcs.o
 qeth-y += qeth_core_sys.o qeth_core_main.o qeth_core_mpc.o qeth_ethtool.o
 obj-$(CONFIG_QETH) += qeth.o
 qeth_l2-y += qeth_l2_main.o qeth_l2_sys.o
drivers/s390/net/lcs.c deleted +0 -2385

2,385 lines not on this page · raw message

drivers/s390/net/lcs.h deleted +0 -342

342 lines not on this page · raw message

Signature · 1 line
2.45.2
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Alexandra Winter

From: Aswin Karuvally <[email protected]>

The original Open Systems Adapter (OSA) was introduced by IBM in the mid-90s. These were then superseded by OSA-Express in 1999 which used Queued Direct IO to greatly improve throughput. The newer cards retained the older, slower non-QDIO (OSE) modes for compatibility with older systems. In Linux, the lcs driver was responsible for cards operating in the older OSE mode and the qeth driver was introduced to allow the OSA-Express cards to operate in the newer QDIO (OSD) mode.

For an S390 machine from 1998 or later, there is no reason to use the OSE mode and lcs driver as all OSA cards since 1999 provide the faster OSD mode. As a result, it's been years since we have heard of a customer configuration involving the lcs driver.

This patch removes the lcs driver. The technology it supports has been obsolete for past 25+ years and is irrelevant for current use cases.

Quoted 11 lines
---
 Documentation/arch/s390/driver-model.rst |    2 +-
 arch/s390/include/asm/irq.h              |    1 -
 arch/s390/kernel/irq.c                   |    1 -
 drivers/s390/net/Kconfig                 |   11 +-
 drivers/s390/net/Makefile                |    1 -
 drivers/s390/net/lcs.c                   | 2385 ----------------------
 drivers/s390/net/lcs.h                   |  342 ----
 7 files changed, 2 insertions(+), 2741 deletions(-)
 delete mode 100644 drivers/s390/net/lcs.c
 delete mode 100644 drivers/s390/net/lcs.h

Less is more :)

#2 lore raw
In reply to Alexandra Winter
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Tue, 4 Feb 2025 11:31:35 +0100 you wrote:

From: Aswin Karuvally <[email protected]>

The original Open Systems Adapter (OSA) was introduced by IBM in the mid-90s. These were then superseded by OSA-Express in 1999 which used Queued Direct IO to greatly improve throughput. The newer cards retained the older, slower non-QDIO (OSE) modes for compatibility with older systems. In Linux, the lcs driver was responsible for cards operating in the older OSE mode and the qeth driver was introduced to allow the OSA-Express cards to operate in the newer QDIO (OSD) mode.

[...]

Here is the summary with links:
- [net-next] s390/net: Remove LCS driver

    https://git.kernel.org/netdev/net-next/c/6cccb3bb0561

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html