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 291534 Details for
Bug 280641
[PATCH] Failure to recognize 5th SATA drive due to PCI: Unable to reserve mem region
[?]
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]
Bjorn Helgaas patch for supermicro board quirk
pnp-supermicro-quirk (text/plain), 1.64 KB, created by
Christopher Brown
on 2008-01-14 02:37:38 UTC
(
hide
)
Description:
Bjorn Helgaas patch for supermicro board quirk
Filename:
MIME Type:
Creator:
Christopher Brown
Created:
2008-01-14 02:37:38 UTC
Size:
1.64 KB
patch
obsolete
>Index: w/drivers/pnp/quirks.c >=================================================================== >--- w.orig/drivers/pnp/quirks.c 2007-10-11 15:36:12.000000000 -0600 >+++ w/drivers/pnp/quirks.c 2007-10-11 16:35:49.000000000 -0600 >@@ -108,6 +108,47 @@ > "pnp: SB audio device quirk - increasing port range\n"); > } > >+static int overlaps(resource_size_t start1, resource_size_t end1, >+ resource_size_t start2, resource_size_t end2) >+{ >+ if (start2 <= start1 && start1 < end2) >+ return 1; >+ if (start2 <= end1 && end1 < end2) >+ return 1; >+ return 0; >+} >+ >+ >+#include <linux/pci.h> >+ >+static void quirk_supermicro_motherboard(struct pnp_dev *dev) >+{ >+ struct pci_dev *pdev = NULL; >+ int i, j; >+ >+ for_each_pci_dev(pdev) { >+ for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { >+ if (!(pci_resource_flags(pdev, i) & IORESOURCE_MEM) || >+ pci_resource_len(pdev, i) == 0) >+ continue; >+ >+ for (j = 0; j < PNP_MAX_MEM; j++) { >+ if (!pnp_mem_valid(dev, j) || >+ pnp_mem_len(dev, j) == 0) >+ continue; >+ >+ if (overlaps(pnp_mem_start(dev, j), >+ pnp_mem_end(dev, j), >+ pci_resource_start(pdev, i), >+ pci_resource_end(pdev, i))) { >+ dev_warn(&dev->dev, "mem resource overlaps %s BAR %d, disabling\n", pci_name(pdev), i); >+ pnp_mem_flags(dev, j) = 0; >+ } >+ } >+ } >+ } >+} >+ > /* > * PnP Quirks > * Cards or devices that need some tweaking due to incomplete resource info >@@ -128,6 +169,8 @@ > {"CTL0043", quirk_sb16audio_resources}, > {"CTL0044", quirk_sb16audio_resources}, > {"CTL0045", quirk_sb16audio_resources}, >+ {"PNP0c01", quirk_supermicro_motherboard}, >+ {"PNP0c02", quirk_supermicro_motherboard}, > {""} > }; >
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 280641
:
188831
|
189881
|
189891
|
189901
|
192761
|
192771
|
192931
|
194851
| 291534 |
297065
|
306040