Skip to contentSkip to conversation

APM: delete APM in Linux-2.6.40

PATCH New Len Brown 12 participants 73 messages Mar 24, 2011 – Apr 13, 2011 2 messages not in the archive

Subsystems (7)
lore
Share & tools
lore

Len Brown

author reviewer
#2 lore raw

PATCH 1/1 APM: delete APM in Linux-2.6.40

In reply to a message not in the archive

From: Len Brown <[email protected]>

---
 Documentation/feature-removal-schedule.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Documentation/feature-removal-schedule.txt +8 -0
index b3f35e5..2a03c46 100644
@@ -619,3 +619,11 @@ Why:	The original implementation of memsw feature enabled by
 Who:	Michal Hocko <[email protected]>
 
 ----------------------------
+
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
+	It now seems more than safe that the latest Linux Kernel be APM-free.
+	The vintage laptops supporting APM are now difficult to find,
+	making it problatic to maintain this code.
+Who:	Len Brown <[email protected]>
Signature · 1 line
1.7.4.1.343.ga91df
author reviewer
#3 lore raw

PATCH 1/1 APM: delete APM in Linux-2.6.40

In reply to a message not in the archive

From: Len Brown <[email protected]>

---
 Documentation/feature-removal-schedule.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Documentation/feature-removal-schedule.txt +8 -0
index b3f35e5..2a03c46 100644
@@ -619,3 +619,11 @@ Why:	The original implementation of memsw feature enabled by
 Who:	Michal Hocko <[email protected]>
 
 ----------------------------
+
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
+	It now seems more than safe that the latest Linux Kernel be APM-free.
+	The vintage laptops supporting APM are now difficult to find,
+	making it problatic to maintain this code.
+Who:	Len Brown <[email protected]>
Signature · 1 line
1.7.4.1.343.ga91df
author reviewer
#4 lore raw

PATCH 1/1 x86 APM: delete Linux kernel APM support

From: Len Brown <[email protected]>

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

apm_bios.h remains for CONFIG_APM_EMULATION
used by non-x86 architectures.

---
 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    4 -
 12 files changed, 1 insertions(+), 2700 deletions(-)
 delete mode 100644 arch/x86/boot/apm.c
 delete mode 100644 arch/x86/kernel/apm_32.c
Documentation/feature-removal-schedule.txt +0 -9
index 2a03c46..4b5dfcc 100644
@@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
 	can also cleanup the parameter handling a bit ().
 Who:	Michal Hocko <[email protected]>
 
-----------------------------
-
-What:	CONFIG_APM
-When:	2.6.40
-Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
-	It now seems more than safe that the latest Linux Kernel be APM-free.
-	The vintage laptops supporting APM are now difficult to find,
-	making it problatic to maintain this code.
-Who:	Len Brown <[email protected]>
MAINTAINERS +0 -8
index f1bc3dc..a896b39 100644
@@ -531,14 +531,6 @@ L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 F:	sound/aoa/
 
-APM DRIVER
-M:	Stephen Rothwell <[email protected]>
-L:	[email protected]
-W:	http://www.canb.auug.org.au/~sfr/
-S:	Supported
-F:	arch/x86/kernel/apm_32.c
-F:	include/linux/apm_bios.h
-
 APPLE BCM5974 MULTITOUCH DRIVER
 M:	Henrik Rydberg <[email protected]>
 L:	[email protected]
arch/x86/Kconfig +0 -125

131 lines not on this page · raw message

arch/x86/boot/Makefile +0 -1
index f7cb086..a746cc8 100644
@@ -30,7 +30,6 @@ setup-y		+= a20.o bioscall.o cmdline.o copy.o cpu.o cpucheck.o
 setup-y		+= early_serial_console.o edd.o header.o main.o mca.o memory.o
 setup-y		+= pm.o pmjump.o printf.o regs.o string.o tty.o video.o
 setup-y		+= video-mode.o version.o
-setup-$(CONFIG_X86_APM_BOOT) += apm.o
 
 # The link order of the video-*.o modules can matter.  In particular,
 # video-vga.o *must* be listed first, followed by video-vesa.o.
arch/x86/boot/apm.c deleted +0 -75

75 lines not on this page · raw message

arch/x86/boot/main.c +0 -5
index 40358c8..b6a9743 100644
@@ -160,11 +160,6 @@ void main(void)
 	/* Query Intel SpeedStep (IST) information */
 	query_ist();
 
-	/* Query APM information */
-#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
-	query_apm_bios();
-#endif
-
 	/* Query EDD information */
 #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
 	query_edd();
arch/x86/include/asm/bootparam.h +1 -2
index c8bfe63..7d8e530 100644
@@ -3,7 +3,6 @@
 
 #include <linux/types.h>
 #include <linux/screen_info.h>
-#include <linux/apm_bios.h>
 #include <linux/edd.h>
 #include <asm/e820.h>
 #include <asm/ist.h>
@@ -92,7 +91,7 @@ struct efi_info {
 /* The so-called "zeropage" */
 struct boot_params {
 	struct screen_info screen_info;			/* 0x000 */
-	struct apm_bios_info apm_bios_info;		/* 0x040 */
+	__u8  _apm_pad[20];				/* 0x040 */
 	__u8  _pad2[4];					/* 0x054 */
 	__u64  tboot_addr;				/* 0x058 */
 	struct ist_info ist_info;			/* 0x060 */
arch/x86/kernel/Makefile +0 -2
index 34244b2..92ef9c9 100644
@@ -63,8 +63,6 @@ obj-$(CONFIG_MCA)		+= mca_32.o
 obj-$(CONFIG_X86_MSR)		+= msr.o
 obj-$(CONFIG_X86_CPUID)		+= cpuid.o
 obj-$(CONFIG_PCI)		+= early-quirks.o
-apm-y				:= apm_32.o
-obj-$(CONFIG_APM)		+= apm.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_SMP)		+= smpboot.o tsc_sync.o
 obj-$(CONFIG_SMP)		+= setup_percpu.o
arch/x86/kernel/apm_32.c deleted +0 -2463

2,463 lines not on this page · raw message

arch/x86/kernel/process.c +0 -3
index 094d4ac..6808419 100644
@@ -365,9 +365,6 @@ void default_idle(void)
 	trace_power_end(smp_processor_id());
 	trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id());
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(default_idle);
-#endif
 
 void stop_this_cpu(void *dummy)
 {
arch/x86/kernel/reboot.c +0 -3
index 715037c..60698d3 100644
@@ -428,9 +428,6 @@ void machine_real_restart(const unsigned char *code, int length)
 				:
 				: "i" ((void *)(0x1000 - sizeof (real_mode_switch) - 100)));
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(machine_real_restart);
-#endif
 
 #endif /* CONFIG_X86_32 */
 
arch/x86/kernel/setup.c +0 -4
index fab5631..cf9cb87 100644
@@ -193,9 +193,6 @@ unsigned int machine_id;
 unsigned int machine_submodel_id;
 unsigned int BIOS_revision;
 
-struct apm_info apm_info;
-EXPORT_SYMBOL(apm_info);
-
 #if defined(CONFIG_X86_SPEEDSTEP_SMI) || \
 	defined(CONFIG_X86_SPEEDSTEP_SMI_MODULE)
 struct ist_info ist_info;
@@ -742,7 +739,6 @@ void __init setup_arch(char **cmdline_p)
 	screen_info = boot_params.screen_info;
 	edid_info = boot_params.edid_info;
 #ifdef CONFIG_X86_32
-	apm_info.bios = boot_params.apm_bios_info;
 	ist_info = boot_params.ist_info;
 	if (boot_params.sys_desc_table.length != 0) {
 		set_mca_bus(boot_params.sys_desc_table.table[3] & 0x2);
Signature · 1 line
1.7.4.1.343.ga91df
author reviewer
#5 lore raw

PATCH 1/1 x86 APM: delete Linux kernel APM support

In reply to Len Brown

From: Len Brown <[email protected]>

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

apm_bios.h remains for CONFIG_APM_EMULATION
used by non-x86 architectures.

---
 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    4 -
 12 files changed, 1 insertions(+), 2700 deletions(-)
 delete mode 100644 arch/x86/boot/apm.c
 delete mode 100644 arch/x86/kernel/apm_32.c
Documentation/feature-removal-schedule.txt +0 -9
index 2a03c46..4b5dfcc 100644
@@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
 	can also cleanup the parameter handling a bit ().
 Who:	Michal Hocko <[email protected]>
 
-----------------------------
-
-What:	CONFIG_APM
-When:	2.6.40
-Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
-	It now seems more than safe that the latest Linux Kernel be APM-free.
-	The vintage laptops supporting APM are now difficult to find,
-	making it problatic to maintain this code.
-Who:	Len Brown <[email protected]>
MAINTAINERS +0 -8
index f1bc3dc..a896b39 100644
@@ -531,14 +531,6 @@ L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 F:	sound/aoa/
 
-APM DRIVER
-M:	Stephen Rothwell <[email protected]>
-L:	[email protected]
-W:	http://www.canb.auug.org.au/~sfr/
-S:	Supported
-F:	arch/x86/kernel/apm_32.c
-F:	include/linux/apm_bios.h
-
 APPLE BCM5974 MULTITOUCH DRIVER
 M:	Henrik Rydberg <[email protected]>
 L:	[email protected]
arch/x86/Kconfig +0 -125

131 lines not on this page · raw message

arch/x86/boot/Makefile +0 -1
index f7cb086..a746cc8 100644
@@ -30,7 +30,6 @@ setup-y		+= a20.o bioscall.o cmdline.o copy.o cpu.o cpucheck.o
 setup-y		+= early_serial_console.o edd.o header.o main.o mca.o memory.o
 setup-y		+= pm.o pmjump.o printf.o regs.o string.o tty.o video.o
 setup-y		+= video-mode.o version.o
-setup-$(CONFIG_X86_APM_BOOT) += apm.o
 
 # The link order of the video-*.o modules can matter.  In particular,
 # video-vga.o *must* be listed first, followed by video-vesa.o.
arch/x86/boot/apm.c deleted +0 -75

75 lines not on this page · raw message

arch/x86/boot/main.c +0 -5
index 40358c8..b6a9743 100644
@@ -160,11 +160,6 @@ void main(void)
 	/* Query Intel SpeedStep (IST) information */
 	query_ist();
 
-	/* Query APM information */
-#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
-	query_apm_bios();
-#endif
-
 	/* Query EDD information */
 #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
 	query_edd();
arch/x86/include/asm/bootparam.h +1 -2
index c8bfe63..7d8e530 100644
@@ -3,7 +3,6 @@
 
 #include <linux/types.h>
 #include <linux/screen_info.h>
-#include <linux/apm_bios.h>
 #include <linux/edd.h>
 #include <asm/e820.h>
 #include <asm/ist.h>
@@ -92,7 +91,7 @@ struct efi_info {
 /* The so-called "zeropage" */
 struct boot_params {
 	struct screen_info screen_info;			/* 0x000 */
-	struct apm_bios_info apm_bios_info;		/* 0x040 */
+	__u8  _apm_pad[20];				/* 0x040 */
 	__u8  _pad2[4];					/* 0x054 */
 	__u64  tboot_addr;				/* 0x058 */
 	struct ist_info ist_info;			/* 0x060 */
arch/x86/kernel/Makefile +0 -2
index 34244b2..92ef9c9 100644
@@ -63,8 +63,6 @@ obj-$(CONFIG_MCA)		+= mca_32.o
 obj-$(CONFIG_X86_MSR)		+= msr.o
 obj-$(CONFIG_X86_CPUID)		+= cpuid.o
 obj-$(CONFIG_PCI)		+= early-quirks.o
-apm-y				:= apm_32.o
-obj-$(CONFIG_APM)		+= apm.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_SMP)		+= smpboot.o tsc_sync.o
 obj-$(CONFIG_SMP)		+= setup_percpu.o
arch/x86/kernel/apm_32.c deleted +0 -2463

2,463 lines not on this page · raw message

arch/x86/kernel/process.c +0 -3
index 094d4ac..6808419 100644
@@ -365,9 +365,6 @@ void default_idle(void)
 	trace_power_end(smp_processor_id());
 	trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id());
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(default_idle);
-#endif
 
 void stop_this_cpu(void *dummy)
 {
arch/x86/kernel/reboot.c +0 -3
index 715037c..60698d3 100644
@@ -428,9 +428,6 @@ void machine_real_restart(const unsigned char *code, int length)
 				:
 				: "i" ((void *)(0x1000 - sizeof (real_mode_switch) - 100)));
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(machine_real_restart);
-#endif
 
 #endif /* CONFIG_X86_32 */
 
arch/x86/kernel/setup.c +0 -4
index fab5631..cf9cb87 100644
@@ -193,9 +193,6 @@ unsigned int machine_id;
 unsigned int machine_submodel_id;
 unsigned int BIOS_revision;
 
-struct apm_info apm_info;
-EXPORT_SYMBOL(apm_info);
-
 #if defined(CONFIG_X86_SPEEDSTEP_SMI) || \
 	defined(CONFIG_X86_SPEEDSTEP_SMI_MODULE)
 struct ist_info ist_info;
@@ -742,7 +739,6 @@ void __init setup_arch(char **cmdline_p)
 	screen_info = boot_params.screen_info;
 	edid_info = boot_params.edid_info;
 #ifdef CONFIG_X86_32
-	apm_info.bios = boot_params.apm_bios_info;
 	ist_info = boot_params.ist_info;
 	if (boot_params.sys_desc_table.length != 0) {
 		set_mca_bus(boot_params.sys_desc_table.table[3] & 0x2);
Signature · 1 line
1.7.4.1.343.ga91df
author reviewer
#6 lore raw

PATCH 1/1 x86 APM: delete Linux kernel APM support (v2)

In reply to Len Brown

From: Len Brown <[email protected]>

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

apm_bios.h remains for CONFIG_APM_EMULATION
used by non-x86 architectures.

---
v2: also delete pm_flags

 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
 arch/x86/boot/boot.h                       |    3 -
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    5 -
 drivers/acpi/bus.c                         |   12 +-
 include/linux/pm.h                         |    9 -
 kernel/power/main.c                        |    3 -
 16 files changed, 3 insertions(+), 2726 deletions(-)
 delete mode 100644 arch/x86/boot/apm.c
 delete mode 100644 arch/x86/kernel/apm_32.c
Documentation/feature-removal-schedule.txt +0 -9
index 2a03c46..4b5dfcc 100644
@@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
 	can also cleanup the parameter handling a bit ().
 Who:	Michal Hocko <[email protected]>
 
-----------------------------
-
-What:	CONFIG_APM
-When:	2.6.40
-Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
-	It now seems more than safe that the latest Linux Kernel be APM-free.
-	The vintage laptops supporting APM are now difficult to find,
-	making it problatic to maintain this code.
-Who:	Len Brown <[email protected]>
MAINTAINERS +0 -8
index f1bc3dc..a896b39 100644
@@ -531,14 +531,6 @@ L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 F:	sound/aoa/
 
-APM DRIVER
-M:	Stephen Rothwell <[email protected]>
-L:	[email protected]
-W:	http://www.canb.auug.org.au/~sfr/
-S:	Supported
-F:	arch/x86/kernel/apm_32.c
-F:	include/linux/apm_bios.h
-
 APPLE BCM5974 MULTITOUCH DRIVER
 M:	Henrik Rydberg <[email protected]>
 L:	[email protected]
arch/x86/Kconfig +0 -125

131 lines not on this page · raw message

arch/x86/boot/Makefile +0 -1
index f7cb086..a746cc8 100644
@@ -30,7 +30,6 @@ setup-y		+= a20.o bioscall.o cmdline.o copy.o cpu.o cpucheck.o
 setup-y		+= early_serial_console.o edd.o header.o main.o mca.o memory.o
 setup-y		+= pm.o pmjump.o printf.o regs.o string.o tty.o video.o
 setup-y		+= video-mode.o version.o
-setup-$(CONFIG_X86_APM_BOOT) += apm.o
 
 # The link order of the video-*.o modules can matter.  In particular,
 # video-vga.o *must* be listed first, followed by video-vesa.o.
arch/x86/boot/apm.c deleted +0 -75

75 lines not on this page · raw message

arch/x86/boot/boot.h +0 -3
index c7093bd..df1ca6d 100644
@@ -238,9 +238,6 @@ void *memset(void *dst, int c, size_t len);
 /* a20.c */
 int enable_a20(void);
 
-/* apm.c */
-int query_apm_bios(void);
-
 /* bioscall.c */
 struct biosregs {
 	union {
arch/x86/boot/main.c +0 -5
index 40358c8..b6a9743 100644
@@ -160,11 +160,6 @@ void main(void)
 	/* Query Intel SpeedStep (IST) information */
 	query_ist();
 
-	/* Query APM information */
-#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
-	query_apm_bios();
-#endif
-
 	/* Query EDD information */
 #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
 	query_edd();
arch/x86/include/asm/bootparam.h +1 -2
index c8bfe63..7d8e530 100644
@@ -3,7 +3,6 @@
 
 #include <linux/types.h>
 #include <linux/screen_info.h>
-#include <linux/apm_bios.h>
 #include <linux/edd.h>
 #include <asm/e820.h>
 #include <asm/ist.h>
@@ -92,7 +91,7 @@ struct efi_info {
 /* The so-called "zeropage" */
 struct boot_params {
 	struct screen_info screen_info;			/* 0x000 */
-	struct apm_bios_info apm_bios_info;		/* 0x040 */
+	__u8  _apm_pad[20];				/* 0x040 */
 	__u8  _pad2[4];					/* 0x054 */
 	__u64  tboot_addr;				/* 0x058 */
 	struct ist_info ist_info;			/* 0x060 */
arch/x86/kernel/Makefile +0 -2
index 34244b2..92ef9c9 100644
@@ -63,8 +63,6 @@ obj-$(CONFIG_MCA)		+= mca_32.o
 obj-$(CONFIG_X86_MSR)		+= msr.o
 obj-$(CONFIG_X86_CPUID)		+= cpuid.o
 obj-$(CONFIG_PCI)		+= early-quirks.o
-apm-y				:= apm_32.o
-obj-$(CONFIG_APM)		+= apm.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_SMP)		+= smpboot.o tsc_sync.o
 obj-$(CONFIG_SMP)		+= setup_percpu.o
arch/x86/kernel/apm_32.c deleted +0 -2463

2,463 lines not on this page · raw message

arch/x86/kernel/process.c +0 -3
index 094d4ac..6808419 100644
@@ -365,9 +365,6 @@ void default_idle(void)
 	trace_power_end(smp_processor_id());
 	trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id());
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(default_idle);
-#endif
 
 void stop_this_cpu(void *dummy)
 {
arch/x86/kernel/reboot.c +0 -3
index 715037c..60698d3 100644
@@ -428,9 +428,6 @@ void machine_real_restart(const unsigned char *code, int length)
 				:
 				: "i" ((void *)(0x1000 - sizeof (real_mode_switch) - 100)));
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(machine_real_restart);
-#endif
 
 #endif /* CONFIG_X86_32 */
 
arch/x86/kernel/setup.c +0 -5
index fab5631..76aaaf8 100644
@@ -28,7 +28,6 @@
 #include <linux/ioport.h>
 #include <linux/acpi.h>
 #include <linux/sfi.h>
-#include <linux/apm_bios.h>
 #include <linux/initrd.h>
 #include <linux/bootmem.h>
 #include <linux/memblock.h>
@@ -193,9 +192,6 @@ unsigned int machine_id;
 unsigned int machine_submodel_id;
 unsigned int BIOS_revision;
 
-struct apm_info apm_info;
-EXPORT_SYMBOL(apm_info);
-
 #if defined(CONFIG_X86_SPEEDSTEP_SMI) || \
 	defined(CONFIG_X86_SPEEDSTEP_SMI_MODULE)
 struct ist_info ist_info;
@@ -742,7 +738,6 @@ void __init setup_arch(char **cmdline_p)
 	screen_info = boot_params.screen_info;
 	edid_info = boot_params.edid_info;
 #ifdef CONFIG_X86_32
-	apm_info.bios = boot_params.apm_bios_info;
 	ist_info = boot_params.ist_info;
 	if (boot_params.sys_desc_table.length != 0) {
 		set_mca_bus(boot_params.sys_desc_table.table[3] & 0x2);
drivers/acpi/bus.c +2 -10
index 7ced61f..c974656 100644
@@ -1023,17 +1023,9 @@ static int __init acpi_init(void)
 	init_acpi_device_notify();
 	result = acpi_bus_init();
 
-	if (!result) {
+	if (!result)
 		pci_mmcfg_late_init();
-		if (!(pm_flags & PM_APM))
-			pm_flags |= PM_ACPI;
-		else {
-			printk(KERN_INFO PREFIX
-			       "APM is already active, exiting\n");
-			disable_acpi();
-			result = -ENODEV;
-		}
-	} else
+	else
 		disable_acpi();
 
 	if (acpi_disabled)
include/linux/pm.h +0 -9
index 21415cc..ccd92b3 100644
@@ -565,15 +565,6 @@ enum dpm_order {
 	DPM_ORDER_DEV_LAST,
 };
 
-/*
- * Global Power Management flags
- * Used to keep APM and ACPI from both being active
- */
-extern unsigned int	pm_flags;
-
-#define PM_APM	1
-#define PM_ACPI	2
-
 extern int pm_generic_suspend(struct device *dev);
 extern int pm_generic_resume(struct device *dev);
 extern int pm_generic_freeze(struct device *dev);
kernel/power/main.c +0 -3
index 7018530..8eaba5f 100644
@@ -17,9 +17,6 @@
 
 DEFINE_MUTEX(pm_mutex);
 
-unsigned int pm_flags;
-EXPORT_SYMBOL(pm_flags);
-
 #ifdef CONFIG_PM_SLEEP
 
 /* Routines for PM-transition notifications */
Signature · 1 line
1.7.4.1.343.ga91df
author reviewer
#7 lore raw

PATCH 1/1 x86 APM: delete Linux kernel APM support (v2)

In reply to Len Brown

From: Len Brown <[email protected]>

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

apm_bios.h remains for CONFIG_APM_EMULATION
used by non-x86 architectures.

---
v2: also delete pm_flags

 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
 arch/x86/boot/boot.h                       |    3 -
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    5 -
 drivers/acpi/bus.c                         |   12 +-
 include/linux/pm.h                         |    9 -
 kernel/power/main.c                        |    3 -
 16 files changed, 3 insertions(+), 2726 deletions(-)
 delete mode 100644 arch/x86/boot/apm.c
 delete mode 100644 arch/x86/kernel/apm_32.c
Documentation/feature-removal-schedule.txt +0 -9
index 2a03c46..4b5dfcc 100644
@@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
 	can also cleanup the parameter handling a bit ().
 Who:	Michal Hocko <[email protected]>
 
-----------------------------
-
-What:	CONFIG_APM
-When:	2.6.40
-Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
-	It now seems more than safe that the latest Linux Kernel be APM-free.
-	The vintage laptops supporting APM are now difficult to find,
-	making it problatic to maintain this code.
-Who:	Len Brown <[email protected]>
MAINTAINERS +0 -8
index f1bc3dc..a896b39 100644
@@ -531,14 +531,6 @@ L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 F:	sound/aoa/
 
-APM DRIVER
-M:	Stephen Rothwell <[email protected]>
-L:	[email protected]
-W:	http://www.canb.auug.org.au/~sfr/
-S:	Supported
-F:	arch/x86/kernel/apm_32.c
-F:	include/linux/apm_bios.h
-
 APPLE BCM5974 MULTITOUCH DRIVER
 M:	Henrik Rydberg <[email protected]>
 L:	[email protected]
arch/x86/Kconfig +0 -125

131 lines not on this page · raw message

arch/x86/boot/Makefile +0 -1
index f7cb086..a746cc8 100644
@@ -30,7 +30,6 @@ setup-y		+= a20.o bioscall.o cmdline.o copy.o cpu.o cpucheck.o
 setup-y		+= early_serial_console.o edd.o header.o main.o mca.o memory.o
 setup-y		+= pm.o pmjump.o printf.o regs.o string.o tty.o video.o
 setup-y		+= video-mode.o version.o
-setup-$(CONFIG_X86_APM_BOOT) += apm.o
 
 # The link order of the video-*.o modules can matter.  In particular,
 # video-vga.o *must* be listed first, followed by video-vesa.o.
arch/x86/boot/apm.c deleted +0 -75

75 lines not on this page · raw message

arch/x86/boot/boot.h +0 -3
index c7093bd..df1ca6d 100644
@@ -238,9 +238,6 @@ void *memset(void *dst, int c, size_t len);
 /* a20.c */
 int enable_a20(void);
 
-/* apm.c */
-int query_apm_bios(void);
-
 /* bioscall.c */
 struct biosregs {
 	union {
arch/x86/boot/main.c +0 -5
index 40358c8..b6a9743 100644
@@ -160,11 +160,6 @@ void main(void)
 	/* Query Intel SpeedStep (IST) information */
 	query_ist();
 
-	/* Query APM information */
-#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
-	query_apm_bios();
-#endif
-
 	/* Query EDD information */
 #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
 	query_edd();
arch/x86/include/asm/bootparam.h +1 -2
index c8bfe63..7d8e530 100644
@@ -3,7 +3,6 @@
 
 #include <linux/types.h>
 #include <linux/screen_info.h>
-#include <linux/apm_bios.h>
 #include <linux/edd.h>
 #include <asm/e820.h>
 #include <asm/ist.h>
@@ -92,7 +91,7 @@ struct efi_info {
 /* The so-called "zeropage" */
 struct boot_params {
 	struct screen_info screen_info;			/* 0x000 */
-	struct apm_bios_info apm_bios_info;		/* 0x040 */
+	__u8  _apm_pad[20];				/* 0x040 */
 	__u8  _pad2[4];					/* 0x054 */
 	__u64  tboot_addr;				/* 0x058 */
 	struct ist_info ist_info;			/* 0x060 */
arch/x86/kernel/Makefile +0 -2
index 34244b2..92ef9c9 100644
@@ -63,8 +63,6 @@ obj-$(CONFIG_MCA)		+= mca_32.o
 obj-$(CONFIG_X86_MSR)		+= msr.o
 obj-$(CONFIG_X86_CPUID)		+= cpuid.o
 obj-$(CONFIG_PCI)		+= early-quirks.o
-apm-y				:= apm_32.o
-obj-$(CONFIG_APM)		+= apm.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_SMP)		+= smpboot.o tsc_sync.o
 obj-$(CONFIG_SMP)		+= setup_percpu.o
arch/x86/kernel/apm_32.c deleted +0 -2463

2,463 lines not on this page · raw message

arch/x86/kernel/process.c +0 -3
index 094d4ac..6808419 100644
@@ -365,9 +365,6 @@ void default_idle(void)
 	trace_power_end(smp_processor_id());
 	trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id());
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(default_idle);
-#endif
 
 void stop_this_cpu(void *dummy)
 {
arch/x86/kernel/reboot.c +0 -3
index 715037c..60698d3 100644
@@ -428,9 +428,6 @@ void machine_real_restart(const unsigned char *code, int length)
 				:
 				: "i" ((void *)(0x1000 - sizeof (real_mode_switch) - 100)));
 }
-#ifdef CONFIG_APM_MODULE
-EXPORT_SYMBOL(machine_real_restart);
-#endif
 
 #endif /* CONFIG_X86_32 */
 
arch/x86/kernel/setup.c +0 -5
index fab5631..76aaaf8 100644
@@ -28,7 +28,6 @@
 #include <linux/ioport.h>
 #include <linux/acpi.h>
 #include <linux/sfi.h>
-#include <linux/apm_bios.h>
 #include <linux/initrd.h>
 #include <linux/bootmem.h>
 #include <linux/memblock.h>
@@ -193,9 +192,6 @@ unsigned int machine_id;
 unsigned int machine_submodel_id;
 unsigned int BIOS_revision;
 
-struct apm_info apm_info;
-EXPORT_SYMBOL(apm_info);
-
 #if defined(CONFIG_X86_SPEEDSTEP_SMI) || \
 	defined(CONFIG_X86_SPEEDSTEP_SMI_MODULE)
 struct ist_info ist_info;
@@ -742,7 +738,6 @@ void __init setup_arch(char **cmdline_p)
 	screen_info = boot_params.screen_info;
 	edid_info = boot_params.edid_info;
 #ifdef CONFIG_X86_32
-	apm_info.bios = boot_params.apm_bios_info;
 	ist_info = boot_params.ist_info;
 	if (boot_params.sys_desc_table.length != 0) {
 		set_mca_bus(boot_params.sys_desc_table.table[3] & 0x2);
drivers/acpi/bus.c +2 -10
index 7ced61f..c974656 100644
@@ -1023,17 +1023,9 @@ static int __init acpi_init(void)
 	init_acpi_device_notify();
 	result = acpi_bus_init();
 
-	if (!result) {
+	if (!result)
 		pci_mmcfg_late_init();
-		if (!(pm_flags & PM_APM))
-			pm_flags |= PM_ACPI;
-		else {
-			printk(KERN_INFO PREFIX
-			       "APM is already active, exiting\n");
-			disable_acpi();
-			result = -ENODEV;
-		}
-	} else
+	else
 		disable_acpi();
 
 	if (acpi_disabled)
include/linux/pm.h +0 -9
index 21415cc..ccd92b3 100644
@@ -565,15 +565,6 @@ enum dpm_order {
 	DPM_ORDER_DEV_LAST,
 };
 
-/*
- * Global Power Management flags
- * Used to keep APM and ACPI from both being active
- */
-extern unsigned int	pm_flags;
-
-#define PM_APM	1
-#define PM_ACPI	2
-
 extern int pm_generic_suspend(struct device *dev);
 extern int pm_generic_resume(struct device *dev);
 extern int pm_generic_freeze(struct device *dev);
kernel/power/main.c +0 -3
index 7018530..8eaba5f 100644
@@ -17,9 +17,6 @@
 
 DEFINE_MUTEX(pm_mutex);
 
-unsigned int pm_flags;
-EXPORT_SYMBOL(pm_flags);
-
 #ifdef CONFIG_PM_SLEEP
 
 /* Routines for PM-transition notifications */
Signature · 1 line
1.7.4.1.343.ga91df
#51 lore raw
In reply to Len Brown
Quoted 15 lines · On Thursday 24 March 2011, 08:39:07 Len Brown wrote:

From: Len Brown <[email protected]>

---
 Documentation/feature-removal-schedule.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/Documentation/feature-removal-schedule.txt index b3f35e5..2a03c46 100644

Documentation/feature-removal-schedule.txt +0 -0
@@ -619,3 +619,11 @@ Why:	The original implementation of memsw feature

enabled by Who: Michal Hocko <[email protected]>

----------------------------

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 625

Quoted 4 lines
Documentation/feature-removal-schedule.txt +4 -0
+
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.

Minor nitpick: 'in' is doubled.

Alexander

#52 lore raw
In reply to Len Brown
Quoted 15 lines · On Thursday 24 March 2011, 08:39:07 Len Brown wrote:

From: Len Brown <[email protected]>

---
 Documentation/feature-removal-schedule.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/Documentation/feature-removal-schedule.txt index b3f35e5..2a03c46 100644

Documentation/feature-removal-schedule.txt +0 -0
@@ -619,3 +619,11 @@ Why:	The original implementation of memsw feature

enabled by Who: Michal Hocko <[email protected]>

----------------------------

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 625

Quoted 4 lines
Documentation/feature-removal-schedule.txt +4 -0
+
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.

Minor nitpick: 'in' is doubled.

Alexander

#10 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 4 lines · Len Brown

From: Len Brown <[email protected]>

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. [...]

Does Windows XP still support it?

Quoted 8 lines

[...] 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

apm_bios.h remains for CONFIG_APM_EMULATION used by non-x86 architectures.

Dunno. This bit:

Quoted 5 lines
Documentation/feature-removal-schedule.txt +0 -0
@@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
 	can also cleanup the parameter handling a bit ().
 Who:	Michal Hocko <[email protected]>

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 629

Quoted 10 lines
Documentation/feature-removal-schedule.txt +0 -9
 
-----------------------------
-
-What:	CONFIG_APM
-When:	2.6.40
-Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
-	It now seems more than safe that the latest Linux Kernel be APM-free.
-	The vintage laptops supporting APM are now difficult to find,
-	making it problatic to maintain this code.
-Who:	Len Brown <[email protected]>

Is weird as there's no such CONFIG_APM entry upstream, and never was. Which tree is this entry included in?

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

If you look at the diffstat:

Quoted 5 lines
 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
Quoted 8 lines
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    4 -
 12 files changed, 1 insertions(+), 2700 deletions(-)

You see that the kernel implementation is nicely modularized and its cross-section to the rest of arch/x86/ is minimal. To arch/x86/ it's little more than an obscure driver.

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

Removal could be prepared by:

- moving CONFIG_APM to under CONFIG_EXPERT though, and keep it there for a few releases, and see whether anyone complains

- we could emit a WARN() with a "APM support will be obsoleted, please report this if you depend on this feature" text or so, and see what happens for a couple of releases.

Thanks,

Ingo

#11 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 4 lines · Len Brown

From: Len Brown <[email protected]>

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. [...]

Does Windows XP still support it?

Quoted 8 lines

[...] 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

apm_bios.h remains for CONFIG_APM_EMULATION used by non-x86 architectures.

Dunno. This bit:

Quoted 5 lines
Documentation/feature-removal-schedule.txt +0 -0
@@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
 	can also cleanup the parameter handling a bit ().
 Who:	Michal Hocko <[email protected]>

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 629

Quoted 10 lines
Documentation/feature-removal-schedule.txt +0 -9
 
-----------------------------
-
-What:	CONFIG_APM
-When:	2.6.40
-Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
-	It now seems more than safe that the latest Linux Kernel be APM-free.
-	The vintage laptops supporting APM are now difficult to find,
-	making it problatic to maintain this code.
-Who:	Len Brown <[email protected]>

Is weird as there's no such CONFIG_APM entry upstream, and never was. Which tree is this entry included in?

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

If you look at the diffstat:

Quoted 5 lines
 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
Quoted 8 lines
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    4 -
 12 files changed, 1 insertions(+), 2700 deletions(-)

You see that the kernel implementation is nicely modularized and its cross-section to the rest of arch/x86/ is minimal. To arch/x86/ it's little more than an obscure driver.

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

Removal could be prepared by:

- moving CONFIG_APM to under CONFIG_EXPERT though, and keep it there for a few releases, and see whether anyone complains

- we could emit a WARN() with a "APM support will be obsoleted, please report this if you depend on this feature" text or so, and see what happens for a couple of releases.

Thanks,

Ingo

#53 lore raw
In reply to Len Brown

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 629

Quoted 7 lines · Len Brown
Documentation/feature-removal-schedule.txt +7 -0
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
+	It now seems more than safe that the latest Linux Kernel be APM-free.
+	The vintage laptops supporting APM are now difficult to find,
+	making it problatic to maintain this code.
+Who:	Len Brown <[email protected]>

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

Do you want me to try to recruit testers? These boxes should still work for about 5 more years, give or take. IBM *really* knew how to build stuff back then...

If no testers show up, then the removal would be well justified.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#54 lore raw
In reply to Len Brown

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 629

Quoted 7 lines · Len Brown
Documentation/feature-removal-schedule.txt +7 -0
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
+	It now seems more than safe that the latest Linux Kernel be APM-free.
+	The vintage laptops supporting APM are now difficult to find,
+	making it problatic to maintain this code.
+Who:	Len Brown <[email protected]>

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

Do you want me to try to recruit testers? These boxes should still work for about 5 more years, give or take. IBM *really* knew how to build stuff back then...

If no testers show up, then the removal would be well justified.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#65 lore raw
In reply to Len Brown
Quoted 15 lines · Len Brown

From: Len Brown <[email protected]>

---
 Documentation/feature-removal-schedule.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/Documentation/feature-removal-schedule.txt index b3f35e5..2a03c46 100644

Documentation/feature-removal-schedule.txt +0 -0
@@ -619,3 +619,11 @@ Why:	The original implementation of memsw feature

enabled by Who: Michal Hocko <[email protected]>

----------------------------

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 629

Quoted 8 lines
Documentation/feature-removal-schedule.txt +8 -0
+
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
+	It now seems more than safe that the latest Linux Kernel be APM-free.
+	The vintage laptops supporting APM are now difficult to find,
+	making it problatic to maintain this code.
+Who:	Len Brown <[email protected]>

Please don't turn Linux into second Windows. If you don't want APM in the kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

Signature · 1 line
Ondrej Zary
#66 lore raw
In reply to Len Brown
Quoted 15 lines · Len Brown

From: Len Brown <[email protected]>

---
 Documentation/feature-removal-schedule.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/Documentation/feature-removal-schedule.txt index b3f35e5..2a03c46 100644

Documentation/feature-removal-schedule.txt +0 -0
@@ -619,3 +619,11 @@ Why:	The original implementation of memsw feature

enabled by Who: Michal Hocko <[email protected]>

----------------------------

Documentation/feature-removal-schedule.txt Why: The original implementation of memsw feature enabled by · line 629

Quoted 8 lines
Documentation/feature-removal-schedule.txt +8 -0
+
+What:	CONFIG_APM
+When:	2.6.40
+Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
+	It now seems more than safe that the latest Linux Kernel be APM-free.
+	The vintage laptops supporting APM are now difficult to find,
+	making it problatic to maintain this code.
+Who:	Len Brown <[email protected]>

Please don't turn Linux into second Windows. If you don't want APM in the kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

Signature · 1 line
Ondrej Zary
#8 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support (v2)

In reply to Len Brown
Quoted 6 lines · Len Brown

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

One other use-case even on non laptops was powering off the system. I know my desktops used to need that.

Would it make sense to retain that path?

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only
#9 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support (v2)

In reply to Len Brown
Quoted 6 lines · Len Brown

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. 5 years later it seems quite safe that the latest Linux kernel can also.

The vintage APM laptops have become difficult to find, making changes in this area difficult to test.

One other use-case even on non laptops was powering off the system. I know my desktops used to need that.

Would it make sense to retain that path?

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only
author reviewer
#55 lore raw
In reply to Henrique de Moraes Holschuh
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

Re: lasting for years.
Actually, I used to have several of both, but they're dying off, and they are excruciatingly slow...

-Len

author reviewer
#56 lore raw
In reply to Henrique de Moraes Holschuh
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

Re: lasting for years.
Actually, I used to have several of both, but they're dying off, and they are excruciatingly slow...

-Len

author reviewer
#67 lore raw
In reply to Ondrej Zary
Quoted 1 line

Please don't turn Linux into second Windows.

No worry there.

I mention Microsoft not to advocate that Linux be Windows, but to point out that this (hardware/firmware) ship sank 5 years ago and Linux is still on the boat. MS was able to delete APM support in 2006 from their source tree, yet we still carry it.

Quoted 4 lines

If you don't want APM in the
kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

They can still run old Linux on an old APM-only laptop -- just like they can still run Windows 3.1 or Windows XP if they want to.

What we'd be taking away is their ability to run the latest Linux kernel on that laptop.

The issue at hand is people (like me) who have to maintain the latest Linux source code. In sort, I don't want to write, debug, and test a cpuidle driver for an apm-only laptop when I could be spending effort on code that people will actually run.

thanks,
-Len

author reviewer
#68 lore raw
In reply to Ondrej Zary
Quoted 1 line

Please don't turn Linux into second Windows.

No worry there.

I mention Microsoft not to advocate that Linux be Windows, but to point out that this (hardware/firmware) ship sank 5 years ago and Linux is still on the boat. MS was able to delete APM support in 2006 from their source tree, yet we still carry it.

Quoted 4 lines

If you don't want APM in the
kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

They can still run old Linux on an old APM-only laptop -- just like they can still run Windows 3.1 or Windows XP if they want to.

What we'd be taking away is their ability to run the latest Linux kernel on that laptop.

The issue at hand is people (like me) who have to maintain the latest Linux source code. In sort, I don't want to write, debug, and test a cpuidle driver for an apm-only laptop when I could be spending effort on code that people will actually run.

thanks,
-Len

author reviewer
#12 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 4 lines
Quoted 2 lines

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. [...]

Does Windows XP still support it?

yes, and so does Red Hat Linux 9.

Quoted 2 lines

Is weird as there's no such CONFIG_APM entry upstream, and never was. Which tree is this entry included in?

It is a menuconfig option in arch/x86/Kconfig.
APM is available only for X86_32 kernels.

Quoted 5 lines

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

How would you like to write i486 specific code for the latest kernel and test it on i486 hardware, honestly?

Quoted 16 lines

If you look at the diffstat:

Quoted 5 lines
 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
Quoted 8 lines
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    4 -
 12 files changed, 1 insertions(+), 2700 deletions(-)
Quoted 3 lines

You see that the kernel implementation is nicely modularized and its cross-section to the rest of arch/x86/ is minimal. To arch/x86/ it's little more than an obscure driver.

If you look at the hooks in the the diffstat you may be be less impressed about how modular APM is. Start with the use of pm_idle from a module, or pm_flags. The hackery is not a large number of lines, but it is still hackery.

Quoted 8 lines

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

I think this reasoning would apply in 2006, but that was 5 years ago.

Quoted 8 lines

Removal could be prepared by:

- moving CONFIG_APM to under CONFIG_EXPERT though, and keep it there for a few releases, and see whether anyone complains

- we could emit a WARN() with a "APM support will be obsoleted, please report this if you depend on this feature" text or so, and see what happens for a couple of releases.

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

How does that look?

thanks,
-Len

author reviewer
#13 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 4 lines
Quoted 2 lines

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. [...]

Does Windows XP still support it?

yes, and so does Red Hat Linux 9.

Quoted 2 lines

Is weird as there's no such CONFIG_APM entry upstream, and never was. Which tree is this entry included in?

It is a menuconfig option in arch/x86/Kconfig.
APM is available only for X86_32 kernels.

Quoted 5 lines

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

How would you like to write i486 specific code for the latest kernel and test it on i486 hardware, honestly?

Quoted 16 lines

If you look at the diffstat:

Quoted 5 lines
 Documentation/feature-removal-schedule.txt |    9 -
 MAINTAINERS                                |    8 -
 arch/x86/Kconfig                           |  125 --
 arch/x86/boot/Makefile                     |    1 -
 arch/x86/boot/apm.c                        |   75 -
Quoted 8 lines
 arch/x86/boot/main.c                       |    5 -
 arch/x86/include/asm/bootparam.h           |    3 +-
 arch/x86/kernel/Makefile                   |    2 -
 arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
 arch/x86/kernel/process.c                  |    3 -
 arch/x86/kernel/reboot.c                   |    3 -
 arch/x86/kernel/setup.c                    |    4 -
 12 files changed, 1 insertions(+), 2700 deletions(-)
Quoted 3 lines

You see that the kernel implementation is nicely modularized and its cross-section to the rest of arch/x86/ is minimal. To arch/x86/ it's little more than an obscure driver.

If you look at the hooks in the the diffstat you may be be less impressed about how modular APM is. Start with the use of pm_idle from a module, or pm_flags. The hackery is not a large number of lines, but it is still hackery.

Quoted 8 lines

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

I think this reasoning would apply in 2006, but that was 5 years ago.

Quoted 8 lines

Removal could be prepared by:

- moving CONFIG_APM to under CONFIG_EXPERT though, and keep it there for a few releases, and see whether anyone complains

- we could emit a WARN() with a "APM support will be obsoleted, please report this if you depend on this feature" text or so, and see what happens for a couple of releases.

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

How does that look?

thanks,
-Len

#57 lore raw
In reply to Len Brown
Quoted 4 lines · Len Brown
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

I wonder why I had some users of those two boxes advocating APM, maybe it used to work better or something. Or I got the T21 and A30 confused with the T23.

Well, I don't think we need to support the thre-digit series ThinkPads, the number of those still working is probably on the four digits world-wide. And I haven't heard from anyone with a T21 or A31 in a while, so they might be down to five digits already.

If the T23 can actually work well in ACPI mode, I retract my objection.

Quoted 3 lines

Re: lasting for years.
Actually, I used to have several of both, but they're dying off, and they are excruciatingly slow...

Depends on what you use them for, I suppose.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#58 lore raw
In reply to Len Brown
Quoted 4 lines · Len Brown
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

I wonder why I had some users of those two boxes advocating APM, maybe it used to work better or something. Or I got the T21 and A30 confused with the T23.

Well, I don't think we need to support the thre-digit series ThinkPads, the number of those still working is probably on the four digits world-wide. And I haven't heard from anyone with a T21 or A31 in a while, so they might be down to five digits already.

If the T23 can actually work well in ACPI mode, I retract my objection.

Quoted 3 lines

Re: lasting for years.
Actually, I used to have several of both, but they're dying off, and they are excruciatingly slow...

Depends on what you use them for, I suppose.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
author reviewer
#59 lore raw
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

I wonder why I had some users of those two boxes advocating APM, maybe it used to work better or something. Or I got the T21 and A30 confused with the T23.

In 2003, APM worked better than ACPI on the T21 and the T23. In 2005 or so, I think ACPI was working fine on them.

Quoted 6 lines

Well, I don't think we need to support the thre-digit series ThinkPads, the number of those still working is probably on the four digits world-wide. And I haven't heard from anyone with a T21 or A31 in a while, so they might be down to five digits already.

If the T23 can actually work well in ACPI mode, I retract my objection.

Thanks, ACPI works well on the T23.
Indeed, it works well back to the T20:-)

Quoted 5 lines
Quoted 3 lines

Re: lasting for years.
Actually, I used to have several of both, but they're dying off, and they are excruciatingly slow...

Depends on what you use them for, I suppose.

My experience with old-laptops is:

1. hdd dies
2. CMOS battery dies
3. main battery dies

But from a practical view of runing a new distro on an old laptop, the distros seem to drop the video support for the old controllers, leaving you in VGA mode. That is the case with the T23, which has an S3 SuperSavage video controller.

cheers,
Len Brown, Intel Open Source Technolgy Center

author reviewer
#60 lore raw
In reply to Henrique de Moraes Holschuh
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

I wonder why I had some users of those two boxes advocating APM, maybe it used to work better or something. Or I got the T21 and A30 confused with the T23.

In 2003, APM worked better than ACPI on the T21 and the T23. In 2005 or so, I think ACPI was working fine on them.

Quoted 6 lines

Well, I don't think we need to support the thre-digit series ThinkPads, the number of those still working is probably on the four digits world-wide. And I haven't heard from anyone with a T21 or A31 in a while, so they might be down to five digits already.

If the T23 can actually work well in ACPI mode, I retract my objection.

Thanks, ACPI works well on the T23.
Indeed, it works well back to the T20:-)

Quoted 5 lines
Quoted 3 lines

Re: lasting for years.
Actually, I used to have several of both, but they're dying off, and they are excruciatingly slow...

Depends on what you use them for, I suppose.

My experience with old-laptops is:

1. hdd dies
2. CMOS battery dies
3. main battery dies

But from a practical view of runing a new distro on an old laptop, the distros seem to drop the video support for the old controllers, leaving you in VGA mode. That is the case with the T23, which has an S3 SuperSavage video controller.

cheers,
Len Brown, Intel Open Source Technolgy Center

#69 lore raw
In reply to Len Brown
Quoted 8 lines · Len Brown
Quoted 1 line

Please don't turn Linux into second Windows.

No worry there.

I mention Microsoft not to advocate that Linux be Windows, but to point out that this (hardware/firmware) ship sank 5 years ago and Linux is still on the boat. MS was able to delete APM support in 2006 from their source tree, yet we still carry it.

And we also support ISA cards (network/sound/whatever). That's why many people (including me) like and use Linux. Take any old machine that has enough power to do the job you want and install Linux - e.g. get a Pentium box, install Debian and you have a mail server (and if you need to power it down, you need APM too). It's not possible with any other OS (well, maybe *BSD but Linux has more drivers).

If we remove support for older HW, Linux will never get a decent desktop market share. The common use case is "new Windows will not run (or run slow) on that (old) box, let's try Linux".

Quoted 10 lines
Quoted 4 lines

If you don't want APM in the
kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

They can still run old Linux on an old APM-only laptop -- just like they can still run Windows 3.1 or Windows XP if they want to.

What we'd be taking away is their ability to run the latest Linux kernel on that laptop.

And that's bad. With Linux philosophy, you need new kernel to get new HW support. So if you have an APM-only laptop and would want to use a new USB device, you're out of luck. What to do then? Delete Linux and install Windows XP?

Quoted 5 lines

The issue at hand is people (like me) who have to maintain the latest Linux source code. In sort, I don't want to write, debug, and test a cpuidle driver for an apm-only laptop when I could be spending effort on code that people will actually run.

So don't do it then. If APM works now, keep it as is. Just like hgafb (HGA hardware is from 1984).

Signature · 1 line
Ondrej Zary
#70 lore raw
In reply to Len Brown
Quoted 8 lines · Len Brown
Quoted 1 line

Please don't turn Linux into second Windows.

No worry there.

I mention Microsoft not to advocate that Linux be Windows, but to point out that this (hardware/firmware) ship sank 5 years ago and Linux is still on the boat. MS was able to delete APM support in 2006 from their source tree, yet we still carry it.

And we also support ISA cards (network/sound/whatever). That's why many people (including me) like and use Linux. Take any old machine that has enough power to do the job you want and install Linux - e.g. get a Pentium box, install Debian and you have a mail server (and if you need to power it down, you need APM too). It's not possible with any other OS (well, maybe *BSD but Linux has more drivers).

If we remove support for older HW, Linux will never get a decent desktop market share. The common use case is "new Windows will not run (or run slow) on that (old) box, let's try Linux".

Quoted 10 lines
Quoted 4 lines

If you don't want APM in the
kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

They can still run old Linux on an old APM-only laptop -- just like they can still run Windows 3.1 or Windows XP if they want to.

What we'd be taking away is their ability to run the latest Linux kernel on that laptop.

And that's bad. With Linux philosophy, you need new kernel to get new HW support. So if you have an APM-only laptop and would want to use a new USB device, you're out of luck. What to do then? Delete Linux and install Windows XP?

Quoted 5 lines

The issue at hand is people (like me) who have to maintain the latest Linux source code. In sort, I don't want to write, debug, and test a cpuidle driver for an apm-only laptop when I could be spending effort on code that people will actually run.

So don't do it then. If APM works now, keep it as is. Just like hgafb (HGA hardware is from 1984).

Signature · 1 line
Ondrej Zary
#14 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 11 lines · Len Brown
Quoted 9 lines

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

I think this reasoning would apply in 2006, but that was 5 years ago.

I cited a few real examples:

Quoted 4 lines
Quoted 4 lines

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Quoted 11 lines

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

Thanks,

Ingo

#15 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 11 lines · Len Brown
Quoted 9 lines

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

I think this reasoning would apply in 2006, but that was 5 years ago.

I cited a few real examples:

Quoted 4 lines
Quoted 4 lines

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Quoted 11 lines

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

Thanks,

Ingo

#16 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 12 lines · Ingo Molnar
Quoted 11 lines

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

Quoted 6 lines

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

.42 removal might be too fast, considering the typical release schedule of Linux distributions. [...]

Anyway, i'd ack this schedule if you queued up the WARN() today with a -stable tag, on the condition that if we get complaints about that message, we keep APM support.

If there are people who are still using it then we should not remove it, agreed?

Ingo

#17 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 12 lines · Ingo Molnar
Quoted 11 lines

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

Quoted 6 lines

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

.42 removal might be too fast, considering the typical release schedule of Linux distributions. [...]

Anyway, i'd ack this schedule if you queued up the WARN() today with a -stable tag, on the condition that if we get complaints about that message, we keep APM support.

If there are people who are still using it then we should not remove it, agreed?

Ingo

#18 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 19 lines · Ingo Molnar
Quoted 16 lines · Ingo Molnar
Quoted 11 lines

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

Quoted 6 lines
Quoted 2 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. [...]

Anyway, i'd ack this schedule if you queued up the WARN() today with a -stable tag, on the condition that if we get complaints about that message, we keep APM support.

s/today/for .39

Thanks,

Ingo

#19 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 19 lines · Ingo Molnar
Quoted 16 lines · Ingo Molnar
Quoted 11 lines

Okay, I can delay this way:

2.6.39:
feature-removal.txt targets 2.6.42 removal depend on CONFIG_EXPERT

2.6.40, 2.6.41:
WARN once on run-time access

2.6.42:
remove.

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

Quoted 6 lines
Quoted 2 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. [...]

Anyway, i'd ack this schedule if you queued up the WARN() today with a -stable tag, on the condition that if we get complaints about that message, we keep APM support.

s/today/for .39

Thanks,

Ingo

#47 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 7 lines · Len Brown
Quoted 4 lines
Quoted 2 lines

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. [...]

Does Windows XP still support it?

yes, and so does Red Hat Linux 9.

Quoted 8 lines
Quoted 5 lines

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

How would you like to write i486 specific code for the latest kernel and test it on i486 hardware, honestly?

Hmm, that reminds me: I should try a newer kernel on my 486 some time, it's still running 2.6.25. I'm actually quite honestly surprised that the modern libata drivers include code for and fully support my old vesa-bus IDE controller! (X has been less friendly, they dropped support for the graphics chipset during the Xfree86 4 development--but I mostly use this box headless.)

Signature · 1 line
Calvin Walton <[email protected]>
#48 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 7 lines · Len Brown
Quoted 4 lines
Quoted 2 lines

Microsoft was able to delete APM from Windows in 2006 with the release of Windows Vista. [...]

Does Windows XP still support it?

yes, and so does Red Hat Linux 9.

Quoted 8 lines
Quoted 5 lines

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

How would you like to write i486 specific code for the latest kernel and test it on i486 hardware, honestly?

Hmm, that reminds me: I should try a newer kernel on my 486 some time, it's still running 2.6.25. I'm actually quite honestly surprised that the modern libata drivers include code for and fully support my old vesa-bus IDE controller! (X has been less friendly, they dropped support for the graphics chipset during the Xfree86 4 development--but I mostly use this box headless.)

Signature · 1 line
Calvin Walton <[email protected]>
#20 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 25 lines · Ingo Molnar
Quoted 11 lines · Len Brown
Quoted 9 lines

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

I think this reasoning would apply in 2006, but that was 5 years ago.

I cited a few real examples:

Quoted 4 lines
Quoted 4 lines

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

Quoted 8 lines

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

Thanks,
Rafael

#21 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 25 lines · Ingo Molnar
Quoted 11 lines · Len Brown
Quoted 9 lines

Thus from a maintenance POV APM has not been much of a drag on the x86 maintainer side. Sure, we do not test it, but that's the case with most of the obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying obsolete drivers is minimal - and the unknown cost of screwing someone in a big way by removing hardware support is hard to measure reliably. So we are cautious and err on the side of supporting too much hardware.

I think this reasoning would apply in 2006, but that was 5 years ago.

I cited a few real examples:

Quoted 4 lines
Quoted 4 lines

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

Quoted 8 lines

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

Thanks,
Rafael

author reviewer
#22 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

If we follow-through with the proposed cpuidle changes,
then we'll have to cut APM code. The problem isn't cutting
the code, it is testing it. I do have a couple of 15-year old laptops which include APM support. However, with ACPI disabled to enable APM, they don't even boot the upstream kernel today.

Quoted 8 lines
Quoted 8 lines

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Somebody was pushing for Voyager support in the kernel and was energetic about maintaining it.

cheers,
-Len

author reviewer
#23 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Rafael J. Wysocki
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, and we still have i486 support and those are *much* older than APM.

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

If we follow-through with the proposed cpuidle changes,
then we'll have to cut APM code. The problem isn't cutting
the code, it is testing it. I do have a couple of 15-year old laptops which include APM support. However, with ACPI disabled to enable APM, they don't even boot the upstream kernel today.

Quoted 8 lines
Quoted 8 lines

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Somebody was pushing for Voyager support in the kernel and was energetic about maintaining it.

cheers,
-Len

author reviewer
#34 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 3 lines

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

Okay, can do.

Quoted 7 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

My guess is that the customers have died off,
and so the code is no longer an asset, but a maintenance liability.

If there is a buzzing community of people running 2011 linux kernels on their ancient laptops in APM mode, then the APM maintainer would probably know about them.

Personally, my oldest usable laptop is a T23 from March 2002. It supports APM and ACPI (it shipped with Win2K).
Linux works well on it in ACPI mode, but doesn't even boot in APM mode. If anybody was really using the latest kernel in APM mode,
I suspect this laptop would boot...

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

I suspect when there is nobody using the latest kernel on mrst, then the latest kernel can delete support for mrst, and nobody will care. Like APM, it will probably undergo "maintenance without testing", aka bit rot, for a period before that happens.

cheers,
-Len

author reviewer
#35 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 3 lines

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

Okay, can do.

Quoted 7 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

My guess is that the customers have died off,
and so the code is no longer an asset, but a maintenance liability.

If there is a buzzing community of people running 2011 linux kernels on their ancient laptops in APM mode, then the APM maintainer would probably know about them.

Personally, my oldest usable laptop is a T23 from March 2002. It supports APM and ACPI (it shipped with Win2K).
Linux works well on it in ACPI mode, but doesn't even boot in APM mode. If anybody was really using the latest kernel in APM mode,
I suspect this laptop would boot...

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

I suspect when there is nobody using the latest kernel on mrst, then the latest kernel can delete support for mrst, and nobody will care. Like APM, it will probably undergo "maintenance without testing", aka bit rot, for a period before that happens.

cheers,
-Len

author reviewer
#71 lore raw
In reply to Ondrej Zary
Quoted 16 lines
Quoted 8 lines
Quoted 1 line

Please don't turn Linux into second Windows.

No worry there.

I mention Microsoft not to advocate that Linux be Windows, but to point out that this (hardware/firmware) ship sank 5 years ago and Linux is still on the boat. MS was able to delete APM support in 2006 from their source tree, yet we still carry it.

And we also support ISA cards (network/sound/whatever). That's why many people (including me) like and use Linux. Take any old machine that has enough power to do the job you want and install Linux - e.g. get a Pentium box, install Debian and you have a mail server (and if you need to power it down, you need APM too). It's not possible with any other OS (well, maybe *BSD but Linux has more drivers).

Quoted 3 lines

If we remove support for older HW, Linux will never get a decent desktop market share. The common use case is "new Windows will not run (or run slow) on that (old) box, let's try Linux".

Supporting APM is not a path to increased desktop market share. Indeed, one could easily argue it would be the opposite.

Quoted 16 lines
Quoted 10 lines
Quoted 4 lines

If you don't want APM in the
kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

They can still run old Linux on an old APM-only laptop -- just like they can still run Windows 3.1 or Windows XP if they want to.

What we'd be taking away is their ability to run the latest Linux kernel on that laptop.

And that's bad. With Linux philosophy, you need new kernel to get new HW support. So if you have an APM-only laptop and would want to use a new USB device, you're out of luck. What to do then? Delete Linux and install Windows XP?

Quoted 8 lines
Quoted 5 lines

The issue at hand is people (like me) who have to maintain the latest Linux source code. In sort, I don't want to write, debug, and test a cpuidle driver for an apm-only laptop when I could be spending effort on code that people will actually run.

So don't do it then. If APM works now, keep it as is. Just like hgafb (HGA hardware is from 1984).

Speaking for the only old system I have with APM support, today's kernel already doesn't boot on it in APM mode. (it boots fine in ACPI mode, though as you mentioned,
X already dropped support for its decade-old graphics controller)

cheers,
-Len

author reviewer
#72 lore raw
In reply to Ondrej Zary
Quoted 16 lines
Quoted 8 lines
Quoted 1 line

Please don't turn Linux into second Windows.

No worry there.

I mention Microsoft not to advocate that Linux be Windows, but to point out that this (hardware/firmware) ship sank 5 years ago and Linux is still on the boat. MS was able to delete APM support in 2006 from their source tree, yet we still carry it.

And we also support ISA cards (network/sound/whatever). That's why many people (including me) like and use Linux. Take any old machine that has enough power to do the job you want and install Linux - e.g. get a Pentium box, install Debian and you have a mail server (and if you need to power it down, you need APM too). It's not possible with any other OS (well, maybe *BSD but Linux has more drivers).

Quoted 3 lines

If we remove support for older HW, Linux will never get a decent desktop market share. The common use case is "new Windows will not run (or run slow) on that (old) box, let's try Linux".

Supporting APM is not a path to increased desktop market share. Indeed, one could easily argue it would be the opposite.

Quoted 16 lines
Quoted 10 lines
Quoted 4 lines

If you don't want APM in the
kernel, just don't compile it. There are many people using older systems with APM - and most of them wouldn't oppose to this removal as they don't even know about it.

They can still run old Linux on an old APM-only laptop -- just like they can still run Windows 3.1 or Windows XP if they want to.

What we'd be taking away is their ability to run the latest Linux kernel on that laptop.

And that's bad. With Linux philosophy, you need new kernel to get new HW support. So if you have an APM-only laptop and would want to use a new USB device, you're out of luck. What to do then? Delete Linux and install Windows XP?

Quoted 8 lines
Quoted 5 lines

The issue at hand is people (like me) who have to maintain the latest Linux source code. In sort, I don't want to write, debug, and test a cpuidle driver for an apm-only laptop when I could be spending effort on code that people will actually run.

So don't do it then. If APM works now, keep it as is. Just like hgafb (HGA hardware is from 1984).

Speaking for the only old system I have with APM support, today's kernel already doesn't boot on it in APM mode. (it boots fine in ACPI mode, though as you mentioned,
X already dropped support for its decade-old graphics controller)

cheers,
-Len

#36 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 5 lines · Len Brown

Personally, my oldest usable laptop is a T23 from March 2002. It supports APM and ACPI (it shipped with Win2K).
Linux works well on it in ACPI mode, but doesn't even boot in APM mode. If anybody was really using the latest kernel in APM mode,
I suspect this laptop would boot...

I boot non-ACPI kernels all the time:

mercury:~> grep -E 'PM|ACPI' /proc/config.gz
mercury:~>
mercury:~> uname -a
Linux mercury 2.6.38-tip+ #110579 SMP Sat Mar 26 11:47:58 CET 2011 x86_64 x86_64 x86_64 GNU/Linux

How does it fail for you?

Could you describe the steps you'd like to see from folks using APM to see it tested? What kernel configs, BIOS options, etc., what should they see in the syslog, etc. - to make sure APM mode is still working fine?

Thanks,

Ingo

#37 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 5 lines · Len Brown

Personally, my oldest usable laptop is a T23 from March 2002. It supports APM and ACPI (it shipped with Win2K).
Linux works well on it in ACPI mode, but doesn't even boot in APM mode. If anybody was really using the latest kernel in APM mode,
I suspect this laptop would boot...

I boot non-ACPI kernels all the time:

mercury:~> grep -E 'PM|ACPI' /proc/config.gz
mercury:~>
mercury:~> uname -a
Linux mercury 2.6.38-tip+ #110579 SMP Sat Mar 26 11:47:58 CET 2011 x86_64 x86_64 x86_64 GNU/Linux

How does it fail for you?

Could you describe the steps you'd like to see from folks using APM to see it tested? What kernel configs, BIOS options, etc., what should they see in the syslog, etc. - to make sure APM mode is still working fine?

Thanks,

Ingo

#38 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 28 lines · On Saturday 26 March 2011 06:01:38 Len Brown wrote:
Quoted 3 lines

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

Okay, can do.

Quoted 8 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

My guess is that the customers have died off,
and so the code is no longer an asset, but a maintenance liability.

If there is a buzzing community of people running 2011 linux kernels on their ancient laptops in APM mode, then the APM maintainer would probably know about them.

Personally, my oldest usable laptop is a T23 from March 2002. It supports APM and ACPI (it shipped with Win2K).
Linux works well on it in ACPI mode, but doesn't even boot in APM mode. If anybody was really using the latest kernel in APM mode,
I suspect this laptop would boot...

Quoted 5 lines

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least). If using Grub2, linux16 command must be used instead of linux in grub.cfg (otherwise loading apm module will fail with "apm: BIOS not found").

I also have some working laptops with APM but haven't tried recent kernels yet.

Quoted 4 lines

I suspect when there is nobody using the latest kernel on mrst, then the latest kernel can delete support for mrst, and nobody will care. Like APM, it will probably undergo "maintenance without testing", aka bit rot, for a period before that happens.

Signature · 1 line
Ondrej Zary
#39 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 28 lines · On Saturday 26 March 2011 06:01:38 Len Brown wrote:
Quoted 3 lines

Regardless of removal, i'd suggest a "this code is not supported" kind of WARN() message to the APM code today, into .39 - to see whether it pops up anywhere - and mark it for -stable as well.

Okay, can do.

Quoted 8 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

My guess is that the customers have died off,
and so the code is no longer an asset, but a maintenance liability.

If there is a buzzing community of people running 2011 linux kernels on their ancient laptops in APM mode, then the APM maintainer would probably know about them.

Personally, my oldest usable laptop is a T23 from March 2002. It supports APM and ACPI (it shipped with Win2K).
Linux works well on it in ACPI mode, but doesn't even boot in APM mode. If anybody was really using the latest kernel in APM mode,
I suspect this laptop would boot...

Quoted 5 lines

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least). If using Grub2, linux16 command must be used instead of linux in grub.cfg (otherwise loading apm module will fail with "apm: BIOS not found").

I also have some working laptops with APM but haven't tried recent kernels yet.

Quoted 4 lines

I suspect when there is nobody using the latest kernel on mrst, then the latest kernel can delete support for mrst, and nobody will care. Like APM, it will probably undergo "maintenance without testing", aka bit rot, for a period before that happens.

Signature · 1 line
Ondrej Zary
#40 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 7 lines · Ondrej Zary
Quoted 5 lines

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least).

Ok, thanks for testing. I too tried APM poweroff in the not too distant past and it worked - but not very recent kernels.

Thanks,

Ingo

#41 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ondrej Zary
Quoted 7 lines · Ondrej Zary
Quoted 5 lines

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least).

Ok, thanks for testing. I too tried APM poweroff in the not too distant past and it worked - but not very recent kernels.

Thanks,

Ingo

#45 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 9 lines · Len Brown
Quoted 7 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

My guess is that the customers have died off,

How do we know that? Users are on a bell curve, with a fat tail. If stuff just works - and that's not unexpected from relatively simple (and most likely to be used) APM functionality like APM-poweroff, why should they ever report problems?

Removing a driver based on lack of visible feedback is like removing 190,000 apps from a 200,000 apps app store, on the (valid) observation that the top 1000 apps receive 99% of the traffic and use so the remaining 1% are just a maintenance burden.

There's value in the concept of knowing that we do not do forced obscolescence in Linux and there's a value in a very broad "there's a driver for that" concept, just like there's value in a very broad "there's an app for that" concept.

Quoted 5 lines

and so the code is no longer an asset, but a maintenance liability.

If there is a buzzing community of people running 2011 linux kernels on their ancient laptops in APM mode, then the APM maintainer would probably know about them.

Not if most of them use APM-poweroff. I think i even had a desktop box (not a laptop) that supported APM suspend (or am i mistaken there, was APM suspend support only limited to laptops?).

Thanks,

Ingo

#46 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Len Brown
Quoted 9 lines · Len Brown
Quoted 7 lines

.42 removal might be too fast, considering the typical release schedule of Linux distributions. And i'm still doubting the removal itself: we are adding lots of special-purpose subarch drivers to arch/x86/ as we speak (the embedded mess coming to x86) - which drivers will be tomorrow's APM code. On what grounds do we treat APM support differently?

Our general compatibility with old hardware is an *asset* that we should value.

My guess is that the customers have died off,

How do we know that? Users are on a bell curve, with a fat tail. If stuff just works - and that's not unexpected from relatively simple (and most likely to be used) APM functionality like APM-poweroff, why should they ever report problems?

Removing a driver based on lack of visible feedback is like removing 190,000 apps from a 200,000 apps app store, on the (valid) observation that the top 1000 apps receive 99% of the traffic and use so the remaining 1% are just a maintenance burden.

There's value in the concept of knowing that we do not do forced obscolescence in Linux and there's a value in a very broad "there's a driver for that" concept, just like there's value in a very broad "there's an app for that" concept.

Quoted 5 lines

and so the code is no longer an asset, but a maintenance liability.

If there is a buzzing community of people running 2011 linux kernels on their ancient laptops in APM mode, then the APM maintainer would probably know about them.

Not if most of them use APM-poweroff. I think i even had a desktop box (not a laptop) that supported APM suspend (or am i mistaken there, was APM suspend support only limited to laptops?).

Thanks,

Ingo

#42 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ingo Molnar
Quoted 9 lines · Ingo Molnar
Quoted 6 lines · Ondrej Zary
Quoted 5 lines

Is there somebody on LKML that has a older laptop than me and is able to get it to boot in APM mode? I'd be astonished if there was not. Are they willing to regularly test changes to the upstream kernel to make sure that APM still works? If yes, where have they been for the last 5 years?

Quoted 5 lines
Quoted 1 line

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least).

Ok, thanks for testing. I too tried APM poweroff in the not too distant past and it worked - but not very recent kernels.

Given that the current merge window rewrote this code, it would be good to get it tested on 2.6.39-rc1 when it becomes available.

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#43 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ondrej Zary
Quoted 5 lines · Ondrej Zary

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least). If using Grub2, linux16 command must be used instead of linux in grub.cfg (otherwise loading apm module will fail with "apm: BIOS not found").

This is just Yet Another Example of the Grub2 people doing things in the absolutely most idiotic way possible by default, and then blaming the user.

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#44 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Ondrej Zary
Quoted 5 lines · Ondrej Zary

I just tested 2.6.38-rc4 on a desktop board and it works (power off at least). If using Grub2, linux16 command must be used instead of linux in grub.cfg (otherwise loading apm module will fail with "apm: BIOS not found").

This is just Yet Another Example of the Grub2 people doing things in the absolutely most idiotic way possible by default, and then blaming the user.

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#73 lore raw
In reply to Len Brown
Quoted 2 lines

+Why: Microsoft deleted APM from Windows as of Vista in in 2006.

To be more precise, support for all hardware that do not support ACPI.
Also required for Vista and later is a 586 processor with TSC, such as Intel Pentium or later

Yuhong Bao

#74 lore raw
In reply to Len Brown
Quoted 2 lines

+Why: Microsoft deleted APM from Windows as of Vista in in 2006.

To be more precise, support for all hardware that do not support ACPI.
Also required for Vista and later is a 586 processor with TSC, such as Intel Pentium or later

Yuhong Bao

#61 lore raw
In reply to Henrique de Moraes Holschuh

Hi!

Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

Quoted 8 lines

I wonder why I had some users of those two boxes advocating APM, maybe it used to work better or something. Or I got the T21 and A30 confused with the T23.

Well, I don't think we need to support the thre-digit series ThinkPads, the number of those still working is probably on the four digits world-wide. And I haven't heard from anyone with a T21 or A31 in a while, so they might be down to five digits already.

I still have working thinkpad 560X, my brother occassionaly uses it...

I do not think we should remove APM support like this. It does not seem to be huge maintainance burden...
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#62 lore raw
In reply to Henrique de Moraes Holschuh

Hi!

Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

People with a ThinkPad T23, T30 will really not appreciate this, and it should not be too difficult to recruit some as testers.

I have both, and they both support ACPI.

Quoted 8 lines

I wonder why I had some users of those two boxes advocating APM, maybe it used to work better or something. Or I got the T21 and A30 confused with the T23.

Well, I don't think we need to support the thre-digit series ThinkPads, the number of those still working is probably on the four digits world-wide. And I haven't heard from anyone with a T21 or A31 in a while, so they might be down to five digits already.

I still have working thinkpad 560X, my brother occassionaly uses it...

I do not think we should remove APM support like this. It does not seem to be huge maintainance burden...
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
author reviewer
#63 lore raw
Quoted 2 lines

I still have working thinkpad 560X, my brother occassionaly uses it...

There is no doubt that there are still people running Linux on old APM laptops.

The question, however, is if they're running (or will run) the latest upstream kernel. Further, are they available to test APM patches to the latest upstream kernel.

Quoted 2 lines

I do not think we should remove APM support like this. It does not seem to be huge maintainance burden...

Last week we decided not to delete APM yet.
The jury is still out on APM's idle hooks.

cheers,
Len Brown, Intel Open Source Technology Center

author reviewer
#64 lore raw
In reply to Pavel Machek
Quoted 2 lines

I still have working thinkpad 560X, my brother occassionaly uses it...

There is no doubt that there are still people running Linux on old APM laptops.

The question, however, is if they're running (or will run) the latest upstream kernel. Further, are they available to test APM patches to the latest upstream kernel.

Quoted 2 lines

I do not think we should remove APM support like this. It does not seem to be huge maintainance burden...

Last week we decided not to delete APM yet.
The jury is still out on APM's idle hooks.

cheers,
Len Brown, Intel Open Source Technology Center

#24 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Rafael J. Wysocki

Hi!

Quoted 12 lines
Quoted 11 lines

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Quoted 7 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#25 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Rafael J. Wysocki

Hi!

Quoted 12 lines
Quoted 11 lines

So how does your reasoning not apply to those drivers? There's several which are older than APM support.

We had this really big battle about x86/Voyager two years ago, which x86 subarchitecture literally had just a single user left, and the code was more intrusive than APM. Even there after much flaming the eventual consensus was that we'd accept it back if it was done cleanly, as part of the new-style x86_platform code.

Given that APM fits into the current PM frameworks there's no such problem here that i can see.

Quoted 7 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#26 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 11 lines · Pavel Machek
Quoted 8 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.
Pavel

What aspects of it did you test, and on what platform?

-hpa

#27 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Pavel Machek
Quoted 11 lines · Pavel Machek
Quoted 8 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.
Pavel

What aspects of it did you test, and on what platform?

-hpa

#28 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Hi!

Quoted 11 lines
Quoted 9 lines
Quoted 7 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.

What aspects of it did you test, and on what platform?

thinkpad 560X.

I tested basic boot, IIRC it did turn backlight off properly in screensaver and even suspend worked.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#29 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to H. Peter Anvin

Hi!

Quoted 11 lines
Quoted 9 lines
Quoted 7 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.

What aspects of it did you test, and on what platform?

thinkpad 560X.

I tested basic boot, IIRC it did turn backlight off properly in screensaver and even suspend worked.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#30 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 12 lines · Pavel Machek

Hi!

Quoted 10 lines
Quoted 9 lines
Quoted 7 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.

Quoted 7 lines
Quoted 1 line

What aspects of it did you test, and on what platform?

thinkpad 560X.

I tested basic boot, IIRC it did turn backlight off properly in screensaver and even suspend worked.
Pavel

OK, but I presume runtime power management wasn't on the list at least on what matters.

-hpa

#31 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to Pavel Machek
Quoted 12 lines · Pavel Machek

Hi!

Quoted 10 lines
Quoted 9 lines
Quoted 7 lines

Well, it kind of does but not really. :-)

The main problem with APM is that nobody really works on it and I'm not sure if there are any active users. At least no one reports any problems with it, which is kind of surprising, given the number of chages we've made in the PM core for the last couple of years. So quite likely it's just become non-functional over time anyway, but we have no confirmation.

It was working ok last time I tried -- cca 6/2010.

Quoted 7 lines
Quoted 1 line

What aspects of it did you test, and on what platform?

thinkpad 560X.

I tested basic boot, IIRC it did turn backlight off properly in screensaver and even suspend worked.
Pavel

OK, but I presume runtime power management wasn't on the list at least on what matters.

-hpa

#32 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

Quoted 2 lines · H. Peter Anvin
Quoted 1 line · Pavel Machek

Hi!

...

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

What aspects of it did you test, and on what platform?

thinkpad 560X.

I tested basic boot, IIRC it did turn backlight off properly in screensaver and even suspend worked.

OK, but I presume runtime power management wasn't on the list at least on what matters.

No, I was not measuring with the multimeter. (This machine still has 2nd, good battery, I could...). I'd notice if it broke horribly.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#33 lore raw

Re: [PATCH] x86 APM: delete Linux kernel APM support

In reply to H. Peter Anvin
Quoted 2 lines · H. Peter Anvin
Quoted 1 line · Pavel Machek

Hi!

...

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

What aspects of it did you test, and on what platform?

thinkpad 560X.

I tested basic boot, IIRC it did turn backlight off properly in screensaver and even suspend worked.

OK, but I presume runtime power management wasn't on the list at least on what matters.

No, I was not measuring with the multimeter. (This machine still has 2nd, good battery, I could...). I'd notice if it broke horribly.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html