Re: [Qemu-block] [Qemu-devel] [PATCH 1/3] scsi-disk: Don't use empty string as device id

2019-01-29 Thread Philippe Mathieu-Daudé
> as separate disks again. > > Signed-off-by: Kevin Wolf Reviewed-by: Philippe Mathieu-Daudé > --- > hw/scsi/scsi-disk.c | 14 -- > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c > index 0e9027c8f

Re: [Qemu-block] [Qemu-devel] [PATCH 2/2] hw/arm/virt: Support firmware configuration with -blockdev

2019-04-11 Thread Philippe Mathieu-Daudé
On 4/11/19 3:56 PM, Markus Armbruster wrote: > The ARM virt machines put firmware in flash memory. To configure it, > you use -drive if=pflash,unit=0,... and optionally -drive > if=pflash,unit=1,... > > Why two -drive? This permits setting up one part of the flash memory > read-only, and the

Re: [Qemu-block] [Qemu-devel] [PATCH 1/2] pflash_cfi01: New pflash_cfi01_legacy_drive()

2019-04-12 Thread Philippe Mathieu-Daudé
t;drive", > +blk_by_legacy_dinfo(pflash_drv), _fatal); > loc_pop(); > } > > +for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { > +pflash_blk[i] = blk_by_legacy_dinfo(pflash_drv); > +} > + > /* Reject gaps */ > for (i = 1; i < ARRAY_SIZE(pcms->flash); i++) { > if (pflash_blk[i] && !pflash_blk[i - 1]) { > -- 2.17.2 Works for me! Reviewed-by: Philippe Mathieu-Daudé

Re: [Qemu-block] [PATCH v2 2/3] pflash_cfi01: New pflash_cfi01_legacy_drive()

2019-04-16 Thread Philippe Mathieu-Daudé
80,18 +278,8 @@ void pc_system_firmware_init(PCMachineState *pcms, > > /* Map legacy -drive if=pflash to machine properties */ > for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { > -pflash_drv = drive_get(IF_PFLASH, 0, i); > -if (pflash_drv) { > -lo

Re: [Qemu-block] [PATCH v2 1/3] pc: Rearrange pc_system_firmware_init()'s legacy -drive loop

2019-04-16 Thread Philippe Mathieu-Daudé
th -machine"); > -exit(1); > -} > -pflash_blk[i] = blk_by_legacy_dinfo(pflash_drv); > -qdev_prop_set_drive(DEVICE(pcms->flash[i]), > - "drive", pflash_blk[i], _fatal); > -loc_pop(); > +pflash_blk[i] = pflash_cfi01_get_blk(pcms->flash[i]); > } > > /* Reject gaps */ > Reviewed-by: Philippe Mathieu-Daudé

Re: [Qemu-block] [PATCH v4 13/15] mips_malta: Clean up definition of flash memory size somewhat

2019-03-08 Thread Philippe Mathieu-Daudé
by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé > --- > hw/mips/mips_malta.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c > index 4dfe06a1a0..2f20f56458 100644 > --- a/hw/mips/mips_malta.c > ++

Re: [Qemu-block] [Qemu-devel] [PATCH v6] ssh: switch from libssh2 to libssh

2019-06-07 Thread Philippe Mathieu-Daudé
On 6/7/19 12:08 PM, Daniel P. Berrangé wrote: > On Thu, Jun 06, 2019 at 07:51:15PM +0200, Pino Toscano wrote: >> On Thursday, 6 June 2019 13:12:32 CEST Daniel P. Berrangé wrote: >>> On Wed, Jun 05, 2019 at 11:36:54PM +0200, Pino Toscano wrote: Rewrite the implementation of the ssh block

Re: [Qemu-block] [Qemu-devel] [PATCH v9] ssh: switch from libssh2 to libssh

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/13/19 8:18 PM, Paolo Bonzini wrote: > On 13/06/19 19:15, Philippe Mathieu-Daudé wrote: >> >> On 6/13/19 6:24 PM, no-re...@patchew.org wrote: >>> === TEST SCRIPT BEGIN === >>> #!/bin/bash >>> time make docker-test-debug@fedora TARGET_LIST=x86_64-soft

Re: [Qemu-block] [Qemu-devel] [PATCH 0/6] configure: Try to fix --static linking

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/14/19 4:30 PM, Peter Maydell wrote: > On Fri, 14 Jun 2019 at 14:58, Alex Bennée wrote: > >> It would be nice to have a --static-user config flag and deprecate the >> --static flag. I don't think there is a decent use case for system >> emulation targets. > > It would be really tricky to

Re: [Qemu-block] [PATCH v9] ssh: switch from libssh2 to libssh

2019-06-14 Thread Philippe Mathieu-Daudé
e testing is dropped for now, as there >> are no packages for it. >> >> Signed-off-by: Pino Toscano >> Tested-by: Philippe Mathieu-Daudé >> Acked-by: Alex Bennée >> --- > > Can confirm that this runs much faster than the last version I tested. > 197 an

Re: [Qemu-block] [PATCH v9] ssh: switch from libssh2 to libssh

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/14/19 4:34 PM, Max Reitz wrote: > On 14.06.19 16:29, Pino Toscano wrote: >> On Thursday, 13 June 2019 21:31:40 CEST Max Reitz wrote: >>> On 13.06.19 15:20, Pino Toscano wrote: [...] -case LIBSSH2_KNOWNHOST_CHECK_NOTFOUND: +case SSH_KNOWN_HOSTS_OTHER: ret =

Re: [Qemu-block] [PATCH v9] ssh: switch from libssh2 to libssh

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/14/19 4:30 PM, Max Reitz wrote: > On 14.06.19 16:26, Philippe Mathieu-Daudé wrote: >> On 6/13/19 9:31 PM, Max Reitz wrote: >>> On 13.06.19 15:20, Pino Toscano wrote: >>>> Rewrite the implementation of the ssh block driver to use libssh instead >>>> o

Re: [Qemu-block] [PATCH v6] ssh: switch from libssh2 to libssh

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/14/19 2:29 PM, Stefan Weil wrote: > On 14.06.19 12:13, Philippe Mathieu-Daudé wrote: >> I agree with Kevin. The only user of the 'ssh' block driver that I am >> aware of is the virt-v2v tool: >> >> http://libguestfs.org/virt-v2v.1.html#convert-from-esxi-hyperviso

Re: [Qemu-block] [Qemu-devel] [PATCH v4 04/10] block/pflash_cfi02: Implement intereleaved flash devices

2019-06-22 Thread Philippe Mathieu-Daudé
Hi Stephen, This series haven't fall through the cracks, however it is taking me longer than expected to review it. On 4/26/19 6:26 PM, Stephen Checkoway wrote: > It's common for multiple narrow flash chips to be hooked up in parallel > to support wider buses. For example, four 8-bit wide flash

Re: [Qemu-block] [Qemu-devel] [PATCH v4 04/10] block/pflash_cfi02: Implement intereleaved flash devices

2019-06-24 Thread Philippe Mathieu-Daudé
On 6/22/19 2:25 PM, Philippe Mathieu-Daudé wrote: > Hi Stephen, > > This series haven't fall through the cracks, however it is taking me > longer than expected to review it. > > On 4/26/19 6:26 PM, Stephen Checkoway wrote: >> It's common for multiple narrow fla

Re: [Qemu-block] [Qemu-devel] [PATCH v8 03/10] dp8393x: manage big endian bus

2019-06-25 Thread Philippe Mathieu-Daudé
big-endian bus. >> >> Signed-off-by: Laurent Vivier >> Tested-by: Hervé Poussineau >> Reviewed-by: Philippe Mathieu-Daudé >> Reviewed-by: Hervé Poussineau >> --- >> hw/net/dp8393x.c | 88 +++- >> 1 f

Re: [Qemu-block] [PATCH v8] ssh: switch from libssh2 to libssh

2019-06-13 Thread Philippe Mathieu-Daudé
Hi Pino, Please Cc the different maintainers (doing that for you). On 6/13/19 8:11 AM, Pino Toscano wrote: > Rewrite the implementation of the ssh block driver to use libssh instead > of libssh2. The libssh library has various advantages over libssh2: > - easier API for authentication (for

Re: [Qemu-block] [PATCH v6] ssh: switch from libssh2 to libssh

2019-06-12 Thread Philippe Mathieu-Daudé
Cc'ing Alex (Docker, Travis) and Stefan (MinGW) On 6/5/19 11:36 PM, Pino Toscano wrote: > Rewrite the implementation of the ssh block driver to use libssh instead > of libssh2. The libssh library has various advantages over libssh2: > - easier API for authentication (for example for using

Re: [Qemu-block] [PATCH v9] ssh: switch from libssh2 to libssh

2019-06-13 Thread Philippe Mathieu-Daudé
ed25519) that are used by default with OpenSSH >= 6.7 > and libssh >= 0.7.0. > > Adjust the various Docker/Travis scripts to use libssh when available > instead of libssh2. The mingw/mxe testing is dropped for now, as there > are no packages for it. > > Signed-off-by

Re: [Qemu-block] [Qemu-devel] [PATCH v9] ssh: switch from libssh2 to libssh

2019-06-13 Thread Philippe Mathieu-Daudé
On 6/13/19 6:24 PM, no-re...@patchew.org wrote: > === TEST SCRIPT BEGIN === > #!/bin/bash > time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 > === TEST SCRIPT END === > The full log is available at >

Re: [Qemu-block] [PATCH v7] ssh: switch from libssh2 to libssh

2019-06-12 Thread Philippe Mathieu-Daudé
Hi Pino, On 6/12/19 4:48 PM, Pino Toscano wrote: > Rewrite the implementation of the ssh block driver to use libssh instead > of libssh2. The libssh library has various advantages over libssh2: > - easier API for authentication (for example for using ssh-agent) > - easier API for known_hosts

Re: [Qemu-block] [PATCH 2/6] configure: Link test before auto-enabling glusterfs libraries

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/14/19 9:24 AM, Philippe Mathieu-Daudé wrote: > Similarly to commit a73e82ef912, test the libraries link correctly > before considering them as usable. > > This fixes using ./configure --static on Ubuntu 18.04: > > $ make subdir-aarch64-softmmu > [...] > LINK

Re: [Qemu-block] [PATCH 0/6] configure: Try to fix --static linking

2019-06-14 Thread Philippe Mathieu-Daudé
On 6/14/19 9:24 AM, Philippe Mathieu-Daudé wrote: > Hi, > > Apparently QEMU static linking is slowly bitroting. Obviously it > depends the libraries an user has installed, anyway it seems there > are not much testing done. > > This series fixes few issues, enough to b

Re: [Qemu-block] [PATCH v11] ssh: switch from libssh2 to libssh

2019-06-20 Thread Philippe Mathieu-Daudé
> Signed-off-by: Pino Toscano > Tested-by: Philippe Mathieu-Daudé > Acked-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé > --- > > Changes from v10: > - improve error message for key mismatch > - integrate Max Reitz' fix to iotest 207 to detect the key type used by

Re: [Qemu-block] [Qemu-devel] [PATCH v8 01/10] escc: introduce a selector for the register bit

2019-06-21 Thread Philippe Mathieu-Daudé
g and this model slowly becomes another Frankenstein. The SCC core is a monster anyway. I'm glad you could resolve your issue with this easy fix. > Signed-off-by: Laurent Vivier > Reviewed-by: Hervé Poussineau > Reviewed-by: Thomas Huth Reviewed-by: Philippe Math

Re: [Qemu-block] [Qemu-devel] [PATCH] nvme: add Get/Set Feature Timestamp support

2019-05-14 Thread Philippe Mathieu-Daudé
Hi Kenneth, On 4/5/19 11:41 PM, Kenneth Heitke wrote: > Signed-off-by: Kenneth Heitke > --- > hw/block/nvme.c | 120 +- > hw/block/nvme.h | 3 ++ > hw/block/trace-events | 2 + > include/block/nvme.h | 2 + > 4 files changed, 125

Re: [Qemu-block] [PATCH v2 3/8] tests/qemu-iotests/check: Pick a default machine if necessary

2019-05-01 Thread Philippe Mathieu-Daudé
t instead. > > Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/check | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check > index f9c24b6753

Re: [Qemu-block] [PATCH v2 5/8] cirrus / travis: Add gnu-sed and bash for macOS and FreeBSD

2019-05-01 Thread Philippe Mathieu-Daudé
On 4/28/19 5:54 PM, Thomas Huth wrote: > We are going to enable the qemu-iotests during "make check" again, > and for running the iotests, we need bash and gnu-sed. > > Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé > --- > .cirrus.yml | 4 ++-- >

Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 16/29] hw/arm: Express dependencies of the virt machine with Kconfig

2019-04-29 Thread Philippe Mathieu-Daudé
On 4/29/19 6:02 PM, Thomas Huth wrote: > On 29/04/2019 17.53, Peter Maydell wrote: >> On Mon, 29 Apr 2019 at 16:34, Thomas Huth wrote: >>> >>> On 25/04/2019 17.53, Philippe Mathieu-Daudé wrote: >>>> Hi Thomas, >>>> >>>> On 4

Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 10/29] hw/arm: Express dependencies of stellaris with Kconfig

2019-04-29 Thread Philippe Mathieu-Daudé
On 4/29/19 9:25 PM, Thomas Huth wrote: > On 25/04/2019 23.41, Philippe Mathieu-Daudé wrote: >> Hi Thomas, >> >> On 4/18/19 8:00 PM, Thomas Huth wrote: >>> This patch is slightly based on earlier work by Ákos Kovács (i.e. >>> his "hw/arm/Kconfig:

Re: [Qemu-block] [Qemu-devel] [PATCH v6 30/30] hw/arm: Remove hard-enablement of the remaining PCI devices

2019-04-30 Thread Philippe Mathieu-Daudé
On 4/30/19 9:14 AM, Thomas Huth wrote: > The PCI devices should be pulled in by default if PCI_DEVICES > is set, so there is no need anymore to enforce them in the configs > file. > > Tested-by: Philippe Mathieu-Daudé > Signed-off-by: Thomas Huth > --- > default-con

Re: [Qemu-block] [Qemu-devel] [PATCH v6 11/30] hw/arm: Express dependencies of stellaris with Kconfig

2019-04-30 Thread Philippe Mathieu-Daudé
On 4/30/19 9:13 AM, Thomas Huth wrote: > This patch is slightly based on earlier work by Ákos Kovács (i.e. > his "hw/arm/Kconfig: Add ARM Kconfig" patch). > > Tested-by: Philippe Mathieu-Daudé > Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé >

Re: [Qemu-block] [PATCH 5/5] hw/block/pflash_cfi02: Add the DeviceReset() handler

2019-05-06 Thread Philippe Mathieu-Daudé
On 5/6/19 5:17 PM, Laszlo Ersek wrote: > On 05/05/19 22:06, Philippe Mathieu-Daudé wrote: >> The pflash device is a child of TYPE_DEVICE, so it can implement >> the DeviceReset handler. Actually it has to implement it, else >> on machine reset it might stay in an incohe

Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 02/29] hw/ide/ahci: Add a Kconfig switch for the AHDI-ICH9 device

2019-04-20 Thread Philippe Mathieu-Daudé
; > We must only compile ich.c if CONFIG_PCI is available, too, so introduce a > new config switch for this device. > > Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé > --- > hw/ide/Kconfig | 6 +- > hw/ide/Makefile.objs | 2 +- > 2 files chan

Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 23/29] hw/arm: Express dependencies of the MSF2 / EMCRAFT_SF2 machine with Kconfig

2019-04-20 Thread Philippe Mathieu-Daudé
On 4/18/19 8:00 PM, Thomas Huth wrote: > Add Kconfig dependencies for the emcraft-sf2 machine - we also > distinguish between the machine (CONFIG_EMCRAFT_SF2) and the SoC > (CONFIG_MSF2) now. Thanks! > > Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé > ---

Re: [Qemu-block] [PATCH v4 02/10] block/pflash_cfi02: Refactor, NFC intended

2019-05-06 Thread Philippe Mathieu-Daudé
On 4/26/19 6:26 PM, Stephen Checkoway wrote: > Simplify and refactor for upcoming commits. In particular, pull out all > of the code to modify the status into simple helper functions. Status > handling becomes more complex once multiple chips are interleaved to > produce a single device. > > No

Re: [Qemu-block] [Qemu-devel] [QEMU PATCH] MAINTAINERS: Downgrade status of block sections without "M:" to "Odd Fixes"

2019-05-06 Thread Philippe Mathieu-Daudé
: block/ssh.c > > CURL > L: qemu-block@nongnu.org > -S: Supported > +S: Odd Fixes > F: block/curl.c Fair enough. > GLUSTER > L: qemu-block@nongnu.org > -S: Supported > +L: integrat...@gluster.org > +S: Odd Fixes > F: block/gluster.c Reviewed-by: Philippe Mathieu-Daudé

Re: [Qemu-block] [PATCH 1/5] hw/block/pflash_cfi01: Removed an unused timer

2019-05-06 Thread Philippe Mathieu-Daudé
On 5/6/19 4:39 PM, Laszlo Ersek wrote: > On 05/05/19 22:05, Philippe Mathieu-Daudé wrote: >> The 'CFI01' NOR flash was introduced in commit 29133e9a0fff, with >> timing modelled. One year later, the CFI02 model was introduced >> (commit 05ee37ebf630) based on the

Re: [Qemu-block] [PATCH 4/5] hw/block/pflash_cfi02: Extract the pflash_reset() code

2019-05-06 Thread Philippe Mathieu-Daudé
On 5/6/19 4:57 PM, Laszlo Ersek wrote: > On 05/05/19 22:06, Philippe Mathieu-Daudé wrote: >> The reset() code is used in various places, refactor it. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> hw/block/pflash_cfi02.c | 25 +++--

[Qemu-block] [PATCH 3/5] hw/block/pflash_cfi01: Add the DeviceReset() handler

2019-05-05 Thread Philippe Mathieu-Daudé
the realize() function. Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1678713 Reported-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c

[Qemu-block] [PATCH 0/5] hw/block/pflash: Add DeviceReset() handlers

2019-05-05 Thread Philippe Mathieu-Daudé
by this series. Regards, Phil. Philippe Mathieu-Daudé (5): hw/block/pflash_cfi01: Removed an unused timer hw/block/pflash_cfi01: Extract the pflash_reset() code hw/block/pflash_cfi01: Add the DeviceReset() handler hw/block/pflash_cfi02: Extract the pflash_reset() code hw/block/pflash_cfi02

[Qemu-block] [PATCH 1/5] hw/block/pflash_cfi01: Removed an unused timer

2019-05-05 Thread Philippe Mathieu-Daudé
ings. Time to remove the unused timer, we can still add it back if required. Suggested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- Yes, I plan to model those timings later. Actually I have a series working, but I'd rather first 1/ refactor common code between the both CFI implemen

[Qemu-block] [PATCH 2/5] hw/block/pflash_cfi01: Extract the pflash_reset() code

2019-05-05 Thread Philippe Mathieu-Daudé
The reset() code is used in various places, refactor it. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 6dc04f156a7..073cd14978f

[Qemu-block] [PATCH 4/5] hw/block/pflash_cfi02: Extract the pflash_reset() code

2019-05-05 Thread Philippe Mathieu-Daudé
The reset() code is used in various places, refactor it. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index f2c6201f813

[Qemu-block] [PATCH 5/5] hw/block/pflash_cfi02: Add the DeviceReset() handler

2019-05-05 Thread Philippe Mathieu-Daudé
the realize() function. Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1678713 Reported-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index f321b74433c

Re: [Qemu-block] [PATCH v4 10/10] block/pflash_cfi02: Use the chip erase time specified in the CFI table

2019-05-05 Thread Philippe Mathieu-Daudé
<< pfl->cfi_table[0x22]) * SCALE_MS); > break; > case 0x30: > /* Sector erase */ > Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé

[Qemu-block] [PATCH 00/13] hw/block/pflash_cfi02: Clean-up and fixes

2019-05-05 Thread Philippe Mathieu-Daudé
ter. Regards, Phil. [*] https://lists.gnu.org/archive/html/qemu-devel/2019-04/msg04595.html Philippe Mathieu-Daudé (10): tests/pflash-cfi02: Use the GLib API tests/pflash-cfi02: Use IEC binary prefixes for size constants hw/block/pflash_cfi02: Fix debug format string hw/block/pflas

[Qemu-block] [PATCH 01/13] tests/pflash-cfi02: Add test for supported CFI commands

2019-05-05 Thread Philippe Mathieu-Daudé
Checkoway Message-Id: <20190426162624.55977-2-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: reworded the patch subject] Signed-off-by: Philippe Mathieu-Daudé --- tests/Makefile.include| 2 + tests/pflash-cfi02-test.c

[Qemu-block] [PATCH 02/13] tests/pflash-cfi02: Use the GLib API

2019-05-05 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- tests/pflash-cfi02-test.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/tests/pflash-cfi02-test.c b/tests/pflash-cfi02-test.c index 40af1bb523e..ff775618c02 100644 --- a/tests/pflash-cfi02-test.c +++ b

[Qemu-block] [PATCH 09/13] hw/block/pflash_cfi02: Use the ldst API in pflash_read()

2019-05-05 Thread Philippe Mathieu-Daudé
The load/store API eases code review. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé -

[Qemu-block] [PATCH 07/13] hw/block/pflash_cfi02: Simplify a statement using fall through

2019-05-05 Thread Philippe Mathieu-Daudé
Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 6 +++---

[Qemu-block] [PATCH 10/13] hw/block/pflash_cfi02: Extract the pflash_data_read() function

2019-05-05 Thread Philippe Mathieu-Daudé
Extract the code block in a new function, remove a goto statement. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch, remove the XXX t

[Qemu-block] [PATCH 05/13] hw/block/pflash_cfi02: Add an enum to define the write cycles

2019-05-05 Thread Philippe Mathieu-Daudé
No change in functionality is intended with this commit. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe M

[Qemu-block] [PATCH 04/13] hw/block/pflash_cfi02: Fix debug format string

2019-05-05 Thread Philippe Mathieu-Daudé
Always compile the debug code to prevent format string to bitrot. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch, use PRIx32] Sign

[Qemu-block] [PATCH 08/13] hw/block/pflash_cfi02: Use the ldst API in pflash_write()

2019-05-05 Thread Philippe Mathieu-Daudé
The load/store API eases code review. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé -

[Qemu-block] [PATCH 03/13] tests/pflash-cfi02: Use IEC binary prefixes for size constants

2019-05-05 Thread Philippe Mathieu-Daudé
Using IEC binary prefixes in order to make the code more readable. Signed-off-by: Philippe Mathieu-Daudé --- tests/pflash-cfi02-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/pflash-cfi02-test.c b/tests/pflash-cfi02-test.c index ff775618c02..3c37465499a

[Qemu-block] [PATCH 13/13] hw/block/pflash_cfi02: Use the chip erase time specified in the CFI table

2019-05-05 Thread Philippe Mathieu-Daudé
-by: Stephen Checkoway Message-Id: <20190426162624.55977-11-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Prepend 'hw/' in patch subject] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 4 ++-- 1 file chan

[Qemu-block] [PATCH 11/13] hw/block/pflash_cfi02: Unify the MemoryRegionOps

2019-05-05 Thread Philippe Mathieu-Daudé
.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch to ease review] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 62 +++-- 1 file ch

[Qemu-block] [PATCH 06/13] hw/block/pflash_cfi02: Add helpers to manipulate the status bits

2019-05-05 Thread Philippe Mathieu-Daudé
: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 39 ++- 1 file changed, 34 insertions

[Qemu-block] [PATCH 12/13] hw/block/pflash_cfi02: Fix command address comparison

2019-05-05 Thread Philippe Mathieu-Daudé
-by: Thomas Huth Message-Id: <20190426162624.55977-4-stephen.checko...@oberlin.edu> [PMD: Prepend 'hw/' in patch subject] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 8 +++- tests/pflash-cfi02-test.c | 12 ++-- 2 files changed, 17 insertions(+), 3 deletions(-)

Re: [Qemu-block] [PULL 27/27] hw/block/pflash_cfi02: Reduce I/O accesses to 16-bit

2019-07-04 Thread Philippe Mathieu-Daudé
Cc'ing PPC/taihu_405ep and ARM/Digic4 maintainers. On 7/3/19 6:36 PM, Philippe Mathieu-Daudé wrote: > On 7/3/19 6:20 PM, Stephen Checkoway wrote: >>> On Jul 3, 2019, at 12:02, Philippe Mathieu-Daudé wrote: >>> On 7/3/19 5:52 PM, Stephen Checkoway wrote: >>>> &g

[Qemu-block] [PATCH v3 3/9] hw/block/pflash_cfi01: Extract pflash_mode_read_array()

2019-07-05 Thread Philippe Mathieu-Daudé
not reset the status register error bits, as a device reset would do. Reviewed-by: John Snow Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 36 hw/block/trace-events | 1

[Qemu-block] [PATCH v3 0/9] hw/block/pflash_cfi01: Add DeviceReset() handler

2019-07-05 Thread Philippe Mathieu-Daudé
for migration of the 'cmd' field, and the updated commit description. Regards, Phil. Philippe Mathieu-Daudé (9): hw/block/pflash_cfi01: Removed an unused timer hw/block/pflash_cfi01: Use the correct READ_ARRAY value hw/block/pflash_cfi01: Extract pflash_mode_read_array() hw/block/pflash_cfi01: Start

[Qemu-block] [PATCH v3 4/9] hw/block/pflash_cfi01: Start state machine as READY to accept commands

2019-07-05 Thread Philippe Mathieu-Daudé
impact by this change. Reference: Read Array Flowchart "Common Flash Interface (CFI) and Command Sets" (Intel Application Note 646) Appendix B "Basic Command Set" Reviewed-by: John Snow Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Ph

[Qemu-block] [PATCH v3 5/9] hw/block/pflash_cfi01: Add the DeviceReset() handler

2019-07-05 Thread Philippe Mathieu-Daudé
szlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- v3: reword description --- hw/block/pflash_cfi01.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 200bfd0ab8..c32c67d01d 100644 --- a/hw/block/pflash_cfi

[Qemu-block] [PATCH v3 7/9] hw/block/pflash_cfi01: Improve command comments

2019-07-05 Thread Philippe Mathieu-Daudé
Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index e097d9260d..ba00e52923

[Qemu-block] [PATCH v3 8/9] hw/block/pflash_cfi01: Replace DPRINTF by qemu_log_mask(GUEST_ERROR)

2019-07-05 Thread Philippe Mathieu-Daudé
Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index ba00e52923..ab72af22a7 100644

[Qemu-block] [PATCH v3 9/9] hw/block/pflash_cfi01: Hold the PRI table offset in a variable

2019-07-05 Thread Philippe Mathieu-Daudé
Manufacturers are allowed to move the PRI table, this is why the offset is queryable via fixed offsets 0x15/0x16. Add a variable to hold the offset, so it will be easier to later move the PRI table. Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu

[Qemu-block] [PATCH v3 2/9] hw/block/pflash_cfi01: Use the correct READ_ARRAY value

2019-07-05 Thread Philippe Mathieu-Daudé
ce (CFI) and Command Sets" (Intel Application Note 646) Appendix B "Basic Command Set" Reviewed-by: John Snow Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- v3: Handle migrating the 'cmd' field. Since Laszlo s

[Qemu-block] [PATCH v3 1/9] hw/block/pflash_cfi01: Removed an unused timer

2019-07-05 Thread Philippe Mathieu-Daudé
ings. Time to remove the unused timer, we can still add it back if required. Suggested-by: Laszlo Ersek Reviewed-by: Wei Yang Reviewed-by: Laszlo Ersek Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé --- v2: Fixed commit description (Laszl

[Qemu-block] [PATCH-for-4.1] Revert "hw/block/pflash_cfi02: Reduce I/O accesses to 16-bit"

2019-07-05 Thread Philippe Mathieu-Daudé
t commit 3ae0343db69, and will clean the board code later. Reported-by: Stephen Checkoway Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 5392290c7

[Qemu-block] [PATCH v3 6/9] hw/block/pflash_cfi01: Simplify CFI_QUERY processing

2019-07-05 Thread Philippe Mathieu-Daudé
the write_cycle on CFI_QUERY, the next command are processed as normal wcycle=0. This matches the hardware datasheet (we do not enter the WRITE state machine, thus no write cycle involved). Reviewed-by: Alistair Francis Regression-tested-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daudé

Re: [Qemu-block] [Qemu-devel] [PATCH v2 1/5] iotests: Add -display none to the qemu options

2019-06-26 Thread Philippe Mathieu-Daudé
ot;, "connect"] as the supported formats. > > Signed-off-by: Max Reitz Reviewed-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/check | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tests/qemu-iotests/check b/tests/qemu-io

[Qemu-block] [PATCH v5 06/28] hw/block/pflash_cfi02: Add helpers to manipulate the status bits

2019-06-27 Thread Philippe Mathieu-Daudé
: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 40 ++-- 1 file changed, 34 insertions

[Qemu-block] [PATCH v5 07/28] hw/block/pflash_cfi02: Simplify a statement using fall through

2019-06-27 Thread Philippe Mathieu-Daudé
Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 6 +++---

[Qemu-block] [PATCH v5 12/28] hw/block/pflash_cfi02: Fix command address comparison

2019-06-27 Thread Philippe Mathieu-Daudé
-by: Thomas Huth Message-Id: <20190426162624.55977-4-stephen.checko...@oberlin.edu> [PMD: Prepend 'hw/' in patch subject] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 8 +++- tests/pflash-cfi02-test.c | 12 ++-- 2 files changed, 17 insertions(+), 3 deletions(-)

[Qemu-block] [PATCH v5 26/28] hw/block/pflash_cfi02: Reduce single byte/word write delay

2019-06-27 Thread Philippe Mathieu-Daudé
Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-5-stephen.checko...@oberlin.edu> [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- TODO: Why? To respect the datasheet? Which model is this? --- hw/block/pflash_cfi02.c | 4 ++-- 1 file chan

[Qemu-block] [PATCH v5 18/28] hw/block/pflash_cfi02: Implement nonuniform sector sizes

2019-06-27 Thread Philippe Mathieu-Daudé
` and `sector-length`, but that would make testing currently impossible. Signed-off-by: Stephen Checkoway Acked-by: Thomas Huth Message-Id: <20190426162624.55977-6-stephen.checko...@oberlin.edu> [PMD: Rebased, add assert() on pri_offset] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash

[Qemu-block] [PATCH v5 11/28] hw/block/pflash_cfi02: Unify the MemoryRegionOps

2019-06-27 Thread Philippe Mathieu-Daudé
.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch to ease review] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 60 +++-- 1 file ch

[Qemu-block] [PATCH v5 09/28] hw/block/pflash_cfi02: Use the ldst API in pflash_read()

2019-06-27 Thread Philippe Mathieu-Daudé
The load/store API eases code review. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch, simplified tracing] Signed-off-by: Philippe M

[Qemu-block] [PATCH v5 20/28] hw/block/pflash_cfi02: Split if() condition

2019-06-27 Thread Philippe Mathieu-Daudé
Split the if() condition check and arrange the indentation to ease the review of the next patches. No logical change. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block

[Qemu-block] [PATCH v5 03/28] hw/block/pflash: Simplify trace_pflash_data_read/write()

2019-06-27 Thread Philippe Mathieu-Daudé
Use a field width format to have a single function to log the different width accesses. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 6 ++ hw/block/pflash_cfi02.c | 6 ++ hw/block/trace-events | 6 ++ 3 files changed, 6 insertions(+), 12 deletions(-) diff

[Qemu-block] [PATCH v5 13/28] tests/pflash-cfi02: Refactor to support testing multiple configurations

2019-06-27 Thread Philippe Mathieu-Daudé
Introduce the FlashConfig structure, to be able to run the same set of tests on different flash models/configurations. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-6-stephen.checko...@oberlin.edu> [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu

[Qemu-block] [PATCH v5 15/28] hw/block/pflash_cfi02: Document the current CFI values

2019-06-27 Thread Philippe Mathieu-Daudé
Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-6-stephen.checko...@oberlin.edu> [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw

[Qemu-block] [PATCH v5 24/28] hw/block/pflash_cfi02: Implement erase suspend/resume

2019-06-27 Thread Philippe Mathieu-Daudé
cko...@oberlin.edu> [PMD: Rebased] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 154 ++ tests/pflash-cfi02-test.c | 110 +++ 2 files changed, 250 insertions(+), 14 deletions(-) diff --git a/hw/block/pflash_cfi02.

[Qemu-block] [PATCH v5 23/28] hw/block/pflash_cfi02: Implement multi-sector erase

2019-06-27 Thread Philippe Mathieu-Daudé
is asserted during erasure. Signed-off-by: Stephen Checkoway Acked-by: Thomas Huth Message-Id: <20190426162624.55977-9-stephen.checko...@oberlin.edu> [PMD: Rebased] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 94 +++ tests/pflash

[Qemu-block] [PATCH v5 02/28] hw/block/pflash: Simplify trace_pflash_io_read/write()

2019-06-27 Thread Philippe Mathieu-Daudé
Call the read() trace function after the value is set, so we can log the returned value. Rename the I/O trace functions with '_io_' in their name. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 5 +++-- hw/block/pflash_cfi02.c | 6 ++ hw/block/trace-events | 4 ++-- 3

[Qemu-block] [PATCH v5 05/28] hw/block/pflash_cfi02: Add an enum to define the write cycles

2019-06-27 Thread Philippe Mathieu-Daudé
No change in functionality is intended with this commit. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe M

[Qemu-block] [PATCH v5 08/28] hw/block/pflash_cfi02: Use the ldst API in pflash_write()

2019-06-27 Thread Philippe Mathieu-Daudé
The load/store API eases code review. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé -

[Qemu-block] [PATCH v5 14/28] hw/block/pflash_cfi02: Remove pointless local variable

2019-06-27 Thread Philippe Mathieu-Daudé
We can directly use pfl->total_len, remove the local 'chip_len' variable. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-6-stephen.checko...@oberlin.edu> [PMD: Extracted from bigger patch] Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi

[Qemu-block] [PATCH v5 10/28] hw/block/pflash_cfi02: Extract the pflash_data_read() function

2019-06-27 Thread Philippe Mathieu-Daudé
Extract the code block in a new function, remove a goto statement. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patch, remove the XXX t

[Qemu-block] [PATCH v5 19/28] hw/block/pflash_cfi02: Extract pflash_regions_count()

2019-06-27 Thread Philippe Mathieu-Daudé
Extract the pflash_regions_count() function, the code will be easier to review. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 1f096ec185

[Qemu-block] [PATCH v5 21/28] hw/block/pflash_cfi02: Fix CFI in autoselect mode

2019-06-27 Thread Philippe Mathieu-Daudé
: <20190426162624.55977-7-stephen.checko...@oberlin.edu> Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 22 ++ tests/pflash-cfi02-test.c | 39 +++ 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/hw/block/pflash_cfi

[Qemu-block] [PATCH v5 25/28] hw/block/pflash_cfi02: Use chip erase time specified in the CFI table

2019-06-27 Thread Philippe Mathieu-Daudé
-by: Stephen Checkoway Message-Id: <20190426162624.55977-11-stephen.checko...@oberlin.edu> Signed-off-by: Philippe Mathieu-Daudé --- TODO check not zero --- hw/block/pflash_cfi02.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw

[Qemu-block] [PATCH v5 17/28] hw/block/pflash_cfi02: Document 'Page Mode' operations are not supported

2019-06-27 Thread Philippe Mathieu-Daudé
ed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 23d05a6308..01d9c5d75a 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@ -637,7 +637,9 @@

[Qemu-block] [PATCH v5 27/28] hw/block/pflash_cfi02: Document commands

2019-06-27 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 40 +++- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index e9519cbae8..db9dc7d8fb 100644 --- a/hw/block/pflash_cfi02.c

[Qemu-block] [PATCH v5 04/28] hw/block/pflash_cfi02: Fix debug format string

2019-06-27 Thread Philippe Mathieu-Daudé
Always compile the debug code to prevent format string to bitrot. Delete dead code. Signed-off-by: Stephen Checkoway Message-Id: <20190426162624.55977-3-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: Extracted from bigger patc

[Qemu-block] [PATCH v5 28/28] hw/block/pflash_cfi02: Reduce I/O accesses to 16-bit

2019-06-27 Thread Philippe Mathieu-Daudé
Parallel NOR flashes are limited to 16-bit bus accesses. Remove the 32-bit dead code. Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi02.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index db9dc7d8fb

[Qemu-block] [PATCH v5 00/28] block/pflash_cfi02: Implement missing AMD pflash functionality

2019-06-27 Thread Philippe Mathieu-Daudé
looking for real-world code stressing this flash model. Regards, Phil. Philippe Mathieu-Daudé (20): hw/block/pflash: Simplify trace_pflash_io_read/write() hw/block/pflash: Simplify trace_pflash_data_read/write() hw/block/pflash_cfi02: Fix debug format string hw/block/pflash_cfi02: Add

[Qemu-block] [PATCH v5 01/28] tests/pflash-cfi02: Add test for supported CFI commands

2019-06-27 Thread Philippe Mathieu-Daudé
Checkoway Message-Id: <20190426162624.55977-2-stephen.checko...@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [PMD: reworded the patch subject, g_assert_cmpint -> cmphex] Signed-off-by: Philippe Mathieu-Daudé --- tests/Makefile.include| 2

<    1   2   3   4   5   6   7   8   9   10   >