Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 295979 Details for
Bug 434992
[QLogic 5.2 bug] qla2xxx - flash manipulation can make system unusable >8.02.00-k5-rhel5.2-03
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Free srb resources
qla2xxx_rhel5.2_freesrbresources_patch14.txt (text/plain), 1.99 KB, created by
Marcus Barrow
on 2008-02-26 18:48:54 UTC
(
hide
)
Description:
Free srb resources
Filename:
MIME Type:
Creator:
Marcus Barrow
Created:
2008-02-26 18:48:54 UTC
Size:
1.99 KB
patch
obsolete
>From 46cdfb1ff0cfc35d83317de2992163d3d8b5d72f Mon Sep 17 00:00:00 2001 >From: Marcus Barrow <mbarrow@dhcp83-12.boston.redhat.com> >Date: Tue, 26 Feb 2008 13:31:25 -0500 >Subject: [PATCH] qla2xxx: Wait for FLASH write-protection to complete after a write. > >Some flash parts have a slow enable write-protection (WP) >operation whereby subsequent FLASH accesses would fail if the WP >operation had not completed. Software now polls the SPI's >status-register for WP completion. >--- > drivers/scsi/qla2xxx/qla_sup.c | 10 ++++++++-- > drivers/scsi/qla2xxx/qla_version.h | 2 +- > 2 files changed, 9 insertions(+), 3 deletions(-) > >diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c >index ad2fa01..347aafb 100644 >--- a/drivers/scsi/qla2xxx/qla_sup.c >+++ b/drivers/scsi/qla2xxx/qla_sup.c >@@ -550,7 +550,7 @@ qla24xx_write_flash_data(scsi_qla_host_t > int ret; > uint32_t liter, miter; > uint32_t sec_mask, rest_addr, conf_addr; >- uint32_t fdata, findex ; >+ uint32_t fdata, findex, cnt; > uint8_t man_id, flash_id; > struct device_reg_24xx __iomem *reg = &ha->iobase->isp24; > dma_addr_t optrom_dma; >@@ -690,8 +690,14 @@ qla24xx_write_flash_data(scsi_qla_host_t > 0xff0000) | ((fdata >> 16) & 0xff)); > } > >- /* Enable flash write-protection. */ >+ /* Enable flash write-protection and wait for completion. */ > qla24xx_write_flash_dword(ha, flash_conf_to_access_addr(0x101), 0x9c); >+ for (cnt = 300; cnt && >+ qla24xx_read_flash_dword(ha, >+ flash_conf_to_access_addr(0x005)) & BIT_0; >+ cnt--) { >+ udelay(10); >+ } > > /* Disable flash write. */ > WRT_REG_DWORD(®->ctrl_status, >diff --git a/drivers/scsi/qla2xxx/qla_version.h b/drivers/scsi/qla2xxx/qla_version.h >index 2f7d561..83f9b5a 100644 >--- a/drivers/scsi/qla2xxx/qla_version.h >+++ b/drivers/scsi/qla2xxx/qla_version.h >@@ -7,7 +7,7 @@ > /* > * Driver version > */ >-#define QLA2XXX_VERSION "8.02.00-k5-rhel5.2-02" >+#define QLA2XXX_VERSION "8.02.00-k5-rhel5.2-03" > > #define QLA_DRIVER_MAJOR_VER 8 > #define QLA_DRIVER_MINOR_VER 1 >-- >1.4.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 434992
: 295979