Skip to contentSkip to conversation

drivers/ide/Kconfig IDEPCI_SHARE_IRQ and IDEDISK_MULTI_MODE

PATCH NAK Matti Linnanvuori 2 participants 2 messages Oct 21, 2007 – Oct 22, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/ide/Kconfig IDEPCI_SHARE_IRQ and IDEDISK_MULTI_MODE

From: Matti Linnanvuori <[email protected]>

Correct IDEPCI_SHARE_IRQ description to keeping interrupts enabled when calling the PCI IDE action handler.
Add IDEPCI_SHARE_IRQ and IDEDISK_MULTI_MODE help text from hdparm manual page.

---

drivers/ide/Kconfig +20 -3
@@ -154,6 +154,18 @@ config BLK_DEV_IDEDISK
 config IDEDISK_MULTI_MODE
 	bool "Use multi-mode by default"
 	help
+	  Multiple sector mode is a feature of most modern IDE hard
+ 	  drives, permitting the transfer of multiple sectors per I/O
+	  interrupt, rather than the usual one sector per interrupt.
+	  When this feature is enabled, it typically reduces operating
+	  system overhead for disk I/O by 30-50%. On many systems, it
+	  also provides increased data throughput of anywhere from 5%
+	  to 50%. Some drives, however (most notably the WD Caviar
+	  series), seem to run slower with multiple mode enabled. Some
+	  drives claim to support multiple mode, but lose data at some
+	  settings. Under rare circumstances, such failures can result
+	  in massive filesystem corruption.
+
 	  If you get this error, try to say Y here:
 
 	  hda: set_multmode: status=0x51 { DriveReady SeekComplete Error }
@@ -367,11 +379,16 @@ config BLK_DEV_IDEPCI
 	bool
 
 config IDEPCI_SHARE_IRQ
-	bool "Sharing PCI IDE interrupts support"
+	bool "Keeping interrupts enabled when calling the PCI IDE action handler support"
 	depends on BLK_DEV_IDEPCI
 	help
-	  Some ATA/IDE chipsets have hardware support which allows for
-	  sharing a single IRQ with other cards. To enable support for
+	  A setting of Y permits the driver to unmask other interrupts
+	  during processing of a disk interrupt, which greatly improves
+ 	  Linux's responsiveness and eliminates "serial port overrun"
+	  errors. Use this feature with caution: some drive/controller
+	  combinations do not tolerate the increased I/O latencies
+	  possible when this feature is enabled, resulting in massive
+	  filesystem corruption. To enable support for
 	  this in the ATA/IDE driver, say Y here.
 
 	  It is safe to say Y to this question, in most cases.
        __________________________________  Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.  www.yahoo.de/clever
#1 lore raw
Quoted 6 lines · Matti Linnanvuori

Correct IDEPCI_SHARE_IRQ description to keeping interrupts enabled when calling the PCI IDE action handler.
Add IDEPCI_SHARE_IRQ and IDEDISK_MULTI_MODE help text from hdparm manual page.

NAK.

Quoted 4 lines
drivers/ide/Kconfig +0 -0
@@ -154,6 +154,18 @@ config BLK_DEV_IDEDISK
 config IDEDISK_MULTI_MODE
 	bool "Use multi-mode by default"
 	help

drivers/ide/Kconfig config BLK_DEV_IDEDISK · line 166

Quoted 10 lines
drivers/ide/Kconfig +10 -0
+	  Multiple sector mode is a feature of most modern IDE hard
+ 	  drives, permitting the transfer of multiple sectors per I/O
+	  interrupt, rather than the usual one sector per interrupt.
+	  When this feature is enabled, it typically reduces operating
+	  system overhead for disk I/O by 30-50%. On many systems, it
+	  also provides increased data throughput of anywhere from 5%
+	  to 50%. Some drives, however (most notably the WD Caviar
+	  series), seem to run slower with multiple mode enabled. Some
+	  drives claim to support multiple mode, but lose data at some
+	  settings. Under rare circumstances, such failures can result

The speed increase data provided here are largely useless, since multiple
mode only applies to PIO transfers. At least, the comment should make this clear...

drivers/ide/Kconfig config BLK_DEV_IDEPCI · line 382

Quoted 11 lines
drivers/ide/Kconfig +3 -1
+	  in massive filesystem corruption.
+
 	  If you get this error, try to say Y here:
 
 	  hda: set_multmode: status=0x51 { DriveReady SeekComplete Error }
@@ -367,11 +379,16 @@ config BLK_DEV_IDEPCI
 	bool
 
 config IDEPCI_SHARE_IRQ
-	bool "Sharing PCI IDE interrupts support"
+	bool "Keeping interrupts enabled when calling the PCI IDE action handler support"

Keeping IRQ enabled is only a side effect of IRQ sharing...

drivers/ide/Kconfig config BLK_DEV_IDEPCI · line 392

Quoted 12 lines
drivers/ide/Kconfig +7 -2
 	depends on BLK_DEV_IDEPCI
 	help
-	  Some ATA/IDE chipsets have hardware support which allows for
-	  sharing a single IRQ with other cards. To enable support for
+	  A setting of Y permits the driver to unmask other interrupts
+	  during processing of a disk interrupt, which greatly improves
+ 	  Linux's responsiveness and eliminates "serial port overrun"
+	  errors. Use this feature with caution: some drive/controller
+	  combinations do not tolerate the increased I/O latencies
+	  possible when this feature is enabled, resulting in massive
+	  filesystem corruption. To enable support for
 	  this in the ATA/IDE driver, say Y here.

Comments do not really describe the IRQ sharing option anymore.

drivers/ide/Kconfig config BLK_DEV_IDEPCI · line 394

Quoted 1 line
drivers/ide/Kconfig +0 -0
 	  It is safe to say Y to this question, in most cases.

MBR, Sergei