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 167747 Details for
Bug 247602
[ppc Pegasos] Broken Installer because of libata
[?]
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]
pegasos libata fix ripped from SuSe kernel 2.6.22.3-7
ppc-pegasos-via-ata-legacy-irq.patch (text/plain), 2.74 KB, created by
Marcin Kurek
on 2007-08-23 07:38:43 UTC
(
hide
)
Description:
pegasos libata fix ripped from SuSe kernel 2.6.22.3-7
Filename:
MIME Type:
Creator:
Marcin Kurek
Created:
2007-08-23 07:38:43 UTC
Size:
2.74 KB
patch
obsolete
>The built-in IDE controller is configured in legacy mode, >but the PCI registers advertise native mode. >Force the PCI class into legacy mode. This allows pata_via to access >two drives. >The Pegasos specific irq enforcement in the via82cxxx driver >must stay because there is aparently no generic way to setup irq per channel. > >Tested on Pegasos2 with firmware version 20040810, and two IDE disks. > >--- > arch/powerpc/kernel/prom_init.c | 11 ++++++++--- > arch/powerpc/platforms/chrp/pci.c | 29 +++++++++++++++++++++++++++++ > 2 files changed, 37 insertions(+), 3 deletions(-) > >--- a/arch/powerpc/kernel/prom_init.c >+++ b/arch/powerpc/kernel/prom_init.c >@@ -2044,6 +2044,7 @@ static void __init fixup_device_tree_map > /* > * Pegasos and BriQ lacks the "ranges" property in the isa node > * Pegasos needs decimal IRQ 14/15, not hexadecimal >+ * Pegasos has the IDE configured in legacy mode, but advertised as native > */ > static void __init fixup_device_tree_chrp(void) > { >@@ -2081,9 +2082,13 @@ static void __init fixup_device_tree_chr > prom_printf("Fixing up IDE interrupt on Pegasos...\n"); > prop[0] = 14; > prop[1] = 0x0; >- prop[2] = 15; >- prop[3] = 0x0; >- prom_setprop(ph, name, "interrupts", prop, 4*sizeof(u32)); >+ prom_setprop(ph, name, "interrupts", prop, 2*sizeof(u32)); >+ prom_printf("Fixing up IDE class-code on Pegasos...\n"); >+ rc = prom_getprop(ph, "class-code", prop, sizeof(u32)); >+ if (rc == sizeof(u32)) { >+ prop[0] &= ~0x5; >+ prom_setprop(ph, name, "class-code", prop, sizeof(u32)); >+ } > } > } > #else >--- a/arch/powerpc/platforms/chrp/pci.c >+++ b/arch/powerpc/platforms/chrp/pci.c >@@ -338,3 +338,32 @@ void chrp_pci_fixup_winbond_ata(struct p > } > DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, > chrp_pci_fixup_winbond_ata); >+ >+/* Pegasos2 firmware version 20040810 configures the built-in IDE controller >+ * in legacy mode, but sets the PCI registers to PCI native mode. >+ * The chip can only operate in legacy mode, so force the PCI class into legacy >+ * mode as well. The same fixup must be done to the class-code property in >+ * the IDE node /pci@80000000/ide@C,1 >+ */ >+static void chrp_pci_fixup_vt8231_ata(struct pci_dev *viaide) >+{ >+ u8 progif; >+ struct pci_dev *viaisa; >+ >+ if (!machine_is(chrp) || _chrp_type != _CHRP_Pegasos) >+ return; >+ if (viaide->irq != 14) >+ return; >+ >+ viaisa = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231, NULL); >+ if (!viaisa) >+ return; >+ printk("Fixing VIA IDE, force legacy mode on '%s'\n", viaide->dev.bus_id); >+ >+ pci_read_config_byte(viaide, PCI_CLASS_PROG, &progif); >+ pci_write_config_byte(viaide, PCI_CLASS_PROG, progif & ~0x5); >+ viaide->class &= ~0x5; >+ >+ pci_dev_put(viaisa); >+} >+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, chrp_pci_fixup_vt8231_ata);
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 247602
: 167747 |
167811