Skip to content

Commit b2aaee3

Browse files
shadowconnectLinus Torvalds
authored andcommitted
[PATCH] I2O: Adaptec specific SG_IO access, firmware access through sysfs and 2400A workaround
Changes: - Provide SG_IO access to BLOCK and EXECUTIVE class on Adaptec controllers - Use PRIVATE messages in SCSI-OSM because on some controllers normal SCSI class commands like READ or READ CAPACITY cause errors - Use new DMA and SG list creation function - Added workaround to limit sectors per request for Adaptec 2400A controllers Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent f10378f commit b2aaee3

8 files changed

Lines changed: 282 additions & 116 deletions

File tree

‎drivers/message/i2o/Kconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@ config I2O
2424

2525
If unsure, say N.
2626

27+
config I2O_EXT_ADAPTEC
28+
bool "Enable Adaptec extensions"
29+
depends on I2O
30+
default y
31+
---help---
32+
Say Y for support of raidutils for Adaptec I2O controllers. You also
33+
have to say Y to "I2O Configuration support", "I2O SCSI OSM" below
34+
and to "SCSI generic support" under "SCSI device configuration".
35+
36+
config I2O_EXT_ADAPTEC_DMA64
37+
bool "Enable 64-bit DMA"
38+
depends on I2O_EXT_ADAPTEC && ( 64BIT || HIGHMEM64G )
39+
default y
40+
---help---
41+
Say Y for support of 64-bit DMA transfer mode on Adaptec I2O
42+
controllers.
43+
Note: You need at least firmware version 3709.
44+
2745
config I2O_CONFIG
2846
tristate "I2O Configuration support"
2947
depends on PCI && I2O

‎drivers/message/i2o/i2o_block.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
#define I2O_BLOCK_RETRY_TIME HZ/4
5757
#define I2O_BLOCK_MAX_OPEN_REQUESTS 50
5858

59+
/* request queue sizes */
60+
#define I2O_BLOCK_REQ_MEMPOOL_SIZE 32
61+
62+
#define KERNEL_SECTOR_SHIFT 9
63+
#define KERNEL_SECTOR_SIZE (1 << KERNEL_SECTOR_SHIFT)
64+
5965
/* I2O Block OSM mempool struct */
6066
struct i2o_block_mempool {
6167
kmem_cache_t *slab;

‎drivers/message/i2o/i2o_config.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ static int i2o_cfg_evt_get(unsigned long arg, struct file *fp)
515515
return 0;
516516
}
517517

518+
#ifdef CONFIG_I2O_EXT_ADAPTEC
518519
#ifdef CONFIG_COMPAT
519520
static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long arg)
520521
{
@@ -964,6 +965,7 @@ static int i2o_cfg_passthru(unsigned long arg)
964965
kfree(reply);
965966
return rcode;
966967
}
968+
#endif
967969

968970
/*
969971
* IOCTL Handler
@@ -1018,9 +1020,11 @@ static int i2o_cfg_ioctl(struct inode *inode, struct file *fp, unsigned int cmd,
10181020
ret = i2o_cfg_evt_get(arg, fp);
10191021
break;
10201022

1023+
#ifdef CONFIG_I2O_EXT_ADAPTEC
10211024
case I2OPASSTHRU:
10221025
ret = i2o_cfg_passthru(arg);
10231026
break;
1027+
#endif
10241028

10251029
default:
10261030
osm_debug("unknown ioctl called!\n");

0 commit comments

Comments
 (0)