Skip to contentSkip to conversation

cpqarray: enable bus mastering

PATCH In review Kyle McMartin 3 participants 3 messages Mar 15, 2009 – Mar 16, 2009 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpqarray: enable bus mastering

From: Dave Jones <[email protected]>

We've been carrying this patch for the last 3 years in Fedora, long past time we got it upstream...

Call pci_set_master to enable bus-mastering if the BIOS hasn't done it already.

drivers/block/cpqarray.c +1 -0
@@ -614,6 +614,7 @@ static int cpqarray_pci_init(ctlr_info_t
 	int i;
 
 	c->pci_dev = pdev;
+	pci_set_master(pdev);
 	if (pci_enable_device(pdev)) {
 		printk(KERN_ERR "cpqarray: Unable to Enable PCI device\n");
 		return -1;
#1 lore raw
Quoted 14 lines · Kyle McMartin

From: Dave Jones <[email protected]>

We've been carrying this patch for the last 3 years in Fedora, long past time we got it upstream...

Call pci_set_master to enable bus-mastering if the BIOS hasn't done it already.

drivers/block/cpqarray.c static int cpqarray_pci_init(ctlr_info_t · line 620

Quoted 7 lines
drivers/block/cpqarray.c +1 -0
@@ -614,6 +614,7 @@ static int cpqarray_pci_init(ctlr_info_t
 	int i;
 
 	c->pci_dev = pdev;
+	pci_set_master(pdev);
 	if (pci_enable_device(pdev)) {
 		printk(KERN_ERR "cpqarray: Unable to Enable PCI device\n");
 		return -1;

Thanks Kyle, looks pretty innocent. Queued up for 2.6.30.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 34 lines

-----Original Message-----
From: Jens Axboe [mailto:[email protected]]
Sent: Monday, March 16, 2009 4:05 AM
To: Kyle McMartin
Cc: Miller, Mike (OS Dev); [email protected]
Subject: Re: [PATCH trivial] cpqarray: enable bus mastering

Quoted 6 lines · Kyle McMartin

From: Dave Jones <[email protected]>

We've been carrying this patch for the last 3 years in Fedora, long past time we got it upstream...

Call pci_set_master to enable bus-mastering if the BIOS

hasn't done it

Quoted 6 lines

already.

--- a/drivers/block/cpqarray.c 2006-10-06

14:23:34.000000000 -0400

Quoted 1 line

+++ b/drivers/block/cpqarray.c 2006-10-06

14:25:16.000000000 -0400

drivers/block/cpqarray.c static int cpqarray_pci_init(ctlr_info_t · line 619

Quoted 7 lines
drivers/block/cpqarray.c +1 -0
@@ -614,6 +614,7 @@ static int cpqarray_pci_init(ctlr_info_t
 	int i;
 
 	c->pci_dev = pdev;
+	pci_set_master(pdev);
 	if (pci_enable_device(pdev)) {
 		printk(KERN_ERR "cpqarray: Unable to Enable PCI 

device\n");

Quoted 6 lines

drivers/block/cpqarray.c static int cpqarray_pci_init(ctlr_info_t · line 620

Quoted 1 line
drivers/block/cpqarray.c +0 -0
 		return -1;

Thanks Kyle, looks pretty innocent. Queued up for 2.6.30.

--
Jens Axboe

Quoted 2 lines