cciss: do not attempt to read from a write-only register
PATCH 1/1 cciss: do not attempt to read from a write-only register
From: Stephen M. Cameron <[email protected]>
Most smartarrays will tolerate it, but some new ones don't. Without this change some newer Smart Arrays will lock up and i/o will grind to a halt.
--- drivers/block/cciss.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/block/cciss.h +1 -1
@@ -223,7 +223,7 @@ static void SA5_submit_command( ctlr_info_t *h, CommandList_struct *c) h->ctlr, c->busaddr);#endif /* CCISS_DEBUG */ writel (c->busaddr, h->vaddr +SA5_REQUEST_PORT_OFFSET ); -readl (h->vaddr +SA5_REQUEST_PORT_OFFSET ); +readl (h->vaddr +SA5_SCRATCHPAD_OFFSET ); h->commands_outstanding++;if ( h->commands_outstanding > h->max_outstanding) h->max_outstanding = h->commands_outstanding;
Quoted 6 lines · Stephen M. Cameron
From: Stephen M. Cameron <[email protected]>
Most smartarrays will tolerate it, but some new ones don't. Without this change some newer Smart Arrays will lock up and i/o will grind to a halt.
Noticed this wasn't in Linus's git tree yet, so resent it.
-- steve
Quoted 7 lines · On Thu, 21 Jul 2011 13:16:01 -0500 "Stephen M. Cameron"…
From: Stephen M. Cameron <[email protected]>
Most smartarrays will tolerate it, but some new ones don't. Without this change some newer Smart Arrays will lock up and i/o will grind to a halt.
Signed-off-by Stephen M. Cameron <[email protected]>
No Cc: <[email protected]>?
Quoted 16 lines
drivers/block/cciss.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/block/cciss.h +1
-1@@ -223,7 +223,7 @@ static void SA5_submit_command( ctlr_info_t *h, CommandList_struct *c) h->ctlr, c->busaddr);#endif /* CCISS_DEBUG */ writel (c->busaddr, h->vaddr +SA5_REQUEST_PORT_OFFSET ); -readl (h->vaddr +SA5_REQUEST_PORT_OFFSET ); +readl (h->vaddr +SA5_SCRATCHPAD_OFFSET ); h->commands_outstanding++;if ( h->commands_outstanding > h->max_outstanding) h->max_outstanding = h->commands_outstanding;
Jens Axboe
maintainerQuoted 5 lines · Andrew Morton
Quoted 2 lines · On Thu, 21 Jul 2011 13:16:01 -0500 "Stephen M. Cameron"…
From: Stephen M. Cameron <[email protected]>
Quoted 7 lines
Quoted 5 lines
Most smartarrays will tolerate it, but some new ones don't. Without this change some newer Smart Arrays will lock up and i/o will grind to a halt.
Signed-off-by Stephen M. Cameron <[email protected]>No Cc: <[email protected]>?
Patch is already queued up in for-3.1/drivers since July 9th, and I also marked it stable.
Signature · 1 line
Jens Axboe