mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
[SCSI] qla2xxx: Enable CRB based doorbell posting for request queue as default for ISP 82xx.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
ba77ef5354
commit
6907869d72
@ -3372,11 +3372,16 @@ qla82xx_start_iocbs(srb_t *sp)
|
|||||||
dbval = 0x04 | (ha->portnum << 5);
|
dbval = 0x04 | (ha->portnum << 5);
|
||||||
|
|
||||||
dbval = dbval | (req->id << 8) | (req->ring_index << 16);
|
dbval = dbval | (req->id << 8) | (req->ring_index << 16);
|
||||||
WRT_REG_DWORD((unsigned long __iomem *)ha->nxdb_wr_ptr, dbval);
|
if (ql2xdbwr)
|
||||||
wmb();
|
qla82xx_wr_32(ha, ha->nxdb_wr_ptr, dbval);
|
||||||
while (RD_REG_DWORD(ha->nxdb_rd_ptr) != dbval) {
|
else {
|
||||||
WRT_REG_DWORD((unsigned long __iomem *)ha->nxdb_wr_ptr, dbval);
|
WRT_REG_DWORD((unsigned long __iomem *)ha->nxdb_wr_ptr, dbval);
|
||||||
wmb();
|
wmb();
|
||||||
|
while (RD_REG_DWORD(ha->nxdb_rd_ptr) != dbval) {
|
||||||
|
WRT_REG_DWORD((unsigned long __iomem *)ha->nxdb_wr_ptr,
|
||||||
|
dbval);
|
||||||
|
wmb();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ MODULE_PARM_DESC(ql2xetsenable,
|
|||||||
"Enables firmware ETS burst."
|
"Enables firmware ETS burst."
|
||||||
"Default is 0 - skip ETS enablement.");
|
"Default is 0 - skip ETS enablement.");
|
||||||
|
|
||||||
int ql2xdbwr;
|
int ql2xdbwr = 1;
|
||||||
module_param(ql2xdbwr, int, S_IRUGO|S_IRUSR);
|
module_param(ql2xdbwr, int, S_IRUGO|S_IRUSR);
|
||||||
MODULE_PARM_DESC(ql2xdbwr,
|
MODULE_PARM_DESC(ql2xdbwr,
|
||||||
"Option to specify scheme for request queue posting\n"
|
"Option to specify scheme for request queue posting\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user