<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/scsi/bfa, branch v3.6</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>[SCSI] bfa: Fix to set correct return error codes and misc cleanup.</title>
<updated>2012-07-20T07:59:05+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-07-13T23:08:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=529f9a765509c2c141ecfee0c54e17bf9a6b8bc1'/>
<id>529f9a765509c2c141ecfee0c54e17bf9a6b8bc1</id>
<content type='text'>
- Remove unnecessary if NULL check in function bfa_fcs_vport_free().
- Set correct return error codes in case of memory allocation failure
  in the BSG ELS/CT passthru command handler.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
- Remove unnecessary if NULL check in function bfa_fcs_vport_free().
- Set correct return error codes in case of memory allocation failure
  in the BSG ELS/CT passthru command handler.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: squelch lockdep complaint with a spin_lock_init</title>
<updated>2012-07-20T07:59:03+00:00</updated>
<author>
<name>Kyle McMartin</name>
<email>kmcmarti@redhat.com</email>
</author>
<published>2012-07-11T16:42:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0b1017aab197271a78169fde3d7e487bb721997c'/>
<id>0b1017aab197271a78169fde3d7e487bb721997c</id>
<content type='text'>
Spotted this while looking at another issue...

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
Pid: 298, comm: udevd Not tainted 3.3.0 #1
Call Trace:
  [&lt;ffffffff810cee63&gt;] __lock_acquire+0x1363/0x1bb0
  [&lt;ffffffff816593d2&gt;] ? __slab_alloc+0x4a0/0x4fd
  [&lt;ffffffff81020063&gt;] ? native_sched_clock+0x13/0x80
  [&lt;ffffffff810200d9&gt;] ? sched_clock+0x9/0x10
  [&lt;ffffffff810cfd81&gt;] lock_acquire+0xa1/0x1e0
  [&lt;ffffffffa0321b83&gt;] ? bfa_fcs_lport_aen_post+0x43/0x160 [bfa]
  [&lt;ffffffff816630e5&gt;] _raw_spin_lock_irqsave+0x65/0xb0
  [&lt;ffffffffa0321b83&gt;] ? bfa_fcs_lport_aen_post+0x43/0x160 [bfa]
  [&lt;ffffffffa0321b83&gt;] bfa_fcs_lport_aen_post+0x43/0x160 [bfa]
  [&lt;ffffffffa032fa57&gt;] bfa_fcs_lport_init+0x97/0x120 [bfa]
  [&lt;ffffffffa031d4ff&gt;] bfa_fcs_fabric_sm_uninit+0x1cf/0x250 [bfa]
  [&lt;ffffffffa031c1da&gt;] bfa_fcs_fabric_modinit+0x2a/0xb0 [bfa]
  [&lt;ffffffffa031bef2&gt;] ? bfa_fcs_fabric_attach+0xf2/0x170 [bfa]
  [&lt;ffffffffa031e75a&gt;] bfa_fcs_init+0x2a/0x40 [bfa]
  [&lt;ffffffffa02facf7&gt;] bfad_drv_init+0x107/0x1f0 [bfa]
  [&lt;ffffffffa02fb057&gt;] bfad_pci_probe+0x277/0x450 [bfa]
  [&lt;ffffffff81354d4c&gt;] local_pci_probe+0x5c/0xd0
  [&lt;ffffffff81354ed1&gt;] pci_device_probe+0x111/0x120
  [&lt;ffffffff8141c0e6&gt;] driver_probe_device+0x96/0x2f0
  [&lt;ffffffff8141c3eb&gt;] __driver_attach+0xab/0xb0
  [&lt;ffffffff8141c340&gt;] ? driver_probe_device+0x2f0/0x2f0
  [&lt;ffffffff8141a2e5&gt;] bus_for_each_dev+0x55/0x90
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffff8141bbce&gt;] driver_attach+0x1e/0x20
  [&lt;ffffffff8141b8d8&gt;] bus_add_driver+0x1b8/0x2b0
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffff8141cbc7&gt;] driver_register+0x77/0x160
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffff81353b23&gt;] __pci_register_driver+0x73/0xf0
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffffa037b083&gt;] bfad_init+0x83/0x1000 [bfa]
  [&lt;ffffffff8100212a&gt;] do_one_initcall+0x12a/0x180
  [&lt;ffffffff810df0d0&gt;] sys_init_module+0xc0/0x220
  [&lt;ffffffff8166bbe9&gt;] system_call_fastpath+0x16/0x1b

Signed-off-by: Kyle McMartin &lt;kmcmarti@redhat.com&gt;
Acked-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Spotted this while looking at another issue...

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
Pid: 298, comm: udevd Not tainted 3.3.0 #1
Call Trace:
  [&lt;ffffffff810cee63&gt;] __lock_acquire+0x1363/0x1bb0
  [&lt;ffffffff816593d2&gt;] ? __slab_alloc+0x4a0/0x4fd
  [&lt;ffffffff81020063&gt;] ? native_sched_clock+0x13/0x80
  [&lt;ffffffff810200d9&gt;] ? sched_clock+0x9/0x10
  [&lt;ffffffff810cfd81&gt;] lock_acquire+0xa1/0x1e0
  [&lt;ffffffffa0321b83&gt;] ? bfa_fcs_lport_aen_post+0x43/0x160 [bfa]
  [&lt;ffffffff816630e5&gt;] _raw_spin_lock_irqsave+0x65/0xb0
  [&lt;ffffffffa0321b83&gt;] ? bfa_fcs_lport_aen_post+0x43/0x160 [bfa]
  [&lt;ffffffffa0321b83&gt;] bfa_fcs_lport_aen_post+0x43/0x160 [bfa]
  [&lt;ffffffffa032fa57&gt;] bfa_fcs_lport_init+0x97/0x120 [bfa]
  [&lt;ffffffffa031d4ff&gt;] bfa_fcs_fabric_sm_uninit+0x1cf/0x250 [bfa]
  [&lt;ffffffffa031c1da&gt;] bfa_fcs_fabric_modinit+0x2a/0xb0 [bfa]
  [&lt;ffffffffa031bef2&gt;] ? bfa_fcs_fabric_attach+0xf2/0x170 [bfa]
  [&lt;ffffffffa031e75a&gt;] bfa_fcs_init+0x2a/0x40 [bfa]
  [&lt;ffffffffa02facf7&gt;] bfad_drv_init+0x107/0x1f0 [bfa]
  [&lt;ffffffffa02fb057&gt;] bfad_pci_probe+0x277/0x450 [bfa]
  [&lt;ffffffff81354d4c&gt;] local_pci_probe+0x5c/0xd0
  [&lt;ffffffff81354ed1&gt;] pci_device_probe+0x111/0x120
  [&lt;ffffffff8141c0e6&gt;] driver_probe_device+0x96/0x2f0
  [&lt;ffffffff8141c3eb&gt;] __driver_attach+0xab/0xb0
  [&lt;ffffffff8141c340&gt;] ? driver_probe_device+0x2f0/0x2f0
  [&lt;ffffffff8141a2e5&gt;] bus_for_each_dev+0x55/0x90
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffff8141bbce&gt;] driver_attach+0x1e/0x20
  [&lt;ffffffff8141b8d8&gt;] bus_add_driver+0x1b8/0x2b0
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffff8141cbc7&gt;] driver_register+0x77/0x160
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffff81353b23&gt;] __pci_register_driver+0x73/0xf0
  [&lt;ffffffffa037b000&gt;] ? 0xffffffffa037afff
  [&lt;ffffffffa037b083&gt;] bfad_init+0x83/0x1000 [bfa]
  [&lt;ffffffff8100212a&gt;] do_one_initcall+0x12a/0x180
  [&lt;ffffffff810df0d0&gt;] sys_init_module+0xc0/0x220
  [&lt;ffffffff8166bbe9&gt;] system_call_fastpath+0x16/0x1b

Signed-off-by: Kyle McMartin &lt;kmcmarti@redhat.com&gt;
Acked-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: dereferencing freed memory in bfad_im_probe()</title>
<updated>2012-07-20T07:58:37+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2012-06-27T08:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a5254dbb17dd22999f808e646780c32858a3eafa'/>
<id>a5254dbb17dd22999f808e646780c32858a3eafa</id>
<content type='text'>
If bfad_thread_workq(bfad) was not BFA_STATUS_OK then we freed "im"
and then dereferenced it.

I did a little clean up because it seemed nicer to return directly
instead of doing a superfluous goto.  I looked at other functions in
this file and it seems like returning directly is standard.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Krishna Gudipati &lt;kgudipat@brocade.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>
If bfad_thread_workq(bfad) was not BFA_STATUS_OK then we freed "im"
and then dereferenced it.

I did a little clean up because it seemed nicer to return directly
instead of doing a superfluous goto.  I looked at other functions in
this file and it seems like returning directly is standard.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: off by one in bfa_ioc_mbox_isr()</title>
<updated>2012-07-20T07:58:37+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2012-06-27T08:59:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fffa69230b7bbfc62d8cfb515c3e658224a0f88c'/>
<id>fffa69230b7bbfc62d8cfb515c3e658224a0f88c</id>
<content type='text'>
If mc == BFI_MC_MAX then we're reading past the end of the
mod-&gt;mbhdlr[] array.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Krishna Gudipati &lt;kgudipat@brocade.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>
If mc == BFI_MC_MAX then we're reading past the end of the
mod-&gt;mbhdlr[] array.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: Fix to set vport FC host sysfs entries</title>
<updated>2012-05-22T10:06:29+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-05-12T00:49:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6192bd7cdc37e2df9391403235b72668a5bf27da'/>
<id>6192bd7cdc37e2df9391403235b72668a5bf27da</id>
<content type='text'>
Made changes to set the fc_host sysfs entries supported_speeds,
supported_classes etc., during the vport creation from the
FC transport template.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Made changes to set the fc_host sysfs entries supported_speeds,
supported_classes etc., during the vport creation from the
FC transport template.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: Fix bfa logging for Logical port state change notification</title>
<updated>2012-04-25T09:02:03+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-04-10T01:41:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a3f29cccbe32676b1ffe46ae30ab1ccee71f5eea'/>
<id>a3f29cccbe32676b1ffe46ae30ab1ccee71f5eea</id>
<content type='text'>
Made changes to have the same logging level for Logical port
online and offline events, to display these events in pairs.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Made changes to have the same logging level for Logical port
online and offline events, to display these events in pairs.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: sysfs model description fix.</title>
<updated>2012-04-25T08:59:59+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-04-10T01:40:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9d8ad782b9b5163351427ba0bcaa984aea474030'/>
<id>9d8ad782b9b5163351427ba0bcaa984aea474030</id>
<content type='text'>
Make changes to remove unsupported model numbers from the sysfs
model description routine.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Make changes to remove unsupported model numbers from the sysfs
model description routine.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: Fix to defer vport delete handler invocation till firmware logo response.</title>
<updated>2012-04-25T08:58:31+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-04-10T01:40:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=17c201b3281cfc2c7d7ecfabb33313b747e414cb'/>
<id>17c201b3281cfc2c7d7ecfabb33313b747e414cb</id>
<content type='text'>
Made changes to avoid queuing the vport delete work to IM driver
work queue in the bfa_fcb_lport_delete() - since at this stage we
are not completely done with using the vport structure as we are
still waiting for the LOGO response from the fw in online state or
just doing some cleanup. Since queuing up the vport delete work at
this stage will result in the FC transport layer to clean up the vport
before we get the response from firmware.
Made changes to queue the port delete work to the IM driver work queue -
from the bfa_fcs_vport_free() function since at this state we are done
with using the vport data structure and the FCS state machine is completely
cleaned up.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Made changes to avoid queuing the vport delete work to IM driver
work queue in the bfa_fcb_lport_delete() - since at this stage we
are not completely done with using the vport structure as we are
still waiting for the LOGO response from the fw in online state or
just doing some cleanup. Since queuing up the vport delete work at
this stage will result in the FC transport layer to clean up the vport
before we get the response from firmware.
Made changes to queue the port delete work to the IM driver work queue -
from the bfa_fcs_vport_free() function since at this state we are done
with using the vport data structure and the FCS state machine is completely
cleaned up.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: Update the driver version to 3.0.23.0</title>
<updated>2012-03-28T09:02:46+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-03-14T00:41:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a165de82b08ddba1fc8b0c4eb56b9020f981c002'/>
<id>a165de82b08ddba1fc8b0c4eb56b9020f981c002</id>
<content type='text'>
Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[SCSI] bfa: BSG and User interface fixes.</title>
<updated>2012-03-28T08:57:58+00:00</updated>
<author>
<name>Krishna Gudipati</name>
<email>kgudipat@brocade.com</email>
</author>
<published>2012-03-14T00:41:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bd5a026019bc1f799065b0a39230d1f81bb4ff76'/>
<id>bd5a026019bc1f799065b0a39230d1f81bb4ff76</id>
<content type='text'>
Made changes to set the rport maxfrsize param to use a value that is
equal to or less than the Buffer-to-Buffer Receive Data_Field size
specified in the Common Service Parameters.
Increased the diag memtest timeout for the Brocade-1860 adapters.
Made changes to enable valid port speed configuration check for all adapters.
Made changes to increase the max hw segments in a request, in order to
support larger data transfers from user space.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.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>
Made changes to set the rport maxfrsize param to use a value that is
equal to or less than the Buffer-to-Buffer Receive Data_Field size
specified in the Common Service Parameters.
Increased the diag memtest timeout for the Brocade-1860 adapters.
Made changes to enable valid port speed configuration check for all adapters.
Made changes to increase the max hw segments in a request, in order to
support larger data transfers from user space.

Signed-off-by: Krishna Gudipati &lt;kgudipat@brocade.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
