Allow ISA to be disabled on some platforms
cover Allow ISA to be disabled on some platforms
This is a rebase/repost of a series I sent quite some time ago. This makes some cleanups that are a start on allowing ISA to be compiled out for platforms which don't use it.
David Gibson (3):
Split serial-isa into its own config option
Allow ISA bus to be configured out
Split ISA and sysbus versions of m48t59 device
default-configs/alpha-softmmu.mak | 1 + default-configs/arm-softmmu.mak | 1 + default-configs/i386-softmmu.mak | 1 + default-configs/mips-softmmu-common.mak | 1 + default-configs/moxie-softmmu.mak | 2 + default-configs/pci.mak | 3 + default-configs/ppc-softmmu.mak | 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + default-configs/sh4-softmmu.mak | 1 + default-configs/sh4eb-softmmu.mak | 1 + default-configs/sparc-softmmu.mak | 1 + default-configs/sparc64-softmmu.mak | 1 + default-configs/unicore32-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/char/Makefile.objs | 3 +- hw/isa/Makefile.objs | 2 +- hw/timer/Makefile.objs | 3 + hw/timer/m48t59-internal.h | 82 ++++++++++++ hw/timer/m48t59-isa.c | 180 +++++++++++++++++++++++++ hw/timer/m48t59.c | 228 +++----------------------------- 21 files changed, 304 insertions(+), 212 deletions(-) create mode 100644 hw/timer/m48t59-internal.h create mode 100644 hw/timer/m48t59-isa.c
Signature · 1 line
2.7.4
PATCH 1/3 Split serial-isa into its own config option
At present, the core device model code for 8250-like serial ports (serial.c) and the code for serial ports attached to ISA-style legacy IO (serial-isa.c) are both controlled by the CONFIG_SERIAL variable.
There are lots and lots of embedded platforms that have 8250-like serial ports but have never had anything resembling ISA legacy IO. Therefore, split serial-isa into its own CONFIG_SERIAL_ISA option so it can be disabled for platforms where it's not appropriate.
For now, I enabled CONFIG_SERIAL_ISA in every default-config where CONFIG_SERIAL is enabled, excepting microblaze, or32, and xtensa. As best as I can tell, those platforms never used legacy ISA, and also don't include PCI support (which would allow connection of a PCI->ISA bridge and/or a southbridge including legacy ISA serial ports).
--- default-configs/alpha-softmmu.mak | 1 + default-configs/arm-softmmu.mak | 1 + default-configs/i386-softmmu.mak | 1 + default-configs/mips-softmmu-common.mak | 1 + default-configs/moxie-softmmu.mak | 1 + default-configs/pci.mak | 1 + default-configs/ppc-softmmu.mak | 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + default-configs/sh4-softmmu.mak | 1 + default-configs/sh4eb-softmmu.mak | 1 + default-configs/sparc64-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/char/Makefile.objs | 3 ++- 14 files changed, 15 insertions(+), 1 deletion(-)
default-configs/alpha-softmmu.mak +1 -0
@@ -3,6 +3,7 @@ include pci.mak include usb.mak CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_I8254=y CONFIG_PCKBD=y CONFIG_VGA_CIRRUS=y
default-configs/arm-softmmu.mak +1 -0
@@ -6,6 +6,7 @@ CONFIG_VGA=y CONFIG_NAND=y CONFIG_ECC=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_SD=y CONFIG_MAX7310=y
default-configs/i386-softmmu.mak +1 -0
@@ -15,6 +15,7 @@ CONFIG_IPMI_EXTERN=y CONFIG_ISA_IPMI_KCS=y CONFIG_ISA_IPMI_BT=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PARALLEL=y CONFIG_I8254=y CONFIG_PCSPK=y
default-configs/mips-softmmu-common.mak +1 -0
@@ -9,6 +9,7 @@ CONFIG_VGA_ISA_MM=y CONFIG_VGA_CIRRUS=y CONFIG_VMWARE_VGA=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PARALLEL=y CONFIG_I8254=y CONFIG_PCSPK=y
default-configs/moxie-softmmu.mak +1 -0
@@ -2,4 +2,5 @@ CONFIG_MC146818RTC=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_VGA=y
default-configs/pci.mak +1 -0
@@ -27,6 +27,7 @@ CONFIG_AHCI=y CONFIG_ESP=y CONFIG_ESP_PCI=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_SERIAL_PCI=y CONFIG_IPACK=y CONFIG_WDT_IB6300ESB=y
default-configs/ppc-softmmu.mak +1 -0
@@ -45,5 +45,6 @@ CONFIG_PLATFORM_BUS=y CONFIG_ETSEC=y CONFIG_LIBDECNUMBER=y # For PReP +CONFIG_SERIAL_ISA=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y
default-configs/ppc64-softmmu.mak +1 -0
@@ -51,6 +51,7 @@ CONFIG_XICS=$(CONFIG_PSERIES) CONFIG_XICS_SPAPR=$(CONFIG_PSERIES) CONFIG_XICS_KVM=$(and $(CONFIG_PSERIES),$(CONFIG_KVM)) # For PReP +CONFIG_SERIAL_ISA=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y CONFIG_MEM_HOTPLUG=y
default-configs/ppcemb-softmmu.mak +1 -0
@@ -5,6 +5,7 @@ include sound.mak include usb.mak CONFIG_M48T59=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_I8257=y CONFIG_OPENPIC=y CONFIG_PFLASH_CFI01=y
default-configs/sh4-softmmu.mak +1 -0
@@ -3,6 +3,7 @@ include pci.mak include usb.mak CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_PFLASH_CFI02=y CONFIG_SH4=y
default-configs/sh4eb-softmmu.mak +1 -0
@@ -3,6 +3,7 @@ include pci.mak include usb.mak CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_PFLASH_CFI02=y CONFIG_SH4=y
default-configs/sparc64-softmmu.mak +1 -0
@@ -5,6 +5,7 @@ include usb.mak CONFIG_M48T59=y CONFIG_PTIMER=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PARALLEL=y CONFIG_PCKBD=y CONFIG_FDC=y
default-configs/x86_64-softmmu.mak +1 -0
@@ -15,6 +15,7 @@ CONFIG_IPMI_EXTERN=y CONFIG_ISA_IPMI_KCS=y CONFIG_ISA_IPMI_BT=y CONFIG_SERIAL=y +CONFIG_SERIAL_ISA=y CONFIG_PARALLEL=y CONFIG_I8254=y CONFIG_PCSPK=y
hw/char/Makefile.objs +2 -1
@@ -2,7 +2,8 @@ common-obj-$(CONFIG_IPACK) += ipoctal232.o common-obj-$(CONFIG_ESCC) += escc.o common-obj-$(CONFIG_PARALLEL) += parallel.o common-obj-$(CONFIG_PL011) += pl011.o -common-obj-$(CONFIG_SERIAL) += serial.o serial-isa.o +common-obj-$(CONFIG_SERIAL) += serial.o +common-obj-$(CONFIG_SERIAL_ISA) += serial-isa.o common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o common-obj-$(CONFIG_VIRTIO) += virtio-console.o common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o
Signature · 1 line
2.7.4
PATCH 2/3 Allow ISA bus to be configured out
In reply to David GibsonCurrently, the code to handle the legacy ISA bus is always included in qemu. However there are lots of platforms that don't include ISA legacy devies, and quite a few that have never used ISA legacy devices at all.
This patch allows the ISA bus code to be disabled in the configuration for platforms where it doesn't make sense.
For now, the default configs are adjusted to include ISA on all platforms including PCI: anything with PCI can at least in principle add an i82378 PCI->ISA bridge. Also, CONFIG_IDE_CORE which is already in pci.mak requires ISA support.
We also explicitly enable ISA on some other non-PCI platforms which include ISA devices: moxie, sparc and unicore32. We may want to pare this down in future.
The platforms that will lose ISA by default are: cris, lm32, microblazeel, microblaze, or32, s390x, tricore, xtensaeb, xtensa. As far as I can tell none of these ever used ISA.
--- default-configs/moxie-softmmu.mak | 1 + default-configs/pci.mak | 2 ++ default-configs/sparc-softmmu.mak | 1 + default-configs/unicore32-softmmu.mak | 1 + hw/isa/Makefile.objs | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-)
default-configs/moxie-softmmu.mak +1 -0
@@ -1,5 +1,6 @@ # Default configuration for moxie-softmmu +CONFIG_ISA_BUS=y CONFIG_MC146818RTC=y CONFIG_SERIAL=y CONFIG_SERIAL_ISA=y
default-configs/pci.mak +2 -0
@@ -1,4 +1,6 @@ CONFIG_PCI=y +# For now, CONFIG_IDE_CORE requires ISA, so we enable it here +CONFIG_ISA_BUS=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO=y CONFIG_USB_UHCI=y
default-configs/sparc-softmmu.mak +1 -0
@@ -1,5 +1,6 @@ # Default configuration for sparc-softmmu +CONFIG_ISA_BUS=y CONFIG_ECC=y CONFIG_ESP=y CONFIG_ESCC=y
default-configs/unicore32-softmmu.mak +1 -0
@@ -1,4 +1,5 @@ # Default configuration for unicore32-softmmu +CONFIG_ISA_BUS=y CONFIG_PUV3=y CONFIG_PTIMER=y CONFIG_PCKBD=y
hw/isa/Makefile.objs +1 -1
@@ -1,4 +1,4 @@ -common-obj-y += isa-bus.o +common-obj-$(CONFIG_ISA_BUS) += isa-bus.o common-obj-$(CONFIG_APM) += apm.o common-obj-$(CONFIG_I82378) += i82378.o common-obj-$(CONFIG_PC87312) += pc87312.o
Signature · 1 line
2.7.4
PATCH 3/3 Split ISA and sysbus versions of m48t59 device
In reply to David GibsonThe m48t59 device supports both ISA and direct sysbus attached versions of the device in the one .c file. This can be awkward for some embedded machine types which need the sysbus M48T59, but don't want to pull in the ISA bus code and its other dependencies.
Therefore, this patch splits out the code for the ISA attached M48T59 into its own C file. It will be built when both CONFIG_M48T59 and CONFIG_ISA_BUS are enabled.
--- hw/timer/Makefile.objs | 3 + hw/timer/m48t59-internal.h | 82 ++++++++++++++++ hw/timer/m48t59-isa.c | 180 +++++++++++++++++++++++++++++++++++ hw/timer/m48t59.c | 228 ++++----------------------------------------- 4 files changed, 283 insertions(+), 210 deletions(-) create mode 100644 hw/timer/m48t59-internal.h create mode 100644 hw/timer/m48t59-isa.c
hw/timer/Makefile.objs +3 -0
@@ -6,6 +6,9 @@ common-obj-$(CONFIG_DS1338) += ds1338.o common-obj-$(CONFIG_HPET) += hpet.o common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o common-obj-$(CONFIG_M48T59) += m48t59.o +ifeq ($(CONFIG_ISA_BUS),y) +common-obj-$(CONFIG_M48T59) += m48t59-isa.o +endif common-obj-$(CONFIG_PL031) += pl031.o common-obj-$(CONFIG_PUV3) += puv3_ost.o common-obj-$(CONFIG_TWL92230) += twl92230.o
hw/timer/m48t59-internal.h new file +82 -0
82 lines not on this page · raw message
hw/timer/m48t59-isa.c new file +180 -0
180 lines not on this page · raw message
hw/timer/m48t59.c +18 -210
342 lines not on this page · raw message
Signature · 1 line
2.7.4
Re: [Qemu-devel] [PATCH 3/3] Split ISA and sysbus versions of m48t59 device
Needs a rebase. First error:
CC hw/timer/m48t59.o
In file included from /work/armbru/qemu/include/exec/cpu-common.h:7:0,
from /work/armbru/qemu/include/exec/memory.h:24,
from /work/armbru/qemu/include/hw/isa/isa.h:6,
from /work/armbru/qemu/hw/timer/m48t59-isa.c:25:
/work/armbru/qemu/include/exec/hwaddr.h:11:9: error: unknown type name ‘uint64_t’
typedef uint64_t hwaddr;
^Quoted 186 lines · David Gibson
The m48t59 device supports both ISA and direct sysbus attached versions of the device in the one .c file. This can be awkward for some embedded machine types which need the sysbus M48T59, but don't want to pull in the ISA bus code and its other dependencies.
Therefore, this patch splits out the code for the ISA attached M48T59 into its own C file. It will be built when both
CONFIG_M48T59andCONFIG_ISA_BUSare enabled.Signed-off-by David Gibson <[email protected]>--- hw/timer/Makefile.objs | 3 + hw/timer/m48t59-internal.h | 82 ++++++++++++++++ hw/timer/m48t59-isa.c | 180 +++++++++++++++++++++++++++++++++++ hw/timer/m48t59.c | 228 ++++----------------------------------------- 4 files changed, 283 insertions(+), 210 deletions(-) create mode 100644 hw/timer/m48t59-internal.h create mode 100644 hw/timer/m48t59-isa.chw/timer/Makefile.objs +3
-0@@ -6,6 +6,9 @@ common-obj-$(CONFIG_DS1338) += ds1338.o common-obj-$(CONFIG_HPET) += hpet.o common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o common-obj-$(CONFIG_M48T59) += m48t59.o +ifeq ($(CONFIG_ISA_BUS),y) +common-obj-$(CONFIG_M48T59) += m48t59-isa.o +endif common-obj-$(CONFIG_PL031) += pl031.o common-obj-$(CONFIG_PUV3) += puv3_ost.o common-obj-$(CONFIG_TWL92230) += twl92230.ohw/timer/m48t59-internal.h new file +82
-0@@ -0,0 +1,82 @@ +/* +* QEMU M48T59 and M48T08 NVRAM emulation (common header) +* +* Copyright (c) 2003-2005, 2007 Jocelyn Mayer +* Copyright (c) 2013 Hervé Poussineau +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. +*/ +#ifndef HW_M48T59_H +#define HW_M48T59_H 1 + +//#define DEBUG_NVRAM + +#if defined(DEBUG_NVRAM ) +#define NVRAM_PRINTF (fmt, ...) do { printf(fmt , ## __VA_ARGS__); } while (0) +#else +#define NVRAM_PRINTF (fmt, ...) do { } while (0) +#endif + +/* +* The M48T02, M48T08 and M48T59 chips are very similar. The newer '59 has +* alarm and a watchdog timer and related control registers. In the +* PPC platform there is also a nvram lock function. +*/ + +typedef struct M48txxInfo { +const char *bus_name; +uint32_t model;/* 2 = m48t02, 8 = m48t08, 59 = m48t59 */ +uint32_t size; +}M48txxInfo ; + +typedef struct M48t59State { +/* Hardware parameters */ +qemu_irq IRQ; +MemoryRegion iomem; +uint32_t size; +int32_t base_year; +/* RTC management */ +time_t time_offset; +time_t stop_time; +/* Alarm & watchdog */ +struct tm alarm; +QEMUTimer *alrm_timer; +QEMUTimer *wd_timer; +/* NVRAM storage */ +uint8_t *buffer; +/* Model parameters */ +uint32_t model;/* 2 = m48t02, 8 = m48t08, 59 = m48t59 */ +/* NVRAM storage */ +uint16_t addr; +uint8_t lock; +}M48t59State ; + +uint32_t m48t59_read (M48t59State *NVRAM ,uint32_t addr); +void m48t59_write (M48t59State *NVRAM ,uint32_t addr,uint32_t val); +void m48t59_reset_common (M48t59State *NVRAM ); +void m48t59_realize_common (M48t59State *s,Error **errp); + +static inline void m48t59_toggle_lock (M48t59State *NVRAM ,int lock) +{ +NVRAM ->lock ^=1 << lock; +} + +extern const MemoryRegionOps m48t59_io_ops; + +#endif /* HW_M48T59_H */ hw/timer/m48t59-isa.c new file +59
-0@@ -0,0 +1,180 @@ +/* +* QEMU M48T59 and M48T08 NVRAM emulation (ISA bus interface +* +* Copyright (c) 2003-2005, 2007 Jocelyn Mayer +* Copyright (c) 2013 Hervé Poussineau +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. +*/ +#include "hw/isa/isa.h" +#include "hw/timer/m48t59.h" +#include "m48t59-internal.h" + +#define TYPE_M48TXX_ISA "isa-m48txx" +#define M48TXX_ISA_GET_CLASS (obj) \ + OBJECT_GET_CLASS(M48txxISADeviceClass, (obj), TYPE_M48TXX_ISA) +#define M48TXX_ISA_CLASS (klass) \ + OBJECT_CLASS_CHECK(M48txxISADeviceClass, (klass), TYPE_M48TXX_ISA) +#define M48TXX_ISA (obj) \ + OBJECT_CHECK(M48txxISAState, (obj), TYPE_M48TXX_ISA) + +typedef struct M48txxISAState { +ISADevice parent_obj; +M48t59State state; +uint32_t io_base; +MemoryRegion io; +}M48txxISAState ; + +typedef struct M48txxISADeviceClass { +ISADeviceClass parent_class; +M48txxInfo info; +}M48txxISADeviceClass ; + +static M48txxInfo m48txx_isa_info[] = { + { + .bus_name ="isa-m48t59" , + .model =59 , + .size =0x2000 , + } +}; + +Nvram *m48t59_init_isa (ISABus *bus,uint32_t io_base,uint16_t size, +int base_year,int model) +{
hw/timer/m48t59-isa.c line 69
Quoted 10 lines
hw/timer/m48t59-isa.c new file +10
-0+DeviceState *dev; +int i; + +for (i =0 ; i <ARRAY_SIZE (m48txx_isa_info); i++) { +if (m48txx_isa_info[i].size != size || + m48txx_isa_info[i].model != model) { +continue ; + } + + dev =DEVICE (isa_create (bus, m48txx_isa_info[i].bus_name));
isa_create()'s second argument is a device model name, not a bus name. Please rename .bus_name accordingly.
Quoted 9 lines
hw/timer/m48t59-isa.c new file +9
-0+qdev_prop_set_uint32 (dev,"iobase" , io_base); +qdev_prop_set_int32 (dev,"base-year" , base_year); +qdev_init_nofail (dev); +return NVRAM (dev); + } + +assert (false); +return NULL ; +}
[...]
Re: [Qemu-devel] [PATCH 3/3] Split ISA and sysbus versions of m48t59 device
Quoted 19 lines · Markus Armbruster
Needs a rebase. First error:
CC
hw/timer/m48t59.o
In file included from /work/armbru/qemu/include/exec/cpu-common.h:7:0,from /work/armbru/qemu/include/exec/memory.h:24, from /work/armbru/qemu/include/hw/isa/isa.h:6, from /work/armbru/qemu/hw/timer/m48t59-isa.c:25: /work/armbru/qemu/include/exec/hwaddr.h:11:9: error: unknown type name ‘uint64_t’ typedef uint64_t hwaddr; ^Quoted 7 lines
index 0000000..3a521dc
hw/timer/m48t59-isa.c new file +3
-0+* THE SOFTWARE. +*/ +#include "hw/isa/isa.h"
Probably because you forgot osdep.h as the first include.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Re: [Qemu-devel] [PATCH 3/3] Split ISA and sysbus versions of m48t59 device
Quoted 17 lines · Eric Blake
Quoted 15 lines · Markus Armbruster
Needs a rebase. First error:
CC
hw/timer/m48t59.o
In file included from /work/armbru/qemu/include/exec/cpu-common.h:7:0,from /work/armbru/qemu/include/exec/memory.h:24, from /work/armbru/qemu/include/hw/isa/isa.h:6, from /work/armbru/qemu/hw/timer/m48t59-isa.c:25: /work/armbru/qemu/include/exec/hwaddr.h:11:9: error: unknown type name ‘uint64_t’ typedef uint64_t hwaddr; ^Quoted 3 lines
index 0000000..3a521dc
hw/timer/m48t59-isa.c new file +0
-0
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
+ * THE SOFTWARE.
+ */
+#include "hw/isa/isa.h"Probably because you forgot
osdep.has the first include.
That, plus I stupidly re-used the same double-include prevention symbol from an existing header file. I've fixed that up in my branch now.
Of course, I still have no idea who I really need to convince to actually get this merged.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Your series seems to have some coding style problems. See output below for more information:
Hi,
Your series seems to have some coding style problems. See output below for more information:
Subject: [Qemu-devel] [PATCH 0/3] Allow ISA to be disabled on some platforms
Type: series
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
# Useful git options
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test'
c2105ef Split ISA and sysbus versions of m48t59 device d3ad698 Allow ISA bus to be configured out 2b39254 Split serial-isa into its own config option
=== OUTPUT BEGIN ===
Checking PATCH 1/3: Split serial-isa into its own config option... Checking PATCH 2/3: Allow ISA bus to be configured out... Checking PATCH 3/3: Split ISA and sysbus versions of m48t59 device...
ERROR: do not use C99 // comments
#65: FILE: hw/timer/m48t59-internal.h:28:
+//#define DEBUG_NVRAM
total: 1 errors, 0 warnings, 613 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]