Marking legacy watchdog drivers as deprecated / obsolete
Hi,
we have recently seen a number of changes to legacy watchdog drivers, mostly surrounding the coding style used some 10+ years ago, but also fixing minor formatting or coding problems found by static analyzers. This slowly rises above the level of background noise.
Would it be acceptable to mark all those drivers as deprecated/obsolete, warn users that the driver should be converted to use the watchdog subsystem, and that it will otherwise be removed in a later Linux kernel version ? This would give us an idea which drivers are still in use, and it would enable us to remove the remaining drivers maybe 5 or 6 releases for now.
Thoughts ?
Guenter
Quoted 8 lines · Guenter Roeck
Hi,
we have recently seen a number of changes to legacy watchdog drivers, mostly surrounding the coding style used some 10+ years ago, but also fixing minor formatting or coding problems found by static analyzers. This slowly rises above the level of background noise.
Quoted 8 lines
Would it be acceptable to mark all those drivers as deprecated/obsolete, warn users that the driver should be converted to use the watchdog subsystem, and that it will otherwise be removed in a later Linux kernel version ? This would give us an idea which drivers are still in use, and it would enable us to remove the remaining drivers maybe 5 or 6 releases for now.
Thoughts ?
I don't think an automated approach across 61 drivers is likely to work well. About half of the drivers appear to be for specific SoCs, and removing the watchdog driver while keeping the rest of the SoC support would not be helpful, it just means we break one of the drivers for the last remaining users of an old SoC the next time they try to upgrade to a new kernel.
It would probably be helpful to go through the list and see if any of the drivers
are for platforms that are already gone. FWIW, here is the list of drivers that have their own .ioctl() method, taken from a patch I'm sending soon to add a .compat_ioctl handler:
arch/powerpc/platforms/52xx/mpc52xx_gpt.carch/um/drivers/harddog_kern.cdrivers/char/ipmi/ipmi_watchdog.cdrivers/hwmon/fschmd.cdrivers/rtc/rtc-ds1374.cdrivers/watchdog/acquirewdt.cdrivers/watchdog/advantechwdt.cdrivers/watchdog/alim1535_wdt.cdrivers/watchdog/alim7101_wdt.cdrivers/watchdog/ar7_wdt.cdrivers/watchdog/at91rm9200_wdt.cdrivers/watchdog/ath79_wdt.cdrivers/watchdog/bcm63xx_wdt.cdrivers/watchdog/cpu5wdt.cdrivers/watchdog/eurotechwdt.cdrivers/watchdog/f71808e_wdt.cdrivers/watchdog/gef_wdt.cdrivers/watchdog/geodewdt.cdrivers/watchdog/ib700wdt.cdrivers/watchdog/ibmasr.cdrivers/watchdog/indydog.cdrivers/watchdog/intel_scu_watchdog.cdrivers/watchdog/iop_wdt.cdrivers/watchdog/it8712f_wdt.cdrivers/watchdog/ixp4xx_wdt.cdrivers/watchdog/ks8695_wdt.cdrivers/watchdog/m54xx_wdt.cdrivers/watchdog/machzwd.cdrivers/watchdog/mixcomwd.cdrivers/watchdog/mtx-1_wdt.cdrivers/watchdog/mv64x60_wdt.cdrivers/watchdog/nuc900_wdt.cdrivers/watchdog/nv_tco.cdrivers/watchdog/pc87413_wdt.cdrivers/watchdog/pcwd.cdrivers/watchdog/pcwd_pci.cdrivers/watchdog/pcwd_usb.cdrivers/watchdog/pika_wdt.cdrivers/watchdog/pnx833x_wdt.cdrivers/watchdog/rc32434_wdt.cdrivers/watchdog/rdc321x_wdt.cdrivers/watchdog/riowd.cdrivers/watchdog/sa1100_wdt.cdrivers/watchdog/sb_wdog.cdrivers/watchdog/sbc60xxwdt.cdrivers/watchdog/sbc7240_wdt.cdrivers/watchdog/sbc_epx_c3.cdrivers/watchdog/sbc_fitpc2_wdt.cdrivers/watchdog/sc1200wdt.cdrivers/watchdog/sc520_wdt.cdrivers/watchdog/sch311x_wdt.cdrivers/watchdog/scx200_wdt.cdrivers/watchdog/smsc37b787_wdt.cdrivers/watchdog/w83877f_wdt.cdrivers/watchdog/w83977f_wdt.cdrivers/watchdog/wafer5823wdt.cdrivers/watchdog/wdrtas.cdrivers/watchdog/wdt.cdrivers/watchdog/wdt285.cdrivers/watchdog/wdt977.cdrivers/watchdog/wdt_pci.c
Arnd
Quoted 16 lines · Arnd Bergmann
Quoted 15 lines · Guenter Roeck
Hi,
we have recently seen a number of changes to legacy watchdog drivers, mostly surrounding the coding style used some 10+ years ago, but also fixing minor formatting or coding problems found by static analyzers. This slowly rises above the level of background noise.
Would it be acceptable to mark all those drivers as deprecated/obsolete, warn users that the driver should be converted to use the watchdog subsystem, and that it will otherwise be removed in a later Linux kernel version ? This would give us an idea which drivers are still in use, and it would enable us to remove the remaining drivers maybe 5 or 6 releases for now.
Quoted 9 lines
Quoted 1 line
Thoughts ?
I don't think an automated approach across 61 drivers is likely to work well. About half of the drivers appear to be for specific SoCs, and removing the watchdog driver while keeping the rest of the SoC support would not be helpful, it just means we break one of the drivers for the last remaining users of an old SoC the next time they try to upgrade to a new kernel.
The primary goal would be to identify drivers still in use, and to trigger efforts to convert those drivers to the new infrastructure. Removal of obsolete / unused drivers would be a separate decision, to be made at some point in the future, and individually for each driver. I specifically wasn't trying to suggest auto-removal.
Guenter
Quoted 69 lines
It would probably be helpful to go through the list and see if any of the drivers
are for platforms that are already gone. FWIW, here is the list of drivers that have their own .ioctl() method, taken from a patch I'm sending soon to add a .compat_ioctl handler:
arch/powerpc/platforms/52xx/mpc52xx_gpt.carch/um/drivers/harddog_kern.cdrivers/char/ipmi/ipmi_watchdog.cdrivers/hwmon/fschmd.cdrivers/rtc/rtc-ds1374.cdrivers/watchdog/acquirewdt.cdrivers/watchdog/advantechwdt.cdrivers/watchdog/alim1535_wdt.cdrivers/watchdog/alim7101_wdt.cdrivers/watchdog/ar7_wdt.cdrivers/watchdog/at91rm9200_wdt.cdrivers/watchdog/ath79_wdt.cdrivers/watchdog/bcm63xx_wdt.cdrivers/watchdog/cpu5wdt.cdrivers/watchdog/eurotechwdt.cdrivers/watchdog/f71808e_wdt.cdrivers/watchdog/gef_wdt.cdrivers/watchdog/geodewdt.cdrivers/watchdog/ib700wdt.cdrivers/watchdog/ibmasr.cdrivers/watchdog/indydog.cdrivers/watchdog/intel_scu_watchdog.cdrivers/watchdog/iop_wdt.cdrivers/watchdog/it8712f_wdt.cdrivers/watchdog/ixp4xx_wdt.cdrivers/watchdog/ks8695_wdt.cdrivers/watchdog/m54xx_wdt.cdrivers/watchdog/machzwd.cdrivers/watchdog/mixcomwd.cdrivers/watchdog/mtx-1_wdt.cdrivers/watchdog/mv64x60_wdt.cdrivers/watchdog/nuc900_wdt.cdrivers/watchdog/nv_tco.cdrivers/watchdog/pc87413_wdt.cdrivers/watchdog/pcwd.cdrivers/watchdog/pcwd_pci.cdrivers/watchdog/pcwd_usb.cdrivers/watchdog/pika_wdt.cdrivers/watchdog/pnx833x_wdt.cdrivers/watchdog/rc32434_wdt.cdrivers/watchdog/rdc321x_wdt.cdrivers/watchdog/riowd.cdrivers/watchdog/sa1100_wdt.cdrivers/watchdog/sb_wdog.cdrivers/watchdog/sbc60xxwdt.cdrivers/watchdog/sbc7240_wdt.cdrivers/watchdog/sbc_epx_c3.cdrivers/watchdog/sbc_fitpc2_wdt.cdrivers/watchdog/sc1200wdt.cdrivers/watchdog/sc520_wdt.cdrivers/watchdog/sch311x_wdt.cdrivers/watchdog/scx200_wdt.cdrivers/watchdog/smsc37b787_wdt.cdrivers/watchdog/w83877f_wdt.cdrivers/watchdog/w83977f_wdt.cdrivers/watchdog/wafer5823wdt.cdrivers/watchdog/wdrtas.cdrivers/watchdog/wdt.cdrivers/watchdog/wdt285.cdrivers/watchdog/wdt977.cdrivers/watchdog/wdt_pci.cArnd
Quoted 27 lines · On Tuesday 30 July 2019 17:57:37 Guenter Roeck wrote:
Quoted 16 lines · Arnd Bergmann
Quoted 15 lines · Guenter Roeck
Hi,
we have recently seen a number of changes to legacy watchdog drivers, mostly surrounding the coding style used some 10+ years ago, but also fixing minor formatting or coding problems found by static analyzers. This slowly rises above the level of background noise.
Would it be acceptable to mark all those drivers as deprecated/obsolete, warn users that the driver should be converted to use the watchdog subsystem, and that it will otherwise be removed in a later Linux kernel version ? This would give us an idea which drivers are still in use, and it would enable us to remove the remaining drivers maybe 5 or 6 releases for now.
Quoted 9 lines
Quoted 1 line
Thoughts ?
I don't think an automated approach across 61 drivers is likely to work well. About half of the drivers appear to be for specific SoCs, and removing the watchdog driver while keeping the rest of the SoC support would not be helpful, it just means we break one of the drivers for the last remaining users of an old SoC the next time they try to upgrade to a new kernel.
Quoted 78 lines
The primary goal would be to identify drivers still in use, and to trigger efforts to convert those drivers to the new infrastructure. Removal of obsolete / unused drivers would be a separate decision, to be made at some point in the future, and individually for each driver. I specifically wasn't trying to suggest auto-removal.
Guenter
Quoted 69 lines
It would probably be helpful to go through the list and see if any of the drivers
are for platforms that are already gone. FWIW, here is the list of drivers that have their own .ioctl() method, taken from a patch I'm sending soon to add a .compat_ioctl handler:
arch/powerpc/platforms/52xx/mpc52xx_gpt.carch/um/drivers/harddog_kern.cdrivers/char/ipmi/ipmi_watchdog.cdrivers/hwmon/fschmd.cdrivers/rtc/rtc-ds1374.cdrivers/watchdog/acquirewdt.cdrivers/watchdog/advantechwdt.cdrivers/watchdog/alim1535_wdt.cdrivers/watchdog/alim7101_wdt.cdrivers/watchdog/ar7_wdt.cdrivers/watchdog/at91rm9200_wdt.cdrivers/watchdog/ath79_wdt.cdrivers/watchdog/bcm63xx_wdt.cdrivers/watchdog/cpu5wdt.cdrivers/watchdog/eurotechwdt.cdrivers/watchdog/f71808e_wdt.cdrivers/watchdog/gef_wdt.cdrivers/watchdog/geodewdt.cdrivers/watchdog/ib700wdt.cdrivers/watchdog/ibmasr.cdrivers/watchdog/indydog.cdrivers/watchdog/intel_scu_watchdog.cdrivers/watchdog/iop_wdt.cdrivers/watchdog/it8712f_wdt.cdrivers/watchdog/ixp4xx_wdt.cdrivers/watchdog/ks8695_wdt.cdrivers/watchdog/m54xx_wdt.cdrivers/watchdog/machzwd.cdrivers/watchdog/mixcomwd.cdrivers/watchdog/mtx-1_wdt.cdrivers/watchdog/mv64x60_wdt.cdrivers/watchdog/nuc900_wdt.cdrivers/watchdog/nv_tco.cdrivers/watchdog/pc87413_wdt.cdrivers/watchdog/pcwd.cdrivers/watchdog/pcwd_pci.cdrivers/watchdog/pcwd_usb.cdrivers/watchdog/pika_wdt.cdrivers/watchdog/pnx833x_wdt.cdrivers/watchdog/rc32434_wdt.cdrivers/watchdog/rdc321x_wdt.cdrivers/watchdog/riowd.cdrivers/watchdog/sa1100_wdt.cdrivers/watchdog/sb_wdog.cdrivers/watchdog/sbc60xxwdt.cdrivers/watchdog/sbc7240_wdt.cdrivers/watchdog/sbc_epx_c3.cdrivers/watchdog/sbc_fitpc2_wdt.cdrivers/watchdog/sc1200wdt.cdrivers/watchdog/sc520_wdt.cdrivers/watchdog/sch311x_wdt.cdrivers/watchdog/scx200_wdt.cdrivers/watchdog/smsc37b787_wdt.cdrivers/watchdog/w83877f_wdt.cdrivers/watchdog/w83977f_wdt.cdrivers/watchdog/wafer5823wdt.cdrivers/watchdog/wdrtas.cdrivers/watchdog/wdt.cdrivers/watchdog/wdt285.cdrivers/watchdog/wdt977.cdrivers/watchdog/wdt_pci.cArnd
I have some older x86 boards so I probably could test some of them. Likely ALi chipset (alim1535_wdt.c and/or alim7101_wdt.c) and some super I/Os (it8712f_wdt.c, w83877f_wdt.c, w83977f_wdt.c).
Signature · 1 line
Ondrej Zary