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 147966 Details for
Bug 223750
Installing os by local cdrom method failed
[?]
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]
Patch to add a quirk for ide controller on tiger-4
ata_quirks_2.6.20_v2.patch (text/plain), 1.78 KB, created by
Zhang Yanmin
on 2007-02-13 09:22:45 UTC
(
hide
)
Description:
Patch to add a quirk for ide controller on tiger-4
Filename:
MIME Type:
Creator:
Zhang Yanmin
Created:
2007-02-13 09:22:45 UTC
Size:
1.78 KB
patch
obsolete
>--- linux-2.6.20/arch/ia64/kernel/quirks.c 1970-01-01 08:00:00.000000000 +0800 >+++ linux-2.6.20_fix/arch/ia64/kernel/quirks.c 2007-02-12 23:31:28.000000000 +0800 >@@ -0,0 +1,47 @@ >+/* >+ * This file contains work-arounds for ia64 platform bugs. >+ */ >+#include <linux/pci.h> >+ >+/* >+ * quirk_intel_ide_controller: If an ide/ata controller is >+ * at legacy mode, BIOS might initiates BAR(bar 0~3 and 5) >+ * with incorrect value. This quirk will reset the incorrect >+ * value to 0. >+ */ >+static void __devinit quirk_intel_ide_controller(struct pci_dev *dev) >+{ >+ unsigned int pos; >+ struct resource *res; >+ int fixed = 0; >+ u8 tmp8; >+ u8 mask; >+ >+ if ((dev->class >> 8) != PCI_CLASS_STORAGE_IDE) >+ return; >+ >+ /* TODO: What if one channel is in native mode ... */ >+ pci_read_config_byte(dev, PCI_CLASS_PROG, &tmp8); >+ mask = (1 << 2) | (1 << 0); >+ if ((tmp8 & mask) == mask) >+ return; >+ >+ for( pos = 0; pos < 6; pos ++ ) { >+ res = &dev->resource[pos]; >+ if (!(res->flags & (IORESOURCE_IO | IORESOURCE_MEM))) >+ continue; >+ >+ if (!res->start && res->end) { >+ res->start = res->end = 0; >+ res->flags = 0; >+ fixed = 1; >+ } >+ } >+ if (fixed) >+ printk(KERN_WARNING >+ "PCI device %s: BIOS resource configuration fixed.\n", >+ pci_name(dev)); >+} >+ >+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_11, quirk_intel_ide_controller); >+ >--- linux-2.6.20/arch/ia64/kernel/Makefile 2007-02-08 15:13:41.000000000 +0800 >+++ linux-2.6.20_fix/arch/ia64/kernel/Makefile 2007-02-12 22:49:39.000000000 +0800 >@@ -33,6 +33,7 @@ obj-$(CONFIG_CRASH_DUMP) += crash_dump.o > obj-$(CONFIG_IA64_UNCACHED_ALLOCATOR) += uncached.o > obj-$(CONFIG_AUDIT) += audit.o > obj-$(CONFIG_PCI_MSI) += msi_ia64.o >+obj-$(CONFIG_PCI) += quirks.o > mca_recovery-y += mca_drv.o mca_drv_asm.o > > obj-$(CONFIG_IA64_ESI) += esi.o
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 223750
:
146886
|
146887
|
147171
|
147179
|
147621
|
147636
|
147744
| 147966 |
148038