Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
92f2c52c
Commit
92f2c52c
authored
Sep 24, 2002
by
Adam Radford
Committed by
Jens Axboe
Sep 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 3ware driver update for 2.5.35
parent
5191a147
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
drivers/scsi/3w-xxxx.c
drivers/scsi/3w-xxxx.c
+15
-7
drivers/scsi/3w-xxxx.h
drivers/scsi/3w-xxxx.h
+5
-6
No files found.
drivers/scsi/3w-xxxx.c
View file @
92f2c52c
...
@@ -148,6 +148,11 @@
...
@@ -148,6 +148,11 @@
Fix bug in raw command post with data ioctl method.
Fix bug in raw command post with data ioctl method.
Fix bug where rollcall sometimes failed with cable errors.
Fix bug where rollcall sometimes failed with cable errors.
Print unit # on all command timeouts.
Print unit # on all command timeouts.
1.02.00.026 - Fix possible infinite retry bug with power glitch induced
drive timeouts.
Cleanup some AEN severity levels.
1.02.00.027 - Add drive not supported AEN code for SATA controllers.
Remove spurious unknown ioctl error message.
*/
*/
#include <linux/module.h>
#include <linux/module.h>
...
@@ -201,7 +206,7 @@ static struct notifier_block tw_notifier = {
...
@@ -201,7 +206,7 @@ static struct notifier_block tw_notifier = {
};
};
/* Globals */
/* Globals */
char
*
tw_driver_version
=
"1.02.00.02
5
"
;
char
*
tw_driver_version
=
"1.02.00.02
7
"
;
TW_Device_Extension
*
tw_device_extension_list
[
TW_MAX_SLOT
];
TW_Device_Extension
*
tw_device_extension_list
[
TW_MAX_SLOT
];
int
tw_device_extension_count
=
0
;
int
tw_device_extension_count
=
0
;
...
@@ -212,7 +217,7 @@ int tw_aen_complete(TW_Device_Extension *tw_dev, int request_id)
...
@@ -212,7 +217,7 @@ int tw_aen_complete(TW_Device_Extension *tw_dev, int request_id)
{
{
TW_Param
*
param
;
TW_Param
*
param
;
unsigned
short
aen
;
unsigned
short
aen
;
int
error
=
0
;
int
error
=
0
,
table_max
=
0
;
dprintk
(
KERN_WARNING
"3w-xxxx: tw_aen_complete()
\n
"
);
dprintk
(
KERN_WARNING
"3w-xxxx: tw_aen_complete()
\n
"
);
if
(
tw_dev
->
alignment_virtual_address
[
request_id
]
==
NULL
)
{
if
(
tw_dev
->
alignment_virtual_address
[
request_id
]
==
NULL
)
{
...
@@ -227,7 +232,8 @@ int tw_aen_complete(TW_Device_Extension *tw_dev, int request_id)
...
@@ -227,7 +232,8 @@ int tw_aen_complete(TW_Device_Extension *tw_dev, int request_id)
if
(
aen
==
0x0ff
)
{
if
(
aen
==
0x0ff
)
{
printk
(
KERN_WARNING
"3w-xxxx: scsi%d: AEN: INFO: AEN queue overflow.
\n
"
,
tw_dev
->
host
->
host_no
);
printk
(
KERN_WARNING
"3w-xxxx: scsi%d: AEN: INFO: AEN queue overflow.
\n
"
,
tw_dev
->
host
->
host_no
);
}
else
{
}
else
{
if
((
aen
&
0x0ff
)
<
TW_AEN_STRING_MAX
)
{
table_max
=
sizeof
(
tw_aen_string
)
/
sizeof
(
char
*
);
if
((
aen
&
0x0ff
)
<
table_max
)
{
if
((
tw_aen_string
[
aen
&
0xff
][
strlen
(
tw_aen_string
[
aen
&
0xff
])
-
1
])
==
'#'
)
{
if
((
tw_aen_string
[
aen
&
0xff
][
strlen
(
tw_aen_string
[
aen
&
0xff
])
-
1
])
==
'#'
)
{
printk
(
KERN_WARNING
"3w-xxxx: scsi%d: AEN: %s%d.
\n
"
,
tw_dev
->
host
->
host_no
,
tw_aen_string
[
aen
&
0xff
],
aen
>>
8
);
printk
(
KERN_WARNING
"3w-xxxx: scsi%d: AEN: %s%d.
\n
"
,
tw_dev
->
host
->
host_no
,
tw_aen_string
[
aen
&
0xff
],
aen
>>
8
);
}
else
{
}
else
{
...
@@ -289,7 +295,7 @@ int tw_aen_drain_queue(TW_Device_Extension *tw_dev)
...
@@ -289,7 +295,7 @@ int tw_aen_drain_queue(TW_Device_Extension *tw_dev)
int
first_reset
=
0
;
int
first_reset
=
0
;
int
queue
=
0
;
int
queue
=
0
;
int
imax
,
i
;
int
imax
,
i
;
int
found
=
0
;
int
found
=
0
,
table_max
=
0
;
dprintk
(
KERN_NOTICE
"3w-xxxx: tw_aen_drain_queue()
\n
"
);
dprintk
(
KERN_NOTICE
"3w-xxxx: tw_aen_drain_queue()
\n
"
);
...
@@ -409,7 +415,8 @@ int tw_aen_drain_queue(TW_Device_Extension *tw_dev)
...
@@ -409,7 +415,8 @@ int tw_aen_drain_queue(TW_Device_Extension *tw_dev)
if
(
aen
==
0x0ff
)
{
if
(
aen
==
0x0ff
)
{
printk
(
KERN_WARNING
"3w-xxxx: AEN: INFO: AEN queue overflow.
\n
"
);
printk
(
KERN_WARNING
"3w-xxxx: AEN: INFO: AEN queue overflow.
\n
"
);
}
else
{
}
else
{
if
((
aen
&
0x0ff
)
<
TW_AEN_STRING_MAX
)
{
table_max
=
sizeof
(
tw_aen_string
)
/
sizeof
(
char
*
);
if
((
aen
&
0x0ff
)
<
table_max
)
{
if
((
tw_aen_string
[
aen
&
0xff
][
strlen
(
tw_aen_string
[
aen
&
0xff
])
-
1
])
==
'#'
)
{
if
((
tw_aen_string
[
aen
&
0xff
][
strlen
(
tw_aen_string
[
aen
&
0xff
])
-
1
])
==
'#'
)
{
printk
(
KERN_WARNING
"3w-xxxx: AEN: %s%d.
\n
"
,
tw_aen_string
[
aen
&
0xff
],
aen
>>
8
);
printk
(
KERN_WARNING
"3w-xxxx: AEN: %s%d.
\n
"
,
tw_aen_string
[
aen
&
0xff
],
aen
>>
8
);
}
else
{
}
else
{
...
@@ -1442,7 +1449,8 @@ static void tw_interrupt(int irq, void *dev_instance, struct pt_regs *regs)
...
@@ -1442,7 +1449,8 @@ static void tw_interrupt(int irq, void *dev_instance, struct pt_regs *regs)
/* If error, command failed */
/* If error, command failed */
if
(
error
==
1
)
{
if
(
error
==
1
)
{
tw_dev
->
srb
[
request_id
]
->
result
=
(
DID_RESET
<<
16
);
/* Ask for a host reset */
tw_dev
->
srb
[
request_id
]
->
result
=
(
DID_OK
<<
16
)
|
(
CHECK_CONDITION
<<
1
);
}
}
/* Now complete the io */
/* Now complete the io */
...
@@ -1784,7 +1792,7 @@ int tw_ioctl(TW_Device_Extension *tw_dev, int request_id)
...
@@ -1784,7 +1792,7 @@ int tw_ioctl(TW_Device_Extension *tw_dev, int request_id)
return
1
;
return
1
;
}
}
default:
default:
printk
(
KERN_WARNING
"3w-xxxx: Unknown ioctl 0x%x.
\n
"
,
opcode
);
d
printk
(
KERN_WARNING
"3w-xxxx: Unknown ioctl 0x%x.
\n
"
,
opcode
);
tw_dev
->
state
[
request_id
]
=
TW_S_COMPLETED
;
tw_dev
->
state
[
request_id
]
=
TW_S_COMPLETED
;
tw_state_request_finish
(
tw_dev
,
request_id
);
tw_state_request_finish
(
tw_dev
,
request_id
);
tw_dev
->
srb
[
request_id
]
->
result
=
(
DID_OK
<<
16
);
tw_dev
->
srb
[
request_id
]
->
result
=
(
DID_OK
<<
16
);
...
...
drivers/scsi/3w-xxxx.h
View file @
92f2c52c
...
@@ -90,14 +90,13 @@ static char *tw_aen_string[] = {
...
@@ -90,14 +90,13 @@ static char *tw_aen_string[] = {
"INFO: Verify started: Unit #"
,
// 0x029
"INFO: Verify started: Unit #"
,
// 0x029
"ERROR: Verify failed: Port #"
,
// 0x02A
"ERROR: Verify failed: Port #"
,
// 0x02A
"INFO: Verify complete: Unit #"
,
// 0x02B
"INFO: Verify complete: Unit #"
,
// 0x02B
"
ERROR: Overwrote bad sector during rebuild: Port #"
,
//0x02C
"
WARNING: Overwrote bad sector during rebuild: Port #"
,
//0x02C
"ERROR: Encountered bad sector during rebuild: Port #"
,
//0x02D
"ERROR: Encountered bad sector during rebuild: Port #"
,
//0x02D
"INFO: Replacement drive is too small: Port #"
,
//0x02E
"ERROR: Replacement drive is too small: Port #"
,
//0x02E
"WARNING: Verify error: Unit not previously initialized: Unit #"
//0x02F
"WARNING: Verify error: Unit not previously initialized: Unit #"
,
//0x02F
"ERROR: Drive not supported: Port #"
// 0x030
};
};
#define TW_AEN_STRING_MAX 0x030
/*
/*
Sense key lookup table
Sense key lookup table
Format: ESDC/flags,SenseKey,AdditionalSenseCode,AdditionalSenseCodeQualifier
Format: ESDC/flags,SenseKey,AdditionalSenseCode,AdditionalSenseCodeQualifier
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment