Re: [SeaBIOS] [PATCH] lest pretend that RTC can be used to wakeup from S4

2011-02-02 Thread Paolo Bonzini
On 01/30/2011 04:33 PM, Gleb Natapov wrote: > > In theory a guest could check whether RTC alarm reboot is supported, > if not it keeps awake, if it is it can set the alarm to sleep. So > if seabios lies it could break that guest. > Theoretically possible. > However that's an unlikely scen

Re: [SeaBIOS] [PATCH] lest pretend that RTC can be used to wakeup from S4

2011-02-02 Thread Paolo Bonzini
On 02/02/2011 09:42 AM, Gleb Natapov wrote: > The alternative would be to get it via fw_cfg. > How will this help? We want to lie that we support RTC wakeup without actually supporting it. We would be able to lie or say the truth at will. Distros that care about WHQL/SVVP can turn the lie o

Re: [SeaBIOS] QEMU regression problems - Update FPU

2011-02-24 Thread Paolo Bonzini
On 02/23/2011 08:04 PM, Aurelien Jarno wrote: Actually that's the reason why i386 doesn't use softfloat, as all the trigonometric use libm, and the bridge between softfloat and libm is not working correctly (plenty of type abuse). Besides, I doubt softfloat would want bug-compatible trig functi

Re: [SeaBIOS] [Xen-devel] Ideas for PV on SeaBIOS

2011-05-21 Thread Paolo Bonzini
On 05/19/2011 10:01 AM, Ian Campbell wrote: We had a bit of a brainstorm yesterday and someone suggested that perhaps qemu could deal with it when it sees the I/O ports for the emulated device unplug get hit. You could imagine doing the unplug even under an OS that uses INT 13h. PV drivers als

Re: [SeaBIOS] Next version

2011-09-23 Thread Paolo Bonzini
On 09/23/2011 06:28 AM, Kevin O'Connor wrote: I'd like to make the next release of SeaBIOS. I plan to make the version number be v1.6.3 (instead of v0.6.3). There are a few ACPI patches pending. However, I think it would be best to tag the current code, and then add the ACPI code on top of it.

Re: [SeaBIOS] [PATCH 0/4] acpi: fix up EJ0 in DSDT

2011-09-27 Thread Paolo Bonzini
On 09/27/2011 03:04 PM, Michael S. Tsirkin wrote: >There was a concern raised with > two-pass PCI initialization that I need to follow up on before > tagging. The isa bridge? I thought that got fixed ... Daniel Berrange reported a regression with virtio-9p. Paolo __

[SeaBIOS] [RFC PATCH 10/16] scsi: get physical chs geometry from mode page 0x04

2011-11-15 Thread Paolo Bonzini
The mode page is marked as obsolete, but QEMU can provide the information. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 33 - src/blockcmd.h | 29 + 2 files changed, 61 insertions(+), 1 deletions(-) diff --git a/src

[SeaBIOS] [RFC PATCH 09/16] usb-msc: move common scsi code to blockcmd.c

2011-11-15 Thread Paolo Bonzini
Finally move the INQUIRY/TEST UNIT READY/READ CAPACITY sequence to generic code, so that virtio-scsi will be able to use it. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 53 + src/blockcmd.h |1 + src/usb-msc.c | 49

[SeaBIOS] [RFC PATCH 03/16] usb-uhci: wait tick after sending data

2011-11-15 Thread Paolo Bonzini
This fixes a timing problem when doing two consecutive USB_DIR_OUT sends. It is visible for example when writing to a USB device. Signed-off-by: Paolo Bonzini --- src/usb-uhci.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/usb-uhci.c b/src/usb-uhci.c index

[SeaBIOS] [RFC PATCH 11/16] always specify virtio-blk rather than virtio

2011-11-15 Thread Paolo Bonzini
Avoid ambiguity when virtio-scsi will be introduced. Signed-off-by: Paolo Bonzini --- src/Kconfig |4 ++-- src/block.c |6 +++--- src/disk.c |4 ++-- src/disk.h | 18 +- src/virtio-blk.c |4 ++-- src/virtio-blk.h |2 +- 6 files changed

[SeaBIOS] [RFC PATCH 05/16] usb-msc: move READ CAPACITY to usb_msc_init, fix off-by-one

2011-11-15 Thread Paolo Bonzini
. Signed-off-by: Paolo Bonzini --- src/usb-msc.c | 32 +++- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index c8b9fbe..a0b79a5 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c @@ -153,7 +153,6 @@ process_usb_op(struct

[SeaBIOS] [RFC PATCH 04/16] usb-msc: support WRITE and TEST UNIT READY

2011-11-15 Thread Paolo Bonzini
Writes only require building the CDB and some care with the direction in the USB packet. TEST UNIT READY is special because it has no data, so it cannot have any residue either. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 12 src/blockcmd.h |1 + src/usb-msc.c | 21

[SeaBIOS] [RFC PATCH 00/16] make SCSI layer more generic, introduce virtio-scsi driver

2011-11-15 Thread Paolo Bonzini
g now the whole batch for review. Paolo Bonzini (16): cdrom: use TEST UNIT READY to detect ready medium usb-msc: add usb_msc_send usb-uhci: wait tick after sending data usb-msc: support WRITE and TEST UNIT READY usb-msc: move READ CAPACITY to usb_msc_init, fix off-by-one usb-msc: pass

[SeaBIOS] [RFC PATCH 13/16] virtio-pci: allocate vq in vp_find_vq

2011-11-15 Thread Paolo Bonzini
Another common bit that can be made generic. Signed-off-by: Paolo Bonzini --- src/virtio-blk.c | 17 + src/virtio-pci.c | 22 +- src/virtio-pci.h |2 +- 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/virtio-blk.c b/src/virtio

[SeaBIOS] [RFC PATCH 14/16] virtio-pci: add vp_set

2011-11-15 Thread Paolo Bonzini
virtio-scsi will need to write to config space, add a helper to do that. Signed-off-by: Paolo Bonzini --- src/virtio-pci.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/virtio-pci.h b/src/virtio-pci.h index e1d972d..ea40edf 100644 --- a/src/virtio-pci.h

[SeaBIOS] [RFC PATCH 02/16] usb-msc: add usb_msc_send

2011-11-15 Thread Paolo Bonzini
This makes it a bit nicer to later introduce writes. Signed-off-by: Paolo Bonzini --- src/usb-msc.c | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index 13ef93e..07a7ea2 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c

[SeaBIOS] [RFC PATCH 07/16] usb-msc: rename INQUIRY types

2011-11-15 Thread Paolo Bonzini
They are generic SCSI constants, rename them as such. Signed-off-by: Paolo Bonzini --- src/blockcmd.h |3 +++ src/usb-msc.c |2 +- src/usb-msc.h |3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blockcmd.h b/src/blockcmd.h index 84ab659..6923e4c 100644

[SeaBIOS] [RFC PATCH 12/16] virtio-pci: introduce vp_init_simple

2011-11-15 Thread Paolo Bonzini
Put together the common parts of all virtio device initialization. Signed-off-by: Paolo Bonzini --- src/virtio-blk.c |9 + src/virtio-pci.c | 11 +++ src/virtio-pci.h |1 + 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/virtio-blk.c b/src/virtio

[SeaBIOS] [RFC PATCH 16/16] add virtio-scsi driver

2011-11-15 Thread Paolo Bonzini
virtio-scsi is a simple HBA that talks to the host via a single vring. The implementation looks like a hybrid of usb-msc and virtio-blk. Signed-off-by: Paolo Bonzini --- Makefile |2 +- src/Kconfig |6 ++ src/block.c |3 +- src/blockcmd.c|3 + src

[SeaBIOS] [RFC PATCH 01/16] cdrom: use TEST UNIT READY to detect ready medium

2011-11-15 Thread Paolo Bonzini
The READ CAPACITY output is not used except for some debugging messages. In the future, we will use this code for USB sticks too, but those already send READ CAPACITY. To avoid code duplication, switch to TEST UNIT READY for this task. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 12

[SeaBIOS] [RFC PATCH 06/16] usb-msc: pass drive to setup_drive_*

2011-11-15 Thread Paolo Bonzini
The two functions do not need anymore a disk_op_s. Signed-off-by: Paolo Bonzini --- src/usb-msc.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index a0b79a5..b76bb57 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c

[SeaBIOS] [RFC PATCH 08/16] usb-msc: always go through TEST UNIT READY

2011-11-15 Thread Paolo Bonzini
Add the wait loop that CDs are already using to usb-msc. USB drives might also report NOT READY at startup. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 44 src/blockcmd.h |2 ++ src/cdrom.c| 48

[SeaBIOS] [RFC PATCH 15/16] usb-msc: move cdb dispatch to block.c

2011-11-15 Thread Paolo Bonzini
virtio-scsi's low-level dispatch code is exactly the same as USB's, since in the end both are actually SCSI HBAs. Move it to common code. Signed-off-by: Paolo Bonzini --- src/block.c | 28 +--- src/usb-msc.c | 28 2 files c

Re: [SeaBIOS] [RFC PATCH 00/16] make SCSI layer more generic, introduce virtio-scsi driver

2011-11-16 Thread Paolo Bonzini
On 11/16/2011 02:46 AM, Kevin O'Connor wrote: Question on patch 4 - can you elaborate on why waittick is needed? What happens is that if you do two consecutive OUT sends, the second fails ~90% of the time with a timeout in wait_td. I initially wanted to add the wait in usb-msc.c and only for

[SeaBIOS] [PATCH 07/16] usb-msc: move READ CAPACITY to usb_msc_init, fix off-by-one

2011-11-16 Thread Paolo Bonzini
. Signed-off-by: Paolo Bonzini --- src/usb-msc.c | 30 ++ 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index 65b33a2..818710c 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c @@ -153,7 +153,6 @@ process_usb_op(struct disk_op_s

[SeaBIOS] [PATCH 05/16] usb-msc: add usb_msc_send

2011-11-16 Thread Paolo Bonzini
This makes it a bit nicer to later introduce writes. Signed-off-by: Paolo Bonzini --- src/usb-msc.c | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index f74b8ec..5e38b01 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c

[SeaBIOS] [PATCH 03/16] usb-uhci: fix race against host controller

2011-11-16 Thread Paolo Bonzini
er happens in the IN direction). To fix this, re-enable TDs whenever the host controller completes the pending ones. Also, at the end of the processing do not wait for each single TD to become inactive, but simply wait for the host controller to invalidate the element link. Signed-off-by: P

[SeaBIOS] [PATCH 15/16] virtio-pci: introduce vp_init_simple

2011-11-16 Thread Paolo Bonzini
Put together the common parts of all virtio device initialization. Signed-off-by: Paolo Bonzini --- src/virtio-blk.c |9 + src/virtio-pci.c | 11 +++ src/virtio-pci.h |1 + 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/virtio-blk.c b/src/virtio

[SeaBIOS] [PATCH 04/16] usb-msc: support commands without payload

2011-11-16 Thread Paolo Bonzini
This lets the usb-msc driver send TEST UNIT READY commands. Signed-off-by: Paolo Bonzini --- src/usb-msc.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index 13ef93e..f74b8ec 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c @@ -79,9

[SeaBIOS] [PATCH 08/16] usb-msc: pass drive to setup_drive_*

2011-11-16 Thread Paolo Bonzini
The two functions do not need anymore a disk_op_s. Signed-off-by: Paolo Bonzini --- src/usb-msc.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/usb-msc.c b/src/usb-msc.c index 818710c..5539f6a 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c

[SeaBIOS] [PATCH 10/16] usb-msc: go through TEST UNIT READY for hard disks.

2011-11-16 Thread Paolo Bonzini
Add the wait loop that CDs are already using to usb-msc in the HD case, to cope with a NOT READY or UNIT ATTENTION condition. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 44 src/blockcmd.h |2 ++ src/cdrom.c| 48

[SeaBIOS] [PATCH 13/16] scsi: get physical chs geometry from mode page 0x04

2011-11-16 Thread Paolo Bonzini
The mode page is marked as obsolete, but QEMU can provide the information. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 32 src/blockcmd.h | 29 + 2 files changed, 61 insertions(+), 0 deletions(-) diff --git a/src/blockcmd.c

[SeaBIOS] [PATCH 02/16] usb-uhci: reorganize wait_qh into wait_pipe

2011-11-16 Thread Paolo Bonzini
. Signed-off-by: Paolo Bonzini --- src/usb-uhci.c | 65 ++- 1 files changed, 31 insertions(+), 34 deletions(-) diff --git a/src/usb-uhci.c b/src/usb-uhci.c index f3680d3..5957567 100644 --- a/src/usb-uhci.c +++ b/src/usb-uhci.c @@ -212,26

[SeaBIOS] [PATCH 06/16] usb-msc: support WRITE commands

2011-11-16 Thread Paolo Bonzini
Writes only require building the CDB and some care with the direction in the USB packet. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 12 src/blockcmd.h |1 + src/usb-msc.c | 15 --- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src

[SeaBIOS] [PATCH 00/16] make SCSI and virtio layers more generic, fix usb-msc bugs

2011-11-16 Thread Paolo Bonzini
few extra interface bits that are common to both virtio-scsi and virtio-blk. The two parts are logically separate but they have a small conflict, so I'm sending them together. Paolo Bonzini (16): cdrom: use TEST UNIT READY to detect ready medium usb-uhci: reorganize wait_qh into wait_pipe usb

[SeaBIOS] [PATCH 01/16] cdrom: use TEST UNIT READY to detect ready medium

2011-11-16 Thread Paolo Bonzini
The READ CAPACITY output is not used except for some debugging messages. In the future, we will use this code for USB sticks too, but those already send READ CAPACITY. To avoid code duplication, switch to TEST UNIT READY for this task. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 12

[SeaBIOS] [PATCH 11/16] usb-msc: move common scsi code to blockcmd.c

2011-11-16 Thread Paolo Bonzini
Finally move the INQUIRY/TEST UNIT READY/READ CAPACITY sequence to generic code, so that virtio-scsi will be able to use it. Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 57 src/blockcmd.h |1 + src/usb-msc.c | 51

[SeaBIOS] [PATCH 16/16] virtio-pci: allocate vq in vp_find_vq

2011-11-16 Thread Paolo Bonzini
Another common bit that can be made generic. Signed-off-by: Paolo Bonzini --- src/virtio-blk.c | 11 --- src/virtio-pci.c | 22 +- src/virtio-pci.h |2 +- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/src/virtio-blk.c b/src/virtio-blk.c

[SeaBIOS] [PATCH 12/16] usb-msc: move cdb dispatch to block.c

2011-11-16 Thread Paolo Bonzini
virtio-scsi's low-level dispatch code is exactly the same as USB's, since in the end both are actually SCSI HBAs. Move it to common code. Signed-off-by: Paolo Bonzini --- src/block.c | 28 +--- src/usb-msc.c | 28 2 files c

[SeaBIOS] [PATCH 14/16] always specify virtio-blk rather than virtio

2011-11-16 Thread Paolo Bonzini
Avoid ambiguity when virtio-scsi will be introduced. Signed-off-by: Paolo Bonzini --- src/Kconfig |4 ++-- src/block.c |6 +++--- src/disk.c |4 ++-- src/disk.h | 18 +- src/virtio-blk.c |4 ++-- src/virtio-blk.h |2 +- 6 files changed

[SeaBIOS] [PATCH 09/16] usb-msc: rename INQUIRY types

2011-11-16 Thread Paolo Bonzini
They are generic SCSI constants, rename them as such. Signed-off-by: Paolo Bonzini --- src/blockcmd.h |3 +++ src/usb-msc.c |2 +- src/usb-msc.h |3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blockcmd.h b/src/blockcmd.h index 84ab659..6923e4c 100644

Re: [SeaBIOS] [PATCH 03/16] usb-uhci: fix race against host controller

2011-11-17 Thread Paolo Bonzini
On 11/17/2011 05:53 AM, Kevin O'Connor wrote: Interesting. Good catch! If I understand this correctly, the issue occurs because all TDs being complete doesn't guarentee that the QH is complete, and thus the next transfer races with the controller on the QH update. Yep. Can't the code just u

[SeaBIOS] [PATCH v2 02/16] usb-uhci: reorganize wait_qh into wait_pipe

2011-11-17 Thread Paolo Bonzini
. 4) Add a variable timeout argument, since bulk transfers might take more than 500 ms. Signed-off-by: Paolo Bonzini --- v1->v2: prepare for passing a bigger timeout src/usb-uhci.c | 64 ++- 1 files changed, 30 insertions(+),

[SeaBIOS] [PATCH v2 04/16] usb-msc: support commands without payload

2011-11-17 Thread Paolo Bonzini
This lets the usb-msc driver send TEST UNIT READY commands. Signed-off-by: Paolo Bonzini --- The new hunk was present in the previous submission but was in patch 06/16. It didn't break bisectability, but was not nice. src/usb-msc.c | 11 +++ 1 files ch

[SeaBIOS] [PATCH v2 11/16] usb-msc: move common scsi code to blockcmd.c

2011-11-17 Thread Paolo Bonzini
Finally move the INQUIRY/TEST UNIT READY/READ CAPACITY sequence to generic code, so that virtio-scsi will be able to use it. Signed-off-by: Paolo Bonzini --- v1->v2: move scsi_is_ready call correctly from usb-msc to blockcmd src/blockcmd.c |

[SeaBIOS] [PATCH v2 03/16] usb-uhci: fix race against host controller

2011-11-17 Thread Paolo Bonzini
er happens in the IN direction). To fix this, at the end of the processing do not wait for each single TD to become inactive, but for the host controller to invalidate the element link (which implies it's done with all TDs). Signed-off-by: Paolo Bonzini --- Thanks Kevin for suggestin

Re: [SeaBIOS] [PATCH] USB-MSC: Support multiple LUN devices

2011-11-18 Thread Paolo Bonzini
On 10/16/2011 12:45 PM, Sven Schnelle wrote: +/* some SCSI commands have the LUN in CDB */ +if (data[0] == 0x08 || // READ(6) + data[0] == 0x12 || // INQUIRY + data[0] == 0x15 || // MODE SELECT(6) + data[0] == 0x55 || // MODE SELECT(10) + data[0] == 0x1A || // MODE

Re: [SeaBIOS] [PATCH] USB MSC: send START/STOP UNIT command before accessing device

2011-11-18 Thread Paolo Bonzini
On 10/16/2011 11:57 AM, Sven Schnelle wrote: Some USB Mass storage devices need this command before being accessed. request sense in error case and retry the last command in case it says 'Unit attention' If it says UNIT ATTENTION you do not need to do START STOP UNIT. Sending REQUEST SENSE wil

Re: [SeaBIOS] [PATCH 0/3] Additional USB fixes

2011-11-18 Thread Paolo Bonzini
er. src/usb-ehci.c | 70 --- src/usb-uhci.c |7 +++-- 2 files changed, 35 insertions(+), 42 deletions(-) I tested this with QEMU and it seems to work there. Reviewed-by: Paolo Bonzini Paolo ___ SeaBIOS mailing l

[SeaBIOS] [SeaBIOS PATCH] usb: fix boot paths

2011-11-18 Thread Paolo Bonzini
The fw paths for USB devices that SeaBIOS computes are off-by-one, because QEMU builds those paths with a numbering that starts from one (see usb_fill_port and usb_hub_initfn in QEMU). Fix that so that the numbering agrees. --- src/boot.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

Re: [SeaBIOS] [SeaBIOS PATCH] usb: fix boot paths

2011-11-18 Thread Paolo Bonzini
On 11/18/2011 03:59 PM, Paolo Bonzini wrote: The fw paths for USB devices that SeaBIOS computes are off-by-one, because QEMU builds those paths with a numbering that starts from one (see usb_fill_port and usb_hub_initfn in QEMU). Fix that so that the numbering agrees. Signed-off-by: Paolo

Re: [SeaBIOS] [PATCH 00/16] make SCSI and virtio layers more generic, fix usb-msc bugs

2011-11-20 Thread Paolo Bonzini
On 11/19/2011 01:49 AM, Kevin O'Connor wrote: Paolo in your last series, you indicated there were some LUN changes - but I didn't see it in the patches. Do you have something planned here also? I didn't have LUN changes, in fact I had a FIXME that the virtio-scsi driver was scanning just LUN0

Re: [SeaBIOS] [SeaBIOS PATCH] usb: fix boot paths

2011-11-21 Thread Paolo Bonzini
On 11/18/2011 04:36 PM, Paolo Bonzini wrote: On 11/18/2011 03:59 PM, Paolo Bonzini wrote: The fw paths for USB devices that SeaBIOS computes are off-by-one, because QEMU builds those paths with a numbering that starts from one (see usb_fill_port and usb_hub_initfn in QEMU). Fix that so that the

Re: [SeaBIOS] [PATCH RFC 1/7] Only use -fomit-frame-pointer with 32bit flat code

2011-12-16 Thread Paolo Bonzini
On 12/16/2011 03:15 PM, Julian Pidancet wrote: The real-mode emulator that Windows 7 uses to execute the vga bios rom becomes very confused when the code tries to dereference the stack pointer instead of using the frame pointer, leading to corruption of parameters passed on the stack from one fun

[SeaBIOS] [PATCH] disk: fail LBA I/O with zero sector count

2012-02-10 Thread Paolo Bonzini
Unlike basic_access, extended_access does not check for a zero sector count. However, this is a problem because for example it would be interpreted as 256 when processing an ATA request. Signed-off-by: Paolo Bonzini --- src/disk.c | 14 +- 1 files changed, 9 insertions(+), 5

Re: [SeaBIOS] [PATCH] disk: fail LBA I/O with zero sector count

2012-02-13 Thread Paolo Bonzini
On 02/11/2012 03:38 PM, Kevin O'Connor wrote: > Unlike basic_access, extended_access does not check for a zero > sector count. However, this is a problem because for example > it would be interpreted as 256 when processing an ATA request. Thanks. The EDD spec seems to imply that sending a zero

Re: [SeaBIOS] Time for a new release?

2012-02-14 Thread Paolo Bonzini
On 02/14/2012 02:35 PM, Kevin O'Connor wrote: On Thu, Feb 09, 2012 at 01:22:23PM +0100, Fred . wrote: Lots of stuff have been happening lately (namely VGA and VBE related stuff). Also some fixes. Perhaps it is time for a new release soon? It's a good question. I have some USB fixes I want to

Re: [SeaBIOS] SeaBIOS and Bochs?

2012-02-15 Thread Paolo Bonzini
On 02/15/2012 11:21 AM, Fred . wrote: > How about 286 though? SeaBIOS has 32-bit code, so no way. Paolo ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

[SeaBIOS] [PATCH] add virtio-scsi driver

2012-02-15 Thread Paolo Bonzini
virtio-scsi is a simple HBA that talks to the host via a single vring. The implementation looks like a hybrid of usb-msc and virtio-blk. Signed-off-by: Paolo Bonzini --- Makefile |2 +- src/Kconfig |6 ++ src/block.c |3 +- src/blockcmd.c|5 +- src

Re: [SeaBIOS] Time for a new release?

2012-02-15 Thread Paolo Bonzini
On 02/15/2012 02:46 AM, Kevin O'Connor wrote: >> > I would like to get virtio-scsi included. It would make sense to >> > have the QEMU side applied first, but perhaps it's not paramount now >> > that Rusty included the specification. > I don't recall seeing the seabios changes for virtio-scsi. I

Re: [SeaBIOS] [PATCH] add virtio-scsi driver

2012-02-15 Thread Paolo Bonzini
On 02/15/2012 02:35 PM, Laszlo Ersek wrote: > I've reviewed this patch for RHEL-6 and now diffed the RHEL-6 patch with > this one. I think the differences are all OK (source file list, handling > of the VIRTIO_SCSI config option, bdf vs. pci, contents of struct > virtio_scsi_config). Hm, no. I in

[SeaBIOS] [PATCH v2] add virtio-scsi driver

2012-02-15 Thread Paolo Bonzini
virtio-scsi is a simple HBA that talks to the host via a single vring. The implementation looks like a hybrid of usb-msc and virtio-blk. Signed-off-by: Paolo Bonzini --- Makefile |2 +- src/Kconfig |6 ++ src/block.c |3 +- src/blockcmd.c|5 +- src

Re: [SeaBIOS] [PATCH v2] add virtio-scsi driver

2012-02-16 Thread Paolo Bonzini
On 02/16/2012 02:36 PM, Kevin O'Connor wrote: > On Wed, Feb 15, 2012 at 03:42:22PM +0100, Paolo Bonzini wrote: >> virtio-scsi is a simple HBA that talks to the host via a single >> vring. The implementation looks like a hybrid of usb-msc and >> virtio-blk. > > Th

Re: [SeaBIOS] [PATCH] Register drives directly in scsi_init_drive().

2012-02-20 Thread Paolo Bonzini
On 02/19/2012 05:34 PM, Kevin O'Connor wrote: > The scsi_init_drive() function has enough information to directly > register the drive there, so do the registration there. This > simplifies the calling code. > > Signed-off-by: Kevin O'Connor > --- > > Paulo - this patch will conflict with your

[SeaBIOS] [PATCH v3] add virtio-scsi driver

2012-02-27 Thread Paolo Bonzini
virtio-scsi is a simple HBA that talks to the host via a single vring. The implementation looks like a hybrid of usb-msc and virtio-blk. Reviewed-by: Laszlo Ersek Signed-off-by: Paolo Bonzini --- On top of your patch "Register drives directly in scsi_init_drive()".

Re: [SeaBIOS] Booting from USB thumbdrives, older drives boot, newer drives don't.

2012-03-02 Thread Paolo Bonzini
Il 02/03/2012 01:34, Dave Frodin ha scritto: > On a related topic, I have a copy of the "Indispensable PC Hardware" book > that lists the return values for the mode page 4 request. It list the cyc/head > data as follows... > offset value > == >2 cyl(msb) >3 cyl >

Re: [SeaBIOS] Booting from USB thumbdrives, older drives boot, newer drives don't.

2012-03-05 Thread Paolo Bonzini
Il 04/03/2012 19:49, Kevin O'Connor ha scritto: >> > The sg_modes command has a "-a" option to dump out all of the supported >> > page codes >> >- it reports that none of the thumbdrives (tested 9) support page code >> > = 4 >> >- it reports that most of the thumbdrives (tested 9) suppor

[SeaBIOS] [PATCH] scsi: do not send MODE SENSE except to QEMU disks

2012-03-05 Thread Paolo Bonzini
in Signed-off-by: Paolo Bonzini --- src/blockcmd.c | 36 +++- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/blockcmd.c b/src/blockcmd.c index 2769573..b4a1e37 100644 --- a/src/blockcmd.c +++ b/src/blockcmd.c @@ -139,19 +139,29 @@ scsi_

Re: [SeaBIOS] Next stable release

2012-03-06 Thread Paolo Bonzini
Il 06/03/2012 00:50, Kevin O'Connor ha scritto: > I plan to backport the 5 fixes below to the stable branch and tag it > as v1.6.3.2. Let me know if there are any concerns or additional > changes needed. The MODE SENSE change would be a good candidate. Paolo ___

Re: [SeaBIOS] XP install cores with SCSI LSI 53C895A disks

2012-03-09 Thread Paolo Bonzini
Il 09/03/2012 08:35, Gerd Hoffmann ha scritto: > Is INT13h supported for legacy OS and to boot? Future? But as far as > I saw implemented in seabios, right? Yes, Kevin (O' Connor, not Wolf) integrated the patch this week. It will also be in Fedora 17. > What BIOS translation is used? Buslogic? L

Re: [SeaBIOS] usb-msc.c: TEST_UNIT_READY needs USB_DIR_OUT?

2012-03-14 Thread Paolo Bonzini
Il 14/03/2012 21:53, Peter Stuge ha scritto: > > 2. Will this break anything else? > > I'm sure it will break plenty of other non-compliant USB MSC devices > which also do not ignore the direction bit and require it to be 1. Linux FWIW always sets it to 0 for DMA_NONE SCSI commands. So I think

Re: [SeaBIOS] usb-msc.c: TEST_UNIT_READY needs USB_DIR_OUT?

2012-03-15 Thread Paolo Bonzini
m = (len ? 3 : 2) - out_num; >> @@ -89,7 +90,7 @@ virtio_scsi_cmd_data(struct disk_op_s *op, void *cdbcmd, >> u16 blocksize) >> return virtio_scsi_cmd(GET_GLOBAL(vlun->ioaddr), >> GET_GLOBAL(vlun->vq), op, cdbcmd, >>

Re: [SeaBIOS] usb-msc.c: TEST_UNIT_READY needs USB_DIR_OUT?

2012-03-16 Thread Paolo Bonzini
Il 15/03/2012 02:31, Kevin O'Connor ha scritto: > On Wed, Mar 14, 2012 at 01:02:39PM -0600, Steve Goodrich wrote: >> I've been working with coreboot and SeaBIOS lately to try to get a platform >> working, including having boot capability using an SD-to-USB adapter. I got >> stuck on this last part

Re: [SeaBIOS] CD-ROM boot broken on current revision?

2012-03-19 Thread Paolo Bonzini
Il 18/03/2012 22:47, fel...@gmx.net ha scritto: > Hi, > > I'm a new subscriber to seabios.org. Not much exp. with mailing lists > nor C++, so feel free to straighten me out as necessary. I found out an > issue: Booting from CD-ROM doesn't work anymore, though related make > options have been set.

[SeaBIOS] [PATCH] ata: send TEST UNIT READY correctly

2012-03-19 Thread Paolo Bonzini
boot failures. Signed-off-by: Paolo Bonzini --- src/ata.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ata.c b/src/ata.c index 76e4f20..c37691a 100644 --- a/src/ata.c +++ b/src/ata.c @@ -645,13 +645,15 @@ atapi_cmd_data(struct disk_op_s *op, void *cdbcmd

Re: [SeaBIOS] [Qemu-devel] SeaVGABIOS and winxp

2012-04-16 Thread Paolo Bonzini
Il 16/04/2012 02:44, Peter Stuge ha scritto: > Michael Tokarev wrote: >> Maybe this Standard VGA should be named something like Old VGA? > > IBM PC/XT/AT 128K VGA ? FWIW, the first VGA was for the PS/2 and had 256K of VRAM. "IBM VGA" is probably good enough... Paolo __

Re: [SeaBIOS] [PATCH 2/2] Get system state configuration from QEMU and patcth DSDT with it.

2012-05-16 Thread Paolo Bonzini
Il 16/05/2012 15:46, Gleb Natapov ha scritto: > I saw that, but I don't get why doing it this way instead of defining > the object in AML and patching it? I can define Name(S4VL, 0x2) and path > 0x2 to whatever QEMU wants me to use, or I can patch Package directly > like I did. > Can we build an

Re: [SeaBIOS] [PATCH 2/2] Get system state configuration from QEMU and patcth DSDT with it.

2012-05-16 Thread Paolo Bonzini
Il 16/05/2012 18:40, Gleb Natapov ha scritto: > On Wed, May 16, 2012 at 05:50:31PM +0200, Paolo Bonzini wrote: >> Il 16/05/2012 15:46, Gleb Natapov ha scritto: >>> I saw that, but I don't get why doing it this way instead of defining >>> the object in AML and pat

Re: [SeaBIOS] [PATCH 2/2] Get system state configuration from QEMU and patcth DSDT with it.

2012-05-17 Thread Paolo Bonzini
Il 17/05/2012 02:24, Kevin O'Connor ha scritto: >> > Can we build an SSDT that includes the contents of fw_cfg (e.g. >> > FW_CFG_SIGNATURE at offset 0, FW_CFG_UUID at offset 4, FW_CFG_NOGRAPHIC >> > at offset 16... the entry <-> offset mapping and the defaults would be >> > part of SeaBIOS), and th

Re: [SeaBIOS] [PATCH] Support USB MSC devices with multiples LUNs

2012-06-12 Thread Paolo Bonzini
Il 12/06/2012 03:32, Kevin O'Connor ha scritto: > -int bootprio_find_usb(struct usbdevice_s *usbdev) > +int bootprio_find_usb(struct usbdevice_s *usbdev, int lun) > { > if (!CONFIG_BOOTORDER) > return -1; > -// Find usb - for example: /pci@i0cf8/usb@1,2/hub@1/network@0/ethernet@0

Re: [SeaBIOS] [PATCH] Support USB MSC devices with multiples LUNs

2012-06-12 Thread Paolo Bonzini
Il 13/06/2012 01:14, Kevin O'Connor ha scritto: > On Tue, Jun 12, 2012 at 06:21:39PM +0200, Paolo Bonzini wrote: >> Il 12/06/2012 03:32, Kevin O'Connor ha scritto: >>> -int bootprio_find_usb(struct usbdevice_s *usbdev) >>> +int bootprio_find_us

Re: [SeaBIOS] [PATCH] Support USB MSC devices with multiples LUNs

2012-06-12 Thread Paolo Bonzini
Il 13/06/2012 08:33, Kevin O'Connor ha scritto: >> > It's also something like /pci@i0cf8/usb@1,2/*@1, but * could be usb-host >> > or usb-redir (the latter for USB-over-IP). > Well, if we know it will always start with "usb-" (instead of > "storage") then we can limit to that. See the incremental

Re: [SeaBIOS] [BUG] BSOD on Win2003 Server when 64bit PCI resource is present

2012-07-29 Thread Paolo Bonzini
Il 26/07/2012 17:38, Alexey Korolev ha scritto: > If I add any DBUG call in acpi-dst it will cause BSOD on win2003 (win2008 > works fine) You can try inlining it (in practice this means adding simple Store(0x41, DBGB) here and there). Paolo ___ SeaBIO

[SeaBIOS] [PATCH 6/6] acpi: build PCI hotplug devices from a single template

2012-07-31 Thread Paolo Bonzini
need to keep a separate SSDT for PCI hotplug. Everything can reside in the same table. Signed-off-by: Paolo Bonzini --- On top of this: do we actually need the S01/S02 devices? Their address is a duplicate of \_SB.PCI0.ISA and \_SB.PCI0.VGA's; and they are never removab

[SeaBIOS] [PATCH 0/6] Build PCI hotplug SSDT from a single template

2012-07-31 Thread Paolo Bonzini
simple rename and patch 4 fixes a bug in acpi_extract. Patches 5 and 6 finally do the movement. Paolo Bonzini (6): acpi: move PCNT to DSDT acpi: move s3/s4/s5 to build_ssdt acpi: rename Processor SSDT constants acpi_extract: fix off-by-one acpi_extract: detect DeviceOp acpi: build PCI

[SeaBIOS] [PATCH 2/6] acpi: move s3/s4/s5 to build_ssdt

2012-07-31 Thread Paolo Bonzini
-off-by: Paolo Bonzini --- Makefile |2 +- src/acpi.c | 41 - src/ssdt-pcihp.dsl | 36 src/ssdt-susp.dsl | 41 + 4 files changed, 66 insertions(+), 54

[SeaBIOS] [PATCH 5/6] acpi_extract: detect DeviceOp

2012-07-31 Thread Paolo Bonzini
The DeviceOp AML opcode has more or less the same structure as ProcessorOp, except that there is no processor ID. Signed-off-by: Paolo Bonzini --- tools/acpi_extract.py | 28 1 file changed, 28 insertions(+) diff --git a/tools/acpi_extract.py b/tools

[SeaBIOS] [PATCH 1/6] acpi: move PCNT to DSDT

2012-07-31 Thread Paolo Bonzini
The PCNT method does not need any patching, so it can stay in the DSDT if we add an External declaration. The AML code size does not change. Signed-off-by: Paolo Bonzini --- src/acpi-dsdt.dsl | 39 +-- src/ssdt-pcihp.dsl | 37

[SeaBIOS] [PATCH 4/6] acpi_extract: fix off-by-one

2012-07-31 Thread Paolo Bonzini
Single-byte package length values do use bits 4-5, and this will happen with the PCI hotplug devices. pkglenbytes has not yet been decremented, so multi-byte values are detected with pkglenbytes > 1. Signed-off-by: Paolo Bonzini --- tools/acpi_extract.py |2 +- 1 file changed, 1 insert

[SeaBIOS] [PATCH 3/6] acpi: rename Processor SSDT constants

2012-07-31 Thread Paolo Bonzini
A simple rename, to prepare for the later introduction of similar constants for PCI slots. Signed-off-by: Paolo Bonzini --- src/acpi.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/acpi.c b/src/acpi.c index e6a7ef5..906237c 100644 --- a

Re: [SeaBIOS] [PATCH] Add an IPMI SMBIOS entry

2012-07-31 Thread Paolo Bonzini
Il 31/07/2012 15:33, Corey Minyard ha scritto: >> > I considered that, but that seems like a more brittle interface. New > fields may need to be added in the future. I'll look at the file > interface, but I would think it would be best to have something that > could be added to. Just format it as

Re: [SeaBIOS] [PATCH 6/6] acpi: build PCI hotplug devices from a single template

2012-08-01 Thread Paolo Bonzini
Il 01/08/2012 02:46, Kevin O'Connor ha scritto: > I agree with this patch series. A couple of questions - why not > create the Notify stuff dynamically (as CPU hotplug does) instead of > moving it back to the dsdt? For no particular reason, except that I aimed at 100% correspondence with the exis

Re: [SeaBIOS] [PATCH 2/6] acpi: move s3/s4/s5 to build_ssdt

2012-08-01 Thread Paolo Bonzini
Il 01/08/2012 10:05, Igor Mammedov ha scritto: > On 07/31/2012 11:52 AM, Paolo Bonzini wrote: >> Move the _S3/_S4/_S5 packages out of ssdt-pcihp.dsl and into a separate >> file. Correspondingly, move the patching from build_pcihp to build_ssdt. >> Place this part at the

[SeaBIOS] [PATCH v2 3/6] acpi_extract: fix off-by-one

2012-08-02 Thread Paolo Bonzini
Single-byte package length values do use bits 4-5, and this will happen with the PCI hotplug devices. pkglenbytes has not yet been decremented, so multi-byte values are detected with pkglenbytes > 1. Signed-off-by: Paolo Bonzini --- tools/acpi_extract.py |2 +- 1 file changed, 1 insert

[SeaBIOS] [PATCH v2 4/6] acpi_extract: detect DeviceOp

2012-08-02 Thread Paolo Bonzini
The DeviceOp AML opcode has more or less the same structure as ProcessorOp, except that there is no processor ID. Signed-off-by: Paolo Bonzini --- tools/acpi_extract.py | 28 1 file changed, 28 insertions(+) diff --git a/tools/acpi_extract.py b/tools

[SeaBIOS] [PATCH v2 0/6] Build PCI hotplug SSDT from a single template

2012-08-02 Thread Paolo Bonzini
rename and patch 3 fixes a bug in acpi_extract. Patches 4 to 6 finally do the movement. v1->v2: document computation of length (patch 1, Igor) build PCNT dynamically (Kevin) Paolo Bonzini (6): acpi: move s3/s4/s5 to build_ssdt acpi: rename Processor SSDT constants acpi_extract: fix

[SeaBIOS] [PATCH v2 5/6] acpi: build PCNT dynamically

2012-08-02 Thread Paolo Bonzini
We already build the CPU notification method in src/acpi.c, and we can reuse most of the code for PCI hotplug. Signed-off-by: Paolo Bonzini --- src/acpi.c | 68 +++- src/ssdt-pcihp.dsl | 37 2 files changed

[SeaBIOS] [PATCH v2 6/6] acpi: build PCI hotplug devices from a single template

2012-08-02 Thread Paolo Bonzini
need to keep a separate SSDT for PCI hotplug. Everything can reside in the same table. Signed-off-by: Paolo Bonzini --- src/acpi.c | 83 src/ssdt-pcihp.dsl | 51 2 files changed, 50 insertions(+), 84

[SeaBIOS] [PATCH v2 2/6] acpi: rename Processor SSDT constants

2012-08-02 Thread Paolo Bonzini
A simple rename, to prepare for the later introduction of similar constants for PCI slots. Signed-off-by: Paolo Bonzini --- src/acpi.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/acpi.c b/src/acpi.c index 641781f..7d22d22 100644 --- a

[SeaBIOS] [PATCH v2 1/6] acpi: move s3/s4/s5 to build_ssdt

2012-08-02 Thread Paolo Bonzini
-off-by: Paolo Bonzini --- Makefile |2 +- src/acpi.c | 50 -- src/ssdt-pcihp.dsl | 36 src/ssdt-susp.dsl | 41 + 4 files changed, 70 insertions

  1   2   3   4   5   >