<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/scsi/hpsa.c, branch v4.1.12</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Fix weird uses of num_online_cpus().</title>
<updated>2015-03-10T03:24:42+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2015-03-05T00:19:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c8ed00107b60b4a890798677d75e5c2910f393bb'/>
<id>c8ed00107b60b4a890798677d75e5c2910f393bb</id>
<content type='text'>
This may be OK in archs with contiguous CPU numbers and without
hotplug CPUs, but it sets a terrible example.

And open-coding it like drivers/scsi/hpsa.c is just weird.

BTRFS has a weird comparison with num_online_cpus() too, but since
BTRFS just screwed up my test machines' root partition, I'm not
touching it :)

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Reported-by: Oleg Drokin &lt;green@linuxhacker.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This may be OK in archs with contiguous CPU numbers and without
hotplug CPUs, but it sets a terrible example.

And open-coding it like drivers/scsi/hpsa.c is just weird.

BTRFS has a weird comparison with num_online_cpus() too, but since
BTRFS just screwed up my test machines' root partition, I'm not
touching it :)

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Reported-by: Oleg Drokin &lt;green@linuxhacker.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: correct compiler warnings introduced by hpsa-add-local-workqueue patch</title>
<updated>2015-02-15T18:33:32+00:00</updated>
<author>
<name>Don Brace</name>
<email>don.brace@pmcs.com</email>
</author>
<published>2015-02-06T23:44:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=397ea9cb195e1b5a2313682c90b9d394118df433'/>
<id>397ea9cb195e1b5a2313682c90b9d394118df433</id>
<content type='text'>
Correct compiler warning introduced by hpsa-add-local-workqueue patch
6636e7f455b33b957c5ee016daa6de46148026ab hpsa: Use local workqueues
instead of system workqueues

Suggested-by: Kees Cook &lt;keescook@chromium.org&gt;
Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Reviewed-by: Webb Scales &lt;webbnh@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct compiler warning introduced by hpsa-add-local-workqueue patch
6636e7f455b33b957c5ee016daa6de46148026ab hpsa: Use local workqueues
instead of system workqueues

Suggested-by: Kees Cook &lt;keescook@chromium.org&gt;
Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Reviewed-by: Webb Scales &lt;webbnh@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: Use local workqueues instead of system workqueues</title>
<updated>2015-02-02T17:57:44+00:00</updated>
<author>
<name>Don Brace</name>
<email>don.brace@pmcs.com</email>
</author>
<published>2015-01-23T22:45:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6636e7f455b33b957c5ee016daa6de46148026ab'/>
<id>6636e7f455b33b957c5ee016daa6de46148026ab</id>
<content type='text'>
Suggested-by: Tomas Henzl &lt;thenzl@redhat.com&gt;
Reviewed-by: Webb Scales &lt;webbnh@hp.com&gt;
Reviewed-by: Kevin Barnett &lt;Kevin.Barnett@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Suggested-by: Tomas Henzl &lt;thenzl@redhat.com&gt;
Reviewed-by: Webb Scales &lt;webbnh@hp.com&gt;
Reviewed-by: Kevin Barnett &lt;Kevin.Barnett@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: add in P840ar controller model name</title>
<updated>2015-02-02T17:57:44+00:00</updated>
<author>
<name>Don Brace</name>
<email>don.brace@pmcs.com</email>
</author>
<published>2015-01-23T22:45:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c8ae0ab10044a7aee47d1e97f2eed992b34b0c59'/>
<id>c8ae0ab10044a7aee47d1e97f2eed992b34b0c59</id>
<content type='text'>
Add in P840ar model name for gen9

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add in P840ar model name for gen9

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: add in gen9 controller model names</title>
<updated>2015-02-02T17:57:44+00:00</updated>
<author>
<name>Don Brace</name>
<email>don.brace@pmcs.com</email>
</author>
<published>2015-01-23T22:45:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=27fb8137299d4b0ee1d248d369e8c7a1dccf54dc'/>
<id>27fb8137299d4b0ee1d248d369e8c7a1dccf54dc</id>
<content type='text'>
Add in gen9 controller model names

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add in gen9 controller model names

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: detect and report failures changing controller transport modes</title>
<updated>2015-02-02T17:57:44+00:00</updated>
<author>
<name>Robert Elliott</name>
<email>elliott@hp.com</email>
</author>
<published>2015-01-23T22:45:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c706a7954a160ddc1a29e1dfe4dc1f58e2b95023'/>
<id>c706a7954a160ddc1a29e1dfe4dc1f58e2b95023</id>
<content type='text'>
Detect failues when attempting to change controller to use simple
or performant transport modes (mode change ack) rather than just
proceeding ahead after timeouts.

Return values are added to:
	hpsa_put_ctlr_into_performant_mode
	hpsa_wait_for_mode_change_ack
and all their callers check/propagate the result.

More consistency in printing errors and whether
dev_err is used.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Detect failues when attempting to change controller to use simple
or performant transport modes (mode change ack) rather than just
proceeding ahead after timeouts.

Return values are added to:
	hpsa_put_ctlr_into_performant_mode
	hpsa_wait_for_mode_change_ack
and all their callers check/propagate the result.

More consistency in printing errors and whether
dev_err is used.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: shorten the wait for the CISS doorbell mode change ack</title>
<updated>2015-02-02T17:57:44+00:00</updated>
<author>
<name>Robert Elliott</name>
<email>elliott@hp.com</email>
</author>
<published>2015-01-23T22:44:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=007e7aa9b37d570fc5917522a6f6bcca14264632'/>
<id>007e7aa9b37d570fc5917522a6f6bcca14264632</id>
<content type='text'>
Shorten the wait for the CISS configuration table doorbell mode
change acknowledgment from 300-600 s to 20 s, which is the value
specified in the CISS specification that should be honored by
all controllers.

Wait using interruptible msleep() rather than uninterruptible
usleep_range(), which triggers rt_sched timeout errors if the
wait is long.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Shorten the wait for the CISS configuration table doorbell mode
change acknowledgment from 300-600 s to 20 s, which is the value
specified in the CISS specification that should be honored by
all controllers.

Wait using interruptible msleep() rather than uninterruptible
usleep_range(), which triggers rt_sched timeout errors if the
wait is long.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: refactor duplicated scan completion code into a new routine</title>
<updated>2015-02-02T17:57:43+00:00</updated>
<author>
<name>Webb Scales</name>
<email>webbnh@hp.com</email>
</author>
<published>2015-01-23T22:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8ebc92483211f49ee5f072d2e51de3e70ca05fc1'/>
<id>8ebc92483211f49ee5f072d2e51de3e70ca05fc1</id>
<content type='text'>
Hoist the conditional out of do_not_scan_if_controller_locked_up() and
place it in the caller (this improves the code structure, making it
more consistent with other uses and enabling tail-call optimization);
rename the function to hpsa_scan_complete(), and use it at the end of
hpsa_scan_start() as well.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Webb Scales &lt;webbnh@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hoist the conditional out of do_not_scan_if_controller_locked_up() and
place it in the caller (this improves the code structure, making it
more consistent with other uses and enabling tail-call optimization);
rename the function to hpsa_scan_complete(), and use it at the end of
hpsa_scan_start() as well.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Webb Scales &lt;webbnh@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: move SG descriptor set-up out of hpsa_scatter_gather()</title>
<updated>2015-02-02T17:57:43+00:00</updated>
<author>
<name>Webb Scales</name>
<email>webbnh@hp.com</email>
</author>
<published>2015-01-23T22:44:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ec5cbf0422500ada7682a95e5c379dd13dd3a74c'/>
<id>ec5cbf0422500ada7682a95e5c379dd13dd3a74c</id>
<content type='text'>
Move the code which sets up the SG descriptor out of hpsa_scatter_gather()
and into a subroutine where it can be reused (in the next patch).  The Ext
field is now assigned unconditionally: this makes the refactor much simpler,
but more importantly it removes a conditional operation from inside the
loop.  The case for which the conditional formerly tested is now executed
(unconditionally) after the loop is exited.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Webb Scales &lt;webbnh@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move the code which sets up the SG descriptor out of hpsa_scatter_gather()
and into a subroutine where it can be reused (in the next patch).  The Ext
field is now assigned unconditionally: this makes the refactor much simpler,
but more importantly it removes a conditional operation from inside the
loop.  The case for which the conditional formerly tested is now executed
(unconditionally) after the loop is exited.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Webb Scales &lt;webbnh@hp.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: do not use function pointers in fast path command submission</title>
<updated>2015-02-02T17:57:43+00:00</updated>
<author>
<name>Stephen Cameron</name>
<email>stephenmcameron@gmail.com</email>
</author>
<published>2015-01-23T22:44:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c05e8866a17470a978b2c7cbc73d51891cd78f0e'/>
<id>c05e8866a17470a978b2c7cbc73d51891cd78f0e</id>
<content type='text'>
Performance tweak, avoid unnecessary function calls.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Performance tweak, avoid unnecessary function calls.

Reviewed-by: Scott Teel &lt;scott.teel@pmcs.com&gt;
Signed-off-by: Don Brace &lt;don.brace@pmcs.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
