[SeaBIOS] DMI based quirks?

2013-05-21 Thread Christian Gmeiner
Hi all.

Would it be possible to add some DMI based quirks? I have a device and
in coreboot I have
some detection code for it:

http://review.coreboot.org/gitweb?p=coreboot.git;a=blob;f=src/mainboard/bachmann/ot200/mainboard.c;h=0ea053aad0c9e085bbd8ea36f14210404881edb7;hb=HEAD

Now it takes quite some time to load Grub in PIO mode even the device
could use DMA.

For the linux kernel I have added this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=abf8f2b877846573f0e6498883fe43f08be5696d


What would be the best solution in seabios to use PIO for broken devices and DMA
for the others? The biggest problem is that the device supports DMA
but due a missing
resister I breaks in DMA.

thanks
--
Christian Gmeiner, MSc

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] KVM call agenda for 2013-05-21

2013-05-21 Thread Anthony Liguori
"Michael S. Tsirkin"  writes:

> On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote:
>> 
>> Hi
>> 
>> Please, send any topic that you are interested in covering.
>> 
>> Thanks, Juan.
>
> Generating acpi tables.
>
> Cc'd a bunch of people who might be interested in this topic.

Unfortunately I have a conflict this morning so I won't be able to
join.  I just saw Kevin's response here from last week and I'll respond
to it later this morning.

Can we post the call for agenda for this call on Fridays in the future?
I need more than 24 hours to make sure to keep my calendar clear...

Regards,

Anthony Liguori

>
> Kevin - could you join on Tuesday? There appears a disconnect
> between the seabios and qemu that a conf call
> might help resolve.
>
> -- 
> MST
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote:
> "Michael S. Tsirkin"  writes:
> 
> > On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote:
> >> 
> >> Hi
> >> 
> >> Please, send any topic that you are interested in covering.
> >> 
> >> Thanks, Juan.
> >
> > Generating acpi tables.
> >
> > Cc'd a bunch of people who might be interested in this topic.
> 
> Unfortunately I have a conflict this morning so I won't be able to
> join.  I just saw Kevin's response here from last week and I'll respond
> to it later this morning.

Unfortunate.
Let's talk about this on the next slot: next Tuesday, June 4 then.
Could you keep your agenda clear on that day please?

> Can we post the call for agenda for this call on Fridays in the future?
> I need more than 24 hours to make sure to keep my calendar clear...
> 
> Regards,
> 
> Anthony Liguori

We don't work on Fridays in Israel so that means we'll only be able to
respond Sunday, and you'll only see it Monday anyway.
Setting agenda Thursday is probably too aggressive?

> >
> > Kevin - could you join on Tuesday? There appears a disconnect
> > between the seabios and qemu that a conf call
> > might help resolve.
> >
> > -- 
> > MST
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majord...@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] KVM call agenda for 2013-05-21

2013-05-21 Thread Anthony Liguori
"Michael S. Tsirkin"  writes:

> On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote:
>> "Michael S. Tsirkin"  writes:
>> 
>> > On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote:
>> >> 
>> >> Hi
>> >> 
>> >> Please, send any topic that you are interested in covering.
>> >> 
>> >> Thanks, Juan.
>> >
>> > Generating acpi tables.
>> >
>> > Cc'd a bunch of people who might be interested in this topic.
>> 
>> Unfortunately I have a conflict this morning so I won't be able to
>> join.  I just saw Kevin's response here from last week and I'll respond
>> to it later this morning.
>
> Unfortunate.
> Let's talk about this on the next slot: next Tuesday, June 4 then.
> Could you keep your agenda clear on that day please?

Ack.

Perhaps we could move this call to bimonthly and cancel it less
frequently?  That will make it easier to reserve calendar time for it.

>
>> Can we post the call for agenda for this call on Fridays in the future?
>> I need more than 24 hours to make sure to keep my calendar clear...
>> 
>> Regards,
>> 
>> Anthony Liguori
>
> We don't work on Fridays in Israel so that means we'll only be able to
> respond Sunday, and you'll only see it Monday anyway.
> Setting agenda Thursday is probably too aggressive?

Maybe we could use a wiki page to setup a rolling agenda?

Regards,

Anthony Liguori

>
>> >
>> > Kevin - could you join on Tuesday? There appears a disconnect
>> > between the seabios and qemu that a conf call
>> > might help resolve.
>> >
>> > -- 
>> > MST
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe kvm" in
>> > the body of a message to majord...@vger.kernel.org
>> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Andreas Färber
Am 21.05.2013 16:34, schrieb Juan Quintela:
> Anthony Liguori  wrote:
>> Maybe we could use a wiki page to setup a rolling agenda?
> 
> I think this could be easier for everybody involved.
> 
> Especially because you just look if there is anything to discuss?

On the other hand, the Wiki doesn't send out notifications on change.
So if we looked at a Wiki page five minutes before the call to check if
there are topics, it's too late to read through discussions or papers.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 06:40:18PM +0200, Andreas Färber wrote:
> Am 21.05.2013 16:34, schrieb Juan Quintela:
> > Anthony Liguori  wrote:
> >> Maybe we could use a wiki page to setup a rolling agenda?
> > 
> > I think this could be easier for everybody involved.
> > 
> > Especially because you just look if there is anything to discuss?
> 
> On the other hand, the Wiki doesn't send out notifications on change.
> So if we looked at a Wiki page five minutes before the call to check if
> there are topics, it's too late to read through discussions or papers.
> 
> Andreas

Agree, I think mail works better for notifications.

> -- 
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 09:29:07AM -0500, Anthony Liguori wrote:
> "Michael S. Tsirkin"  writes:
> 
> > On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote:
> >> "Michael S. Tsirkin"  writes:
> >> 
> >> > On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote:
> >> >> 
> >> >> Hi
> >> >> 
> >> >> Please, send any topic that you are interested in covering.
> >> >> 
> >> >> Thanks, Juan.
> >> >
> >> > Generating acpi tables.
> >> >
> >> > Cc'd a bunch of people who might be interested in this topic.
> >> 
> >> Unfortunately I have a conflict this morning so I won't be able to
> >> join.  I just saw Kevin's response here from last week and I'll respond
> >> to it later this morning.
> >
> > Unfortunate.
> > Let's talk about this on the next slot: next Tuesday, June 4 then.
> > Could you keep your agenda clear on that day please?
> 
> Ack.
> 
> Perhaps we could move this call to bimonthly and cancel it less
> frequently?  That will make it easier to reserve calendar time for it.

I think you mean bi-weekly? If yes, ack.

> >
> >> Can we post the call for agenda for this call on Fridays in the future?
> >> I need more than 24 hours to make sure to keep my calendar clear...
> >> 
> >> Regards,
> >> 
> >> Anthony Liguori
> >
> > We don't work on Fridays in Israel so that means we'll only be able to
> > respond Sunday, and you'll only see it Monday anyway.
> > Setting agenda Thursday is probably too aggressive?
> 
> Maybe we could use a wiki page to setup a rolling agenda?
> 
> Regards,
> 
> Anthony Liguori
> 
> >
> >> >
> >> > Kevin - could you join on Tuesday? There appears a disconnect
> >> > between the seabios and qemu that a conf call
> >> > might help resolve.
> >> >
> >> > -- 
> >> > MST
> >> > --
> >> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> >> > the body of a message to majord...@vger.kernel.org
> >> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] KVM call agenda for 2013-05-21

2013-05-21 Thread Anthony Liguori
"Michael S. Tsirkin"  writes:

> On Tue, May 21, 2013 at 09:29:07AM -0500, Anthony Liguori wrote:
>> "Michael S. Tsirkin"  writes:
>> 
>> > On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote:
>> >> "Michael S. Tsirkin"  writes:
>> >> 
>> >> > On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote:
>> >> >> 
>> >> >> Hi
>> >> >> 
>> >> >> Please, send any topic that you are interested in covering.
>> >> >> 
>> >> >> Thanks, Juan.
>> >> >
>> >> > Generating acpi tables.
>> >> >
>> >> > Cc'd a bunch of people who might be interested in this topic.
>> >> 
>> >> Unfortunately I have a conflict this morning so I won't be able to
>> >> join.  I just saw Kevin's response here from last week and I'll respond
>> >> to it later this morning.
>> >
>> > Unfortunate.
>> > Let's talk about this on the next slot: next Tuesday, June 4 then.
>> > Could you keep your agenda clear on that day please?
>> 
>> Ack.
>> 
>> Perhaps we could move this call to bimonthly and cancel it less
>> frequently?  That will make it easier to reserve calendar time for it.
>
> I think you mean bi-weekly? If yes, ack.

I meant twice a month (or every other week).

Regards,

Anthony Liguori

>
>> >
>> >> Can we post the call for agenda for this call on Fridays in the future?
>> >> I need more than 24 hours to make sure to keep my calendar clear...
>> >> 
>> >> Regards,
>> >> 
>> >> Anthony Liguori
>> >
>> > We don't work on Fridays in Israel so that means we'll only be able to
>> > respond Sunday, and you'll only see it Monday anyway.
>> > Setting agenda Thursday is probably too aggressive?
>> 
>> Maybe we could use a wiki page to setup a rolling agenda?
>> 
>> Regards,
>> 
>> Anthony Liguori
>> 
>> >
>> >> >
>> >> > Kevin - could you join on Tuesday? There appears a disconnect
>> >> > between the seabios and qemu that a conf call
>> >> > might help resolve.
>> >> >
>> >> > -- 
>> >> > MST
>> >> > --
>> >> > To unsubscribe from this list: send the line "unsubscribe kvm" in
>> >> > the body of a message to majord...@vger.kernel.org
>> >> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


[SeaBIOS] [PATCH] Seabios: allow mapping of multiple PCI option ROMs to one

2013-05-21 Thread Dave Frodin
All, 
This is a patch that reproduces the vendor ID mapping that is done in 
coreboot in the various AMD northbridge's. The coreboot mapping is only 
useful if coreboot is used to run the vga bios. If seabios is the payload 
then most coreboot configs leave the vga bios init for it. 



>From 5b7f2ba9f43fbc67a81a2449d8bbd3d2f6e530aa Mon Sep 17 00:00:00 2001 
From: Dave Frodin  
Date: Tue, 7 May 2013 13:51:56 -0600 
Subject: [PATCH] Seabios: allow mapping of multiple PCI option ROMs to one 

This feature was added to allow mapping multiple different 
PCI graphics vendor/device IDs to a single ID. The intent is 
to have the coreboot mainboard define its VGA_BIOS_ID as the 
ID that is present in the actual VGA BIOS. The PCI ID of the 
graphics device would then be mapped to that ID. 

Change-Id: Id06a1c9730546070146932a4dc8ab8229c4a59b9 
Signed-off-by: Dave Frodin  
--- 
src/optionroms.c | 69 +- 
1 files changed, 68 insertions(+), 1 deletions(-) 

diff --git a/src/optionroms.c b/src/optionroms.c 
index 00697b2..bf1e977 100644 
--- a/src/optionroms.c 
+++ b/src/optionroms.c 
@@ -154,7 +154,6 @@ getRomPriority(u64 *sources, struct rom_header *rom, int 
instance) 
return bootprio_find_named_rom(file->name, instance); 
} 

- 
/ 
* Roms in CBFS 
/ 
@@ -174,11 +173,79 @@ deploy_romfile(struct romfile_s *file) 
return rom; 
} 

+/* Allow mapping of multiple different PCI IDs to a single ID. A single AMD 
+ * VGA BIOS will quite often be used on hardware that reports different 
+ * PCI graphics IDs. This allows a mainboard to have a single definition 
+ * (which would match the ID in the VGA BIOS) yet would support multiple 
+ * CPU IDs. 
+ */ 
+static u32 
+map_oprom_vendev(u32 vendev) 
+{ 
+ u32 new_vendev = vendev; 
+ 
+ switch (vendev) { 
+ case 0x10029803: // Family14 
+ case 0x10029804: 
+ case 0x10029805: 
+ case 0x10029806: 
+ case 0x10029807: 
+ case 0x10029808: 
+ case 0x10029809: 
+ new_vendev = 0x10029802; 
+ break; 
+ case 0x10029901: // Family15tn 
+ case 0x10029903: 
+ case 0x10029904: 
+ case 0x10029906: 
+ case 0x10029907: 
+ case 0x10029908: 
+ case 0x1002990A: 
+ case 0x10029910: 
+ case 0x10029913: 
+ case 0x10029917: 
+ case 0x10029918: 
+ case 0x10029919: 
+ case 0x10029990: 
+ case 0x10029991: 
+ case 0x10029992: 
+ case 0x10029993: 
+ case 0x10029994: 
+ case 0x100299A0: 
+ case 0x100299A2: 
+ case 0x100299A4: 
+ new_vendev = 0x10029900; 
+ break; 
+ case 0x10029831: // Family16kb 
+ case 0x10029832: 
+ case 0x10029833: 
+ case 0x10029834: 
+ case 0x10029835: 
+ case 0x10029836: 
+ case 0x10029837: 
+ case 0x10029839: 
+ case 0x1002983D: 
+ new_vendev = 0x10029830; 
+ break; 
+ default: 
+ break; 
+ } 
+ if (vendev != new_vendev) 
+ dprintf(1, "Mapping PCI device %8x to %8x\n",vendev, new_vendev); 
+ return new_vendev; 
+} 
+ 
// Check if an option rom is at a hardcoded location or in CBFS. 
static struct rom_header * 
lookup_hardcode(struct pci_device *pci) 
{ 
char fname[17]; 
+ u32 vendev_mapped; 
+ 
+ vendev_mapped = map_oprom_vendev((pci->vendor << 16) | pci->device); 
+ pci->vendor = vendev_mapped >> 16; 
+ pci->device = vendev_mapped & 0x; 
+ 
snprintf(fname, sizeof(fname), "pci%04x,%04x.rom" 
, pci->vendor, pci->device); 
struct romfile_s *file = romfile_find(fname); 
-- 
1.7.9 

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] KVM call agenda for 2013-05-21

2013-05-21 Thread Juan Quintela
Anthony Liguori  wrote:
> "Michael S. Tsirkin"  writes:
>
>> On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote:
>>> "Michael S. Tsirkin"  writes:
>>> 
>>> > On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote:
>>> >> 
>>> >> Hi
>>> >> 
>>> >> Please, send any topic that you are interested in covering.
>>> >> 
>>> >> Thanks, Juan.
>>> >
>>> > Generating acpi tables.
>>> >
>>> > Cc'd a bunch of people who might be interested in this topic.
>>> 
>>> Unfortunately I have a conflict this morning so I won't be able to
>>> join.  I just saw Kevin's response here from last week and I'll respond
>>> to it later this morning.
>>
>> Unfortunate.
>> Let's talk about this on the next slot: next Tuesday, June 4 then.
>> Could you keep your agenda clear on that day please?
>
> Ack.
>
> Perhaps we could move this call to bimonthly and cancel it less
> frequently?  That will make it easier to reserve calendar time for it.

bimonthly or bi-weekly?

About sending the call on Friday/Thrusday,  I can change.

>
>>
>>> Can we post the call for agenda for this call on Fridays in the future?
>>> I need more than 24 hours to make sure to keep my calendar clear...
>>> 
>>> Regards,
>>> 
>>> Anthony Liguori
>>
>> We don't work on Fridays in Israel so that means we'll only be able to
>> respond Sunday, and you'll only see it Monday anyway.
>> Setting agenda Thursday is probably too aggressive?
>
> Maybe we could use a wiki page to setup a rolling agenda?

I think this could be easier for everybody involved.

Especially because you just look if there is anything to discuss?

Later,  Juan.

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios