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 183021 Details for
Bug 270661
need a way to disable ide drivers
[?]
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 intoduces ide=disable
rhel4-ide-disable.patch (text/plain), 2.28 KB, created by
Gerd Hoffmann
on 2007-08-31 10:13:08 UTC
(
hide
)
Description:
patch intoduces ide=disable
Filename:
MIME Type:
Creator:
Gerd Hoffmann
Created:
2007-08-31 10:13:08 UTC
Size:
2.28 KB
patch
obsolete
>--- linux-2.6.9/include/linux/ide.h.xenpv 2007-08-30 10:06:59.000000000 +0200 >+++ linux-2.6.9/include/linux/ide.h 2007-08-30 11:37:50.000000000 +0200 >@@ -1191,6 +1191,7 @@ extern int generic_ide_ioctl(struct file > extern ide_hwif_t ide_hwifs[]; /* master data repository */ > #endif > extern int noautodma; >+extern int disable_ide; > > extern int ide_end_request (ide_drive_t *drive, int uptodate, int nrsecs); > extern int ide_end_dequeued_request (ide_drive_t *drive, struct request *rq, int uptodate, int nrsecs); >--- linux-2.6.9/drivers/ide/setup-pci.c.xenpv 2007-08-30 10:06:41.000000000 +0200 >+++ linux-2.6.9/drivers/ide/setup-pci.c 2007-08-30 11:39:15.000000000 +0200 >@@ -862,6 +862,11 @@ static LIST_HEAD(ide_pci_drivers); > > int ide_pci_register_driver(struct pci_driver *driver) > { >+ if (disable_ide) { >+ printk(KERN_DEBUG "IDE disabled: ignore pci driver %s\n", driver->name); >+ return -EINVAL; >+ } >+ > if(!pre_init) > return pci_module_init(driver); > list_add_tail(&driver->node, &ide_pci_drivers); >--- linux-2.6.9/drivers/ide/ide.c.xenpv 2007-08-30 10:06:54.000000000 +0200 >+++ linux-2.6.9/drivers/ide/ide.c 2007-08-30 11:38:36.000000000 +0200 >@@ -174,6 +174,7 @@ static const u8 ide_hwif_to_major[] = { > static int idebus_parameter; /* holds the "idebus=" parameter */ > static int system_bus_speed; /* holds what we think is VESA/PCI bus speed */ > static int initializing; /* set while initializing built-in drivers */ >+int disable_ide; > > DECLARE_MUTEX(ide_cfg_sem); > EXPORT_SYMBOL_GPL(ide_cfg_sem); >@@ -668,7 +669,14 @@ ide_proc_entry_t generic_subdriver_entri > static struct resource* hwif_request_region(ide_hwif_t *hwif, > unsigned long addr, int num) > { >- struct resource *res = request_region(addr, num, hwif->name); >+ struct resource *res; >+ >+ if (disable_ide) { >+ printk(KERN_DEBUG "IDE disabled: blocking 0x%lX-0x%lX for %s\n", >+ addr, addr+num-1, hwif->name); >+ return NULL; >+ } >+ res = request_region(addr, num, hwif->name); > > if (!res) > printk(KERN_ERR "%s: I/O resource 0x%lX-0x%lX not free.\n", >@@ -2131,6 +2139,12 @@ int __init ide_setup (char *s) > return 1; > } > >+ if (!strcmp(s, "ide=disable")) { >+ printk(" : disable drivers/ide subsystem\n"); >+ disable_ide = 1; >+ return 1; >+ } >+ > #ifdef CONFIG_BLK_DEV_IDEPCI > if (!strcmp(s, "ide=reverse")) { > ide_scan_direction = 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 270661
: 183021