Skip to contentSkip to conversation

esp: enable busmaster

PATCH In review Paolo Bonzini 4 participants 11 messages Nov 20, 2012 – Jan 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 esp: enable busmaster

The HBA does DMA, thus we must enable the busmaster bit, otherwise dma access will fail with recent qemu versions.

---
 src/esp-scsi.c | 2 ++

1 file modificato, 2 inserzioni(+)

src/esp-scsi.c +2 -0
index b795012..c43e55b 100644
@@ -202,6 +202,8 @@ init_esp_scsi(struct pci_device *pci)
             pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf),
             pci_bdf_to_fn(bdf), iobase);
 
+    pci_config_maskw(bdf, PCI_COMMAND, 0, PCI_COMMAND_MASTER);
+
     // reset
     outb(ESP_CMD_RESET, iobase + ESP_CMD);
 
Signature · 1 line
1.7.12.1
#1 lore raw

[Qemu-devel] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Il 20/11/2012 18:33, Paolo Bonzini ha scritto:

Quoted 4 lines

The HBA does DMA, thus we must enable the busmaster bit, otherwise dma access will fail with recent qemu versions.

As usual we forget to update SeaBIOS. We probably want these two from Gerd:

7d05257 (lsi: enable busmaster, 2012-11-20)
455a7c8 (add acpi pmtimer support, 2012-09-06)

and a matching patch to enable bus master DMA in esp.c (just submitted).

The choice is between committing these three patches on top of 1.7.1, or just picking the top of the SeaBIOS tree. There hasn't been much action since 1.7.1 (mostly SeaVGABIOS changes), so I prefer the latter.

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

Paolo

#2 lore raw

Re: [Qemu-devel] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Quoted 11 lines · Paolo Bonzini

Il 20/11/2012 18:33, Paolo Bonzini ha scritto:

Quoted 4 lines

The HBA does DMA, thus we must enable the busmaster bit, otherwise dma access will fail with recent qemu versions.

As usual we forget to update SeaBIOS. We probably want these two from Gerd:

7d05257 (lsi: enable busmaster, 2012-11-20)
455a7c8 (add acpi pmtimer support, 2012-09-06)

Quoted 8 lines

and a matching patch to enable bus master DMA in esp.c (just submitted).

The choice is between committing these three patches on top of 1.7.1, or just picking the top of the SeaBIOS tree. There hasn't been much action since 1.7.1 (mostly SeaVGABIOS changes), so I prefer the latter.

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

-Kevin

#3 lore raw

Re: [Qemu-devel] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Hi,

Quoted 2 lines

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Agree. I'll prepare a seabios update pull once the tag is there.

cheers,
Gerd

#4 lore raw

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

In reply to Kevin O'Connor

Hi,

Quoted 5 lines
Quoted 2 lines

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Ping? Meanwhile 1.4 freeze is in sight (soft freeze in one week, hard freeze + -rc0 feb 1st).

cheers,
Gerd

#5 lore raw

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Quoted 10 lines · Gerd Hoffmann

Hi,

Quoted 5 lines
Quoted 2 lines

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Ping? Meanwhile 1.4 freeze is in sight (soft freeze in one week, hard freeze + -rc0 feb 1st).

Lets target Jan 18th for the next SeaBIOS release.

-Kevin

#6 lore raw

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Quoted 11 lines · Kevin O'Connor
Quoted 10 lines · Gerd Hoffmann

Hi,

Quoted 5 lines
Quoted 2 lines

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Ping? Meanwhile 1.4 freeze is in sight (soft freeze in one week, hard freeze + -rc0 feb 1st).

Why is 1.4 being rushed so quick? Is this because 1.3.0 was so broken or is there something else?

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#7 lore raw

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Quoted 7 lines · Brad Smith
Quoted 6 lines · Kevin O'Connor
Quoted 5 lines · Gerd Hoffmann

Hi,

Quoted 3 lines
Quoted 2 lines

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Ping? Meanwhile 1.4 freeze is in sight (soft freeze in one week, hard freeze + -rc0 feb 1st).

Why is 1.4 being rushed so quick? Is this because 1.3.0 was so broken or is there something else?

I don't understand your questions. The 1.4 release is for QEMU and I don't control its release schedule.

-Kevin

#8 lore raw

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

Quoted 11 lines · Kevin O'Connor
Quoted 10 lines · Brad Smith
Quoted 9 lines · Kevin O'Connor
Quoted 8 lines · Gerd Hoffmann

Hi,

Quoted 5 lines
Quoted 2 lines

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Ping? Meanwhile 1.4 freeze is in sight (soft freeze in one week, hard freeze + -rc0 feb 1st).

Why is 1.4 being rushed so quick? Is this because 1.3.0 was so broken or is there something else?

I don't understand your questions. The 1.4 release is for QEMU and I don't control its release schedule.

Of course the 1.4 release is for QEMU, that's pretty obvious. Sorry the question wasn't necessarily for you. I just noticed what was quoted when you had replied.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#9 lore raw

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

In reply to Brad Smith

Il 08/01/2013 00:51, Brad Smith ha scritto:

Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions?

A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to 1.7.2.

Ping? Meanwhile 1.4 freeze is in sight (soft freeze in one week, hard freeze + -rc0 feb 1st).

Why is 1.4 being rushed so quick? Is this because 1.3.0 was so broken or is there something else?

Anthony decides, as release manager.

One reason I recall, is that releases in Mar/Jun/Sep/Dec do not work well with Fedora and Ubuntu freeze dates. Feb/May/Aug/Nov should work a little better.

Paolo

#10 lore raw
In reply to Paolo Bonzini
Quoted 2 lines · Paolo Bonzini

The HBA does DMA, thus we must enable the busmaster bit, otherwise dma access will fail with recent qemu versions.

Thanks - I applied this.

-Kevin