ARM: implement MPS2 board (with 2 FPGA flavours)
cover ARM: implement MPS2 board (with 2 FPGA flavours)
This patchseries adds support for the ARM MPS2/MPS2+ dev board:
The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger FPGA but is otherwise the same as the 2). Since the CPU itself and most of the devices are in the FPGA, the details of the board as seen by the guest depend significantly on the FPGA image.
We model the following FPGA images:
"mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511
They are fairly similar but differ in the details for some peripherals.
Further info and links to all the documentation for the board and the various FPGA images can be found here:
https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-system
This patchset adds the boards themselves, and the UART, timer and system-controller devices they need. There are a number of other devices on the board which are not yet modelled (notably more GPIOs, a watchdog, another different kind of timer, and a display device), but this minimal set is sufficient to boot the "hello world" binary of the Zephyr RTOS and the "blinky" binary of the mbed RTOS.
[To run the zephyr binary you also need this fix:
http://patchwork.ozlabs.org/patch/782811/
which is in the target-arm pullreq I just sent so should get into master in a few days.]
We can add more devices to the model later, but I figured this was a sufficient place to start.
The underlying motivation here is that the v8M work that I have planned will need a board, and there is a v8M FPGA image for the MPS2 that we can use. It's also perhaps a more useful M profile board for general purposes than the stellaris boards (64K RAM) or the Netduino2 (128K RAM), since it has 16MB of RAM.
thanks
-- PMM
Peter Maydell (7):
hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART hw/arm/mps2: Add UARTs
hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device hw/arm/mps2: Add timers
hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller hw/arm/mps2: Add SCC
hw/arm/Makefile.objs | 1 + hw/char/Makefile.objs | 1 + hw/misc/Makefile.objs | 1 + hw/timer/Makefile.objs | 1 + include/hw/char/cmsdk-apb-uart.h | 78 ++++++++ include/hw/misc/mps2-scc.h | 43 ++++ include/hw/timer/cmsdk-apb-timer.h | 59 ++++++ hw/arm/mps2.c | 378 +++++++++++++++++++++++++++++++++++ hw/char/cmsdk-apb-uart.c | 390 +++++++++++++++++++++++++++++++++++++ hw/misc/mps2-scc.c | 310 +++++++++++++++++++++++++++++ hw/timer/cmsdk-apb-timer.c | 253 ++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 6 + hw/char/trace-events | 9 + hw/misc/trace-events | 8 + hw/timer/trace-events | 5 + 15 files changed, 1543 insertions(+) create mode 100644 include/hw/char/cmsdk-apb-uart.h create mode 100644 include/hw/misc/mps2-scc.h create mode 100644 include/hw/timer/cmsdk-apb-timer.h create mode 100644 hw/arm/mps2.c create mode 100644 hw/char/cmsdk-apb-uart.c create mode 100644 hw/misc/mps2-scc.c create mode 100644 hw/timer/cmsdk-apb-timer.c
Signature · 1 line
2.7.4
PATCH 1/7 hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
Model the ARM MPS2/MPS2+ FPGA based development board.
The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger FPGA but is otherwise the same as the 2). Since the CPU itself and most of the devices are in the FPGA, the details of the board as seen by the guest depend significantly on the FPGA image.
We model the following FPGA images:
"mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511
They are fairly similar but differ in the details for some peripherals.
--- hw/arm/Makefile.objs | 1 + hw/arm/mps2.c | 273 ++++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 1 + 3 files changed, 275 insertions(+) create mode 100644 hw/arm/mps2.c
hw/arm/Makefile.objs +1 -0
@@ -18,3 +18,4 @@ obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o obj-$(CONFIG_FSL_IMX31) += fsl-imx31.o kzm.o obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o sabrelite.o obj-$(CONFIG_ASPEED_SOC) += aspeed_soc.o aspeed.o +obj-$(CONFIG_MPS2) += mps2.o
hw/arm/mps2.c new file +273 -0
273 lines not on this page · raw message
default-configs/arm-softmmu.mak +1 -0
@@ -83,6 +83,7 @@ CONFIG_ONENAND=y CONFIG_TUSB6010=y CONFIG_IMX=y CONFIG_MAINSTONE=y +CONFIG_MPS2=y CONFIG_NSERIES=y CONFIG_RASPI=y CONFIG_REALVIEW=y
Signature · 1 line
2.7.4
Re: [Qemu-arm] [Qemu-devel] [PATCH 1/7] hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
Quoted 27 lines · Peter Maydell
Model the ARM MPS2/MPS2+ FPGA based development board.
The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger FPGA but is otherwise the same as the 2). Since the CPU itself and most of the devices are in the FPGA, the details of the board as seen by the guest depend significantly on the FPGA image.
We model the following FPGA images:
"mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511They are fairly similar but differ in the details for some peripherals.
Signed-off-by Peter Maydell <[email protected]>--- hw/arm/Makefile.objs | 1 + hw/arm/mps2.c | 273 ++++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 1 + 3 files changed, 275 insertions(+) create mode 100644 hw/arm/mps2.chw/arm/Makefile.objs +0
-0
hw/arm/Makefile.objs obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o · line 21
Quoted 4 lines
hw/arm/Makefile.objs +1
-0@@ -18,3 +18,4 @@ obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o obj-$(CONFIG_FSL_IMX31) += fsl-imx31.o kzm.o obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o sabrelite.o obj-$(CONFIG_ASPEED_SOC) += aspeed_soc.o aspeed.o +obj-$(CONFIG_MPS2) += mps2.o
Is this file name possibly too generic? Should it be arm-mps2 instead.
I don't see any other boards with the same name from a Google search, but it just seems a bit vague having a three letter acronym.
Quoted 57 lines
hw/arm/mps2.c new file +51
-0@@ -0,0 +1,273 @@ +/* +* ARM V2M MPS2 board emulation. +* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +/* The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger +* FPGA but is otherwise the same as the 2). Since the CPU itself +* and most of the devices are in the FPGA, the details of the board +* as seen by the guest depend significantly on the FPGA image. +* We model the following FPGA images: +* "mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 +* "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511 +* +* Links to the TRM for the board itself and to the various Application +* Notes which document the FPGA images can be found here: +* https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-system +*/ + +#include "qemu/osdep.h" +#include "qapi/error.h" +#include "qemu/error-report.h" +#include "hw/arm/arm.h" +#include "hw/arm/armv7m.h" +#include "hw/boards.h" +#include "exec/address-spaces.h" +#include "hw/misc/unimp.h" + +typedef enum MPS2FPGAType { +FPGA_AN385 , +FPGA_AN511 , +}MPS2FPGAType ; + +typedef struct { +MachineClass parent; +MPS2FPGAType fpga_type; +const char *cpu_model; +}MPS2MachineClass ; + +typedef struct { + MachineState parent; + + ARMv7MState armv7m; + MemoryRegion psram; + MemoryRegion ssram1; + MemoryRegion ssram1_m;
hw/arm/mps2.c line 61
Quoted 10 lines
hw/arm/mps2.c new file +10
-0+MemoryRegion ssram23; +MemoryRegion ssram23_m; +MemoryRegion blockram; +MemoryRegion blockram_m1; +MemoryRegion blockram_m2; +MemoryRegion blockram_m3; +MemoryRegion sram; +} MPS2MachineState; + +#define TYPE_MPS2_MACHINE "mps2"
This public name seems too common as well. I am just worried it'll conflict with something one day.
Quoted 42 lines
hw/arm/mps2.c new file +42
-0+#define TYPE_MPS2_AN385_MACHINE MACHINE_TYPE_NAME("mps2-an385") +#define TYPE_MPS2_AN511_MACHINE MACHINE_TYPE_NAME("mps2-an511") + +#define MPS2_MACHINE (obj) \ + OBJECT_CHECK(MPS2MachineState, obj, TYPE_MPS2_MACHINE) +#define MPS2_MACHINE_GET_CLASS (obj) \ + OBJECT_GET_CLASS(MPS2MachineClass, obj, TYPE_MPS2_MACHINE) +#define MPS2_MACHINE_CLASS (klass) \ + OBJECT_CLASS_CHECK(MPS2MachineClass, klass, TYPE_MPS2_MACHINE) + +/* Main SYSCLK frequency in Hz */ +#define SYSCLK_FRQ 25000000 + +/* Initialize the auxiliary RAM region @mr and map it into +* the memory map at @base. +*/ +static void make_ram (MemoryRegion *mr,const char *name, +hwaddr base,hwaddr size) +{ +memory_region_init_ram (mr,NULL , name, size, &error_fatal); +vmstate_register_ram_global (mr); +memory_region_add_subregion (get_system_memory (), base, mr); +} + +/* Create an alias of an entire original MemoryRegion @orig +* located at @base in the memory map. +*/ +static void make_ram_alias (MemoryRegion *mr,const char *name, +MemoryRegion *orig,hwaddr base) +{ +memory_region_init_alias (mr,NULL , name, orig,0 , +memory_region_size (orig)); +memory_region_add_subregion (get_system_memory (), base, mr); +} + +static void mps2_common_init (MachineState *machine) +{ +MPS2MachineState *mms =MPS2_MACHINE (machine); +MPS2MachineClass *mmc =MPS2_MACHINE_GET_CLASS (machine); + +if (!machine->cpu_model) { + machine->cpu_model = mmc->cpu_model;
hw/arm/mps2.c line 113
Quoted 10 lines
hw/arm/mps2.c new file +10
-0+ } + +if (strcmp (machine->cpu_model, mmc->cpu_model) !=0 ) { +error_report ("This board can only be used with CPU %s" , mmc->cpu_model); +exit (1 ); + } + +MemoryRegion *system_memory =get_system_memory (); + +DeviceState *armv7m;
These should be at the top of the function.
Quoted 86 lines
hw/arm/mps2.c new file +86
-0+ +/* The FPGA images have an odd combination of different RAMs, +* because in hardware they are different implementations and +* connected to different buses, giving varying performance/size +* tradeoffs. For QEMU they're all just RAM, though. We arbitrarily +* call the 16MB our "system memory", as it's the largest lump. +* +* Common to both boards: +* 0x21000000..0x21ffffff : PSRAM (16MB) +* AN385 only: +* 0x00000000 .. 0x003fffff : ZBT SSRAM1 +* 0x00400000 .. 0x007fffff : mirror of ZBT SSRAM1 +* 0x20000000 .. 0x203fffff : ZBT SSRAM 2&3 +* 0x20400000 .. 0x207fffff : mirror of ZBT SSRAM 2&3 +* 0x01000000 .. 0x01003fff : block RAM (16K) +* 0x01004000 .. 0x01007fff : mirror of above +* 0x01008000 .. 0x0100bfff : mirror of above +* 0x0100c000 .. 0x0100ffff : mirror of above +* AN511 only: +* 0x00000000 .. 0x0003ffff : FPGA block RAM +* 0x00400000 .. 0x007fffff : ZBT SSRAM1 +* 0x20000000 .. 0x2001ffff : SRAM +* 0x20400000 .. 0x207fffff : ZBT SSRAM 2&3 +* +* The AN385 has a feature where the lowest 16K can be mapped +* either to the bottom of the ZBT SSRAM1 or to the block RAM. +* This is of no use for QEMU so we don't implement it (as if +* zbt_boot_ctrl is always zero). +*/ +memory_region_allocate_system_memory (&mms->psram, +NULL ,"mps.ram" ,0x1000000 ); +memory_region_add_subregion (system_memory,0x21000000 , &mms->psram); + +switch (mmc->fpga_type) { +case FPGA_AN385 : +make_ram (&mms->ssram1,"mps.ssram1" ,0x0 ,0x400000 ); +make_ram_alias (&mms->ssram1_m,"mps.ssram1_m" , &mms->ssram1,0x400000 ); +make_ram (&mms->ssram23,"mps.ssram23" ,0x20000000 ,0x400000 ); +make_ram_alias (&mms->ssram23_m,"mps.ssram23_m" , + &mms->ssram23,0x20400000 ); +make_ram (&mms->blockram,"mps.blockram" ,0x01000000 ,0x4000 ); +make_ram_alias (&mms->blockram_m1,"mps.blockram_m1" , + &mms->blockram,0x01004000 ); +make_ram_alias (&mms->blockram_m2,"mps.blockram_m2" , + &mms->blockram,0x01008000 ); +make_ram_alias (&mms->blockram_m3,"mps.blockram_m3" , + &mms->blockram,0x0100c000 ); +break ; +case FPGA_AN511 : +make_ram (&mms->blockram,"mps.blockram" ,0x0 ,0x40000 ); +make_ram (&mms->ssram1,"mps.ssram1" ,0x00400000 ,0x00800000 ); +make_ram (&mms->sram,"mps.sram" ,0x20000000 ,0x20000 ); +make_ram (&mms->ssram23,"mps.ssram23" ,0x20400000 ,0x400000 ); +break ; +default : +g_assert_not_reached (); + } + +object_initialize (&mms->armv7m,sizeof (mms->armv7m),TYPE_ARMV7M ); + armv7m =DEVICE (&mms->armv7m); +qdev_set_parent_bus (armv7m,sysbus_get_default ()); +switch (mmc->fpga_type) { +case FPGA_AN385 : +qdev_prop_set_uint32 (armv7m,"num-irq" ,32 ); +break ; +case FPGA_AN511 : +qdev_prop_set_uint32 (armv7m,"num-irq" ,64 ); +break ; +default : +g_assert_not_reached (); + } +qdev_prop_set_string (armv7m,"cpu-model" , machine->cpu_model); +object_property_set_link (OBJECT (&mms->armv7m),OBJECT (system_memory), +"memory" , &error_abort); +object_property_set_bool (OBJECT (&mms->armv7m), true,"realized" , + &error_fatal); + +create_unimplemented_device ("zbtsmram mirror" ,0x00400000 ,0x00400000 ); +create_unimplemented_device ("RESERVED 1" ,0x00800000 ,0x00800000 ); +create_unimplemented_device ("Block RAM" ,0x01000000 ,0x00010000 ); +create_unimplemented_device ("RESERVED 2" ,0x01010000 ,0x1EFF0000 ); +create_unimplemented_device ("RESERVED 3" ,0x20800000 ,0x00800000 ); +create_unimplemented_device ("PSRAM" ,0x21000000 ,0x01000000 ); +/* These three ranges all cover multiple devices; we may implement +* some of them below (in which case the real device takes precedence +* over the unimplemented-region mapping).
hw/arm/mps2.c line 209
Quoted 10 lines
hw/arm/mps2.c new file +10
-0+*/ +create_unimplemented_device ("CMSDK APB peripheral region @0x40000000" , +0x40000000 ,0x00010000 ); +create_unimplemented_device ("CMSDK peripheral region @0x40010000" , +0x40010000 ,0x00010000 ); +create_unimplemented_device ("Extra peripheral region @0x40020000" , +0x40020000 ,0x00010000 ); +create_unimplemented_device ("RESERVED 4" ,0x40030000 ,0x001D0000 ); +create_unimplemented_device ("Ethernet" ,0x40200000 ,0x00100000 ); +create_unimplemented_device ("VGA" ,0x41000000 ,0x0200000 );
I did not know this was an option, this is pretty cool.
Besides the name I think this patch looks good.
Thanks,
Alistair
Re: [Qemu-arm] [Qemu-devel] [PATCH 1/7] hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
Quoted 23 lines · Alistair Francis
Quoted 22 lines · Peter Maydell
Model the ARM MPS2/MPS2+ FPGA based development board.
The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger FPGA but is otherwise the same as the 2). Since the CPU itself and most of the devices are in the FPGA, the details of the board as seen by the guest depend significantly on the FPGA image.
We model the following FPGA images:
"mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511They are fairly similar but differ in the details for some peripherals.
Signed-off-by Peter Maydell <[email protected]>--- hw/arm/Makefile.objs | 1 + hw/arm/mps2.c | 273 ++++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 1 + 3 files changed, 275 insertions(+) create mode 100644 hw/arm/mps2.c
Quoted 11 lines
hw/arm/Makefile.objs obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o · line 21
Quoted 9 lines
hw/arm/Makefile.objs +1
-0@@ -18,3 +18,4 @@ obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o obj-$(CONFIG_FSL_IMX31) += fsl-imx31.o kzm.o obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o sabrelite.o obj-$(CONFIG_ASPEED_SOC) += aspeed_soc.o aspeed.o +obj-$(CONFIG_MPS2) += mps2.oIs this file name possibly too generic? Should it be arm-mps2 instead.
It's already in hw/arm/, and we don't ever do anything that confuses foo.o in one directory with foo.o in another. (Also none of the other board or SoCs have 'arm' prepended.)
Quoted 7 lines
I don't see any other boards with the same name from a Google search, but it just seems a bit vague having a three letter acronym.
Quoted 1 line
+#define
TYPE_MPS2_MACHINE"mps2"This public name seems too common as well. I am just worried it'll conflict with something one day.
I can see the issue, but on the other hand the type name is not external ABI, so we can always rename it later if we have to. The board names themselves (mps2-an385 and mps2-an511) on the other hand we have to get right from the start. I'm not sure tacking an arm- on the front of those helps; they're already pretty ungainly.
The other possible name floating around here is "v2m-mps", which at least some of the docs refer to as the name of the motherboard. There's a lot of just of just plain "MPS2", though.
(I note that we've had 'kzm' and 'z2' since forever and they haven't ever conflicted with anything despite being pretty short.)
I dunno; I'll have a think about it. Naming is hard...
Quoted 6 lines
hw/arm/Makefile.objs
Quoted 4 lines
hw/arm/Makefile.objs +4
-0+ + MemoryRegion *system_memory = get_system_memory(); + + DeviceState *armv7m;These should be at the top of the function.
Fixed (along with the 'sccdev' added to the DeviceState line in a later patch).
Quoted 11 lines
hw/arm/Makefile.objs
Quoted 9 lines
hw/arm/Makefile.objs +9
-0+ create_unimplemented_device("CMSDK APB peripheral region @0x40000000", + 0x40000000, 0x00010000); + create_unimplemented_device("CMSDK peripheral region @0x40010000", + 0x40010000, 0x00010000); + create_unimplemented_device("Extra peripheral region @0x40020000", + 0x40020000, 0x00010000); + create_unimplemented_device("RESERVED 4", 0x40030000, 0x001D0000); + create_unimplemented_device("Ethernet", 0x40200000, 0x00100000); + create_unimplemented_device("VGA", 0x41000000, 0x0200000);I did not know this was an option, this is pretty cool.
Yeah. It's really nice for bringing up a board model because you can just add -d unimp to your command line and get the info about what devices the guest is prodding that you need to implement next.
thanks
-- PMM
Re: [Qemu-arm] [Qemu-devel] [PATCH 1/7] hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
Quoted 2 lines · Peter Maydell
Quoted 1 line · Alistair Francis
On Tue, Jul 11, 2017 at 1:17 PM, Peter Maydell <[email protected]> wrote:
[...]
Quoted 10 lines
Quoted 5 lines
hw/arm/mps2.c line 209
Quoted 3 lines
hw/arm/mps2.c new file +3
-0+create_unimplemented_device ("RESERVED 4" ,0x40030000 ,0x001D0000 ); +create_unimplemented_device ("Ethernet" ,0x40200000 ,0x00100000 ); +create_unimplemented_device ("VGA" ,0x41000000 ,0x0200000 );I did not know this was an option, this is pretty cool.
Yeah. It's really nice for bringing up a board model because you can just add -d unimp to your command line and get the info about what devices the guest is prodding that you need to implement next.
For reverse engineering this is the best device ever :P
Re: [Qemu-arm] [Qemu-devel] [PATCH 1/7] hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
In reply to Peter MaydellQuoted 43 lines · Peter Maydell
Quoted 23 lines · Alistair Francis
Quoted 22 lines · Peter Maydell
Model the ARM MPS2/MPS2+ FPGA based development board.
The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger FPGA but is otherwise the same as the 2). Since the CPU itself and most of the devices are in the FPGA, the details of the board as seen by the guest depend significantly on the FPGA image.
We model the following FPGA images:
"mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511They are fairly similar but differ in the details for some peripherals.
Signed-off-by Peter Maydell <[email protected]>--- hw/arm/Makefile.objs | 1 + hw/arm/mps2.c | 273 ++++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 1 + 3 files changed, 275 insertions(+) create mode 100644 hw/arm/mps2.cQuoted 11 lines
hw/arm/Makefile.objs obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o · line 21
Quoted 9 lines
hw/arm/Makefile.objs +1
-0@@ -18,3 +18,4 @@ obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o obj-$(CONFIG_FSL_IMX31) += fsl-imx31.o kzm.o obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o sabrelite.o obj-$(CONFIG_ASPEED_SOC) += aspeed_soc.o aspeed.o +obj-$(CONFIG_MPS2) += mps2.oIs this file name possibly too generic? Should it be arm-mps2 instead.
It's already in hw/arm/, and we don't ever do anything that confuses foo.o in one directory with foo.o in another. (Also none of the other board or SoCs have 'arm' prepended.)
Quoted 2 lines
I don't see any other boards with the same name from a Google search, but it just seems a bit vague having a three letter acronym.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
+#define
TYPE_MPS2_MACHINE"mps2"This public name seems too common as well. I am just worried it'll conflict with something one day.
I can see the issue, but on the other hand the type name is not external ABI, so we can always rename it later if we have to.
That's true, but it's still not ideal to be changing device names willy nilly.
Quoted 4 lines
The board names themselves (mps2-an385 and mps2-an511) on the other hand we have to get right from the start. I'm not sure tacking an arm- on the front of those helps; they're already pretty ungainly.
I think the boards are already long enough to be unique and probably don't need an 'arm-'. Although I think having the vendor name does clarify what the board is. Imagine a user is querying QEMU for what boards it supports and sees a board name they don't recognise. It will be a lot easier to figure out what board this is is you search "ARM MPS2" instead of just MPS2.
Quoted 4 lines
The other possible name floating around here is "v2m-mps", which at least some of the docs refer to as the name of the motherboard. There's a lot of just of just plain "MPS2", though.
I guess what we generally do is copy the spec/datasheet. So if it is in there then the name is fine.
Quoted 3 lines
(I note that we've had 'kzm' and 'z2' since forever and they haven't ever conflicted with anything despite being pretty short.)
Good point.
Quoted 23 lines
I dunno; I'll have a think about it. Naming is hard...
Quoted 6 lines
hw/arm/Makefile.objs
Quoted 4 lines
hw/arm/Makefile.objs +4
-0+ + MemoryRegion *system_memory = get_system_memory(); + + DeviceState *armv7m;These should be at the top of the function.
Fixed (along with the 'sccdev' added to the DeviceState line in a later patch).
Quoted 10 lines
Quoted 9 lines
hw/arm/Makefile.objs +9
-0+ create_unimplemented_device("CMSDK APB peripheral region @0x40000000", + 0x40000000, 0x00010000); + create_unimplemented_device("CMSDK peripheral region @0x40010000", + 0x40010000, 0x00010000); + create_unimplemented_device("Extra peripheral region @0x40020000", + 0x40020000, 0x00010000); + create_unimplemented_device("RESERVED 4", 0x40030000, 0x001D0000); + create_unimplemented_device("Ethernet", 0x40200000, 0x00100000); + create_unimplemented_device("VGA", 0x41000000, 0x0200000);
Quoted 6 lines
Quoted 1 line
I did not know this was an option, this is pretty cool.
Yeah. It's really nice for bringing up a board model because you can just add -d unimp to your command line and get the info about what devices the guest is prodding that you need to implement next.
Yeah, this is great!
Thanks,
Alistair
Quoted 3 lines
thanks
-- PMM
Re: [Qemu-arm] [Qemu-devel] [PATCH 1/7] hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
Quoted 18 lines · Alistair Francis
Quoted 9 lines · Peter Maydell
Quoted 5 lines · Alistair Francis
Quoted 1 line · Peter Maydell
+#define
TYPE_MPS2_MACHINE"mps2"This public name seems too common as well. I am just worried it'll conflict with something one day.
I can see the issue, but on the other hand the type name is not external ABI, so we can always rename it later if we have to.
That's true, but it's still not ideal to be changing device names willy nilly.
Quoted 4 lines
The board names themselves (mps2-an385 and mps2-an511) on the other hand we have to get right from the start. I'm not sure tacking an arm- on the front of those helps; they're already pretty ungainly.
Quoted 6 lines
I think the boards are already long enough to be unique and probably don't need an 'arm-'. Although I think having the vendor name does clarify what the board is. Imagine a user is querying QEMU for what boards it supports and sees a board name they don't recognise. It will be a lot easier to figure out what board this is is you search "ARM MPS2" instead of just MPS2.
"ARM" is in the long description you get from -M help:
mps2-an385 ARM MPS2 with AN385 FPGA image for Cortex-M3
mps2-an511 ARM MPS2 with AN511 DesignStart FPGA image for Cortex-M3
(compare existing
realview-pb-a8 ARM RealView Platform Baseboard for Cortex-A8
etc)
Having thought about it a bit I think there are two options:
(1) stick with what we have here, just using "mps2" in type and filenames
(2) use "arm-mps2" instead (in filenames, typenames and the board names)
since I don't much like having the base machine type be 'arm-mps2' but the board names just 'mps2-an385' &c.
But of the two I overall prefer (1) still.
thanks
-- PMM
PATCH 2/7 hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
In reply to Peter MaydellImplement a model of the simple "APB UART" provided in the Cortex-M System Design Kit (CMSDK).
--- hw/char/Makefile.objs | 1 + include/hw/char/cmsdk-apb-uart.h | 78 ++++++++ hw/char/cmsdk-apb-uart.c | 390 +++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 2 + hw/char/trace-events | 9 + 5 files changed, 480 insertions(+) create mode 100644 include/hw/char/cmsdk-apb-uart.h create mode 100644 hw/char/cmsdk-apb-uart.c
hw/char/Makefile.objs +1 -0
@@ -19,6 +19,7 @@ obj-$(CONFIG_DIGIC) += digic-uart.o obj-$(CONFIG_STM32F2XX_USART) += stm32f2xx_usart.o obj-$(CONFIG_RASPI) += bcm2835_aux.o +common-obj-$(CONFIG_CMSDK_APB_UART) += cmsdk-apb-uart.o common-obj-$(CONFIG_ETRAXFS) += etraxfs_ser.o common-obj-$(CONFIG_ISA_DEBUG) += debugcon.o common-obj-$(CONFIG_GRLIB) += grlib_apbuart.o
include/hw/char/cmsdk-apb-uart.h new file +78 -0
78 lines not on this page · raw message
hw/char/cmsdk-apb-uart.c new file +390 -0
390 lines not on this page · raw message
default-configs/arm-softmmu.mak +2 -0
@@ -96,6 +96,8 @@ CONFIG_STM32F2XX_ADC=y CONFIG_STM32F2XX_SPI=y CONFIG_STM32F205_SOC=y +CONFIG_CMSDK_APB_UART=y + CONFIG_VERSATILE_PCI=y CONFIG_VERSATILE_I2C=y
hw/char/trace-events +9 -0
@@ -56,3 +56,12 @@ pl011_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x" pl011_can_receive(uint32_t lcr, int read_count, int r) "LCR %08x read_count %d returning %d" pl011_put_fifo(uint32_t c, int read_count) "new char 0x%x read_count now %d" pl011_put_fifo_full(void) "FIFO now full, RXFF set" + +# hw/char/cmsdk_apb_uart.c +cmsdk_apb_uart_read(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB UART read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +cmsdk_apb_uart_write(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB UART write: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +cmsdk_apb_uart_reset(void) "CMSDK APB UART: reset" +cmsdk_apb_uart_receive(uint8_t c) "CMSDK APB UART: got character 0x%x from backend" +cmsdk_apb_uart_tx_pending(void) "CMSDK APB UART: character send to backend pending" +cmsdk_apb_uart_tx(uint8_t c) "CMSDK APB UART: character 0x%x sent to backend" +cmsdk_apb_uart_set_params(int speed) "CMSDK APB UART: params set to %d 8N1"
Signature · 1 line
2.7.4
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
Quoted 66 lines · Peter Maydell
Implement a model of the simple "APB UART" provided in the Cortex-M System Design Kit (CMSDK).
Signed-off-by Peter Maydell <[email protected]>--- hw/char/Makefile.objs | 1 + include/hw/char/cmsdk-apb-uart.h | 78 ++++++++ hw/char/cmsdk-apb-uart.c | 390 +++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 2 + hw/char/trace-events | 9 + 5 files changed, 480 insertions(+) create mode 100644 include/hw/char/cmsdk-apb-uart.h create mode 100644 hw/char/cmsdk-apb-uart.chw/char/Makefile.objs +1
-0@@ -19,6 +19,7 @@ obj-$(CONFIG_DIGIC) += digic-uart.o obj-$(CONFIG_STM32F2XX_USART) += stm32f2xx_usart.o obj-$(CONFIG_RASPI) += bcm2835_aux.o +common-obj-$(CONFIG_CMSDK_APB_UART) += cmsdk-apb-uart.o common-obj-$(CONFIG_ETRAXFS) += etraxfs_ser.o common-obj-$(CONFIG_ISA_DEBUG) += debugcon.o common-obj-$(CONFIG_GRLIB) += grlib_apbuart.oinclude/hw/char/cmsdk-apb-uart.h new file +34
-0@@ -0,0 +1,78 @@ +/* +* ARM CMSDK APB UART emulation +* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +#ifndef CMSDK_APB_UART_H +#define CMSDK_APB_UART_H + +#include "hw/sysbus.h" +#include "chardev/char-fe.h" + +#define TYPE_CMSDK_APB_UART "cmsdk-apb-uart" +#define CMSDK_APB_UART(obj) OBJECT_CHECK(CMSDKAPBUART, (obj), \ + TYPE_CMSDK_APB_UART) + +typedef struct { + /*< private >*/ + SysBusDevice parent_obj; + + /*< public >*/ + MemoryRegion iomem; + CharBackend chr; + qemu_irq txint; + qemu_irq rxint; + qemu_irq txovrint; + qemu_irq rxovrint; + qemu_irq uartint; + guint watch_tag;
include/hw/char/cmsdk-apb-uart.h line 44
Quoted 10 lines
include/hw/char/cmsdk-apb-uart.h new file +10
-0+uint32_t pclk_frq; + +uint32_t state; +uint32_t ctrl; +uint32_t intstatus; +uint32_t bauddiv; +/* This UART has no FIFO, only a 1-character buffer for each of Tx and Rx */ +uint8_t txbuf; +uint8_t rxbuf; +}CMSDKAPBUART ;
This should be CamelCase.
Quoted 45 lines
include/hw/char/cmsdk-apb-uart.h new file +34
-0+ +/** +* cmsdk_apb_uart_create - convenience function to create TYPE_CMSDK_APB_UART +* @addr: location in system memory to map registers +* @chr: Chardev backend to connect UART to, or NULL if no backend +* @pclk_frq: frequency in Hz of the PCLK clock (used for calculating baud rate) +*/ +static inline DeviceState *cmsdk_apb_uart_create (hwaddr addr, +qemu_irq txint, +qemu_irq rxint, +qemu_irq txovrint, +qemu_irq rxovrint, +qemu_irq uartint, +Chardev *chr, +uint32_t pclk_frq) +{ +DeviceState *dev; +SysBusDevice *s; + + dev =qdev_create (NULL ,TYPE_CMSDK_APB_UART ); + s =SYS_BUS_DEVICE (dev); +qdev_prop_set_chr (dev,"chardev" , chr); +qdev_prop_set_uint32 (dev,"pclk-frq" , pclk_frq); +qdev_init_nofail (dev); +sysbus_mmio_map (s,0 , addr); +sysbus_connect_irq (s,0 , txint); +sysbus_connect_irq (s,1 , rxint); +sysbus_connect_irq (s,2 , txovrint); +sysbus_connect_irq (s,3 , rxovrint); +sysbus_connect_irq (s,4 , uartint); +return dev; +} + +#endif hw/char/cmsdk-apb-uart.c new file +5
-0@@ -0,0 +1,390 @@ +/* +* ARM CMSDK APB UART emulation +* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell
hw/char/cmsdk-apb-uart.c line 15
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +/* This is a model of the "APB UART" which is part of the Cortex-M +* System Design Kit (CMSDK) and documented in the Cortex-M System +* Design Kit Technical Reference Manual (ARM DDI0479C): +* https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kit
I can't find the spec from this site. Is it possible to link directly to the guides? I have found a few dead links from some of these marketing focused site.
Quoted 54 lines
hw/char/cmsdk-apb-uart.c new file +54
-0+*/ + +#include "qemu/osdep.h" +#include "qemu/log.h" +#include "qapi/error.h" +#include "trace.h" +#include "hw/sysbus.h" +#include "hw/registerfields.h" +#include "chardev/char-fe.h" +#include "chardev/char-serial.h" +#include "hw/char/cmsdk-apb-uart.h" + +REG32(DATA, 0) +REG32(STATE, 4) + FIELD(STATE, TXFULL, 0, 1) + FIELD(STATE, RXFULL, 1, 1) + FIELD(STATE, TXOVERRUN, 2, 1) + FIELD(STATE, RXOVERRUN, 3, 1) +REG32(CTRL, 8) + FIELD(CTRL, TX_EN, 0, 1) + FIELD(CTRL, RX_EN, 1, 1) + FIELD(CTRL, TX_INTEN, 2, 1) + FIELD(CTRL, RX_INTEN, 3, 1) + FIELD(CTRL, TXO_INTEN, 4, 1) + FIELD(CTRL, RXO_INTEN, 5, 1) + FIELD(CTRL, HSTEST, 6, 1) +REG32(INTSTATUS, 0xc) + FIELD(INTSTATUS, TX, 0, 1) + FIELD(INTSTATUS, RX, 1, 1) + FIELD(INTSTATUS, TXO, 2, 1) + FIELD(INTSTATUS, RXO, 3, 1) +REG32(BAUDDIV, 0x10) +REG32(PID4, 0xFD0) +REG32(PID5, 0xFD4) +REG32(PID6, 0xFD8) +REG32(PID7, 0xFDC) +REG32(PID0, 0xFE0) +REG32(PID1, 0xFE4) +REG32(PID2, 0xFE8) +REG32(PID3, 0xFEC) +REG32(CID0, 0xFF0) +REG32(CID1, 0xFF4) +REG32(CID2, 0xFF8) +REG32 (CID3 ,0xFFC ) + +/* PID/CID values */ +static const int uart_id[] = { +0x04 ,0x00 ,0x00 ,0x00 ,/* PID4..PID7 */ +0x21 ,0xb8 ,0x1b ,0x00 ,/* PID0..PID3 */ +0x0d ,0xf0 ,0x05 ,0xb1 ,/* CID0..CID3 */ +}; + +static void uart_update_parameters (CMSDKAPBUART *s) +{
hw/char/cmsdk-apb-uart.c line 79
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+QEMUSerialSetParams ssp; + +/* This UART is always 8N1 but the baud rate is programmable. +* The minimum permitted bauddiv setting is 16, so we just ignore +* settings below that (usually this means the device has just +* been reset and not yet programmed). +*/ +if (s->bauddiv <16 || s->bauddiv > s->pclk_frq) { +return ; + }
This seems like it should deserve a guest error print.
Quoted 36 lines
hw/char/cmsdk-apb-uart.c new file +36
-0+ + ssp.data_bits =8 ; + ssp.parity ='N' ; + ssp.stop_bits =1 ; + ssp.speed = s->pclk_frq / s->bauddiv; +qemu_chr_fe_ioctl (&s->chr,CHR_IOCTL_SERIAL_SET_PARAMS , &ssp); +trace_cmsdk_apb_uart_set_params (ssp.speed); +} + +static void cmsdk_apb_uart_update (CMSDKAPBUART *s) +{ +/* update outbound irqs, including handling the way the rxo and txo +* interrupt status bits are just logical AND of the overrun bit in +* STATE and the overrun interrupt enable bit in CTRL. +*/ +uint32_t omask = (R_INTSTATUS_RXO_MASK |R_INTSTATUS_TXO_MASK ); + s->intstatus &= ~omask; + s->intstatus |= (s->state & (s->ctrl >>2 ) & omask); + +qemu_set_irq (s->txint, !!(s->intstatus &R_INTSTATUS_TX_MASK )); +qemu_set_irq (s->rxint, !!(s->intstatus &R_INTSTATUS_RX_MASK )); +qemu_set_irq (s->txovrint, !!(s->intstatus &R_INTSTATUS_TXO_MASK )); +qemu_set_irq (s->rxovrint, !!(s->intstatus &R_INTSTATUS_RXO_MASK )); +qemu_set_irq (s->uartint, !!(s->intstatus)); +} + +static int uart_can_receive (void *opaque) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +/* We can take a char if RX is enabled and the buffer is empty */ +if (s->ctrl &R_CTRL_RX_EN_MASK && !(s->state &R_STATE_RXFULL_MASK )) { +return 1 ; + } +return 0 ; +}
hw/char/cmsdk-apb-uart.c line 125
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+ +static void uart_receive (void *opaque,const uint8_t *buf,int size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +trace_cmsdk_apb_uart_receive (*buf); + +if (!(s->ctrl &R_CTRL_RX_EN_MASK )) { +/* Just drop the character on the floor */ +return ;
Doesn't this also deserve a guest error print.
Quoted 27 lines
hw/char/cmsdk-apb-uart.c new file +27
-0+ } + +if (s->state &R_STATE_RXFULL_MASK ) { + s->state |=R_STATE_RXOVERRUN_MASK ; + } + + s->rxbuf = *buf; + s->state |=R_STATE_RXFULL_MASK ; +if (s->ctrl &R_CTRL_RX_INTEN_MASK ) { + s->intstatus |=R_INTSTATUS_RX_MASK ; + } +cmsdk_apb_uart_update (s); +} + +static uint64_t uart_read (void *opaque,hwaddr offset,unsigned size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); +uint64_t r; + +switch (offset) { +case A_DATA : + r = s->rxbuf; + s->state &= ~R_STATE_RXFULL_MASK ; +cmsdk_apb_uart_update (s); +break ; +case A_STATE : + r = s->state;
hw/char/cmsdk-apb-uart.c line 162
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+break ; +case A_CTRL : + r = s->ctrl; +break ; +case A_INTSTATUS : + r = s->intstatus; +break ; +case A_BAUDDIV : + r = s->bauddiv; +break ;
You used pasrt of the register API but not the second part. This seems like a greaet device to use the register API on.
hw/char/cmsdk-apb-uart.c line 164
Quoted 2 lines
hw/char/cmsdk-apb-uart.c new file +2
-0+ case A_PID4 ... A_CID3: + r = uart_id[offset /4 -A_PID4 ];
I think this is the one you already found in the cover letter.
Quoted 74 lines
hw/char/cmsdk-apb-uart.c new file +74
-0+break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB UART read: bad offset %x\n" , (int ) offset); + r =0 ; +break ; + } +trace_cmsdk_apb_uart_read (offset, r, size); +return r; +} + +/* Try to send tx data, and arrange to be called back later if +* we can't (ie the char backend is busy/blocking). +*/ +static gboolean uart_transmit (GIOChannel *chan,GIOCondition cond,void *opaque) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); +int ret; + + s->watch_tag =0 ; + +if (!(s->ctrl &R_CTRL_TX_EN_MASK ) || !(s->state &R_STATE_TXFULL_MASK )) { +return FALSE; + } + + ret =qemu_chr_fe_write (&s->chr, &s->txbuf,1 ); +if (ret <=0 ) { + s->watch_tag =qemu_chr_fe_add_watch (&s->chr,G_IO_OUT |G_IO_HUP , + uart_transmit, s); +if (!s->watch_tag) { +/* Most common reason to be here is "no chardev backend": +* just insta-drain the buffer, so the serial output +* goes into a void, rather than blocking the guest. +*/ + goto buffer_drained; + } +/* Transmit pending */ +trace_cmsdk_apb_uart_tx_pending (); +return FALSE; + } + +buffer_drained: +/* Character successfully sent */ +trace_cmsdk_apb_uart_tx (s->txbuf); + s->state &= ~R_STATE_TXFULL_MASK ; +/* Going from TXFULL set to clear triggers the tx interrupt */ +if (s->ctrl &R_CTRL_TX_INTEN_MASK ) { + s->intstatus |=R_INTSTATUS_TX_MASK ; + } +cmsdk_apb_uart_update (s); +return FALSE; +} + +static void uart_cancel_transmit (CMSDKAPBUART *s) +{ +if (s->watch_tag) { +g_source_remove (s->watch_tag); + s->watch_tag =0 ; + } +} + +static void uart_write (void *opaque,hwaddr offset,uint64_t value, +unsigned size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +trace_cmsdk_apb_uart_write (offset, value, size); + +switch (offset) { +case A_DATA : + { + s->txbuf = value; +if (s->state &R_STATE_TXFULL_MASK ) { +/* Buffer already full -- note the overrun and let the
hw/char/cmsdk-apb-uart.c line 248
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+* existing pending transmit callback handle the new char. +*/ + s->state |=R_STATE_TXOVERRUN_MASK ; +cmsdk_apb_uart_update (s); + }else { + s->state |=R_STATE_TXFULL_MASK ; +uart_transmit (NULL ,G_IO_OUT , s); + } +break ; + }
Why is this case inside braces?
Thanks,
Alistair
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
Quoted 9 lines · Alistair Francis
Quoted 6 lines · Peter Maydell
Implement a model of the simple "APB UART" provided in the Cortex-M System Design Kit (CMSDK).
Signed-off-by Peter Maydell <[email protected]>+} CMSDKAPBUART;
This should be CamelCase.
Yes, but CamelCase where all the words are all-uppercase (as with CMSDK, APB and UART) is indistinguishable from all-uppercase. (Compare the way we say "PCIIORegion" rather than "PciIoRegion".)
Quoted 8 lines
Quoted 4 lines
+/* This is a model of the "APB UART" which is part of the Cortex-M
+ * System Design Kit (CMSDK) and documented in the Cortex-M System
+ * Design Kit Technical Reference Manual (ARM DDI0479C):
+ * https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kitI can't find the spec from this site. Is it possible to link directly to the guides? I have found a few dead links from some of these marketing focused site.
It's the link with the big blue button "Cortex-M System Design Kit TRM". I didn't want to link directly to the TRM, because that is (currently) an infocenter.arm.com URL which may eventually go away as content migrates to developer.arm.com. (The DDI document reference number is unique and sufficient to find the document in future even in the face of broken links.)
Quoted 6 lines
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+static void uart_update_parameters (CMSDKAPBUART *s) +{ +QEMUSerialSetParams ssp; + +/* This UART is always 8N1 but the baud rate is programmable. +* The minimum permitted bauddiv setting is 16, so we just ignore
Quoted 8 lines
hw/char/cmsdk-apb-uart.c line 79
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+* settings below that (usually this means the device has just +* been reset and not yet programmed). +*/ +if (s->bauddiv <16 || s->bauddiv > s->pclk_frq) { +return ; + }This seems like it should deserve a guest error print.
As the comment says, that would cause us to print a spurious warning every time the device was reset.
Quoted 14 lines
Quoted 14 lines
hw/char/cmsdk-apb-uart.c new file +14
-0+static int uart_can_receive (void *opaque) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +/* We can take a char if RX is enabled and the buffer is empty */ +if (s->ctrl &R_CTRL_RX_EN_MASK && !(s->state &R_STATE_RXFULL_MASK )) { +return 1 ; + } +return 0 ; +} + +static void uart_receive (void *opaque,const uint8_t *buf,int size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque);
Quoted 8 lines
hw/char/cmsdk-apb-uart.c line 125
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+ +trace_cmsdk_apb_uart_receive (*buf); + +if (!(s->ctrl &R_CTRL_RX_EN_MASK )) { +/* Just drop the character on the floor */ +return ;Doesn't this also deserve a guest error print.
It's a can't-happen case because uart_can_receive() won't return 1 if the EN bit is clear. Checking again here is perhaps unnecessary paranoia, but it's not a guest error.
Quoted 32 lines
Quoted 32 lines
hw/char/cmsdk-apb-uart.c new file +32
-0+ } + +if (s->state &R_STATE_RXFULL_MASK ) { + s->state |=R_STATE_RXOVERRUN_MASK ; + } + + s->rxbuf = *buf; + s->state |=R_STATE_RXFULL_MASK ; +if (s->ctrl &R_CTRL_RX_INTEN_MASK ) { + s->intstatus |=R_INTSTATUS_RX_MASK ; + } +cmsdk_apb_uart_update (s); +} + +static uint64_t uart_read (void *opaque,hwaddr offset,unsigned size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); +uint64_t r; + +switch (offset) { +case A_DATA : + r = s->rxbuf; + s->state &= ~R_STATE_RXFULL_MASK ; +cmsdk_apb_uart_update (s); +break ; +case A_STATE : + r = s->state; +break ; +case A_CTRL : + r = s->ctrl; +break ; +case A_INTSTATUS :
Quoted 8 lines
hw/char/cmsdk-apb-uart.c line 162
Quoted 5 lines
hw/char/cmsdk-apb-uart.c new file +5
-0+ r = s->intstatus; +break ; +case A_BAUDDIV : + r = s->bauddiv; +break ;You used pasrt of the register API but not the second part. This seems like a greaet device to use the register API on.
I really don't like the register API. The field definition convenience macros are fine, but I prefer to define devices with read and write functions with switches, I think it's clearer, and it's easier to see where you want to put a breakpoint to be able to step through register reads and writes, and so on.
Quoted 4 lines
hw/char/cmsdk-apb-uart.c line 164
Quoted 2 lines
hw/char/cmsdk-apb-uart.c new file +2
-0+ case A_PID4 ... A_CID3: + r = uart_id[offset /4 -A_PID4 ];I think this is the one you already found in the cover letter.
Yep. (Same in both timer and uart.)
Quoted 17 lines
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+switch (offset) { +case A_DATA : + { + s->txbuf = value; +if (s->state &R_STATE_TXFULL_MASK ) { +/* Buffer already full -- note the overrun and let the hw/char/cmsdk-apb-uart.c line 248
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+* existing pending transmit callback handle the new char. +*/ + s->state |=R_STATE_TXOVERRUN_MASK ; +cmsdk_apb_uart_update (s); + }else { + s->state |=R_STATE_TXFULL_MASK ; +uart_transmit (NULL ,G_IO_OUT , s); + } +break ; + }
Quoted 1 line
Why is this case inside braces?
I probably had a local variable in there at one point which I ended up not needing. I'll delete the braces.
thanks
-- PMM
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
Quoted 7 lines · Peter Maydell
Quoted 5 lines · Alistair Francis
Quoted 4 lines · Peter Maydell
Implement a model of the simple "APB UART" provided in the Cortex-M System Design Kit (CMSDK).
Signed-off-by Peter Maydell <[email protected]>
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
+} CMSDKAPBUART;
This should be CamelCase.
Yes, but CamelCase where all the words are all-uppercase (as with CMSDK, APB and UART) is indistinguishable from all-uppercase. (Compare the way we say "PCIIORegion" rather than "PciIoRegion".)
Good point, I feel like it just looks strange being all caps though.
Quoted 32 lines
Quoted 9 lines
Quoted 5 lines
+/* This is a model of the "APB UART" which is part of the Cortex-M
+ * System Design Kit (CMSDK) and documented in the Cortex-M System
+ * Design Kit Technical Reference Manual (ARM DDI0479C):
+ * https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kitI can't find the spec from this site. Is it possible to link directly to the guides? I have found a few dead links from some of these marketing focused site.
It's the link with the big blue button "Cortex-M System Design Kit TRM". I didn't want to link directly to the TRM, because that is (currently) an infocenter.arm.com URL which may eventually go away as content migrates to developer.arm.com. (The DDI document reference number is unique and sufficient to find the document in future even in the face of broken links.)
Quoted 6 lines
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+static void uart_update_parameters (CMSDKAPBUART *s) +{ +QEMUSerialSetParams ssp; + +/* This UART is always 8N1 but the baud rate is programmable. +* The minimum permitted bauddiv setting is 16, so we just ignore Quoted 8 lines
hw/char/cmsdk-apb-uart.c line 79
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+* settings below that (usually this means the device has just +* been reset and not yet programmed). +*/ +if (s->bauddiv <16 || s->bauddiv > s->pclk_frq) { +return ; + }This seems like it should deserve a guest error print.
Quoted 2 lines
As the comment says, that would cause us to print a spurious warning every time the device was reset.
I just see this being hard to debug. What about if not printing if baud rate is 0 but guest error otherwise?
Or can this not be called from reset?
Quoted 24 lines
Quoted 15 lines
Quoted 15 lines
hw/char/cmsdk-apb-uart.c new file +14
-0+static int uart_can_receive (void *opaque) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +/* We can take a char if RX is enabled and the buffer is empty */ +if (s->ctrl &R_CTRL_RX_EN_MASK && !(s->state &R_STATE_RXFULL_MASK )) { +return 1 ; + } +return 0 ; +} + +static void uart_receive (void *opaque,const uint8_t *buf,int size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque);Quoted 8 lines
hw/char/cmsdk-apb-uart.c line 125
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+ +trace_cmsdk_apb_uart_receive (*buf); + +if (!(s->ctrl &R_CTRL_RX_EN_MASK )) { +/* Just drop the character on the floor */ +return ;Doesn't this also deserve a guest error print.
Quoted 3 lines
It's a can't-happen case because
uart_can_receive()won't return 1 if the EN bit is clear. Checking again here is perhaps unnecessary paranoia, but it's not a guest error.
Ah good point. Maybe that is worth stating?
Thanks,
Alistair
Quoted 79 lines
Quoted 33 lines
Quoted 33 lines
hw/char/cmsdk-apb-uart.c new file +32
-0+ } + +if (s->state &R_STATE_RXFULL_MASK ) { + s->state |=R_STATE_RXOVERRUN_MASK ; + } + + s->rxbuf = *buf; + s->state |=R_STATE_RXFULL_MASK ; +if (s->ctrl &R_CTRL_RX_INTEN_MASK ) { + s->intstatus |=R_INTSTATUS_RX_MASK ; + } +cmsdk_apb_uart_update (s); +} + +static uint64_t uart_read (void *opaque,hwaddr offset,unsigned size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); +uint64_t r; + +switch (offset) { +case A_DATA : + r = s->rxbuf; + s->state &= ~R_STATE_RXFULL_MASK ; +cmsdk_apb_uart_update (s); +break ; +case A_STATE : + r = s->state; +break ; +case A_CTRL : + r = s->ctrl; +break ; +case A_INTSTATUS :Quoted 8 lines
hw/char/cmsdk-apb-uart.c line 162
Quoted 5 lines
hw/char/cmsdk-apb-uart.c new file +5
-0+ r = s->intstatus; +break ; +case A_BAUDDIV : + r = s->bauddiv; +break ;You used pasrt of the register API but not the second part. This seems like a greaet device to use the register API on.
I really don't like the register API. The field definition convenience macros are fine, but I prefer to define devices with read and write functions with switches, I think it's clearer, and it's easier to see where you want to put a breakpoint to be able to step through register reads and writes, and so on.
Quoted 4 lines
hw/char/cmsdk-apb-uart.c line 164
Quoted 2 lines
hw/char/cmsdk-apb-uart.c new file +2
-0+ case A_PID4 ... A_CID3: + r = uart_id[offset /4 -A_PID4 ];I think this is the one you already found in the cover letter.
Yep. (Same in both timer and uart.)
Quoted 17 lines
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+switch (offset) { +case A_DATA : + { + s->txbuf = value; +if (s->state &R_STATE_TXFULL_MASK ) { +/* Buffer already full -- note the overrun and let the hw/char/cmsdk-apb-uart.c line 248
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+* existing pending transmit callback handle the new char. +*/ + s->state |=R_STATE_TXOVERRUN_MASK ; +cmsdk_apb_uart_update (s); + }else { + s->state |=R_STATE_TXFULL_MASK ; +uart_transmit (NULL ,G_IO_OUT , s); + } +break ; + }Quoted 1 line
Why is this case inside braces?
I probably had a local variable in there at one point which I ended up not needing. I'll delete the braces.
thanks
-- PMM
Re: [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
Quoted 10 lines · Alistair Francis
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Peter Maydell
Implement a model of the simple "APB UART" provided in the Cortex-M System Design Kit (CMSDK).
Signed-off-by Peter Maydell <[email protected]>+} CMSDKAPBUART;
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
This should be CamelCase.
Yes, but CamelCase where all the words are all-uppercase (as with CMSDK, APB and UART) is indistinguishable from all-uppercase. (Compare the way we say "PCIIORegion" rather than "PciIoRegion".)
Good point, I feel like it just looks strange being all caps though.
Me too, but I didn't have any better naming ideas.
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
hw/char/cmsdk-apb-uart.c line 79
Quoted 12 lines
hw/char/cmsdk-apb-uart.c new file +12
-0+static void uart_update_parameters (CMSDKAPBUART *s) +{ +QEMUSerialSetParams ssp; + +/* This UART is always 8N1 but the baud rate is programmable. +* The minimum permitted bauddiv setting is 16, so we just ignore +* settings below that (usually this means the device has just +* been reset and not yet programmed). +*/ +if (s->bauddiv <16 || s->bauddiv > s->pclk_frq) { +return ; + }This seems like it should deserve a guest error print.
Quoted 7 lines
Quoted 2 lines
As the comment says, that would cause us to print a spurious warning every time the device was reset.
I just see this being hard to debug. What about if not printing if baud rate is 0 but guest error otherwise?
Or can this not be called from reset?
The thing is that the guest error really here is "enabled TX but didn't program the baud rate". So if you want to flag it up you'd want to do it in uart_write() at the point where CTRL.TX_EN is written to 1, not in this function. I decided I didn't really care enough to check and report that (we often don't bother to track every possible guest mistake). It won't make any difference to QEMU anyway except in the vanishingly rare case that the user connects QEMU up to a real serial port. I very nearly didn't bother to implement the set-params logic at all (we don't have it on the pl011 and nobody's ever complained).
I can add the qemu_log on "TX_EN written as 1 and baud_div out of range" if you think it's helpful though.
Quoted 23 lines
Quoted 23 lines
Quoted 22 lines
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+static int uart_can_receive (void *opaque) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +/* We can take a char if RX is enabled and the buffer is empty */ +if (s->ctrl &R_CTRL_RX_EN_MASK && !(s->state &R_STATE_RXFULL_MASK )) { +return 1 ; + } +return 0 ; +}hw/char/cmsdk-apb-uart.c line 125
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+ +static void uart_receive (void *opaque,const uint8_t *buf,int size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +trace_cmsdk_apb_uart_receive (*buf); + +if (!(s->ctrl &R_CTRL_RX_EN_MASK )) { +/* Just drop the character on the floor */ +return ;Doesn't this also deserve a guest error print.
Quoted 5 lines
Quoted 3 lines
It's a can't-happen case because
uart_can_receive()won't return 1 if the EN bit is clear. Checking again here is perhaps unnecessary paranoia, but it's not a guest error.Ah good point. Maybe that is worth stating?
Mmm, something like:
/* In fact uart_can_receive() ensures that we can't be
* called unless RX is enabled and the buffer is empty,
* but we include this logic as documentation of what the
* hardware does if a character arrives in these circumstances. */
(Or we could delete this and the RXFULL check below it entirely.)
thanks
-- PMM
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
Quoted 56 lines · Peter Maydell
Quoted 10 lines · Alistair Francis
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Peter Maydell
Implement a model of the simple "APB UART" provided in the Cortex-M System Design Kit (CMSDK).
Signed-off-by Peter Maydell <[email protected]>+} CMSDKAPBUART;
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
This should be CamelCase.
Yes, but CamelCase where all the words are all-uppercase (as with CMSDK, APB and UART) is indistinguishable from all-uppercase. (Compare the way we say "PCIIORegion" rather than "PciIoRegion".)
Good point, I feel like it just looks strange being all caps though.
Me too, but I didn't have any better naming ideas.
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
hw/char/cmsdk-apb-uart.c line 79
Quoted 12 lines
hw/char/cmsdk-apb-uart.c new file +12
-0+static void uart_update_parameters (CMSDKAPBUART *s) +{ +QEMUSerialSetParams ssp; + +/* This UART is always 8N1 but the baud rate is programmable. +* The minimum permitted bauddiv setting is 16, so we just ignore +* settings below that (usually this means the device has just +* been reset and not yet programmed). +*/ +if (s->bauddiv <16 || s->bauddiv > s->pclk_frq) { +return ; + }This seems like it should deserve a guest error print.
Quoted 7 lines
Quoted 2 lines
As the comment says, that would cause us to print a spurious warning every time the device was reset.
I just see this being hard to debug. What about if not printing if baud rate is 0 but guest error otherwise?
Or can this not be called from reset?
The thing is that the guest error really here is "enabled TX but didn't program the baud rate". So if you want to flag it up you'd want to do it in
uart_write()at the point where CTRL.TX_EN is written to 1, not in this function. I decided I didn't really care enough to check and report that (we often don't bother to track every possible guest mistake). It won't make any difference to QEMU anyway except in the vanishingly rare case that the user connects QEMU up to a real serial port. I very nearly didn't bother to implement the set-params logic at all (we don't have it on the pl011 and nobody's ever complained).
Quoted 2 lines
I can add the
qemu_logon "TX_ENwritten as 1 andbaud_divout of range" if you think it's helpful though.
I think it makes sense to add. It's one line of code and can possibly be very helpful for debugging.
Quoted 37 lines
Quoted 24 lines
Quoted 24 lines
Quoted 23 lines
Quoted 11 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+static int uart_can_receive (void *opaque) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +/* We can take a char if RX is enabled and the buffer is empty */ +if (s->ctrl &R_CTRL_RX_EN_MASK && !(s->state &R_STATE_RXFULL_MASK )) { +return 1 ; + } +return 0 ; +}hw/char/cmsdk-apb-uart.c line 125
Quoted 10 lines
hw/char/cmsdk-apb-uart.c new file +10
-0+ +static void uart_receive (void *opaque,const uint8_t *buf,int size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +trace_cmsdk_apb_uart_receive (*buf); + +if (!(s->ctrl &R_CTRL_RX_EN_MASK )) { +/* Just drop the character on the floor */ +return ;Doesn't this also deserve a guest error print.
Quoted 5 lines
Quoted 3 lines
It's a can't-happen case because
uart_can_receive()won't return 1 if the EN bit is clear. Checking again here is perhaps unnecessary paranoia, but it's not a guest error.Ah good point. Maybe that is worth stating?
Mmm, something like:
/* In factuart_can_receive()ensures that we can't be
* called unless RX is enabled and the buffer is empty,
* but we include this logic as documentation of what the
* hardware does if a character arrives in these circumstances. */
Quoted 2 lines
(Or we could delete this and the RXFULL check below it entirely.)
I like the comment, it makes sure it is really clear.
Thanks,
Alistair
Quoted 3 lines
thanks
-- PMM
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
In reply to Alistair FrancisQuoted 1 line · Alistair Francis
On Tue, Jul 11, 2017 at 1:17 PM, Peter Maydell <[email protected]> wrote:
[...]
Quoted 6 lines
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+#include "qemu/osdep.h" +#include "qemu/log.h" +#include "qapi/error.h" +#include "trace.h" +#include "hw/sysbus.h" +#include "hw/registerfields.h"
[...]
Quoted 9 lines
hw/char/cmsdk-apb-uart.c line 33
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+REG32(DATA, 0) +REG32(STATE, 4) + FIELD(STATE, TXFULL, 0, 1) + FIELD(STATE, RXFULL, 1, 1) + FIELD(STATE, TXOVERRUN, 2, 1) +FIELD (STATE ,RXOVERRUN ,3 ,1 )You used pasrt of the register API but not the second part. This seems like a greaet device to use the register API on.
He did not used the Register API (declared in hw/register.h) but only the Register Fields API ;)
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
In reply to Peter MaydellHi Peter,
There is probably no need yet, but we could model a generic APB slave with this code, as an overlapping subregion (device top 0x30 bytes).
For now only PID0 differs, but since all ID are 8bit the device could even instantiate the subregion with some u64 PID, 32 CID args.
(thinking about watchdog and dualtimers).
Regards,
Phil.
Quoted 20 lines · Peter Maydell
hw/char/cmsdk-apb-uart.c new file +20
-0+REG32(PID4, 0xFD0) +REG32(PID5, 0xFD4) +REG32(PID6, 0xFD8) +REG32(PID7, 0xFDC) +REG32(PID0, 0xFE0) +REG32(PID1, 0xFE4) +REG32(PID2, 0xFE8) +REG32(PID3, 0xFEC) +REG32(CID0, 0xFF0) +REG32(CID1, 0xFF4) +REG32(CID2, 0xFF8) +REG32 (CID3 ,0xFFC ) + +/* PID/CID values */ +static const int uart_id[] = { +0x04 ,0x00 ,0x00 ,0x00 ,/* PID4..PID7 */ +0x21 ,0xb8 ,0x1b ,0x00 ,/* PID0..PID3 */ +0x0d ,0xf0 ,0x05 ,0xb1 ,/* CID0..CID3 */ +}; +
[...]
Quoted 6 lines
hw/char/cmsdk-apb-uart.c new file +6
-0+static uint64_t uart_read (void *opaque,hwaddr offset,unsigned size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); +uint64_t r; + +switch (offset) {
[...]
Quoted 13 lines
hw/char/cmsdk-apb-uart.c new file +13
-0+ case A_PID4 ... A_CID3: + r = uart_id[offset /4 -A_PID4 ]; +break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB UART read: bad offset %x\n" , (int ) offset); + r =0 ; +break ; + } +trace_cmsdk_apb_uart_read (offset, r, size); +return r; +} +
[...]
Quoted 8 lines
hw/char/cmsdk-apb-uart.c new file +8
-0+static void uart_write (void *opaque,hwaddr offset,uint64_t value, +unsigned size) +{ +CMSDKAPBUART *s =CMSDK_APB_UART (opaque); + +trace_cmsdk_apb_uart_write (offset, value, size); + +switch (offset) {
[...]
Quoted 11 lines
hw/char/cmsdk-apb-uart.c new file +11
-0+ case A_PID4 ... A_CID3: +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB UART write: write to RO offset 0x%x\n" , + (int )offset); +break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB UART write: bad offset 0x%x\n" , (int ) offset); +break ; + } +}
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/7] hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART
Quoted 9 lines · Philippe Mathieu-Daudé
Hi Peter,
There is probably no need yet, but we could model a generic APB slave with this code, as an overlapping subregion (device top
0x30bytes).For now only PID0 differs, but since all ID are 8bit the device could even instantiate the subregion with some u64 PID, 32 CID args.
(thinking about watchdog and dualtimers).
If you look at the pl* primecell devices you'll see that's not historically how we've done them. I think it would be more code in each device to instantiate a generic device to handle the ID register section and a container to put it in than just to deal with the IDs by hand...
thanks
-- PMM
PATCH 3/7 hw/arm/mps2: Add UARTs
In reply to Peter MaydellAdd the UARTs to the MPS2 board models.
Unfortunately the details of the wiring of the interrupts through various OR gates differ between AN511 and AN385 so this can't be purely a data-driven difference.
--- hw/arm/mps2.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+)
hw/arm/mps2.c +86 -0
@@ -27,9 +27,12 @@#include "qemu/error-report.h" #include "hw/arm/arm.h" #include "hw/arm/armv7m.h" +#include "hw/or-irq.h" #include "hw/boards.h" #include "exec/address-spaces.h" +#include "sysemu/sysemu.h" #include "hw/misc/unimp.h" +#include "hw/char/cmsdk-apb-uart.h" typedef enum MPS2FPGAType { FPGA_AN385,
@@ -208,6 +211,89 @@ static void mps2_common_init(MachineState *machine)create_unimplemented_device ("Ethernet" ,0x40200000 ,0x00100000 );create_unimplemented_device ("VGA" ,0x41000000 ,0x0200000 ); +switch (mmc->fpga_type) { +case FPGA_AN385 : + { +/* The overflow IRQs for UARTs 0, 1 and 2 are ORed together. +* Overflow for UARTs 4 and 5 doesn't trigger any interrupt. +*/ +Object *orgate; +DeviceState *orgate_dev; +int i; + + orgate =object_new (TYPE_OR_IRQ ); +object_property_set_int (orgate,6 ,"num-lines" , &error_fatal); +object_property_set_bool (orgate, true,"realized" , &error_fatal); + orgate_dev =DEVICE (orgate); +qdev_connect_gpio_out (orgate_dev,0 ,qdev_get_gpio_in (armv7m,12 )); + +for (i =0 ; i <5 ; i++) { +hwaddr uartbase[] = {0x40004000 ,0x40005000 ,0x40006000 , +0x40007000 ,0x40009000 }; +Chardev *uartchr = i <MAX_SERIAL_PORTS ? serial_hds[i] :NULL ; +/* RX irq number; TX irq is always one greater */ +int uartirq[] = {0 ,2 ,4 ,18 ,20 }; +qemu_irq txovrint =NULL , rxovrint =NULL ; + +if (i <3 ) { + txovrint =qdev_get_gpio_in (orgate_dev, i *2 ); + rxovrint =qdev_get_gpio_in (orgate_dev, i *2 +1 ); + } + +cmsdk_apb_uart_create (uartbase[i], +qdev_get_gpio_in (armv7m, uartirq[i] +1 ), +qdev_get_gpio_in (armv7m, uartirq[i]), + txovrint, rxovrint, +NULL , + uartchr,SYSCLK_FRQ ); + } +break ; + } +case FPGA_AN511 : + { +/* The overflow IRQs for all UARTs are ORed together. +* Tx and Rx IRQs for each UART are ORed together. +*/ +Object *orgate; +DeviceState *orgate_dev; +int i; + + orgate =object_new (TYPE_OR_IRQ ); +object_property_set_int (orgate,10 ,"num-lines" , &error_fatal); +object_property_set_bool (orgate, true,"realized" , &error_fatal); + orgate_dev =DEVICE (orgate); +qdev_connect_gpio_out (orgate_dev,0 ,qdev_get_gpio_in (armv7m,12 )); + +for (i =0 ; i <5 ; i++) { +/* system irq numbers for the combined tx/rx for each UART */ +const int uart_txrx_irqno[] = {0 ,2 ,45 ,46 ,56 }; +hwaddr uartbase[] = {0x40004000 ,0x40005000 ,0x4002c000 , +0x4002d000 ,0x4002e000 }; +Chardev *uartchr = i <MAX_SERIAL_PORTS ? serial_hds[i] :NULL ; +Object *txrx_orgate; +DeviceState *txrx_orgate_dev; + + txrx_orgate =object_new (TYPE_OR_IRQ ); +object_property_set_int (txrx_orgate,2 ,"num-lines" , &error_fatal); +object_property_set_bool (txrx_orgate, true,"realized" , + &error_fatal); + txrx_orgate_dev =DEVICE (txrx_orgate); +qdev_connect_gpio_out (txrx_orgate_dev,0 , +qdev_get_gpio_in (armv7m, uart_txrx_irqno[i])); +cmsdk_apb_uart_create (uartbase[i], +qdev_get_gpio_in (txrx_orgate_dev,0 ), +qdev_get_gpio_in (txrx_orgate_dev,1 ), +qdev_get_gpio_in (orgate_dev,0 ), +qdev_get_gpio_in (orgate_dev,1 ), +NULL , + uartchr,SYSCLK_FRQ ); + } +break ; + } +default : +g_assert_not_reached (); + } + system_clock_scale =NANOSECONDS_PER_SECOND /SYSCLK_FRQ ; armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename,
Signature · 1 line
2.7.4
Re: [Qemu-arm] [Qemu-devel] [PATCH 3/7] hw/arm/mps2: Add UARTs
Quoted 7 lines · Peter Maydell
Add the UARTs to the MPS2 board models.
Unfortunately the details of the wiring of the interrupts through various OR gates differ between AN511 and AN385 so this can't be purely a data-driven difference.
Signed-off-by Peter Maydell <[email protected]>
Woo! I'm glad the OR IRQ stuff is useful.
Thanks,
Alistair
Quoted 115 lines
--- hw/arm/mps2.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+)hw/arm/mps2.c +86
-1@@ -27,9 +27,12 @@#include "qemu/error-report.h" #include "hw/arm/arm.h" #include "hw/arm/armv7m.h" +#include "hw/or-irq.h" #include "hw/boards.h" #include "exec/address-spaces.h" +#include "sysemu/sysemu.h" #include "hw/misc/unimp.h" +#include "hw/char/cmsdk-apb-uart.h" typedef enum MPS2FPGAType { FPGA_AN385,@@ -208,6 +211,89 @@ static void mps2_common_init(MachineState *machine)create_unimplemented_device ("Ethernet" ,0x40200000 ,0x00100000 );create_unimplemented_device ("VGA" ,0x41000000 ,0x0200000 ); +switch (mmc->fpga_type) { +case FPGA_AN385 : + { +/* The overflow IRQs for UARTs 0, 1 and 2 are ORed together. +* Overflow for UARTs 4 and 5 doesn't trigger any interrupt. +*/ +Object *orgate; +DeviceState *orgate_dev; +int i; + + orgate =object_new (TYPE_OR_IRQ ); +object_property_set_int (orgate,6 ,"num-lines" , &error_fatal); +object_property_set_bool (orgate, true,"realized" , &error_fatal); + orgate_dev =DEVICE (orgate); +qdev_connect_gpio_out (orgate_dev,0 ,qdev_get_gpio_in (armv7m,12 )); + +for (i =0 ; i <5 ; i++) { +hwaddr uartbase[] = {0x40004000 ,0x40005000 ,0x40006000 , +0x40007000 ,0x40009000 }; +Chardev *uartchr = i <MAX_SERIAL_PORTS ? serial_hds[i] :NULL ; +/* RX irq number; TX irq is always one greater */ +int uartirq[] = {0 ,2 ,4 ,18 ,20 }; +qemu_irq txovrint =NULL , rxovrint =NULL ; + +if (i <3 ) { + txovrint =qdev_get_gpio_in (orgate_dev, i *2 ); + rxovrint =qdev_get_gpio_in (orgate_dev, i *2 +1 ); + } + +cmsdk_apb_uart_create (uartbase[i], +qdev_get_gpio_in (armv7m, uartirq[i] +1 ), +qdev_get_gpio_in (armv7m, uartirq[i]), + txovrint, rxovrint, +NULL , + uartchr,SYSCLK_FRQ ); + } +break ; + } +case FPGA_AN511 : + { +/* The overflow IRQs for all UARTs are ORed together. +* Tx and Rx IRQs for each UART are ORed together. +*/ +Object *orgate; +DeviceState *orgate_dev; +int i; + + orgate =object_new (TYPE_OR_IRQ ); +object_property_set_int (orgate,10 ,"num-lines" , &error_fatal); +object_property_set_bool (orgate, true,"realized" , &error_fatal); + orgate_dev =DEVICE (orgate); +qdev_connect_gpio_out (orgate_dev,0 ,qdev_get_gpio_in (armv7m,12 )); + +for (i =0 ; i <5 ; i++) { +/* system irq numbers for the combined tx/rx for each UART */ +const int uart_txrx_irqno[] = {0 ,2 ,45 ,46 ,56 }; +hwaddr uartbase[] = {0x40004000 ,0x40005000 ,0x4002c000 , +0x4002d000 ,0x4002e000 }; +Chardev *uartchr = i <MAX_SERIAL_PORTS ? serial_hds[i] :NULL ; +Object *txrx_orgate; +DeviceState *txrx_orgate_dev; + + txrx_orgate =object_new (TYPE_OR_IRQ ); +object_property_set_int (txrx_orgate,2 ,"num-lines" , &error_fatal); +object_property_set_bool (txrx_orgate, true,"realized" , + &error_fatal); + txrx_orgate_dev =DEVICE (txrx_orgate); +qdev_connect_gpio_out (txrx_orgate_dev,0 , +qdev_get_gpio_in (armv7m, uart_txrx_irqno[i])); +cmsdk_apb_uart_create (uartbase[i], +qdev_get_gpio_in (txrx_orgate_dev,0 ), +qdev_get_gpio_in (txrx_orgate_dev,1 ), +qdev_get_gpio_in (orgate_dev,0 ), +qdev_get_gpio_in (orgate_dev,1 ), +NULL , + uartchr,SYSCLK_FRQ ); + } +break ; + } +default : +g_assert_not_reached (); + } + system_clock_scale =NANOSECONDS_PER_SECOND /SYSCLK_FRQ ; armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename, --2.7.4
PATCH 4/7 hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device
In reply to Peter MaydellImplement a model of the simple timer device found in the CMSDK.
--- hw/timer/Makefile.objs | 1 + include/hw/timer/cmsdk-apb-timer.h | 59 +++++++++ hw/timer/cmsdk-apb-timer.c | 253 +++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 1 + hw/timer/trace-events | 5 + 5 files changed, 319 insertions(+) create mode 100644 include/hw/timer/cmsdk-apb-timer.h create mode 100644 hw/timer/cmsdk-apb-timer.c
hw/timer/Makefile.objs +1 -0
@@ -41,3 +41,4 @@ common-obj-$(CONFIG_STM32F2XX_TIMER) += stm32f2xx_timer.o common-obj-$(CONFIG_ASPEED_SOC) += aspeed_timer.o common-obj-$(CONFIG_SUN4V_RTC) += sun4v-rtc.o +common-obj-$(CONFIG_CMSDK_APB_TIMER) += cmsdk-apb-timer.o
include/hw/timer/cmsdk-apb-timer.h new file +59 -0
59 lines not on this page · raw message
hw/timer/cmsdk-apb-timer.c new file +253 -0
253 lines not on this page · raw message
default-configs/arm-softmmu.mak +1 -0
@@ -96,6 +96,7 @@ CONFIG_STM32F2XX_ADC=y CONFIG_STM32F2XX_SPI=y CONFIG_STM32F205_SOC=y +CONFIG_CMSDK_APB_TIMER=y CONFIG_CMSDK_APB_UART=y CONFIG_VERSATILE_PCI=y
hw/timer/trace-events +5 -0
@@ -55,3 +55,8 @@ systick_reload(void) "systick reload" systick_timer_tick(void) "systick reload" systick_read(uint64_t addr, uint32_t value, unsigned size) "systick read addr 0x%" PRIx64 " data 0x%" PRIx32 " size %u" systick_write(uint64_t addr, uint32_t value, unsigned size) "systick write addr 0x%" PRIx64 " data 0x%" PRIx32 " size %u" + +# hw/char/cmsdk_apb_timer.c +cmsdk_apb_timer_read(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB timer read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +cmsdk_apb_timer_write(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB timer write: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +cmsdk_apb_timer_reset(void) "CMSDK APB timer: reset"
Signature · 1 line
2.7.4
Re: [Qemu-arm] [PATCH 4/7] hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device
Quoted 1 line · Peter Maydell
Implement a model of the simple timer device found in the CMSDK.
Good candidate to reference in a wiki page HowToCreateNewDeviceInQEMU
Quoted 174 lines
Signed-off-by Peter Maydell <[email protected]>--- hw/timer/Makefile.objs | 1 + include/hw/timer/cmsdk-apb-timer.h | 59 +++++++++ hw/timer/cmsdk-apb-timer.c | 253 +++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 1 + hw/timer/trace-events | 5 + 5 files changed, 319 insertions(+)create mode 100644
include/hw/timer/cmsdk-apb-timer.hcreate mode 100644hw/timer/cmsdk-apb-timer.chw/timer/Makefile.objs +1
-0@@ -41,3 +41,4 @@ common-obj-$(CONFIG_STM32F2XX_TIMER) += stm32f2xx_timer.o common-obj-$(CONFIG_ASPEED_SOC) += aspeed_timer.o common-obj-$(CONFIG_SUN4V_RTC) += sun4v-rtc.o +common-obj-$(CONFIG_CMSDK_APB_TIMER) += cmsdk-apb-timer.oinclude/hw/timer/cmsdk-apb-timer.h new file +59
-0@@ -0,0 +1,59 @@ +/* +* ARM CMSDK APB timer emulation +* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +#ifndef CMSDK_APB_TIMER_H +#define CMSDK_APB_TIMER_H + +#include "hw/sysbus.h" +#include "hw/ptimer.h" + +#define TYPE_CMSDK_APB_TIMER "cmsdk-apb-timer" +#define CMSDK_APB_TIMER (obj) OBJECT_CHECK(CMSDKAPBTIMER, (obj), \ + TYPE_CMSDK_APB_TIMER) + +typedef struct { +/*< private >*/ +SysBusDevice parent_obj; + +/*< public >*/ +MemoryRegion iomem; +qemu_irq timerint; +uint32_t pclk_frq; +struct ptimer_state *timer; + +uint32_t ctrl; +uint32_t value; +uint32_t reload; +uint32_t intstatus; +}CMSDKAPBTIMER ; + +/** +* cmsdk_apb_timer_create - convenience function to create TYPE_CMSDK_APB_TIMER +* @addr: location in system memory to map registers +* @pclk_frq: frequency in Hz of the PCLK clock (used for calculating baud rate) +*/ +static inline DeviceState *cmsdk_apb_timer_create (hwaddr addr, +qemu_irq timerint, +uint32_t pclk_frq) +{ +DeviceState *dev; +SysBusDevice *s; + + dev =qdev_create (NULL ,TYPE_CMSDK_APB_TIMER ); + s =SYS_BUS_DEVICE (dev); +qdev_prop_set_uint32 (dev,"pclk-frq" , pclk_frq); +qdev_init_nofail (dev); +sysbus_mmio_map (s,0 , addr); +sysbus_connect_irq (s,0 , timerint); +return dev; +} + +#endif hw/timer/cmsdk-apb-timer.c new file +82
-0@@ -0,0 +1,253 @@ +/* +* ARM CMSDK APB timer emulation +* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +/* This is a model of the "APB timer" which is part of the Cortex-M +* System Design Kit (CMSDK) and documented in the Cortex-M System +* Design Kit Technical Reference Manual (ARM DDI0479C): +* https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kit +* +* The hardware has an EXTIN input wire, which can be configured +* by the guest to act either as a 'timer enable' (timer does not run +* when EXTIN is low), or as a 'timer clock' (timer runs at frequency +* of EXTIN clock, not PCLK frequency). We don't model this. +* +* The documentation is not very clear about the exact behaviour; +* we choose to implement that the interrupt is triggered when +* the counter goes from 1 to 0, that the counter then holds at 0 +* for one clock cycle before reloading from the RELOAD register, +* and that if the RELOAD register is 0 this does not cause an +* interrupt (as there is no further 1->0 transition). +*/ + +#include "qemu/osdep.h" +#include "qemu/log.h" +#include "qemu/main-loop.h" +#include "qapi/error.h" +#include "trace.h" +#include "hw/sysbus.h" +#include "hw/registerfields.h" +#include "hw/timer/cmsdk-apb-timer.h" + +REG32(CTRL, 0) + FIELD(CTRL, EN, 0, 1) + FIELD(CTRL, SELEXTEN, 1, 1) + FIELD(CTRL, SELEXTCLK, 2, 1) + FIELD(CTRL, IRQEN, 3, 1) +REG32(VALUE, 4) +REG32(RELOAD, 8) +REG32(INTSTATUS, 0xc) + FIELD(INTSTATUS, IRQ, 0, 1) +REG32(PID4, 0xFD0) +REG32(PID5, 0xFD4) +REG32(PID6, 0xFD8) +REG32(PID7, 0xFDC) +REG32(PID0, 0xFE0) +REG32(PID1, 0xFE4) +REG32(PID2, 0xFE8) +REG32(PID3, 0xFEC) +REG32(CID0, 0xFF0) +REG32(CID1, 0xFF4) +REG32(CID2, 0xFF8) +REG32 (CID3 ,0xFFC ) + +/* PID/CID values */ +static const int timer_id[] = { +0x04 ,0x00 ,0x00 ,0x00 ,/* PID4..PID7 */ +0x22 ,0xb8 ,0x1b ,0x00 ,/* PID0..PID3 */ +0x0d ,0xf0 ,0x05 ,0xb1 ,/* CID0..CID3 */ +}; + +static void cmsdk_apb_timer_update (CMSDKAPBTIMER *s) +{ +qemu_set_irq (s->timerint, !!(s->intstatus &R_INTSTATUS_IRQ_MASK )); +} + +static uint64_t cmsdk_apb_timer_read (void *opaque,hwaddr offset,unsigned size) +{ +CMSDKAPBTIMER *s =CMSDK_APB_TIMER (opaque); +uint64_t r; + +switch (offset) { +case A_CTRL : + r = s->ctrl; +break ; +case A_VALUE :
hw/timer/cmsdk-apb-timer.c line 92
Quoted 10 lines
hw/timer/cmsdk-apb-timer.c new file +10
-0+ r =ptimer_get_count (s->timer); +break ; +case A_RELOAD : + r =ptimer_get_limit (s->timer); +break ; +case A_INTSTATUS : + r = s->intstatus; +break ; + case A_PID4 ... A_CID3: + r = timer_id[offset /4 -A_PID4 ];
with array bounds fixed:
Quoted 187 lines
hw/timer/cmsdk-apb-timer.c new file +161
-0+break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB timer read: bad offset %x\n" , (int ) offset); + r =0 ; +break ; + } +trace_cmsdk_apb_timer_read (offset, r, size); +return r; +} + +static void cmsdk_apb_timer_write (void *opaque,hwaddr offset,uint64_t value, +unsigned size) +{ +CMSDKAPBTIMER *s =CMSDK_APB_TIMER (opaque); + +trace_cmsdk_apb_timer_write (offset, value, size); + +switch (offset) { +case A_CTRL : +if (value &6 ) { +/* Bits [1] and [2] enable using EXTIN as either clock or +* an enable line. We don't model this. +*/ +qemu_log_mask (LOG_UNIMP , +"CMSDK APB timer: EXTIN input not supported\n" ); + } + s->ctrl = value &0xf ; +if (s->ctrl &R_CTRL_EN_MASK ) { +ptimer_run (s->timer,0 ); + }else { +ptimer_stop (s->timer); + } +break ; +case A_RELOAD : +/* Writing to reload also sets the current timer value */ +ptimer_set_limit (s->timer, value,1 ); +break ; +case A_VALUE : +ptimer_set_count (s->timer, value); +break ; +case A_INTSTATUS : +/* Just one bit, which is W1C. */ + value &=1 ; + s->intstatus &= ~value; +cmsdk_apb_timer_update (s); +break ; + case A_PID4 ... A_CID3: +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB timer write: write to RO offset 0x%x\n" , + (int )offset); +break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"CMSDK APB timer write: bad offset 0x%x\n" , (int ) offset); +break ; + } +} + +static const MemoryRegionOps cmsdk_apb_timer_ops = { + .read = cmsdk_apb_timer_read, + .write = cmsdk_apb_timer_write, + .endianness =DEVICE_LITTLE_ENDIAN , +}; + +static void cmsdk_apb_timer_tick (void *opaque) +{ +CMSDKAPBTIMER *s =CMSDK_APB_TIMER (opaque); + +if (s->ctrl &R_CTRL_IRQEN_MASK ) { + s->intstatus |=R_INTSTATUS_IRQ_MASK ; +cmsdk_apb_timer_update (s); + } +} + +static void cmsdk_apb_timer_reset (DeviceState *dev) +{ +CMSDKAPBTIMER *s =CMSDK_APB_TIMER (dev); + +trace_cmsdk_apb_timer_reset (); + s->ctrl =0 ; + s->intstatus =0 ; +ptimer_stop (s->timer); +/* Set the limit and the count */ +ptimer_set_limit (s->timer,0 ,1 ); +} + +static void cmsdk_apb_timer_init (Object *obj) +{ +SysBusDevice *sbd =SYS_BUS_DEVICE (obj); +CMSDKAPBTIMER *s =CMSDK_APB_TIMER (obj); + +memory_region_init_io (&s->iomem, obj, &cmsdk_apb_timer_ops, + s,"cmsdk-apb-timer" ,0x1000 ); +sysbus_init_mmio (sbd, &s->iomem); +sysbus_init_irq (sbd, &s->timerint); +} + +static void cmsdk_apb_timer_realize (DeviceState *dev,Error **errp) +{ +CMSDKAPBTIMER *s =CMSDK_APB_TIMER (dev); +QEMUBH *bh; + +if (s->pclk_frq ==0 ) { +error_setg (errp,"CMSDK APB timer: pclk-frq property must be set" ); +return ; + } + + bh =qemu_bh_new (cmsdk_apb_timer_tick, s); + s->timer =ptimer_init (bh, +PTIMER_POLICY_WRAP_AFTER_ONE_PERIOD | +PTIMER_POLICY_NO_IMMEDIATE_TRIGGER | +PTIMER_POLICY_NO_IMMEDIATE_RELOAD | +PTIMER_POLICY_NO_COUNTER_ROUND_DOWN ); + +ptimer_set_freq (s->timer, s->pclk_frq); +} + +static const VMStateDescription cmsdk_apb_timer_vmstate = { + .name ="cmsdk-apb-timer" , + .version_id =1 , + .minimum_version_id =1 , + .fields = (VMStateField []) { +VMSTATE_PTIMER (timer,CMSDKAPBTIMER ), +VMSTATE_UINT32 (ctrl,CMSDKAPBTIMER ), +VMSTATE_UINT32 (value,CMSDKAPBTIMER ), +VMSTATE_UINT32 (reload,CMSDKAPBTIMER ), +VMSTATE_UINT32 (intstatus,CMSDKAPBTIMER ), +VMSTATE_END_OF_LIST () + } +}; + +static Property cmsdk_apb_timer_properties[] = { +DEFINE_PROP_UINT32 ("pclk-frq" ,CMSDKAPBTIMER , pclk_frq,0 ), +DEFINE_PROP_END_OF_LIST (), +}; + +static void cmsdk_apb_timer_class_init (ObjectClass *klass,void *data) +{ +DeviceClass *dc =DEVICE_CLASS (klass); + + dc->realize = cmsdk_apb_timer_realize; + dc->vmsd = &cmsdk_apb_timer_vmstate; + dc->reset = cmsdk_apb_timer_reset; + dc->props = cmsdk_apb_timer_properties; +} + +static const TypeInfo cmsdk_apb_timer_info = { + .name =TYPE_CMSDK_APB_TIMER , + .parent =TYPE_SYS_BUS_DEVICE , + .instance_size =sizeof (CMSDKAPBTIMER ), + .instance_init = cmsdk_apb_timer_init, + .class_init = cmsdk_apb_timer_class_init, +}; + +static void cmsdk_apb_timer_register_types (void ) +{ +type_register_static (&cmsdk_apb_timer_info); +} + +type_init (cmsdk_apb_timer_register_types);default-configs/arm-softmmu.mak +1
-0@@ -96,6 +96,7 @@ CONFIG_STM32F2XX_ADC=y CONFIG_STM32F2XX_SPI=y CONFIG_STM32F205_SOC=y +CONFIG_CMSDK_APB_TIMER=y CONFIG_CMSDK_APB_UART=y CONFIG_VERSATILE_PCI=yhw/timer/trace-events +5
-0@@ -55,3 +55,8 @@ systick_reload(void) "systick reload" systick_timer_tick(void) "systick reload" systick_read(uint64_t addr, uint32_t value, unsigned size) "systick read addr 0x%" PRIx64 " data 0x%" PRIx32 " size %u" systick_write(uint64_t addr, uint32_t value, unsigned size) "systick write addr 0x%" PRIx64 " data 0x%" PRIx32 " size %u" + +# hw/char/cmsdk_apb_timer.c +cmsdk_apb_timer_read(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB timer read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +cmsdk_apb_timer_write(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB timer write: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +cmsdk_apb_timer_reset(void) "CMSDK APB timer: reset"
PATCH 5/7 hw/arm/mps2: Add timers
In reply to Peter MaydellAdd the CMSDK APB timers to the MPS2 board.
--- hw/arm/mps2.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/arm/mps2.c +4 -0
@@ -33,6 +33,7 @@#include "sysemu/sysemu.h" #include "hw/misc/unimp.h" #include "hw/char/cmsdk-apb-uart.h" +#include "hw/timer/cmsdk-apb-timer.h" typedef enum MPS2FPGAType { FPGA_AN385,
@@ -294,6 +295,9 @@ static void mps2_common_init(MachineState *machine)g_assert_not_reached (); } +cmsdk_apb_timer_create (0x40000000 ,qdev_get_gpio_in (armv7m,8 ),SYSCLK_FRQ ); +cmsdk_apb_timer_create (0x40001000 ,qdev_get_gpio_in (armv7m,9 ),SYSCLK_FRQ ); + system_clock_scale =NANOSECONDS_PER_SECOND /SYSCLK_FRQ ; armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename,
Signature · 1 line
2.7.4
Re: [Qemu-arm] [PATCH 5/7] hw/arm/mps2: Add timers
Quoted 3 lines · Peter Maydell
Add the CMSDK APB timers to the MPS2 board.
Signed-off-by Peter Maydell <[email protected]>
Quoted 27 lines
--- hw/arm/mps2.c | 4 ++++ 1 file changed, 4 insertions(+)hw/arm/mps2.c +4
-0@@ -33,6 +33,7 @@#include "sysemu/sysemu.h" #include "hw/misc/unimp.h" #include "hw/char/cmsdk-apb-uart.h" +#include "hw/timer/cmsdk-apb-timer.h" typedef enum MPS2FPGAType { FPGA_AN385,@@ -294,6 +295,9 @@ static void mps2_common_init(MachineState *machine)g_assert_not_reached (); } +cmsdk_apb_timer_create (0x40000000 ,qdev_get_gpio_in (armv7m,8 ),SYSCLK_FRQ ); +cmsdk_apb_timer_create (0x40001000 ,qdev_get_gpio_in (armv7m,9 ),SYSCLK_FRQ ); + system_clock_scale =NANOSECONDS_PER_SECOND /SYSCLK_FRQ ; armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename,
PATCH 6/7 hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller
In reply to Peter MaydellImplement a model of the Serial Communication Controller (SCC) found in MPS2 FPGA images.
The primary purpose of this device is to communicate with the Motherboard Configuration Controller (MCC) which is located on the MPS board itself, outside the FPGA image. This is used for programming the MPS clock generators. The SCC also has some basic ID registers and an output for the board LEDs.
--- hw/misc/Makefile.objs | 1 + include/hw/misc/mps2-scc.h | 43 ++++++ hw/misc/mps2-scc.c | 310 ++++++++++++++++++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 2 + hw/misc/trace-events | 8 ++ 5 files changed, 364 insertions(+) create mode 100644 include/hw/misc/mps2-scc.h create mode 100644 hw/misc/mps2-scc.c
hw/misc/Makefile.objs +1 -0
@@ -52,6 +52,7 @@ obj-$(CONFIG_STM32F2XX_SYSCFG) += stm32f2xx_syscfg.o obj-$(CONFIG_MIPS_CPS) += mips_cmgcr.o obj-$(CONFIG_MIPS_CPS) += mips_cpc.o obj-$(CONFIG_MIPS_ITU) += mips_itu.o +obj-$(CONFIG_MPS2_SCC) += mps2-scc.o obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.o
include/hw/misc/mps2-scc.h new file +43 -0
43 lines not on this page · raw message
hw/misc/mps2-scc.c new file +310 -0
310 lines not on this page · raw message
default-configs/arm-softmmu.mak +2 -0
@@ -99,6 +99,8 @@ CONFIG_STM32F205_SOC=y CONFIG_CMSDK_APB_TIMER=y CONFIG_CMSDK_APB_UART=y +CONFIG_MPS2_SCC=y + CONFIG_VERSATILE_PCI=y CONFIG_VERSATILE_I2C=y
hw/misc/trace-events +8 -0
@@ -53,3 +53,11 @@ milkymist_pfpu_pulse_irq(void) "Pulse IRQ" # hw/misc/aspeed_scu.c aspeed_scu_write(uint64_t offset, unsigned size, uint32_t data) "To 0x%" PRIx64 " of size %u: 0x%" PRIx32 + +# hw/misc/mps2_scc.c +mps2_scc_read(uint64_t offset, uint64_t data, unsigned size) "MPS2 SCC read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +mps2_scc_write(uint64_t offset, uint64_t data, unsigned size) "MPS2 SCC write: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +mps2_scc_reset(void) "MPS2 SCC: reset" +mps2_scc_leds(char led7, char led6, char led5, char led4, char led3, char led2, char led1, char led0) "MPS2 SCC LEDs: %c%c%c%c%c%c%c%c" +mps2_scc_cfg_write(unsigned function, unsigned device, uint32_t value) "MPS2 SCC config write: function %d device %d data 0x%" PRIx32 +mps2_scc_cfg_read(unsigned function, unsigned device, uint32_t value) "MPS2 SCC config read: function %d device %d data 0x%" PRIx32
Signature · 1 line
2.7.4
Re: [Qemu-arm] [PATCH 6/7] hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller
I Peter,
Quoted 9 lines · Peter Maydell
Implement a model of the Serial Communication Controller (SCC) found in MPS2 FPGA images.
The primary purpose of this device is to communicate with the Motherboard Configuration Controller (MCC) which is located on the MPS board itself, outside the FPGA image. This is used for programming the MPS clock generators. The SCC also has some basic ID registers and an output for the board LEDs.
Quoted 5 lines
Signed-off-by Peter Maydell <[email protected]>--- hw/misc/Makefile.objs | 1 + include/hw/misc/mps2-scc.h | 43 ++++++ hw/misc/mps2-scc.c | 310 ++++++++++++++++++++++++++++++++++++++++
Hmm I understand hw/ssi is for Synchronous Serial Interface, this interface doesn't belong there?
Quoted 24 lines
default-configs/arm-softmmu.mak | 2 + hw/misc/trace-events | 8 ++ 5 files changed, 364 insertions(+)create mode 100644
include/hw/misc/mps2-scc.h
create mode 100644hw/misc/mps2-scc.chw/misc/Makefile.objs +1
-0@@ -52,6 +52,7 @@ obj-$(CONFIG_STM32F2XX_SYSCFG) += stm32f2xx_syscfg.o obj-$(CONFIG_MIPS_CPS) += mips_cmgcr.o obj-$(CONFIG_MIPS_CPS) += mips_cpc.o obj-$(CONFIG_MIPS_ITU) += mips_itu.o +obj-$(CONFIG_MPS2_SCC) += mps2-scc.o obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.oinclude/hw/misc/mps2-scc.h new file +0
-0
include/hw/misc/mps2-scc.h line 2
Quoted 2 lines
include/hw/misc/mps2-scc.h new file +2
-0@@ -0,0 +1,43 @@ +/* +* ARM CMSDK APB timer emulation
ARM MPS2 SCC emulation
Quoted 139 lines
include/hw/misc/mps2-scc.h new file +41
-0+* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +#ifndef MPS2_SCC_H +#define MPS2_SCC_H + +#include "hw/sysbus.h" + +#define TYPE_MPS2_SCC "mps2-scc" +#define MPS2_SCC (obj) OBJECT_CHECK(MPS2SCC, (obj), TYPE_MPS2_SCC) + +#define NUM_OSCCLK 3 + +typedef struct { +/*< private >*/ +SysBusDevice parent_obj; + +/*< public >*/ +MemoryRegion iomem; + +uint32_t cfg0; +uint32_t cfg1; +uint32_t cfg4; +uint32_t cfgdata_rtn; +uint32_t cfgdata_out; +uint32_t cfgctrl; +uint32_t cfgstat; +uint32_t dll; +uint32_t aid; +uint32_t id; +uint32_t oscclk[NUM_OSCCLK ]; +uint32_t oscclk_reset[NUM_OSCCLK ]; +}MPS2SCC ; + +#endif hw/misc/mps2-scc.c new file +92
-0@@ -0,0 +1,310 @@ +/* +* ARM MPS2 SCC emulation +* +* Copyright (c) 2017 Linaro Limited +* Written by Peter Maydell +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 or +* (at your option) any later version. +*/ + +/* This is a model of the SCC (Serial Communication Controller) +* found in the FPGA images of MPS2 development boards. +* +* Documentation of it can be found in the MPS2 TRM: +* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.100112_0100_03_en/index.html +* and also in the Application Notes documenting individual FPGA images. +*/ + +#include "qemu/osdep.h" +#include "qemu/log.h" +#include "qapi/error.h" +#include "trace.h" +#include "hw/sysbus.h" +#include "hw/registerfields.h" +#include "hw/misc/mps2-scc.h" + +REG32(CFG0, 0) +REG32(CFG1, 4) +REG32(CFG3, 0xc) +REG32(CFG4, 0x10) +REG32(CFGDATA_RTN, 0xa0) +REG32(CFGDATA_OUT, 0xa4) +REG32(CFGCTRL, 0xa8) + FIELD(CFGCTRL, DEVICE, 0, 12) + FIELD(CFGCTRL, RES1, 12, 8) + FIELD(CFGCTRL, FUNCTION, 20, 6) + FIELD(CFGCTRL, RES2, 26, 4) + FIELD(CFGCTRL, WRITE, 30, 1) + FIELD(CFGCTRL, START, 31, 1) +REG32(CFGSTAT, 0xac) + FIELD(CFGSTAT, DONE, 0, 1) + FIELD(CFGSTAT, ERROR, 1, 1) +REG32(DLL, 0x100) +REG32(AID, 0xFF8) +REG32 (ID ,0xFFC ) + +/* Handle a write via the SYS_CFG channel to the specified function/device. +* Return false on error (reported to guest via SYS_CFGCTRL ERROR bit). + */ +static bool scc_cfg_write (MPS2SCC *s,unsigned function, +unsigned device,uint32_t value) +{ +trace_mps2_scc_cfg_write (function, device, value); + +if (function !=1 || device >=NUM_OSCCLK ) { +qemu_log_mask (LOG_GUEST_ERROR , +"MPS2 SCC config write: bad function %d device %d\n" , + function, device); +return false; + } + + s->oscclk[device] = value; +return true; +} + +/* Handle a read via the SYS_CFG channel to the specified function/device. +* Return false on error (reported to guest via SYS_CFGCTRL ERROR bit), +* or set *value on success. +*/ +static bool scc_cfg_read (MPS2SCC *s,unsigned function, +unsigned device,uint32_t *value) +{ +if (function !=1 || device >=NUM_OSCCLK ) { +qemu_log_mask (LOG_GUEST_ERROR , +"MPS2 SCC config read: bad function %d device %d\n" , + function, device); +return false; + } + + *value = s->oscclk[device]; + +trace_mps2_scc_cfg_read (function, device, *value); +return true; +} + +static uint64_t mps2_scc_read (void *opaque,hwaddr offset,unsigned size) +{ +MPS2SCC *s =MPS2_SCC (opaque); +uint64_t r; + +switch (offset) {
hw/misc/mps2-scc.c line 102
Quoted 10 lines
hw/misc/mps2-scc.c new file +10
-0+case A_CFG0 : + r = s->cfg0; +break ; +case A_CFG1 : + r = s->cfg1; +break ; +case A_CFG3 : +/* These are user-settable DIP switches on the board. We don't +* model that, so just return zeroes. +*/
Shouldn't be hard to have a property (thinking about having multiple boards and using those switches to have some board unique ID, not switches one might toggle at runtime).
Quoted 43 lines
hw/misc/mps2-scc.c new file +43
-0+ r =0 ; +break ; +case A_CFG4 : + r = s->cfg4; +break ; +case A_CFGDATA_RTN : + r = s->cfgdata_rtn; +break ; +case A_CFGDATA_OUT : + r = s->cfgdata_out; +break ; +case A_CFGCTRL : + r = s->cfgctrl; +break ; +case A_CFGSTAT : + r = s->cfgstat; +break ; +case A_DLL : + r = s->dll; +break ; +case A_AID : + r = s->aid; +break ; +case A_ID : + r = s->id; +break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"MPS2 SCC read: bad offset %x\n" , (int ) offset); + r =0 ; +break ; + } + +trace_mps2_scc_read (offset, r, size); +return r; +} + +static void mps2_scc_write (void *opaque,hwaddr offset,uint64_t value, +unsigned size) +{ +MPS2SCC *s =MPS2_SCC (opaque); + +trace_mps2_scc_write (offset, value, size);
hw/misc/mps2-scc.c line 155
Quoted 10 lines
hw/misc/mps2-scc.c new file +10
-0+ +switch (offset) { +case A_CFG0 : +/* TODO on some boards bit 0 controls RAM remapping */ + s->cfg0 = value; +break ; +case A_CFG1 : +/* CFG1 bits [7:0] control the board LEDs. We don't currently have +* a mechanism for displaying this graphically, so use a trace event. +*/
Well MIPS Jazz uses hw/display/jazz_led.c which is kinda nice :)
Now than there is interest in simulating IoT boards and so, we might think about a generic LED display.
Quoted 175 lines
hw/misc/mps2-scc.c new file +155
-0+trace_mps2_scc_leds (value &0x80 ?'*' :'.' , + value &0x40 ?'*' :'.' , + value &0x20 ?'*' :'.' , + value &0x10 ?'*' :'.' , + value &0x08 ?'*' :'.' , + value &0x04 ?'*' :'.' , + value &0x02 ?'*' :'.' , + value &0x01 ?'*' :'.' ); + s->cfg1 = value; +break ; +case A_CFGDATA_OUT : + s->cfgdata_out = value; +break ; +case A_CFGCTRL : +/* Writing to CFGCTRL clears SYS_CFGSTAT */ + s->cfgstat =0 ; + s->cfgctrl = value & ~(R_CFGCTRL_RES1_MASK | +R_CFGCTRL_RES2_MASK | +R_CFGCTRL_START_MASK ); + +if (value &R_CFGCTRL_START_MASK ) { +/* Start bit set -- do a read or write (instantaneously) */ +int device =extract32 (s->cfgctrl,R_CFGCTRL_DEVICE_SHIFT , +R_CFGCTRL_DEVICE_LENGTH ); +int function =extract32 (s->cfgctrl,R_CFGCTRL_FUNCTION_SHIFT , +R_CFGCTRL_FUNCTION_LENGTH ); + + s->cfgstat =R_CFGSTAT_DONE_MASK ; +if (s->cfgctrl &R_CFGCTRL_WRITE_MASK ) { +if (!scc_cfg_write (s, function, device, s->cfgdata_out)) { + s->cfgstat |=R_CFGSTAT_ERROR_MASK ; + } + }else { +uint32_t result; +if (!scc_cfg_read (s, function, device, &result)) { + s->cfgstat |=R_CFGSTAT_ERROR_MASK ; + }else { + s->cfgdata_rtn = result; + } + } + } +break ; +case A_DLL : +/* DLL stands for Digital Locked Loop. +* Bits [31:24] (DLL_LOCK_MASK) are writable, and indicate a +* mask of which of the DLL_LOCKED bits [16:23] should be ORed +* together to determine the ALL_UNMASKED_DLLS_LOCKED bit [0]. +* For QEMU, our DLLs are always locked, so we can leave bit 0 +* as 1 always and don't need to recalculate it. +*/ + s->dll =deposit32 (s->dll,24 ,8 ,extract32 (value,24 ,8 )); +break ; +default : +qemu_log_mask (LOG_GUEST_ERROR , +"MPS2 SCC write: bad offset 0x%x\n" , (int ) offset); +break ; + } +} + +static const MemoryRegionOps mps2_scc_ops = { + .read = mps2_scc_read, + .write = mps2_scc_write, + .endianness =DEVICE_LITTLE_ENDIAN , +}; + +static void mps2_scc_reset (DeviceState *dev) +{ +MPS2SCC *s =MPS2_SCC (dev); +int i; + +trace_mps2_scc_reset (); + s->cfg0 =0 ; + s->cfg1 =0 ; + s->cfgdata_rtn =0 ; + s->cfgdata_out =0 ; + s->cfgctrl =0x100000 ; + s->cfgstat =0 ; + s->dll =0xffff0001 ; +for (i =0 ; i <NUM_OSCCLK ; i++) { + s->oscclk[i] = s->oscclk_reset[i]; + } +} + +static void mps2_scc_init (Object *obj) +{ +SysBusDevice *sbd =SYS_BUS_DEVICE (obj); +MPS2SCC *s =MPS2_SCC (obj); + +memory_region_init_io (&s->iomem, obj, &mps2_scc_ops, s,"mps2-scc" ,0x1000 ); +sysbus_init_mmio (sbd, &s->iomem); +} + +static void mps2_scc_realize (DeviceState *dev,Error **errp) +{ +} + +static const VMStateDescription mps2_scc_vmstate = { + .name ="mps2-scc" , + .version_id =1 , + .minimum_version_id =1 , + .fields = (VMStateField []) { +VMSTATE_UINT32 (cfg0,MPS2SCC ), +VMSTATE_UINT32 (cfg1,MPS2SCC ), +VMSTATE_UINT32 (cfgdata_rtn,MPS2SCC ), +VMSTATE_UINT32 (cfgdata_out,MPS2SCC ), +VMSTATE_UINT32 (cfgctrl,MPS2SCC ), +VMSTATE_UINT32 (cfgstat,MPS2SCC ), +VMSTATE_UINT32 (dll,MPS2SCC ), +VMSTATE_UINT32_ARRAY (oscclk,MPS2SCC ,NUM_OSCCLK ), +VMSTATE_END_OF_LIST () + } +}; + +static Property mps2_scc_properties[] = { +/* Values for various read-only ID registers (which are specific +* to the board model or FPGA image) +*/ +DEFINE_PROP_UINT32 ("scc-cfg4" ,MPS2SCC , aid,0 ), +DEFINE_PROP_UINT32 ("scc-aid" ,MPS2SCC , aid,0 ), +DEFINE_PROP_UINT32 ("scc-id" ,MPS2SCC , aid,0 ), +/* These are the initial settings for the source clocks on the board. +* In hardware they can be configured via a config file read by the +* motherboard configuration controller to suit the FPGA image. +* These default values are used by most of the standard FPGA images. +*/ +DEFINE_PROP_UINT32 ("oscclk0" ,MPS2SCC , oscclk_reset[0 ],50000000 ), +DEFINE_PROP_UINT32 ("oscclk1" ,MPS2SCC , oscclk_reset[1 ],24576000 ), +DEFINE_PROP_UINT32 ("oscclk2" ,MPS2SCC , oscclk_reset[2 ],25000000 ), +DEFINE_PROP_END_OF_LIST (), +}; + +static void mps2_scc_class_init (ObjectClass *klass,void *data) +{ +DeviceClass *dc =DEVICE_CLASS (klass); + + dc->realize = mps2_scc_realize; + dc->vmsd = &mps2_scc_vmstate; + dc->reset = mps2_scc_reset; + dc->props = mps2_scc_properties; +} + +static const TypeInfo mps2_scc_info = { + .name =TYPE_MPS2_SCC , + .parent =TYPE_SYS_BUS_DEVICE , + .instance_size =sizeof (MPS2SCC ), + .instance_init = mps2_scc_init, + .class_init = mps2_scc_class_init, +}; + +static void mps2_scc_register_types (void ) +{ +type_register_static (&mps2_scc_info); +} + +type_init (mps2_scc_register_types);default-configs/arm-softmmu.mak +2
-0@@ -99,6 +99,8 @@ CONFIG_STM32F205_SOC=y CONFIG_CMSDK_APB_TIMER=y CONFIG_CMSDK_APB_UART=y +CONFIG_MPS2_SCC=y + CONFIG_VERSATILE_PCI=y CONFIG_VERSATILE_I2C=yhw/misc/trace-events +0
-0@@ -53,3 +53,11 @@ milkymist_pfpu_pulse_irq(void) "Pulse IRQ"
hw/misc/trace-events milkymist_pfpu_pulse_irq(void) "Pulse IRQ" · line 63
Quoted 10 lines
hw/misc/trace-events +8
-0# hw/misc/aspeed_scu.c aspeed_scu_write(uint64_t offset, unsigned size, uint32_t data) "To 0x%" PRIx64 " of size %u: 0x%" PRIx32 + +# hw/misc/mps2_scc.c +mps2_scc_read(uint64_t offset, uint64_t data, unsigned size) "MPS2 SCC read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +mps2_scc_write(uint64_t offset, uint64_t data, unsigned size) "MPS2 SCC write: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u" +mps2_scc_reset(void) "MPS2 SCC: reset" +mps2_scc_leds(char led7, char led6, char led5, char led4, char led3, char led2, char led1, char led0) "MPS2 SCC LEDs: %c%c%c%c%c%c%c%c" +mps2_scc_cfg_write(unsigned function, unsigned device, uint32_t value) "MPS2 SCC config write: function %d device %d data 0x%" PRIx32 +mps2_scc_cfg_read(unsigned function, unsigned device, uint32_t value) "MPS2 SCC config read: function %d device %d data 0x%" PRIx32
Re: [Qemu-arm] [PATCH 6/7] hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller
Quoted 21 lines · Philippe Mathieu-Daudé
I Peter,
Quoted 10 lines · Peter Maydell
Implement a model of the Serial Communication Controller (SCC) found in MPS2 FPGA images.
The primary purpose of this device is to communicate with the Motherboard Configuration Controller (MCC) which is located on the MPS board itself, outside the FPGA image. This is used for programming the MPS clock generators. The SCC also has some basic ID registers and an output for the board LEDs.
Quoted 6 lines
Signed-off-by Peter Maydell <[email protected]>--- hw/misc/Makefile.objs | 1 + include/hw/misc/mps2-scc.h | 43 ++++++ hw/misc/mps2-scc.c | 310++++++++++++++++++++++++++++++++++++++++
Quoted 2 lines
Hmm I understand hw/ssi is for Synchronous Serial Interface, this interface doesn't belong there?
No, it's not an SSI bus -- that's a standardized clocked point-to-point serial interface. This is just a fairly ad-hoc communication channel.
Quoted 7 lines
include/hw/misc/mps2-scc.h line 2
Quoted 4 lines
+++
b/include/hw/misc/mps2-scc.hinclude/hw/misc/mps2-scc.h new file +2
-0@@ -0,0 +1,43 @@ +/* +* ARM CMSDK APB timer emulation ARM MPS2 SCC emulation
Oops; fixed.
Quoted 13 lines
Quoted 13 lines
hw/misc/mps2-scc.c new file +13
-0+static uint64_t mps2_scc_read (void *opaque,hwaddr offset,unsigned size) +{ +MPS2SCC *s =MPS2_SCC (opaque); +uint64_t r; + +switch (offset) { +case A_CFG0 : + r = s->cfg0; +break ; +case A_CFG1 : + r = s->cfg1; +break ; +case A_CFG3 :
Quoted 8 lines
hw/misc/mps2-scc.c line 102
Quoted 3 lines
hw/misc/mps2-scc.c new file +3
-0+/* These are user-settable DIP switches on the board. We don't +* model that, so just return zeroes. +*/ Shouldn't be hard to have a property (thinking about having multiple boards and using those switches to have some board unique ID, not switches one might toggle at runtime).
No, on the board these are wired up to user-toggled switches. Board ID information is in the ID/AID/CFG4 registers, which we have properties for.
Quoted 8 lines
Quoted 6 lines
(quoted diff) +2
-0+ case A_CFG1: + /* CFG1 bits [7:0] control the board LEDs. We don't currentlyhave
+ * a mechanism for displaying this graphically, so use a trace
event.
+ */
Quoted 4 lines
Well MIPS Jazz uses
hw/display/jazz_led.cwhich is kinda nice :)Now than there is interest in simulating IoT boards and so, we might think about a generic LED display.
Yeah, if we do this at all we should have generic support (and ideally you might want to see both the LED output and the LCD screen output at the same time). This tracepoint is a low-effort placeholder because I don't want to get into trying to define and implement a generic LED-and-switches kind of UI.
Quoted 1 line
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
thanks
-- PMM
PATCH 7/7 hw/arm/mps2: Add SCC
In reply to Peter MaydellAdd the SCC to the MPS2 board models.
--- hw/arm/mps2.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
hw/arm/mps2.c +16 -1
@@ -34,6 +34,7 @@#include "hw/misc/unimp.h" #include "hw/char/cmsdk-apb-uart.h" #include "hw/timer/cmsdk-apb-timer.h" +#include "hw/misc/mps2-scc.h" typedef enum MPS2FPGAType { FPGA_AN385,
@@ -44,6 +45,7 @@ typedef struct {MachineClass parent;MPS2FPGAType fpga_type;const char *cpu_model; +uint32_t scc_id; } MPS2MachineClass; typedef struct {
@@ -60,6 +62,7 @@ typedef struct {MemoryRegion blockram_m2;MemoryRegion blockram_m3;MemoryRegion sram; +MPS2SCC scc; } MPS2MachineState;#define TYPE_MPS2_MACHINE "mps2"
@@ -114,7 +117,7 @@ static void mps2_common_init(MachineState *machine)MemoryRegion *system_memory =get_system_memory (); -DeviceState *armv7m; +DeviceState *armv7m, *sccdev;/* The FPGA images have an odd combination of different RAMs, * because in hardware they are different implementations and
@@ -298,6 +301,16 @@ static void mps2_common_init(MachineState *machine)cmsdk_apb_timer_create (0x40000000 ,qdev_get_gpio_in (armv7m,8 ),SYSCLK_FRQ );cmsdk_apb_timer_create (0x40001000 ,qdev_get_gpio_in (armv7m,9 ),SYSCLK_FRQ ); +object_initialize (&mms->scc,sizeof (mms->scc),TYPE_MPS2_SCC ); + sccdev =DEVICE (&mms->scc); +qdev_set_parent_bus (armv7m,sysbus_get_default ()); +qdev_prop_set_uint32 (sccdev,"scc-cfg4" ,0x2 ); +qdev_prop_set_uint32 (sccdev,"scc-aid" ,0x02000008 ); +qdev_prop_set_uint32 (sccdev,"scc-id" , mmc->scc_id); +object_property_set_bool (OBJECT (&mms->scc), true,"realized" , + &error_fatal); +sysbus_mmio_map (SYS_BUS_DEVICE (sccdev),0 ,0x4002f000 ); + system_clock_scale =NANOSECONDS_PER_SECOND /SYSCLK_FRQ ; armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename,
@@ -320,6 +333,7 @@ static void mps2_an385_class_init(ObjectClass *oc, void *data) mc->desc ="ARM MPS2 with AN385 FPGA image for Cortex-M3" ; mmc->fpga_type =FPGA_AN385 ; mmc->cpu_model ="cortex-m3" ; + mmc->scc_id =0x41040000 | (385 <<4 ); }static void mps2_an511_class_init (ObjectClass *oc,void *data)
@@ -330,6 +344,7 @@ static void mps2_an511_class_init(ObjectClass *oc, void *data) mc->desc ="ARM MPS2 with AN511 DesignStart FPGA image for Cortex-M3" ; mmc->fpga_type =FPGA_AN511 ; mmc->cpu_model ="cortex-m3" ; + mmc->scc_id =0x4104000 | (511 <<4 ); }static const TypeInfo mps2_info = {
Signature · 1 line
2.7.4
Re: [Qemu-arm] [PATCH 7/7] hw/arm/mps2: Add SCC
Quoted 3 lines · Peter Maydell
Add the SCC to the MPS2 board models.
Signed-off-by Peter Maydell <[email protected]>
Quoted 75 lines
--- hw/arm/mps2.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)hw/arm/mps2.c +16
-1@@ -34,6 +34,7 @@#include "hw/misc/unimp.h" #include "hw/char/cmsdk-apb-uart.h" #include "hw/timer/cmsdk-apb-timer.h" +#include "hw/misc/mps2-scc.h" typedef enum MPS2FPGAType { FPGA_AN385,@@ -44,6 +45,7 @@ typedef struct {MachineClass parent;MPS2FPGAType fpga_type;const char *cpu_model; +uint32_t scc_id; } MPS2MachineClass; typedef struct {@@ -60,6 +62,7 @@ typedef struct {MemoryRegion blockram_m2;MemoryRegion blockram_m3;MemoryRegion sram; +MPS2SCC scc; } MPS2MachineState;#define TYPE_MPS2_MACHINE "mps2"@@ -114,7 +117,7 @@ static void mps2_common_init(MachineState *machine)MemoryRegion *system_memory =get_system_memory (); -DeviceState *armv7m; +DeviceState *armv7m, *sccdev;/* The FPGA images have an odd combination of different RAMs, * because in hardware they are different implementations and @@ -298,6 +301,16 @@ static void mps2_common_init(MachineState *machine)cmsdk_apb_timer_create (0x40000000 ,qdev_get_gpio_in (armv7m,8 ),SYSCLK_FRQ );cmsdk_apb_timer_create (0x40001000 ,qdev_get_gpio_in (armv7m,9 ),SYSCLK_FRQ ); +object_initialize (&mms->scc,sizeof (mms->scc),TYPE_MPS2_SCC ); + sccdev =DEVICE (&mms->scc); +qdev_set_parent_bus (armv7m,sysbus_get_default ()); +qdev_prop_set_uint32 (sccdev,"scc-cfg4" ,0x2 ); +qdev_prop_set_uint32 (sccdev,"scc-aid" ,0x02000008 ); +qdev_prop_set_uint32 (sccdev,"scc-id" , mmc->scc_id); +object_property_set_bool (OBJECT (&mms->scc), true,"realized" , + &error_fatal); +sysbus_mmio_map (SYS_BUS_DEVICE (sccdev),0 ,0x4002f000 ); + system_clock_scale =NANOSECONDS_PER_SECOND /SYSCLK_FRQ ; armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename,@@ -320,6 +333,7 @@ static void mps2_an385_class_init(ObjectClass *oc, void *data) mc->desc ="ARM MPS2 with AN385 FPGA image for Cortex-M3" ; mmc->fpga_type =FPGA_AN385 ; mmc->cpu_model ="cortex-m3" ; + mmc->scc_id =0x41040000 | (385 <<4 ); }static void mps2_an511_class_init (ObjectClass *oc,void *data)@@ -330,6 +344,7 @@ static void mps2_an511_class_init(ObjectClass *oc, void *data) mc->desc ="ARM MPS2 with AN511 DesignStart FPGA image for Cortex-M3" ; mmc->fpga_type =FPGA_AN511 ; mmc->cpu_model ="cortex-m3" ; + mmc->scc_id =0x4104000 | (511 <<4 ); }static const TypeInfo mps2_info = {
Hi Peter,
It seems you forgot to add some files to MAINTAINERS.
That said, is there some old school perl guy motivated to add a such chek in checkpatch?
Quoted 79 lines · Peter Maydell
This patchseries adds support for the ARM MPS2/MPS2+ dev board:
The MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger FPGA but is otherwise the same as the 2). Since the CPU itself and most of the devices are in the FPGA, the details of the board as seen by the guest depend significantly on the FPGA image.
We model the following FPGA images:
"mps2_an385" -- Cortex-M3 as documented in ARM Application Note AN385 "mps2_an511" -- Cortex-M3 'DesignStart' as documented in AN511They are fairly similar but differ in the details for some peripherals.
Further info and links to all the documentation for the board and the various FPGA images can be found here:
https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systemThis patchset adds the boards themselves, and the UART, timer and system-controller devices they need. There are a number of other devices on the board which are not yet modelled (notably more GPIOs, a watchdog, another different kind of timer, and a display device), but this minimal set is sufficient to boot the "hello world" binary of the Zephyr RTOS and the "blinky" binary of the mbed RTOS.
[To run the zephyr binary you also need this fix:
http://patchwork.ozlabs.org/patch/782811/
which is in the target-arm pullreq I just sent so should get into master in a few days.]We can add more devices to the model later, but I figured this was a sufficient place to start.
The underlying motivation here is that the v8M work that I have planned will need a board, and there is a v8M FPGA image for the MPS2 that we can use. It's also perhaps a more useful M profile board for general purposes than the stellaris boards (64K RAM) or the Netduino2 (128K RAM), since it has 16MB of RAM.
thanks
-- PMMPeter Maydell (7):
hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board modelshw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART hw/arm/mps2: Add UARTs
hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device hw/arm/mps2: Add timers
hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller hw/arm/mps2: Add SCChw/arm/Makefile.objs | 1 + hw/char/Makefile.objs | 1 + hw/misc/Makefile.objs | 1 + hw/timer/Makefile.objs | 1 + include/hw/char/cmsdk-apb-uart.h | 78 ++++++++ include/hw/misc/mps2-scc.h | 43 ++++ include/hw/timer/cmsdk-apb-timer.h | 59 ++++++ hw/arm/mps2.c | 378 +++++++++++++++++++++++++++++++++++ hw/char/cmsdk-apb-uart.c | 390 +++++++++++++++++++++++++++++++++++++ hw/misc/mps2-scc.c | 310 +++++++++++++++++++++++++++++ hw/timer/cmsdk-apb-timer.c | 253 ++++++++++++++++++++++++ default-configs/arm-softmmu.mak | 6 + hw/char/trace-events | 9 + hw/misc/trace-events | 8 + hw/timer/trace-events | 5 + 15 files changed, 1543 insertions(+) create mode 100644 include/hw/char/cmsdk-apb-uart.h create mode 100644 include/hw/misc/mps2-scc.h create mode 100644 include/hw/timer/cmsdk-apb-timer.h create mode 100644 hw/arm/mps2.c create mode 100644 hw/char/cmsdk-apb-uart.c create mode 100644 hw/misc/mps2-scc.c create mode 100644 hw/timer/cmsdk-apb-timer.c--
2.7.4
Quoted 3 lines · Philippe Mathieu-Daudé
Hi Peter,
It seems you forgot to add some files to
MAINTAINERS.
True. I'll add this patch to v2 when it goes out:
MAINTAINERS: Add entries for MPS2 board
Add entries to the MAINTAINERS file for the new MPS2 board and devices.
Since the CMSDK devices are not specific to the MPS2 board, extend the existing 'PrimeCell' section to cover CMSDK devices as well; in both cases these are devices implemented by ARM and provided as RTL that may be used in multiple SoCs and boards.
MAINTAINERS +13 -1
@@ -380,7 +380,7 @@ F: hw/*/allwinner* F: include/hw/*/allwinner* F: hw/arm/cubieboard.c -ARM PrimeCell +ARM PrimeCell and CMSDK devices M: Peter Maydell <[email protected]> L: [email protected] S: Maintained
@@ -394,6 +394,10 @@ F: hw/intc/pl190.c F: hw/sd/pl181.c F: hw/timer/pl031.c F: include/hw/arm/primecell.h +F: hw/timer/cmsdk-apb-timer.c +F: include/hw/timer/cmsdk-apb-timer.h +F: hw/char/cmsdk-apb-uart.c +F: include/hw/char/cmsdk-apb-uart.h ARM cores M: Peter Maydell <[email protected]>
@@ -455,6 +459,14 @@ S: Maintained F: hw/arm/integratorcp.c F: hw/misc/arm_integrator_debug.c +MPS2 +M: Peter Maydell <[email protected]> +L: [email protected] +S: Maintained +F: hw/arm/mps2.c +F: hw/misc/mps2-scc.c +F: include/hw/misc/mps2-scc.h + Musicpal M: Jan Kiszka <[email protected]> L: [email protected]
thanks
-- PMM
This series failed build test on s390x host. Please find the details below.
Hi,
This series failed build test on s390x host. Please find the details below.
Type: series
Subject: [Qemu-devel] [PATCH 0/7] ARM: implement MPS2 board (with 2 FPGA flavours)
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
# Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base"
# branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" CC=$HOME/bin/cc INSTALL=$PWD/install BUILD=$PWD/build echo -n "Using CC: " realpath $CC mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --cc=$CC --prefix=$INSTALL make -j4 # XXX: we need reliable clean up # make check -j4 V=1 make install === TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
6351b6c hw/arm/mps2: Add SCC
676920f hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller 8f2cab8 hw/arm/mps2: Add timers
b2f5548 hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device 22edae7 hw/arm/mps2: Add UARTs
06da5be hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART 4b2b0b5 hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
=== OUTPUT BEGIN ===
=== ENV ===
XDG_SESSION_ID=146112
SHELL=/bin/sh
USER=fam
PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug PATH=/usr/bin:/bin PWD=/var/tmp/patchew-tester-tmp-e38by36j/src LANG=en_US.UTF-8
HOME=/home/fam
SHLVL=2
LOGNAME=fam DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus XDG_RUNTIME_DIR=/run/user/1012
_=/usr/bin/env
=== PACKAGES ===
gpg-pubkey-873529b8-54e386ff
xz-libs-5.2.2-2.fc24.s390x
libxshmfence-1.2-3.fc24.s390x
giflib-4.1.6-15.fc24.s390x
trousers-lib-0.3.13-6.fc24.s390x ncurses-base-6.0-6.20160709.fc25.noarch gmp-6.1.1-1.fc25.s390x
libidn-1.33-1.fc25.s390x
slang-2.3.0-7.fc25.s390x
libsemanage-2.5-8.fc25.s390x
pkgconfig-0.29.1-1.fc25.s390x
alsa-lib-1.1.1-2.fc25.s390x yum-metadata-parser-1.1.4-17.fc25.s390x python3-slip-dbus-0.6.4-4.fc25.noarch python2-cssselect-0.9.2-1.fc25.noarch python-fedora-0.8.0-2.fc25.noarch createrepo_c-libs-0.10.0-6.fc25.s390x initscripts-9.69-1.fc25.s390x
wget-1.18-2.fc25.s390x
dhcp-client-4.3.5-1.fc25.s390x
parted-3.2-21.fc25.s390x
flex-2.6.0-3.fc25.s390x
colord-libs-1.3.4-1.fc25.s390x python-osbs-client-0.33-3.fc25.noarch perl-Pod-Simple-3.35-1.fc25.noarch python2-simplejson-3.10.0-1.fc25.s390x brltty-5.4-2.fc25.s390x
librados2-10.2.4-2.fc25.s390x
tcp_wrappers-7.6-83.fc25.s390x libcephfs_jni1-10.2.4-2.fc25.s390x nettle-devel-3.3-1.fc25.s390x bzip2-devel-1.0.6-21.fc25.s390x
libuuid-2.28.2-2.fc25.s390x
pango-1.40.4-1.fc25.s390x
python3-dnf-1.1.10-6.fc25.noarch cryptsetup-libs-1.7.4-1.fc25.s390x texlive-kpathsea-doc-svn41139-33.fc25.1.noarch netpbm-10.77.00-3.fc25.s390x
openssh-7.4p1-4.fc25.s390x texlive-kpathsea-bin-svn40473-33.20160520.fc25.1.s390x texlive-graphics-svn41015-33.fc25.1.noarch texlive-dvipdfmx-def-svn40328-33.fc25.1.noarch texlive-mfware-svn40768-33.fc25.1.noarch texlive-texlive-scripts-svn41433-33.fc25.1.noarch texlive-euro-svn22191.1.1-33.fc25.1.noarch texlive-etex-svn37057.0-33.fc25.1.noarch texlive-iftex-svn29654.0.2-33.fc25.1.noarch texlive-palatino-svn31835.0-33.fc25.1.noarch texlive-texlive-docindex-svn41430-33.fc25.1.noarch texlive-xunicode-svn30466.0.981-33.fc25.1.noarch texlive-koma-script-svn41508-33.fc25.1.noarch texlive-pst-grad-svn15878.1.06-33.fc25.1.noarch texlive-pst-blur-svn15878.2.0-33.fc25.1.noarch texlive-jknapltx-svn19440.0-33.fc25.1.noarch netpbm-progs-10.77.00-3.fc25.s390x
texinfo-6.1-4.fc25.s390x
openssl-devel-1.0.2k-1.fc25.s390x python2-sssdconfig-1.15.2-1.fc25.noarch gdk-pixbuf2-2.36.6-1.fc25.s390x mesa-libEGL-13.0.4-3.fc25.s390x
pcre-cpp-8.40-6.fc25.s390x
pcre-utf16-8.40-6.fc25.s390x glusterfs-extra-xlators-3.10.1-1.fc25.s390x mesa-libGL-devel-13.0.4-3.fc25.s390x nss-devel-3.29.3-1.1.fc25.s390x
libaio-0.3.110-6.fc24.s390x
libfontenc-1.1.3-3.fc24.s390x
lzo-2.08-8.fc24.s390x
isl-0.14-5.fc24.s390x
libXau-1.0.8-6.fc24.s390x
linux-atm-libs-2.5.1-14.fc24.s390x libXext-1.3.3-4.fc24.s390x
libXxf86vm-1.1.4-3.fc24.s390x
bison-3.0.4-4.fc24.s390x
perl-srpm-macros-1-20.fc25.noarch
gawk-4.1.3-8.fc25.s390x libwayland-client-1.12.0-1.fc25.s390x perl-Exporter-5.72-366.fc25.noarch perl-version-0.99.17-1.fc25.s390x fftw-libs-double-3.3.5-3.fc25.s390x libssh2-1.8.0-1.fc25.s390x ModemManager-glib-1.6.4-1.fc25.s390x newt-python3-0.52.19-2.fc25.s390x python-munch-2.0.4-3.fc25.noarch python-bugzilla-1.2.2-4.fc25.noarch libedit-3.1-16.20160618cvs.fc25.s390x python-pycurl-7.43.0-4.fc25.s390x createrepo_c-0.10.0-6.fc25.s390x device-mapper-multipath-libs-0.4.9-83.fc25.s390x yum-3.4.3-510.fc25.noarch
dhcp-common-4.3.5-1.fc25.noarch dracut-config-rescue-044-78.fc25.s390x teamd-1.26-1.fc25.s390x
mozjs17-17.0.0-16.fc25.s390x
libselinux-2.5-13.fc25.s390x
libgo-devel-6.3.1-1.fc25.s390x NetworkManager-libnm-1.4.4-3.fc25.s390x python2-pyparsing-2.1.10-1.fc25.noarch cairo-gobject-1.14.8-1.fc25.s390x
ethtool-4.8-1.fc25.s390x xorg-x11-proto-devel-7.7-20.fc25.noarch brlapi-0.6.5-2.fc25.s390x
librados-devel-10.2.4-2.fc25.s390x libXinerama-devel-1.1.3-6.fc24.s390x
quota-4.03-7.fc25.s390x
lua-posix-33.3.1-3.fc25.s390x usbredir-devel-0.7.1-2.fc24.s390x python-libs-2.7.13-1.fc25.s390x libX11-devel-1.6.4-4.fc25.s390x python-devel-2.7.13-1.fc25.s390x
libepoxy-1.4.1-1.fc25.s390x freetype-devel-2.6.5-3.fc25.s390x python3-dnf-plugins-core-0.1.21-5.fc25.noarch perl-macros-5.24.1-385.fc25.s390x texlive-pdftex-doc-svn41149-33.fc25.1.noarch mariadb-config-10.1.21-3.fc25.s390x openssh-clients-7.4p1-4.fc25.s390x iptables-1.6.0-3.fc25.s390x texlive-texlive.infra-svn41280-33.fc25.1.noarch texlive-graphics-cfg-svn40269-33.fc25.1.noarch texlive-bibtex-svn40768-33.fc25.1.noarch texlive-mfware-bin-svn40473-33.20160520.fc25.1.s390x texlive-texlive-scripts-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-sauerj-svn15878.0-33.fc25.1.noarch texlive-enctex-svn34957.0-33.fc25.1.noarch texlive-ifetex-svn24853.1.2-33.fc25.1.noarch texlive-ntgclass-svn15878.2.1a-33.fc25.1.noarch texlive-tex-gyre-math-svn41264-33.fc25.1.noarch texlive-bera-svn20031.0-33.fc25.1.noarch texlive-ms-svn29849.0-33.fc25.1.noarch texlive-pst-fill-svn15878.1.01-33.fc25.1.noarch texlive-ctable-svn38672-33.fc25.1.noarch texlive-extsizes-svn17263.1.4a-33.fc25.1.noarch texlive-collection-latexrecommended-svn35765.0-33.20160520.fc25.1.noarch perl-Filter-1.57-1.fc25.s390x krb5-workstation-1.14.4-7.fc25.s390x python2-rpm-macros-3-12.fc25.noarch audit-libs-2.7.4-1.fc25.s390x libglvnd-egl-0.2.999-14.20170308git8e6e102.fc25.s390x libglvnd-opengl-0.2.999-14.20170308git8e6e102.fc25.s390x pcre-devel-8.40-6.fc25.s390x
gdbm-1.13-1.fc25.s390x mesa-libGLES-devel-13.0.4-3.fc25.s390x java-1.8.0-openjdk-1.8.0.121-10.b14.fc25.s390x gpg-pubkey-efe550f5-5220ba41
gpg-pubkey-81b46521-55b3ca9a
filesystem-3.2-37.fc24.s390x
libffi-3.1-9.fc24.s390x
keyutils-libs-1.5.9-8.fc24.s390x libnfnetlink-1.0.1-8.fc24.s390x libtheora-1.1.1-14.fc24.s390x xml-common-0.6.3-44.fc24.noarch
autoconf-2.69-22.fc24.noarch
libXt-1.1.5-3.fc24.s390x
kbd-legacy-2.0.3-3.fc24.noarch ghostscript-fonts-5.50-35.fc24.noarch libXevie-1.0.3-11.fc24.s390x
libcap-2.25-2.fc25.s390x
mpfr-3.1.5-1.fc25.s390x
perl-Carp-1.40-365.fc25.noarch
libmnl-1.0.4-1.fc25.s390x perl-Unicode-EastAsianWidth-1.33-8.fc25.noarch libwayland-cursor-1.12.0-1.fc25.s390x python-krbV-1.0.90-12.fc25.s390x python2-urllib3-1.15.1-3.fc25.noarch fipscheck-1.4.1-11.fc25.s390x
libndp-1.6-1.fc25.s390x
gnupg2-2.1.13-2.fc25.s390x
libXfixes-5.0.3-1.fc25.s390x adwaita-icon-theme-3.22.0-1.fc25.noarch dconf-0.26.0-1.fc25.s390x ncurses-devel-6.0-6.20160709.fc25.s390x dejagnu-1.6-1.fc25.noarch
libstdc++-devel-6.3.1-1.fc25.s390x python-beautifulsoup4-4.5.3-1.fc25.noarch device-mapper-1.02.136-3.fc25.s390x subversion-1.9.5-1.fc25.s390x libtool-ltdl-2.4.6-13.fc25.s390x libevent-2.0.22-1.fc25.s390x
atk-devel-2.22.0-1.fc25.s390x
libev-4.24-1.fc25.s390x xorg-x11-fonts-Type1-7.5-16.fc24.noarch libtasn1-devel-4.10-1.fc25.s390x vte291-devel-0.46.1-1.fc25.s390x brlapi-devel-0.6.5-2.fc25.s390x pulseaudio-libs-10.0-2.fc25.s390x libnl3-cli-3.2.29-2.fc25.s390x perl-libs-5.24.1-385.fc25.s390x
glib2-2.50.3-1.fc25.s390x python3-firewall-0.4.4.4-1.fc25.noarch python2-rpm-4.13.0.1-1.fc25.s390x
gnutls-3.5.10-1.fc25.s390x
pango-devel-1.40.4-1.fc25.s390x
dnf-1.1.10-6.fc25.noarch texlive-metafont-bin-svn40987-33.20160520.fc25.1.s390x texlive-xkeyval-svn35741.2.7a-33.fc25.1.noarch texlive-euler-svn17261.2.5-33.fc25.1.noarch texlive-mptopdf-svn41282-33.fc25.1.noarch texlive-wasy-svn35831.0-33.fc25.1.noarch texlive-avantgar-svn31835.0-33.fc25.1.noarch texlive-eurosym-svn17265.1.4_subrfix-33.fc25.1.noarch texlive-knuth-lib-svn35820.0-33.fc25.1.noarch texlive-parallel-svn15878.0-33.fc25.1.noarch texlive-texlive-msg-translations-svn41431-33.fc25.1.noarch texlive-latex-svn40218-33.fc25.1.noarch texlive-lualatex-math-svn40621-33.fc25.1.noarch texlive-auto-pst-pdf-svn23723.0.6-33.fc25.1.noarch texlive-powerdot-svn38984-33.fc25.1.noarch texlive-wasysym-svn15878.2.0-33.fc25.1.noarch ImageMagick-libs-6.9.3.0-6.fc25.s390x geoclue2-2.4.5-1.fc25.s390x perl-IO-Socket-IP-0.39-1.fc25.noarch gdb-7.12.1-47.fc25.s390x
python2-pyasn1-0.2.3-1.fc25.noarch libglvnd-0.2.999-14.20170308git8e6e102.fc25.s390x libglvnd-gles-0.2.999-14.20170308git8e6e102.fc25.s390x gdk-pixbuf2-devel-2.36.6-1.fc25.s390x libidn2-2.0.0-1.fc25.s390x system-python-libs-3.5.3-4.fc25.s390x GeoIP-1.6.10-1.fc25.s390x at-spi2-core-devel-2.22.1-1.fc25.s390x gpg-pubkey-34ec9cba-54e38751
gpg-pubkey-030d5aed-55b577f0
basesystem-11-2.fc24.noarch
libmpc-1.0.2-5.fc24.s390x
libunistring-0.9.4-3.fc24.s390x libmodman-2.0.1-12.fc24.s390x
lsscsi-0.28-3.fc24.s390x
kbd-misc-2.0.3-3.fc24.noarch rpmconf-base-1.0.18-2.fc25.noarch
libxml2-2.9.3-4.fc25.s390x
kmod-23-1.fc25.s390x
newt-0.52.19-2.fc25.s390x perl-Text-Unidecode-1.27-3.fc25.noarch plymouth-core-libs-0.9.3-0.6.20160620git0e65b86c.fc25.s390x which-2.21-1.fc25.s390x
python3-slip-0.6.4-4.fc25.noarch python3-systemd-232-1.fc25.s390x python-lockfile-0.11.0-4.fc25.noarch python2-requests-2.10.0-4.fc25.noarch libarchive-3.2.2-1.fc25.s390x
libnghttp2-1.13.0-2.fc25.s390x python-urlgrabber-3.10.1-9.fc25.noarch iputils-20161105-1.fc25.s390x
rest-0.8.0-1.fc25.s390x adwaita-cursor-theme-3.22.0-1.fc25.noarch authconfig-6.2.10-14.fc25.s390x expat-devel-2.2.0-1.fc25.s390x
automake-1.15-7.fc25.noarch shared-mime-info-1.8-1.fc25.s390x
pigz-2.3.4-1.fc25.s390x device-mapper-libs-1.02.136-3.fc25.s390x dnsmasq-2.76-2.fc25.s390x fedora-packager-0.6.0.1-1.fc25.noarch gcc-c++-6.3.1-1.fc25.s390x
libwebp-0.5.2-1.fc25.s390x
boost-system-1.60.0-10.fc25.s390x libasyncns-0.8-10.fc24.s390x
libXau-devel-1.0.8-6.fc24.s390x libverto-libev-0.2.6-6.fc24.s390x python3-html5lib-0.999-9.fc25.noarch ttmkfdir-3.0.9-48.fc24.s390x pulseaudio-libs-glib2-10.0-2.fc25.s390x wpa_supplicant-2.6-1.fc25.s390x texlive-lib-2016-33.20160520.fc25.s390x libXi-devel-1.7.9-1.fc25.s390x python3-distro-1.0.3-1.fc25.noarch rpm-plugin-systemd-inhibit-4.13.0.1-1.fc25.s390x gnutls-c++-3.5.10-1.fc25.s390x texlive-texlive-common-doc-svn40682-33.fc25.1.noarch packagedb-cli-2.14.1-1.fc25.noarch rpcbind-0.2.4-5.fc25.s390x texlive-metafont-svn40793-33.fc25.1.noarch texlive-tools-svn40934-33.fc25.1.noarch texlive-enumitem-svn24146.3.5.2-33.fc25.1.noarch texlive-mptopdf-bin-svn18674.0-33.20160520.fc25.1.noarch texlive-underscore-svn18261.0-33.fc25.1.noarch texlive-anysize-svn15878.0-33.fc25.1.noarch texlive-euenc-svn19795.0.1h-33.fc25.1.noarch texlive-kastrup-svn15878.0-33.fc25.1.noarch texlive-paralist-svn39247-33.fc25.1.noarch texlive-texlive-en-svn41185-33.fc25.1.noarch texlive-tipa-svn29349.1.3-33.fc25.1.noarch texlive-currfile-svn40725-33.fc25.1.noarch texlive-pst-node-svn40743-33.fc25.1.noarch texlive-pst-slpe-svn24391.1.31-33.fc25.1.noarch texlive-typehtml-svn17134.0-33.fc25.1.noarch SDL2-devel-2.0.5-3.fc25.s390x perl-Module-CoreList-5.20170320-1.fc25.noarch libcroco-0.6.11-3.fc25.s390x publicsuffix-list-dafsa-20170206-1.fc25.noarch pcre-8.40-6.fc25.s390x
cups-libs-2.2.0-8.fc25.s390x gtk-update-icon-cache-3.22.11-1.fc25.s390x libcurl-7.51.0-6.fc25.s390x
python3-libs-3.5.3-4.fc25.s390x bluez-libs-devel-5.44-1.fc25.s390x kernel-4.10.8-200.fc25.s390x fontpackages-filesystem-1.44-17.fc24.noarch groff-base-1.22.3-8.fc24.s390x
ilmbase-2.2.0-5.fc24.s390x
OpenEXR-libs-2.2.0-5.fc24.s390x
hesiod-3.2.1-6.fc24.s390x
sysfsutils-2.1.0-19.fc24.s390x ocaml-srpm-macros-2-4.fc24.noarch
mailx-12.5-19.fc24.s390x ncurses-libs-6.0-6.20160709.fc25.s390x ipset-libs-6.29-1.fc25.s390x
gmp-devel-6.1.1-1.fc25.s390x
python-pip-8.1.2-2.fc25.noarch
harfbuzz-1.3.2-1.fc25.s390x python2-iniparse-0.4-20.fc25.noarch python3-iniparse-0.4-20.fc25.noarch python3-kickstart-2.32-1.fc25.noarch perl-Net-SSLeay-1.78-1.fc25.s390x
drpm-0.3.0-3.fc25.s390x
glib-networking-2.50.0-1.fc25.s390x webkitgtk3-2.4.11-3.fc25.s390x
libXaw-1.0.13-4.fc25.s390x xorg-x11-font-utils-7.5-32.fc25.s390x hardlink-1.1-1.fc25.s390x
libcom_err-1.43.3-1.fc25.s390x python2-dateutil-2.6.0-1.fc25.noarch libXpm-3.5.12-1.fc25.s390x
python2-smmap-2.0.1-1.fc25.noarch poppler-data-0.4.7-6.fc25.noarch nspr-devel-4.13.1-1.fc25.s390x
librbd1-10.2.4-2.fc25.s390x
libsndfile-1.0.27-1.fc25.s390x perl-Digest-MD5-2.55-2.fc25.s390x wayland-protocols-devel-1.7-1.fc25.noarch libacl-devel-2.2.52-11.fc24.s390x texi2html-5.0-4.fc24.noarch
libxkbcommon-0.7.1-1.fc25.s390x
freetype-2.6.5-3.fc25.s390x libuuid-devel-2.28.2-2.fc25.s390x coreutils-common-8.25-16.fc25.s390x gdb-headless-7.12.1-47.fc25.s390x libcacard-2.5.3-1.fc25.s390x perl-threads-shared-1.55-1.fc25.s390x python2-rpkg-1.49-2.fc25.noarch libwmf-lite-0.2.8.4-50.fc25.s390x unbound-libs-1.6.0-6.fc25.s390x texlive-tetex-svn41059-33.fc25.1.noarch texlive-thumbpdf-svn34621.3.16-33.fc25.1.noarch texlive-carlisle-svn18258.0-33.fc25.1.noarch texlive-makeindex-bin-svn40473-33.20160520.fc25.1.s390x texlive-pdftex-svn41149-33.fc25.1.noarch texlive-csquotes-svn39538-33.fc25.1.noarch texlive-courier-svn35058.0-33.fc25.1.noarch texlive-helvetic-svn31835.0-33.fc25.1.noarch texlive-mfnfss-svn19410.0-33.fc25.1.noarch texlive-sepnum-svn20186.2.0-33.fc25.1.noarch texlive-utopia-svn15878.0-33.fc25.1.noarch texlive-luatexbase-svn38550-33.fc25.1.noarch texlive-pst-3d-svn17257.1.10-33.fc25.1.noarch texlive-latex-bin-bin-svn14050.0-33.20160520.fc25.1.noarch texlive-l3experimental-svn41163-33.fc25.1.noarch bind99-libs-9.9.9-4.P6.fc25.s390x net-tools-2.0-0.40.20160329git.fc25.s390x perl-Pod-Perldoc-3.28-1.fc25.noarch openssl-1.0.2k-1.fc25.s390x
man-pages-4.06-4.fc25.noarch
libdrm-2.4.77-1.fc25.s390x
p11-kit-0.23.2-3.fc25.s390x glusterfs-cli-3.10.1-1.fc25.s390x git-core-2.9.3-3.fc25.s390x
python3-3.5.3-4.fc25.s390x
python3-magic-5.29-4.fc25.noarch p11-kit-trust-0.23.2-3.fc25.s390x gpg-pubkey-95a43f54-5284415a dejavu-fonts-common-2.35-3.fc24.noarch libSM-1.2.2-4.fc24.s390x
diffutils-3.3-13.fc24.s390x
libogg-1.3.2-5.fc24.s390x hunspell-en-US-0.20140811.1-5.fc24.noarch libdaemon-0.14-10.fc24.s390x
patch-2.7.5-3.fc24.s390x
libsysfs-2.1.0-19.fc24.s390x
procmail-3.22-39.fc24.s390x
libXdamage-1.1.4-8.fc24.s390x
libotf-0.9.13-7.fc24.s390x
urw-fonts-2.4-22.fc24.noarch crontabs-1.11-12.20150630git.fc24.noarch ppp-2.4.7-9.fc24.s390x
polkit-0.113-5.fc24.s390x
cyrus-sasl-2.1.26-26.2.fc24.s390x zlib-devel-1.2.8-10.fc24.s390x
time-1.7-49.fc24.s390x
gpg-pubkey-fdb19c98-56fd6333
fedora-release-25-1.noarch
libcap-ng-0.7.8-1.fc25.s390x
binutils-2.26.1-1.fc25.s390x
lcms2-2.8-2.fc25.s390x
libcomps-0.1.7-5.fc25.s390x
less-481-6.fc25.s390x
apr-1.5.2-4.fc25.s390x
perl-constant-1.33-367.fc25.noarch perl-Data-Dumper-2.161-1.fc25.s390x ipcalc-0.1.8-1.fc25.s390x
libteam-1.26-1.fc25.s390x
gmp-c++-6.1.1-1.fc25.s390x
fontconfig-2.12.1-1.fc25.s390x
enchant-1.6.0-14.fc25.s390x
pyliblzma-0.5.3-16.fc25.s390x libsepol-devel-2.5-10.fc25.s390x python3-ordered-set-2.0.0-4.fc25.noarch python3-rpmconf-1.0.18-2.fc25.noarch python-ipaddress-1.0.16-3.fc25.noarch python2-kerberos-1.2.5-1.fc25.s390x python2-pysocks-1.5.6-5.fc25.noarch fipscheck-lib-1.4.1-11.fc25.s390x libatomic_ops-7.4.4-1.fc25.s390x net-snmp-agent-libs-5.7.3-13.fc25.s390x dracut-044-78.fc25.s390x
python2-pygpgme-0.3-18.fc25.s390x libsoup-2.56.0-2.fc25.s390x
orc-0.4.26-1.fc25.s390x
yum-utils-1.1.31-511.fc25.noarch libXrender-0.9.10-1.fc25.s390x
libXrandr-1.5.1-1.fc25.s390x
go-srpm-macros-2-7.fc25.noarch gnupg2-smime-2.1.13-2.fc25.s390x guile-devel-2.0.13-1.fc25.s390x uboot-tools-2016.09.01-2.fc25.s390x pykickstart-2.32-1.fc25.noarch python-bunch-1.0.1-9.fc25.noarch perl-generators-1.10-1.fc25.noarch perl-Mozilla-CA-20160104-3.fc25.noarch glibc-all-langpacks-2.24-4.fc25.s390x bzip2-libs-1.0.6-21.fc25.s390x
libpng-1.6.27-1.fc25.s390x desktop-file-utils-0.23-2.fc25.s390x python2-cccolutils-1.4-1.fc25.s390x python2-lxml-3.7.2-1.fc25.s390x redhat-rpm-config-45-1.fc25.noarch elfutils-libs-0.168-1.fc25.s390x device-mapper-event-libs-1.02.136-3.fc25.s390x lvm2-libs-2.02.167-3.fc25.s390x
elfutils-0.168-1.fc25.s390x python2-gitdb-2.0.0-1.fc25.noarch gcc-gfortran-6.3.1-1.fc25.s390x libselinux-python-2.5-13.fc25.s390x openjpeg2-2.1.2-3.fc25.s390x
js-jquery-2.2.4-1.fc25.noarch boost-thread-1.60.0-10.fc25.s390x
json-c-0.12-7.fc24.s390x
librbd-devel-10.2.4-2.fc25.s390x libXcursor-devel-1.1.14-6.fc24.s390x python3-beautifulsoup4-4.5.3-1.fc25.noarch latex2html-2012-7.fc24.noarch lksctp-tools-1.0.16-5.fc24.s390x
vte291-0.46.1-1.fc25.s390x
libfdt-1.4.2-1.fc25.s390x
libXft-devel-2.3.2-4.fc24.s390x libattr-devel-2.4.47-16.fc24.s390x libiscsi-devel-1.15.0-2.fc24.s390x gettext-0.19.8.1-3.fc25.s390x libjpeg-turbo-devel-1.5.1-0.fc25.s390x libX11-1.6.4-4.fc25.s390x pulseaudio-libs-devel-10.0-2.fc25.s390x ccache-3.3.3-1.fc25.s390x
systemd-libs-231-14.fc25.s390x nss-softokn-freebl-3.29.3-1.0.fc25.s390x libepoxy-devel-1.4.1-1.fc25.s390x krb5-libs-1.14.4-7.fc25.s390x
libmount-2.28.2-2.fc25.s390x python3-decorator-4.0.11-1.fc25.noarch rpm-plugin-selinux-4.13.0.1-1.fc25.s390x perl-threads-2.15-1.fc25.s390x tzdata-java-2017b-1.fc25.noarch python-srpm-macros-3-12.fc25.noarch libsmartcols-2.28.2-2.fc25.s390x kernel-core-4.10.5-200.fc25.s390x kernel-modules-4.10.5-200.fc25.s390x texlive-kpathsea-svn41139-33.fc25.1.noarch texlive-amsmath-svn41561-33.fc25.1.noarch texlive-thumbpdf-bin-svn6898.0-33.20160520.fc25.1.noarch texlive-psnfss-svn33946.9.2a-33.fc25.1.noarch texlive-subfig-svn15878.1.3-33.fc25.1.noarch texlive-fancybox-svn18304.1.4-33.fc25.1.noarch texlive-lua-alt-getopt-svn29349.0.7.0-33.fc25.1.noarch texlive-natbib-svn20668.8.31b-33.fc25.1.noarch texlive-pdftex-bin-svn40987-33.20160520.fc25.1.s390x texlive-xdvi-svn40768-33.fc25.1.noarch texlive-crop-svn15878.1.5-33.fc25.1.noarch texlive-babel-english-svn30264.3.3p-33.fc25.1.noarch texlive-cmextra-svn32831.0-33.fc25.1.noarch texlive-fancyhdr-svn15878.3.1-33.fc25.1.noarch texlive-luatex-svn40963-33.fc25.1.noarch texlive-knuth-local-svn38627-33.fc25.1.noarch texlive-mflogo-font-svn36898.1.002-33.fc25.1.noarch texlive-parskip-svn19963.2.0-33.fc25.1.noarch texlive-section-svn20180.0-33.fc25.1.noarch texlive-textcase-svn15878.0-33.fc25.1.noarch texlive-updmap-map-svn41159-33.fc25.1.noarch texlive-attachfile-svn38830-33.fc25.1.noarch nss-3.29.3-1.1.fc25.s390x glusterfs-client-xlators-3.10.1-1.fc25.s390x libglvnd-glx-0.2.999-14.20170308git8e6e102.fc25.s390x libtiff-4.0.7-4.fc25.s390x
dbus-devel-1.11.12-1.fc25.s390x java-1.8.0-openjdk-headless-1.8.0.121-10.b14.fc25.s390x pcre2-utf16-10.23-5.fc25.s390x git-core-doc-2.9.3-3.fc25.s390x
iproute-4.10.0-1.fc25.s390x
nfs-utils-2.1.1-3.rc1.fc25.s390x libglvnd-core-devel-0.2.999-14.20170308git8e6e102.fc25.s390x python-magic-5.29-4.fc25.noarch pcre2-devel-10.23-5.fc25.s390x p11-kit-devel-0.23.2-3.fc25.s390x texlive-luaotfload-svn40902-33.fc25.1.noarch texlive-unicode-math-svn38462-33.fc25.1.noarch texlive-fancyvrb-svn18492.2.8-33.fc25.1.noarch texlive-pst-pdf-bin-svn7838.0-33.20160520.fc25.1.noarch texlive-amscls-svn36804.0-33.fc25.1.noarch texlive-ltxmisc-svn21927.0-33.fc25.1.noarch texlive-breqn-svn38099.0.98d-33.fc25.1.noarch texlive-xetex-def-svn40327-33.fc25.1.noarch openssh-server-7.4p1-4.fc25.s390x sendmail-8.15.2-8.fc25.s390x python-firewall-0.4.4.4-1.fc25.noarch python3-sssdconfig-1.15.2-1.fc25.noarch tzdata-2017b-1.fc25.noarch
hunspell-1.4.1-2.fc25.s390x
gpg-pubkey-8e1431d5-53bcbac7
zlib-1.2.8-10.fc24.s390x
sed-4.2.2-15.fc24.s390x
psmisc-22.21-8.fc24.s390x
gpm-libs-1.20.7-9.fc24.s390x
zip-3.0-16.fc24.s390x
hostname-3.15-7.fc24.s390x
libyubikey-1.13-2.fc24.s390x sg3_utils-libs-1.41-3.fc24.s390x polkit-pkla-compat-0.1-7.fc24.s390x
passwd-0.79-8.fc24.s390x
trousers-0.3.13-6.fc24.s390x
grubby-8.40-3.fc24.s390x
rootfiles-8.1-19.fc24.noarch
nettle-3.3-1.fc25.s390x
jansson-2.9-1.fc25.s390x
libksba-1.3.5-1.fc25.s390x perl-Text-ParseWords-3.30-365.fc25.noarch perl-PathTools-3.63-366.fc25.s390x perl-File-Temp-0.23.04-365.fc25.noarch fuse-libs-2.9.7-1.fc25.s390x perl-Pod-Escapes-1.07-365.fc25.noarch perl-Term-ANSIColor-4.05-2.fc25.noarch perl-URI-1.71-5.fc25.noarch
libXfont-1.5.2-1.fc25.s390x
python-six-1.10.0-3.fc25.noarch
dbus-glib-0.108-1.fc25.s390x gobject-introspection-1.50.0-1.fc25.s390x libpwquality-1.3.0-6.fc25.s390x python-gobject-base-3.22.0-1.fc25.s390x python-html5lib-0.999-9.fc25.noarch python3-dbus-1.2.4-2.fc25.s390x python3-chardet-2.3.0-1.fc25.noarch python3-urllib3-1.15.1-3.fc25.noarch python-offtrac-0.1.0-7.fc25.noarch python2-cryptography-1.5.3-3.fc25.s390x python2-requests-kerberos-0.10.0-2.fc25.noarch libserf-1.3.9-1.fc25.s390x
libdatrie-0.2.9-3.fc25.s390x s390utils-base-1.36.0-1.fc25.s390x kpartx-0.4.9-83.fc25.s390x s390utils-cpuplugd-1.36.0-1.fc25.s390x rpmconf-1.0.18-2.fc25.noarch s390utils-osasnmpd-1.36.0-1.fc25.s390x python-dnf-plugins-extras-common-0.0.12-4.fc25.noarch fpc-srpm-macros-1.0-1.fc25.noarch
libuser-0.62-4.fc25.s390x
man-db-2.7.5-3.fc25.s390x
sqlite-3.14.2-1.fc25.s390x python-systemd-doc-232-1.fc25.s390x libdb-5.3.28-16.fc25.s390x
lz4-1.7.5-1.fc25.s390x
tar-1.29-3.fc25.s390x
emacs-common-25.1-3.fc25.s390x
unzip-6.0-31.fc25.s390x
bodhi-client-0.9.12.2-6.fc25.noarch glibc-headers-2.24-4.fc25.s390x
cairo-1.14.8-1.fc25.s390x ca-certificates-2017.2.11-1.0.fc25.noarch NetworkManager-glib-1.4.4-3.fc25.s390x gcc-go-6.3.1-1.fc25.s390x
cracklib-dicts-2.9.6-4.fc25.s390x libselinux-python3-2.5-13.fc25.s390x python2-enchant-1.6.8-1.fc25.noarch boost-iostreams-1.60.0-10.fc25.s390x userspace-rcu-0.9.2-2.fc25.s390x libXext-devel-1.3.3-4.fc24.s390x libXrandr-devel-1.5.1-1.fc25.s390x perl-XML-XPath-1.39-1.fc25.noarch python3-lxml-3.7.2-1.fc25.s390x vte-profile-0.46.1-1.fc25.s390x sqlite-devel-3.14.2-1.fc25.s390x libiscsi-1.15.0-2.fc24.s390x fontconfig-devel-2.12.1-1.fc25.s390x libfdt-devel-1.4.2-1.fc25.s390x ceph-devel-compat-10.2.4-2.fc25.s390x zlib-static-1.2.8-10.fc24.s390x
chrpath-0.16-3.fc24.s390x
python-2.7.13-1.fc25.s390x
kernel-core-4.9.5-200.fc25.s390x
info-6.1-4.fc25.s390x
iptables-libs-1.6.0-3.fc25.s390x bind-license-9.10.4-4.P6.fc25.noarch
lua-5.3.4-1.fc25.s390x
libfdisk-2.28.2-2.fc25.s390x dnf-plugins-core-0.1.21-5.fc25.noarch selinux-policy-3.13.1-225.11.fc25.noarch perl-Errno-1.25-385.fc25.s390x perl-Storable-2.56-368.fc25.s390x python2-decorator-4.0.11-1.fc25.noarch mariadb-common-10.1.21-3.fc25.s390x systemtap-client-3.1-2.fc25.s390x libnetfilter_conntrack-1.0.6-2.fc25.s390x texlive-texlive.infra-bin-svn40312-33.20160520.fc25.1.s390x texlive-ifluatex-svn41346-33.fc25.1.noarch texlive-fp-svn15878.0-33.fc25.1.noarch texlive-latex-fonts-svn28888.0-33.fc25.1.noarch texlive-bibtex-bin-svn40473-33.20160520.fc25.1.s390x texlive-glyphlist-svn28576.0-33.fc25.1.noarch texlive-marvosym-svn29349.2.2a-33.fc25.1.noarch texlive-tex-bin-svn40987-33.20160520.fc25.1.s390x texlive-texconfig-svn40768-33.fc25.1.noarch texlive-wasy2-ps-svn35830.0-33.fc25.1.noarch texlive-psfrag-svn15878.3.04-33.fc25.1.noarch texlive-charter-svn15878.0-33.fc25.1.noarch texlive-ec-svn25033.1.0-33.fc25.1.noarch texlive-lineno-svn21442.4.41-33.fc25.1.noarch texlive-hyphen-base-svn41138-33.fc25.1.noarch texlive-manfnt-font-svn35799.0-33.fc25.1.noarch texlive-ncntrsbk-svn31835.0-33.fc25.1.noarch texlive-pst-math-svn34786.0.63-33.fc25.1.noarch texlive-symbol-svn31835.0-33.fc25.1.noarch texlive-environ-svn33821.0.3-33.fc25.1.noarch texlive-algorithms-svn38085.0.1-33.fc25.1.noarch glusterfs-libs-3.10.1-1.fc25.s390x mesa-libwayland-egl-13.0.4-3.fc25.s390x glusterfs-api-3.10.1-1.fc25.s390x kernel-core-4.10.8-200.fc25.s390x mesa-libwayland-egl-devel-13.0.4-3.fc25.s390x nss-tools-3.29.3-1.1.fc25.s390x
pcre2-10.23-5.fc25.s390x
perl-Git-2.9.3-3.fc25.noarch
gssproxy-0.7.0-3.fc25.s390x glusterfs-server-3.10.1-1.fc25.s390x libglvnd-devel-0.2.999-14.20170308git8e6e102.fc25.s390x python3-hawkey-0.6.4-3.fc25.s390x vim-enhanced-8.0.514-1.fc25.s390x mesa-libgbm-devel-13.0.4-3.fc25.s390x texlive-ifplatform-svn21156.0.4-33.fc25.1.noarch texlive-eso-pic-svn37925.2.0g-33.fc25.1.noarch texlive-xcolor-svn41044-33.fc25.1.noarch texlive-pst-eps-svn15878.1.0-33.fc25.1.noarch texlive-pst-text-svn15878.1.00-33.fc25.1.noarch texlive-rotating-svn16832.2.16b-33.fc25.1.noarch texlive-pdfpages-svn40638-33.fc25.1.noarch texlive-cm-super-svn15878.0-33.fc25.1.noarch texlive-xetex-svn41438-33.fc25.1.noarch dnf-yum-1.1.10-6.fc25.noarch mariadb-libs-10.1.21-3.fc25.s390x
rpmlint-1.9-8.fc25.noarch systemtap-sdt-devel-3.1-2.fc25.s390x libseccomp-devel-2.3.2-1.fc25.s390x telnet-0.17-67.fc25.s390x
gpgme-1.8.0-10.fc25.s390x
apr-util-1.5.4-3.fc24.s390x
rsync-3.1.2-2.fc24.s390x
jbigkit-libs-2.1-5.fc24.s390x
pixman-0.34.0-2.fc24.s390x
dwz-0.12-2.fc24.s390x
expect-5.45-22.fc24.s390x
libsigsegv-2.10-10.fc24.s390x fakeroot-libs-1.20.2-4.fc24.s390x m17n-lib-1.7.0-5.fc24.s390x
libverto-0.2.6-6.fc24.s390x
libXmu-1.1.2-4.fc24.s390x
libXcursor-1.1.14-6.fc24.s390x python-kitchen-1.2.4-2.fc24.noarch polkit-libs-0.113-5.fc24.s390x
fakeroot-1.20.2-4.fc24.s390x
blktrace-1.1.0-3.fc24.s390x
usermode-1.111-8.fc24.s390x
kbd-2.0.3-3.fc24.s390x
libaio-devel-0.3.110-6.fc24.s390x web-assets-filesystem-5-4.fc24.noarch expat-2.2.0-1.fc25.s390x
libgpg-error-1.24-1.fc25.s390x
libgcrypt-1.6.6-1.fc25.s390x
findutils-4.6.0-8.fc25.s390x
libassuan-2.4.3-1.fc25.s390x
libusbx-1.0.21-1.fc25.s390x
libxslt-1.1.28-13.fc25.s390x
libmetalink-0.1.3-1.fc25.s390x perl-File-Path-2.12-365.fc25.noarch perl-MIME-Base64-3.15-365.fc25.s390x ncurses-6.0-6.20160709.fc25.s390x libwayland-server-1.12.0-1.fc25.s390x perl-Fedora-VSP-0.001-4.fc25.noarch perl-libintl-perl-1.26-1.fc25.s390x shadow-utils-4.2.1-11.fc25.s390x
atk-2.22.0-1.fc25.s390x
pam-1.3.0-1.fc25.s390x
harfbuzz-icu-1.3.2-1.fc25.s390x libsecret-0.18.5-2.fc25.s390x s390utils-iucvterm-1.36.0-1.fc25.s390x python3-requests-2.10.0-4.fc25.noarch pyusb-1.0.0-2.fc25.noarch
python-enum34-1.0.4-6.fc25.noarch pyOpenSSL-16.0.0-2.fc25.noarch
pyxattr-0.5.3-8.fc25.s390x
libbabeltrace-1.4.0-3.fc25.s390x
libthai-0.1.25-1.fc25.s390x
deltarpm-3.6-17.fc25.s390x s390utils-mon_statd-1.36.0-1.fc25.s390x device-mapper-multipath-0.4.9-83.fc25.s390x python3-pygpgme-0.3-18.fc25.s390x libreport-filesystem-2.8.0-1.fc25.s390x ghc-srpm-macros-1.4.2-4.fc25.noarch rpmdevtools-8.9-1.fc25.noarch python-dnf-plugins-extras-migrate-0.0.12-4.fc25.noarch perl-IO-Socket-SSL-2.038-1.fc25.noarch perl-File-ShareDir-1.102-7.fc25.noarch tcl-8.6.6-1.fc25.s390x
glibc-2.24-4.fc25.s390x
elfutils-libelf-0.168-1.fc25.s390x perl-Scalar-List-Utils-1.47-1.fc25.s390x bzip2-1.0.6-21.fc25.s390x
libss-1.43.3-1.fc25.s390x
libselinux-utils-2.5-13.fc25.s390x
koji-1.11.0-1.fc25.noarch python3-enchant-1.6.8-1.fc25.noarch python2-dockerfile-parse-0.0.5-7.fc25.noarch systemd-bootchart-231-2.fc25.s390x gcc-objc-6.3.1-1.fc25.s390x
e2fsprogs-1.43.3-1.fc25.s390x libstdc++-static-6.3.1-1.fc25.s390x libpng-devel-1.6.27-1.fc25.s390x perl-XML-Parser-2.44-5.fc25.s390x lttng-ust-2.8.1-2.fc25.s390x libXfixes-devel-5.0.3-1.fc25.s390x libXcomposite-devel-0.4.4-8.fc24.s390x quota-nls-4.03-7.fc25.noarch python3-javapackages-4.7.0-6.1.fc25.noarch libcephfs_jni-devel-10.2.4-2.fc25.s390x keyutils-libs-devel-1.5.9-8.fc24.s390x libicu-devel-57.1-4.fc25.s390x harfbuzz-devel-1.3.2-1.fc25.s390x libidn-devel-1.33-1.fc25.s390x
libnfs-1.9.8-2.fc24.s390x
libssh2-devel-1.8.0-1.fc25.s390x qemu-sanity-check-nodeps-1.1.5-5.fc24.s390x alsa-lib-devel-1.1.1-2.fc25.s390x
libnl3-3.2.29-2.fc25.s390x kernel-modules-4.9.5-200.fc25.s390x libpsl-0.17.0-1.fc25.s390x
lua-libs-5.3.4-1.fc25.s390x
libseccomp-2.3.2-1.fc25.s390x nss-softokn-freebl-devel-3.29.3-1.0.fc25.s390x copy-jdk-configs-2.2-2.fc25.noarch json-glib-1.2.6-1.fc25.s390x python2-dnf-1.1.10-6.fc25.noarch bind-libs-lite-9.10.4-4.P6.fc25.s390x perl-IO-1.36-385.fc25.s390x python2-GitPython-2.1.3-1.fc25.noarch linux-firmware-20170313-72.git695f2d6d.fc25.noarch systemd-container-231-14.fc25.s390x gnutls-dane-3.5.10-1.fc25.s390x texlive-tetex-bin-svn36770.0-33.20160520.fc25.1.noarch texlive-amsfonts-svn29208.3.04-33.fc25.1.noarch texlive-babel-svn40706-33.fc25.1.noarch texlive-colortbl-svn29803.v1.0a-33.fc25.1.noarch texlive-babelbib-svn25245.1.31-33.fc25.1.noarch texlive-footmisc-svn23330.5.5b-33.fc25.1.noarch texlive-makeindex-svn40768-33.fc25.1.noarch texlive-plain-svn40274-33.fc25.1.noarch texlive-texconfig-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-zapfding-svn31835.0-33.fc25.1.noarch texlive-microtype-svn41127-33.fc25.1.noarch texlive-bookman-svn31835.0-33.fc25.1.noarch texlive-dvisvgm-def-svn41011-33.fc25.1.noarch texlive-finstrut-svn21719.0.5-33.fc25.1.noarch texlive-hyph-utf8-svn41189-33.fc25.1.noarch texlive-lualibs-svn40370-33.fc25.1.noarch glusterfs-3.10.1-1.fc25.s390x mesa-libglapi-13.0.4-3.fc25.s390x mesa-libgbm-13.0.4-3.fc25.s390x kernel-modules-4.10.8-200.fc25.s390x glusterfs-fuse-3.10.1-1.fc25.s390x openldap-2.4.44-10.fc25.s390x
pcre-utf32-8.40-6.fc25.s390x
git-2.9.3-3.fc25.s390x
python2-gluster-3.10.1-1.fc25.s390x glusterfs-devel-3.10.1-1.fc25.s390x mesa-libEGL-devel-13.0.4-3.fc25.s390x glusterfs-api-devel-3.10.1-1.fc25.s390x sudo-1.8.19p2-1.fc25.s390x
python2-hawkey-0.6.4-3.fc25.s390x texlive-mparhack-svn15878.1.4-33.fc25.1.noarch texlive-pspicture-svn15878.0-33.fc25.1.noarch texlive-soul-svn15878.2.4-33.fc25.1.noarch texlive-trimspaces-svn15878.1.1-33.fc25.1.noarch texlive-varwidth-svn24104.0.92-33.fc25.1.noarch texlive-geometry-svn19716.5.6-33.fc25.1.noarch texlive-memoir-svn41203-33.fc25.1.noarch texlive-pgf-svn40966-33.fc25.1.noarch texlive-pst-coil-svn37377.1.07-33.fc25.1.noarch texlive-pst-plot-svn41242-33.fc25.1.noarch texlive-latex-bin-svn41438-33.fc25.1.noarch texlive-ucs-svn35853.2.2-33.fc25.1.noarch texlive-ae-svn15878.1.4-33.fc25.1.noarch texlive-xetex-bin-svn41091-33.20160520.fc25.1.s390x fedora-upgrade-26.1-1.fc25.noarch
fedpkg-1.28-1.fc25.noarch perl-Thread-Queue-3.12-1.fc25.noarch gstreamer1-plugins-base-1.10.4-1.fc25.s390x screen-4.5.1-1.fc25.s390x
strace-4.16-1.fc25.s390x
fedora-repos-25-3.noarch
libacl-2.2.52-11.fc24.s390x cdparanoia-libs-10.2-21.fc24.s390x
ustr-1.0.4-21.fc24.s390x
libusb-0.1.5-7.fc24.s390x
readline-devel-6.3-8.fc24.s390x
chkconfig-1.8-1.fc25.s390x
avahi-libs-0.6.32-4.fc25.s390x perl-Unicode-Normalize-1.25-365.fc25.s390x perl-libnet-3.10-1.fc25.noarch perl-podlators-4.09-1.fc25.noarch graphite2-1.3.6-1.fc25.s390x
dbus-python-1.2.4-2.fc25.s390x libgnome-keyring-3.12.0-7.fc25.s390x python-backports-1.0-8.fc25.s390x python-pycparser-2.14-7.fc25.noarch plymouth-scripts-0.9.3-0.6.20160620git0e65b86c.fc25.s390x cronie-1.5.1-2.fc25.s390x python2-librepo-1.7.18-3.fc25.s390x libXv-1.0.11-1.fc25.s390x python2-ndg_httpsclient-0.4.0-4.fc25.noarch btrfs-progs-4.6.1-1.fc25.s390x
libgcc-6.3.1-1.fc25.s390x
libgomp-6.3.1-1.fc25.s390x
perl-Encode-2.88-5.fc25.s390x
cracklib-2.9.6-4.fc25.s390x
libobjc-6.3.1-1.fc25.s390x
gcc-6.3.1-1.fc25.s390x python3-dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch NetworkManager-1.4.4-3.fc25.s390x glibc-static-2.24-4.fc25.s390x boost-random-1.60.0-10.fc25.s390x libref_array-0.1.5-29.fc25.s390x libXrender-devel-0.9.10-1.fc25.s390x javapackages-tools-4.7.0-6.1.fc25.noarch keyutils-1.5.9-8.fc24.s390x libcom_err-devel-1.43.3-1.fc25.s390x graphite2-devel-1.3.6-1.fc25.s390x lzo-minilzo-2.08-8.fc24.s390x libusbx-devel-1.0.21-1.fc25.s390x virglrenderer-devel-0.5.0-1.20160411git61846f92f.fc25.s390x acpica-tools-20160831-1.fc25.s390x
grep-2.27-2.fc25.s390x
dnf-conf-1.1.10-6.fc25.noarch crypto-policies-20160921-4.gitf3018dd.fc25.noarch rpm-build-libs-4.13.0.1-1.fc25.s390x libnfsidmap-0.27-1.fc25.s390x systemtap-devel-3.1-2.fc25.s390x
systemd-231-14.fc25.s390x
SDL2-2.0.5-3.fc25.s390x texlive-etex-pkg-svn39355-33.fc25.1.noarch texlive-multido-svn18302.1.42-33.fc25.1.noarch texlive-gsftopk-svn40768-33.fc25.1.noarch texlive-pst-ovl-svn40873-33.fc25.1.noarch texlive-ltabptch-svn17533.1.74d-33.fc25.1.noarch texlive-cite-svn36428.5.5-33.fc25.1.noarch texlive-fpl-svn15878.1.002-33.fc25.1.noarch texlive-mathpazo-svn15878.1.003-33.fc25.1.noarch texlive-rcs-svn15878.0-33.fc25.1.noarch texlive-type1cm-svn21820.0-33.fc25.1.noarch texlive-l3kernel-svn41246-33.fc25.1.noarch texlive-hyperref-svn41396-33.fc25.1.noarch texlive-pst-tree-svn24142.1.12-33.fc25.1.noarch texlive-sansmathaccent-svn30187.0-33.fc25.1.noarch texlive-dvipdfmx-bin-svn40273-33.20160520.fc25.1.s390x texlive-zapfchan-svn31835.0-33.fc25.1.noarch firewalld-0.4.4.4-1.fc25.noarch glib2-static-2.50.3-1.fc25.s390x libmicrohttpd-0.9.52-3.fc25.s390x perl-open-1.10-385.fc25.noarch bash-completion-2.5-1.fc25.noarch libsolv-0.6.26-3.fc25.s390x ghostscript-core-9.20-7.fc25.s390x nss-util-devel-3.29.3-1.1.fc25.s390x kernel-headers-4.10.8-200.fc25.s390x system-python-3.5.3-4.fc25.s390x iproute-tc-4.10.0-1.fc25.s390x
audit-2.7.4-1.fc25.s390x
gpg-pubkey-a29cb19c-53bcbba6
m4-1.4.17-9.fc24.s390x
liblockfile-1.09-4.fc24.s390x
sg3_utils-1.41-3.fc24.s390x
libXinerama-1.1.3-6.fc24.s390x
libXft-2.3.2-4.fc24.s390x tcp_wrappers-libs-7.6-83.fc25.s390x perl-Text-Tabs+Wrap-2013.0523-365.fc25.noarch perl-Error-0.17024-7.fc25.noarch perl-Term-Cap-1.17-365.fc25.noarch perl-Pod-Usage-1.69-1.fc25.noarch device-mapper-persistent-data-0.6.3-1.fc25.s390x net-snmp-libs-5.7.3-13.fc25.s390x
libgusb-0.2.9-1.fc25.s390x
python3-six-1.10.0-3.fc25.noarch python3-pysocks-1.5.6-5.fc25.noarch python-chardet-2.3.0-1.fc25.noarch python2-cffi-1.7.0-2.fc25.s390x
gc-devel-7.4.4-1.fc25.s390x plymouth-0.9.3-0.6.20160620git0e65b86c.fc25.s390x ebtables-2.0.10-21.fc25.s390x python3-librepo-1.7.18-3.fc25.s390x net-snmp-5.7.3-13.fc25.s390x
at-spi2-atk-2.22.0-1.fc25.s390x avahi-autoipd-0.6.32-4.fc25.s390x libcrypt-nss-2.24-4.fc25.s390x
libgo-6.3.1-1.fc25.s390x
cpp-6.3.1-1.fc25.s390x
glibc-devel-2.24-4.fc25.s390x
emacs-25.1-3.fc25.s390x
pyparsing-2.1.10-1.fc25.noarch
libproxy-0.4.14-1.fc25.s390x python3-pyparsing-2.1.10-1.fc25.noarch libcollection-0.7.0-29.fc25.s390x libcephfs-devel-10.2.4-2.fc25.s390x libXdamage-devel-1.1.4-8.fc24.s390x libverto-devel-0.2.6-6.fc24.s390x
snappy-1.1.3-2.fc24.s390x cairo-gobject-devel-1.14.8-1.fc25.s390x cyrus-sasl-devel-2.1.26-26.2.fc24.s390x kernel-devel-4.9.5-200.fc25.s390x
libXi-1.7.9-1.fc25.s390x distribution-gpg-keys-1.11-1.fc25.noarch texlive-base-2016-33.20160520.fc25.noarch gstreamer1-1.10.4-1.fc25.s390x python3-rpm-4.13.0.1-1.fc25.s390x systemtap-runtime-3.1-2.fc25.s390x perl-SelfLoader-1.23-385.fc25.noarch bind99-license-9.9.9-4.P6.fc25.noarch texlive-booktabs-svn40846-33.fc25.1.noarch texlive-lm-svn28119.2.004-33.fc25.1.noarch texlive-gsftopk-bin-svn40473-33.20160520.fc25.1.s390x texlive-tex-svn40793-33.fc25.1.noarch texlive-fancyref-svn15878.0.9c-33.fc25.1.noarch texlive-chngcntr-svn17157.1.0a-33.fc25.1.noarch texlive-fix2col-svn38770-33.fc25.1.noarch texlive-marginnote-svn41382-33.fc25.1.noarch texlive-pxfonts-svn15878.0-33.fc25.1.noarch texlive-txfonts-svn15878.0-33.fc25.1.noarch texlive-l3packages-svn41246-33.fc25.1.noarch texlive-oberdiek-svn41346-33.fc25.1.noarch texlive-pst-tools-svn34067.0.05-33.fc25.1.noarch texlive-tex-gyre-svn18651.2.004-33.fc25.1.noarch texlive-dvipdfmx-svn41149-33.fc25.1.noarch texlive-collection-fontsrecommended-svn35830.0-33.20160520.fc25.1.noarch gnutls-devel-3.5.10-1.fc25.s390x libcacard-devel-2.5.3-1.fc25.s390x selinux-policy-targeted-3.13.1-225.11.fc25.noarch ykpers-1.18.0-2.fc25.s390x
python2-idna-2.5-1.fc25.noarch dbus-libs-1.11.12-1.fc25.s390x ghostscript-x11-9.20-7.fc25.s390x vim-minimal-8.0.514-1.fc25.s390x libdrm-devel-2.4.77-1.fc25.s390x
file-libs-5.29-4.fc25.s390x
gtk3-devel-3.22.11-1.fc25.s390x policycoreutils-2.5-20.fc25.s390x python-async-0.6.1-9.fc22.s390x dejavu-sans-mono-fonts-2.35-3.fc24.noarch popt-1.16-7.fc24.s390x
cyrus-sasl-lib-2.1.26-26.2.fc24.s390x
xz-5.2.2-2.fc24.s390x
libpipeline-1.4.1-2.fc24.s390x
pinentry-0.9.7-2.fc24.s390x
pth-2.0.7-27.fc24.s390x
libsepol-2.5-10.fc25.s390x
sqlite-libs-3.14.2-1.fc25.s390x
libxcb-1.12-1.fc25.s390x
libicu-57.1-4.fc25.s390x perl-Getopt-Long-2.49.1-1.fc25.noarch avahi-glib-0.6.32-4.fc25.s390x python3-pip-8.1.2-2.fc25.noarch python3-libcomps-0.1.7-5.fc25.s390x python-slip-0.6.4-4.fc25.noarch python2-libcomps-0.1.7-5.fc25.s390x
gc-7.4.4-1.fc25.s390x
s390utils-cmsfs-1.36.0-1.fc25.s390x newt-python-0.52.19-2.fc25.s390x valgrind-3.12.0-1.fc25.s390x emacs-filesystem-25.1-3.fc25.noarch libdb-utils-5.3.28-16.fc25.s390x qt5-srpm-macros-5.7.1-1.fc25.noarch elfutils-default-yama-scope-0.168-1.fc25.noarch device-mapper-event-1.02.136-3.fc25.s390x perl-Class-Inspector-1.31-2.fc25.noarch poppler-0.45.0-2.fc25.s390x libbasicobjects-0.1.1-29.fc25.s390x libradosstriper1-10.2.4-2.fc25.s390x libXxf86vm-devel-1.1.4-3.fc24.s390x
gsm-1.0.16-1.fc25.s390x
zziplib-0.13.62-7.fc24.s390x
libpaper-1.1.24-12.fc24.s390x libini_config-1.3.0-29.fc25.s390x snappy-devel-1.1.3-2.fc24.s390x libcap-ng-devel-0.7.8-1.fc25.s390x libxkbcommon-devel-0.7.1-1.fc25.s390x kernel-4.9.5-200.fc25.s390x nss-softokn-3.29.3-1.0.fc25.s390x openssl-libs-1.0.2k-1.fc25.s390x libkadm5-1.14.4-7.fc25.s390x
rpm-libs-4.13.0.1-1.fc25.s390x
perl-5.24.1-385.fc25.s390x
util-linux-2.28.2-2.fc25.s390x
libICE-1.0.9-8.fc25.s390x texlive-etoolbox-svn38031.2.2a-33.fc25.1.noarch texlive-dvips-svn41149-33.fc25.1.noarch texlive-latexconfig-svn40274-33.fc25.1.noarch texlive-tex-ini-files-svn40533-33.fc25.1.noarch texlive-qstest-svn15878.0-33.fc25.1.noarch texlive-cmap-svn41168-33.fc25.1.noarch texlive-luatex-bin-svn41091-33.20160520.fc25.1.s390x texlive-mflogo-svn38628-33.fc25.1.noarch texlive-sansmath-svn17997.1.1-33.fc25.1.noarch texlive-unicode-data-svn39808-33.fc25.1.noarch texlive-luaotfload-bin-svn34647.0-33.20160520.fc25.1.noarch texlive-listings-svn37534.1.6-33.fc25.1.noarch texlive-pstricks-svn41321-33.fc25.1.noarch texlive-metalogo-svn18611.0.12-33.fc25.1.noarch texlive-collection-latex-svn41011-33.20160520.fc25.1.noarch kernel-4.10.5-200.fc25.s390x python2-dnf-plugins-core-0.1.21-5.fc25.noarch xkeyboard-config-2.20-2.fc25.noarch nss-util-3.29.3-1.1.fc25.s390x
dbus-1.11.12-1.fc25.s390x
ghostscript-9.20-7.fc25.s390x vim-filesystem-8.0.514-1.fc25.s390x jasper-libs-1.900.13-3.fc25.s390x
file-5.29-4.fc25.s390x
curl-7.51.0-6.fc25.s390x perl-Test-Harness-3.39-1.fc25.noarch libattr-2.4.47-16.fc24.s390x
acl-2.2.52-11.fc24.s390x
libvisual-0.4.0-20.fc24.s390x
libpcap-1.7.4-2.fc24.s390x
libutempter-1.1.6-8.fc24.s390x
libgudev-230-3.fc24.s390x
popt-devel-1.16-7.fc24.s390x
make-4.1-5.fc24.s390x
hicolor-icon-theme-0.15-3.fc24.noarch setup-2.10.4-1.fc25.noarch
bash-4.3.43-4.fc25.s390x
nspr-4.13.1-1.fc25.s390x
libjpeg-turbo-1.5.1-0.fc25.s390x perl-Socket-2.024-1.fc25.s390x perl-HTTP-Tiny-0.070-1.fc25.noarch
ipset-6.29-1.fc25.s390x python2-setuptools-25.1.1-1.fc25.noarch gsettings-desktop-schemas-3.22.0-1.fc25.s390x python3-setuptools-25.1.1-1.fc25.noarch python-slip-dbus-0.6.4-4.fc25.noarch python2-ply-3.8-2.fc25.noarch
dtc-1.4.2-1.fc25.s390x
guile-2.0.13-1.fc25.s390x
cronie-anacron-1.5.1-2.fc25.s390x
libXtst-1.2.3-1.fc25.s390x
iso-codes-3.70-1.fc25.noarch
s390utils-1.36.0-1.fc25.s390x python-backports-ssl_match_hostname-3.5.0.1-3.fc25.noarch fedora-cert-0.6.0.1-1.fc25.noarch libstdc++-6.3.1-1.fc25.s390x subversion-libs-1.9.5-1.fc25.s390x libgfortran-6.3.1-1.fc25.s390x
libtasn1-4.10-1.fc25.s390x dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch lvm2-2.02.167-3.fc25.s390x libselinux-devel-2.5-13.fc25.s390x perl-Time-Local-1.250-1.fc25.noarch libtirpc-1.0.1-3.rc3.fc25.s390x libradosstriper-devel-10.2.4-2.fc25.s390x flac-libs-1.3.2-1.fc25.s390x perl-Digest-1.17-366.fc25.noarch
teckit-2.5.1-15.fc24.s390x
libpath_utils-0.2.1-29.fc25.s390x
attr-2.4.47-16.fc24.s390x
usbredir-0.7.1-2.fc24.s390x
cairo-devel-1.14.8-1.fc25.s390x
lzo-devel-2.08-8.fc24.s390x
libcap-devel-2.25-2.fc25.s390x
opus-1.1.3-2.fc25.s390x firewalld-filesystem-0.4.4.4-1.fc25.noarch coreutils-8.25-16.fc25.s390x
krb5-devel-1.14.4-7.fc25.s390x
rpm-4.13.0.1-1.fc25.s390x
kernel-devel-4.10.5-200.fc25.s390x systemd-pam-231-14.fc25.s390x
libbsd-0.8.3-1.fc25.s390x texlive-url-svn32528.3.4-33.fc25.1.noarch texlive-dvips-bin-svn40987-33.20160520.fc25.1.s390x texlive-index-svn24099.4.1beta-33.fc25.1.noarch texlive-setspace-svn24881.6.7a-33.fc25.1.noarch texlive-mathtools-svn38833-33.fc25.1.noarch texlive-cm-svn32865.0-33.fc25.1.noarch texlive-graphics-def-svn41879-33.fc25.1.noarch texlive-mdwtools-svn15878.1.05.4-33.fc25.1.noarch texlive-rsfs-svn15878.0-33.fc25.1.noarch texlive-ucharcat-svn38907-33.fc25.1.noarch texlive-fontspec-svn41262-33.fc25.1.noarch texlive-showexpl-svn32737.v0.3l-33.fc25.1.noarch texlive-pstricks-add-svn40744-33.fc25.1.noarch texlive-beamer-svn36461.3.36-33.fc25.1.noarch texlive-collection-basic-svn41149-33.20160520.fc25.1.noarch mock-1.3.4-1.fc25.noarch
rpm-build-4.13.0.1-1.fc25.s390x xemacs-filesystem-21.5.34-20.20170124hgf412e9f093d4.fc25.noarch nss-sysinit-3.29.3-1.1.fc25.s390x
hawkey-0.6.4-3.fc25.s390x
mesa-libGLES-13.0.4-3.fc25.s390x vim-common-8.0.514-1.fc25.s390x gdk-pixbuf2-modules-2.36.6-1.fc25.s390x bluez-libs-5.44-1.fc25.s390x libcurl-devel-7.51.0-6.fc25.s390x
mc-4.8.19-1.fc25.s390x
gpg-pubkey-a0a7badb-52844296
readline-6.3-8.fc24.s390x
cpio-2.12-3.fc24.s390x
qrencode-libs-3.4.2-6.fc24.s390x libXcomposite-0.4.4-8.fc24.s390x procps-ng-3.3.10-11.fc24.s390x
GConf2-3.2.6-16.fc24.s390x
xz-devel-5.2.2-2.fc24.s390x
fedora-logos-22.0.0-3.fc24.s390x gpg-pubkey-e372e838-56fd7943
kmod-libs-23-1.fc25.s390x
perl-parent-0.236-1.fc25.noarch perl-TermReadKey-2.37-1.fc25.s390x dhcp-libs-4.3.5-1.fc25.s390x ncurses-c++-libs-6.0-6.20160709.fc25.s390x gzip-1.8-1.fc25.s390x python3-gobject-base-3.22.0-1.fc25.s390x python2-yubico-1.3.2-3.fc25.noarch s390utils-ziomon-1.36.0-1.fc25.s390x librepo-1.7.18-3.fc25.s390x
librsvg2-2.40.16-2.fc25.s390x gnat-srpm-macros-4-1.fc25.noarch python-decoratortools-1.8-12.fc25.noarch m17n-db-1.7.0-7.fc25.noarch
glibc-common-2.24-4.fc25.s390x e2fsprogs-libs-1.43.3-1.fc25.s390x libvorbis-1.3.5-1.fc25.s390x gcc-gdb-plugin-6.3.1-1.fc25.s390x perl-Time-HiRes-1.9741-1.fc25.s390x
npth-1.3-1.fc25.s390x
libcephfs1-10.2.4-2.fc25.s390x wayland-devel-1.12.0-1.fc25.s390x libxcb-devel-1.12-1.fc25.s390x perl-encoding-2.19-5.fc25.s390x python3-cssselect-0.9.2-1.fc25.noarch gettext-libs-0.19.8.1-3.fc25.s390x at-spi2-atk-devel-2.22.0-1.fc25.s390x virglrenderer-0.5.0-1.20160411git61846f92f.fc25.s390x pixman-devel-0.34.0-2.fc24.s390x libnfs-devel-1.9.8-2.fc24.s390x libX11-common-1.6.4-4.fc25.noarch nss-softokn-devel-3.29.3-1.0.fc25.s390x libblkid-2.28.2-2.fc25.s390x bind-libs-9.10.4-4.P6.fc25.s390x glib2-devel-2.50.3-1.fc25.s390x systemd-udev-231-14.fc25.s390x texlive-ifxetex-svn19685.0.5-33.fc25.1.noarch texlive-caption-svn41409-33.fc25.1.noarch texlive-float-svn15878.1.3d-33.fc25.1.noarch texlive-pdftex-def-svn22653.0.06d-33.fc25.1.noarch texlive-xdvi-bin-svn40750-33.20160520.fc25.1.s390x texlive-beton-svn15878.0-33.fc25.1.noarch texlive-filecontents-svn24250.1.3-33.fc25.1.noarch texlive-lm-math-svn36915.1.959-33.fc25.1.noarch texlive-pslatex-svn16416.0-33.fc25.1.noarch texlive-times-svn35058.0-33.fc25.1.noarch texlive-breakurl-svn29901.1.40-33.fc25.1.noarch texlive-filehook-svn24280.0.5d-33.fc25.1.noarch texlive-pst-pdf-svn31660.1.1v-33.fc25.1.noarch texlive-seminar-svn34011.1.62-33.fc25.1.noarch texlive-xetexconfig-svn41133-33.fc25.1.noarch systemtap-3.1-2.fc25.s390x python-rpm-macros-3-12.fc25.noarch rpm-devel-4.13.0.1-1.fc25.s390x
nss-pem-1.0.3-3.fc25.s390x
mesa-libGL-13.0.4-3.fc25.s390x at-spi2-core-2.22.1-1.fc25.s390x pcre2-utf32-10.23-5.fc25.s390x
gtk3-3.22.11-1.fc25.s390x GeoIP-GeoLite-data-2017.04-1.fc25.noarch pcre-static-8.40-6.fc25.s390x kernel-devel-4.10.8-200.fc25.s390x
=== TEST BEGIN ===
Using CC: /home/fam/bin/cc
Install prefix /var/tmp/patchew-tester-tmp-e38by36j/src/install BIOS directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/share/qemu binary directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/bin
library directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/lib module directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/lib/qemu libexec directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/libexec include directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/include config directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/etc
local state directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/var
Manual directory /var/tmp/patchew-tester-tmp-e38by36j/src/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /var/tmp/patchew-tester-tmp-e38by36j/src C compiler /home/fam/bin/cc Host C compiler cc C++ compiler c++ Objective-C compiler /home/fam/bin/cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DNCURSES_WIDECHAR -D_GNU_SOURCE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/cacard -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libusb-1.0 LDFLAGS -Wl,--warn-common -m64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU s390x host big endian yes target list aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user tilegx-linux-user x86_64-linux-user gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman system SDL support yes (2.0.5) GTK support yes (3.22.11) GTK GL support yes VTE support yes (0.46.1) TLS priority NORMAL GNUTLS support yes GNUTLS rnd yes libgcrypt no libgcrypt kdf no nettle yes (3.3) nettle kdf yes libtasn1 yes curses support yes virgl support yes curl support yes mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support yes VNC support yes VNC SASL support yes VNC JPEG support yes VNC PNG support yes xen support no brlapi support yes bluez support yes Documentation yes PIE no vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no TCG support yes TCG debug enabled no TCG interpreter no RDMA support no fdt support yes preadv support yes fdatasync yes madvise yes posix_madvise yes
libcap-ng support yes
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
Trace backends log spice support no rbd support yes xfsctl support no smartcard support yes libusb yes usb net redir yes OpenGL support yes OpenGL dmabufs yes libiscsi support yes libnfs support yes
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support no
coroutine backend ucontext
coroutine pool yes
debug stack usage no
GlusterFS support yes
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no QOM debugging yes Live block migration yes lzo support yes snappy support yes bzip2 support yes
NUMA host support no
tcmalloc support no
jemalloc support no
avx2 optimization no
replication support yes
VxHS block device no
GEN aarch64-softmmu/config-devices.mak.tmp
GEN cris-softmmu/config-devices.mak.tmp
GEN arm-softmmu/config-devices.mak.tmp
GEN alpha-softmmu/config-devices.mak.tmp
GEN cris-softmmu/config-devices.mak
GEN i386-softmmu/config-devices.mak.tmp
GEN arm-softmmu/config-devices.mak
GEN alpha-softmmu/config-devices.mak
GEN aarch64-softmmu/config-devices.mak
GEN lm32-softmmu/config-devices.mak.tmp
GEN m68k-softmmu/config-devices.mak.tmp
GEN microblazeel-softmmu/config-devices.mak.tmp
GEN lm32-softmmu/config-devices.mak
GEN m68k-softmmu/config-devices.mak
GEN microblaze-softmmu/config-devices.mak.tmp
GEN i386-softmmu/config-devices.mak
GEN mips64el-softmmu/config-devices.mak.tmp
GEN mips64-softmmu/config-devices.mak.tmp
GEN microblaze-softmmu/config-devices.mak
GEN microblazeel-softmmu/config-devices.mak
GEN mipsel-softmmu/config-devices.mak.tmp
GEN mips-softmmu/config-devices.mak.tmp
GEN mips64el-softmmu/config-devices.mak
GEN mips64-softmmu/config-devices.mak
GEN moxie-softmmu/config-devices.mak.tmp
GEN nios2-softmmu/config-devices.mak.tmp
GEN mipsel-softmmu/config-devices.mak
GEN nios2-softmmu/config-devices.mak
GEN or1k-softmmu/config-devices.mak.tmp
GEN moxie-softmmu/config-devices.mak
GEN mips-softmmu/config-devices.mak
GEN ppc64-softmmu/config-devices.mak.tmp
GEN ppcemb-softmmu/config-devices.mak.tmp
GEN ppc-softmmu/config-devices.mak.tmp
GEN or1k-softmmu/config-devices.mak
GEN s390x-softmmu/config-devices.mak.tmp
GEN ppcemb-softmmu/config-devices.mak
GEN ppc64-softmmu/config-devices.mak
GEN ppc-softmmu/config-devices.mak
GEN s390x-softmmu/config-devices.mak
GEN sh4eb-softmmu/config-devices.mak.tmp
GEN sh4-softmmu/config-devices.mak.tmp
GEN sparc64-softmmu/config-devices.mak.tmp
GEN sparc-softmmu/config-devices.mak.tmp
GEN sparc-softmmu/config-devices.mak
GEN sh4-softmmu/config-devices.mak
GEN sh4eb-softmmu/config-devices.mak
GEN sparc64-softmmu/config-devices.mak
GEN tricore-softmmu/config-devices.mak.tmp
GEN unicore32-softmmu/config-devices.mak.tmp
GEN xtensaeb-softmmu/config-devices.mak.tmp
GEN x86_64-softmmu/config-devices.mak.tmp
GEN tricore-softmmu/config-devices.mak
GEN unicore32-softmmu/config-devices.mak
GEN xtensaeb-softmmu/config-devices.mak
GEN xtensa-softmmu/config-devices.mak.tmp
GEN aarch64-linux-user/config-devices.mak.tmp
GEN alpha-linux-user/config-devices.mak.tmp
GEN x86_64-softmmu/config-devices.mak
GEN armeb-linux-user/config-devices.mak.tmp
GEN aarch64-linux-user/config-devices.mak
GEN xtensa-softmmu/config-devices.mak
GEN alpha-linux-user/config-devices.mak
GEN arm-linux-user/config-devices.mak.tmp
GEN cris-linux-user/config-devices.mak.tmp
GEN hppa-linux-user/config-devices.mak.tmp
GEN armeb-linux-user/config-devices.mak
GEN i386-linux-user/config-devices.mak.tmp
GEN hppa-linux-user/config-devices.mak
GEN arm-linux-user/config-devices.mak
GEN cris-linux-user/config-devices.mak
GEN m68k-linux-user/config-devices.mak.tmp
GEN microblazeel-linux-user/config-devices.mak.tmp
GEN microblaze-linux-user/config-devices.mak.tmp
GEN i386-linux-user/config-devices.mak
GEN mips64el-linux-user/config-devices.mak.tmp
GEN microblazeel-linux-user/config-devices.mak
GEN m68k-linux-user/config-devices.mak
GEN mips64-linux-user/config-devices.mak.tmp
GEN mipsel-linux-user/config-devices.mak.tmp
GEN mips64el-linux-user/config-devices.mak
GEN mips-linux-user/config-devices.mak.tmp
GEN microblaze-linux-user/config-devices.mak
GEN mipsel-linux-user/config-devices.mak
GEN mips64-linux-user/config-devices.mak
GEN mipsn32el-linux-user/config-devices.mak.tmp
GEN mipsn32-linux-user/config-devices.mak.tmp
GEN nios2-linux-user/config-devices.mak.tmp
GEN mips-linux-user/config-devices.mak
GEN or1k-linux-user/config-devices.mak.tmp
GEN mipsn32-linux-user/config-devices.mak
GEN mipsn32el-linux-user/config-devices.mak
GEN ppc64abi32-linux-user/config-devices.mak.tmp
GEN ppc64le-linux-user/config-devices.mak.tmp
GEN or1k-linux-user/config-devices.mak
GEN nios2-linux-user/config-devices.mak
GEN ppc64-linux-user/config-devices.mak.tmp
GEN ppc64abi32-linux-user/config-devices.mak
GEN ppc64le-linux-user/config-devices.mak
GEN ppc-linux-user/config-devices.mak.tmp
GEN sh4eb-linux-user/config-devices.mak.tmp
GEN s390x-linux-user/config-devices.mak.tmp
GEN ppc64-linux-user/config-devices.mak
GEN sh4eb-linux-user/config-devices.mak
GEN ppc-linux-user/config-devices.mak
GEN sh4-linux-user/config-devices.mak.tmp
GEN sparc32plus-linux-user/config-devices.mak.tmp
GEN s390x-linux-user/config-devices.mak
GEN sparc64-linux-user/config-devices.mak.tmp
GEN sparc-linux-user/config-devices.mak.tmp
GEN sh4-linux-user/config-devices.mak
GEN sparc32plus-linux-user/config-devices.mak
GEN sparc64-linux-user/config-devices.mak
GEN tilegx-linux-user/config-devices.mak.tmp
GEN x86_64-linux-user/config-devices.mak.tmp
GEN sparc-linux-user/config-devices.mak
GEN config-host.h
GEN tilegx-linux-user/config-devices.mak
GEN x86_64-linux-user/config-devices.mak
GEN qemu-options.def
GEN qmp-commands.h
GEN qapi-types.h
GEN qapi-visit.h
GEN qapi-event.h
GEN qmp-marshal.c
GEN qapi-types.c
GEN qapi-visit.c
GEN qmp-introspect.h
GEN qapi-event.c
GEN qmp-introspect.c
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.c
GEN module_block.h
GEN trace/generated-helpers.h
GEN tests/test-qapi-types.h
GEN tests/test-qapi-visit.h
GEN tests/test-qmp-commands.h
GEN tests/test-qmp-introspect.h
GEN tests/test-qapi-event.h
GEN trace-root.h
GEN util/trace.h
GEN crypto/trace.h
GEN io/trace.h
GEN migration/trace.h
GEN block/trace.h
GEN backends/trace.h
GEN chardev/trace.h
GEN hw/block/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/char/trace.h
GEN hw/intc/trace.h
GEN hw/net/trace.h
GEN hw/virtio/trace.h
GEN hw/audio/trace.h
GEN hw/misc/trace.h
GEN hw/usb/trace.h
GEN hw/scsi/trace.h
GEN hw/nvram/trace.h
GEN hw/display/trace.h
GEN hw/input/trace.h
GEN hw/timer/trace.h
GEN hw/dma/trace.h
GEN hw/sparc/trace.h
GEN hw/sd/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/i386/trace.h
GEN hw/i386/xen/trace.h
GEN hw/9pfs/trace.h
GEN hw/ppc/trace.h
GEN hw/pci/trace.h
GEN hw/s390x/trace.h
GEN hw/vfio/trace.h
GEN hw/acpi/trace.h
GEN hw/arm/trace.h
GEN hw/alpha/trace.h
GEN hw/xen/trace.h
GEN ui/trace.h
GEN audio/trace.h
GEN net/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/sparc/trace.h
GEN target/s390x/trace.h
GEN target/ppc/trace.h
GEN qom/trace.h
GEN qapi/trace.h
GEN accel/tcg/trace.h
GEN linux-user/trace.h
GEN accel/kvm/trace.h
GEN nbd/trace.h
GEN trace-root.c
GEN util/trace.c
GEN io/trace.c
GEN crypto/trace.c
GEN migration/trace.c
GEN block/trace.c
GEN backends/trace.c
GEN chardev/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/intc/trace.c
GEN hw/net/trace.c
GEN hw/virtio/trace.c
GEN hw/audio/trace.c
GEN hw/misc/trace.c
GEN hw/usb/trace.c
GEN hw/nvram/trace.c
GEN hw/scsi/trace.c
GEN hw/display/trace.c
GEN hw/input/trace.c
GEN hw/timer/trace.c
GEN hw/dma/trace.c
GEN hw/sparc/trace.c
GEN hw/sd/trace.c
GEN hw/isa/trace.c
GEN hw/mem/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/9pfs/trace.c
GEN hw/ppc/trace.c
GEN hw/pci/trace.c
GEN hw/s390x/trace.c
GEN hw/vfio/trace.c
GEN hw/arm/trace.c
GEN hw/acpi/trace.c
GEN hw/alpha/trace.c
GEN hw/xen/trace.c
GEN ui/trace.c
GEN audio/trace.c
GEN net/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/sparc/trace.c
GEN target/s390x/trace.c
GEN qom/trace.c
GEN target/ppc/trace.c
GEN linux-user/trace.c
GEN qapi/trace.c
GEN accel/tcg/trace.c
GEN accel/kvm/trace.c
GEN nbd/trace.c
GEN config-all-devices.mak
CC tests/qemu-iotests/socket_scm_helper.o
GEN qemu-options.texi
GEN qemu-monitor.texi
GEN docs/version.texi
GEN qemu-img-cmds.texi
GEN qemu-monitor-info.texi
GEN qemu-img.1
GEN qemu-nbd.8
GEN docs/interop/qemu-qmp-qapi.texi
GEN qemu-ga.8
GEN docs/interop/qemu-ga-qapi.texi
GEN fsdev/virtfs-proxy-helper.1
GEN qga/qapi-generated/qga-qapi-types.h
GEN qga/qapi-generated/qga-qapi-visit.h
GEN qga/qapi-generated/qga-qmp-commands.h
GEN qga/qapi-generated/qga-qapi-types.c
GEN qga/qapi-generated/qga-qapi-visit.c
GEN qga/qapi-generated/qga-qmp-marshal.c
CC qmp-introspect.o
CC qapi-types.o
CC qapi-visit.o
CC qapi-event.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/aiocb.o
CC util/lockcnt.o
CC util/async.o
CC util/qemu-timer.o
CC util/thread-pool.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-posix.o
CC util/compatfd.o
CC util/event_notifier-posix.o
CC util/mmap-alloc.o
CC util/oslib-posix.o
CC util/qemu-openpty.o
CC util/memfd.o
CC util/qemu-thread-posix.o
CC util/path.o
CC util/envlist.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/keyval.o
CC util/qemu-progress.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-ucontext.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/qdist.o
CC util/qht.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC trace-root.o
CC util/trace.o
CC crypto/trace.o
CC io/trace.o
CC migration/trace.o
CC block/trace.o
CC backends/trace.o
CC chardev/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/intc/trace.o
CC hw/net/trace.o
CC hw/virtio/trace.o
CC hw/audio/trace.o
CC hw/misc/trace.o
CC hw/usb/trace.o
CC hw/scsi/trace.o
CC hw/nvram/trace.o
CC hw/display/trace.o
CC hw/input/trace.o
CC hw/timer/trace.o
CC hw/dma/trace.o
CC hw/sparc/trace.o
CC hw/sd/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/9pfs/trace.o
CC hw/ppc/trace.o
CC hw/pci/trace.o
CC hw/s390x/trace.o
CC hw/vfio/trace.o
CC hw/acpi/trace.o
CC hw/arm/trace.o
CC hw/alpha/trace.o
CC hw/xen/trace.o
CC ui/trace.o
CC audio/trace.o
CC net/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/sparc/trace.o
CC target/s390x/trace.o
CC target/ppc/trace.o
CC qom/trace.o
CC linux-user/trace.o
CC qapi/trace.o
CC accel/kvm/trace.o
CC accel/tcg/trace.o
CC nbd/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/linux-aio.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/qmp_pc_dimm_device_list.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-hvm.o
CC stubs/xen-common.o
CC contrib/ivshmem-client/ivshmem-client.o
CC contrib/ivshmem-client/main.o
CC contrib/ivshmem-server/ivshmem-server.o
CC contrib/ivshmem-server/main.o
CC qemu-nbd.o
CC block.o
CC blockjob.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/cloop.o
CC block/vmdk.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-posix.o
CC block/linux-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/iscsi-opts.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC nbd/server.o
CC block/crypto.o
CC nbd/client.o
CC nbd/common.o
CC block/iscsi.o
CC block/nfs.o
CC block/curl.o
CC block/rbd.o
CC block/gluster.o
CC block/ssh.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-gnutls.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/object_interfaces.o
CC qom/qom-qobject.o
GEN qemu-img-cmds.h
CC qemu-io.o
CC fsdev/virtfs-proxy-helper.o
CC fsdev/9p-marshal.o
CC fsdev/9p-iov-marshal.o
CC qemu-bridge-helper.o
CC blockdev.o
CC blockdev-nbd.o
CC bootdevice.o
CC iothread.o
CC qdev-monitor.o
CC device-hotplug.o
CC os-posix.o
CC bt-host.o
CC bt-vhci.o
CC dma-helpers.o
CC vl.o
CC tpm.o
CC device_tree.o
CC qmp-marshal.o
CC qmp.o
CC hmp.o
CC cpus-common.o
CC audio/audio.o
CC audio/noaudio.o
CC audio/wavaudio.o
CC audio/mixeng.o
CC audio/sdlaudio.o
CC audio/ossaudio.o
CC audio/wavcapture.o
CC backends/rng.o
CC backends/rng-egd.o
CC backends/rng-random.o
CC backends/tpm.o
CC backends/hostmem.o
CC backends/hostmem-ram.o
CC backends/hostmem-file.o
CC backends/cryptodev.o
CC backends/cryptodev-builtin.o
CC block/stream.o
CC chardev/msmouse.o
CC chardev/wctablet.o
CC chardev/testdev.o
CC chardev/baum.o
CC disas/alpha.o
CC disas/arm.o
CXX disas/arm-a64.o
CC disas/cris.o
CC disas/hppa.o
CC disas/i386.o
CC disas/m68k.o
CC disas/microblaze.o
CC disas/nios2.o
CC disas/mips.o
CC disas/moxie.o
CC disas/ppc.o
CC disas/s390.o
CC disas/sh4.o
CC disas/sparc.o
CC disas/lm32.o
CXX disas/libvixl/vixl/utils.o
CXX disas/libvixl/vixl/compiler-intrinsics.o
CXX disas/libvixl/vixl/a64/instructions-a64.o
CXX disas/libvixl/vixl/a64/decoder-a64.o
CXX disas/libvixl/vixl/a64/disasm-a64.o
CC fsdev/qemu-fsdev.o
CC fsdev/qemu-fsdev-opts.o
CC fsdev/qemu-fsdev-throttle.o
CC fsdev/qemu-fsdev-dummy.o
CC hw/9pfs/9p.o
CC hw/9pfs/9p-util.o
CC hw/9pfs/9p-local.o
CC hw/9pfs/9p-xattr.o
CC hw/9pfs/9p-xattr-user.o
CC hw/9pfs/9p-posix-acl.o
CC hw/9pfs/coth.o
CC hw/9pfs/cofs.o
CC hw/9pfs/codir.o
CC hw/9pfs/cofile.o
CC hw/9pfs/coxattr.o
CC hw/9pfs/9p-synth.o
CC hw/9pfs/9p-handle.o
CC hw/9pfs/9p-proxy.o
CC hw/acpi/core.o
CC hw/acpi/piix4.o
CC hw/acpi/pcihp.o
CC hw/acpi/ich9.o
CC hw/acpi/tco.o
CC hw/acpi/cpu_hotplug.o
CC hw/acpi/memory_hotplug.o
CC hw/acpi/cpu.o
CC hw/acpi/nvdimm.o
CC hw/acpi/vmgenid.o
CC hw/acpi/acpi_interface.o
CC hw/acpi/bios-linker-loader.o
CC hw/acpi/aml-build.o
CC hw/acpi/ipmi.o
CC hw/acpi/acpi-stub.o
CC hw/acpi/ipmi-stub.o
CC hw/audio/sb16.o
CC hw/audio/es1370.o
CC hw/audio/ac97.o
CC hw/audio/fmopl.o
CC hw/audio/adlib.o
CC hw/audio/gus.o
CC hw/audio/gusemu_hal.o
CC hw/audio/gusemu_mixer.o
CC hw/audio/cs4231a.o
CC hw/audio/intel-hda.o
CC hw/audio/hda-codec.o
CC hw/audio/pcspk.o
CC hw/audio/wm8750.o
CC hw/audio/pl041.o
CC hw/audio/lm4549.o
CC hw/audio/cs4231.o
CC hw/audio/marvell_88w8618.o
CC hw/audio/milkymist-ac97.o
CC hw/audio/soundhw.o
CC hw/block/block.o
CC hw/block/cdrom.o
CC hw/block/hd-geometry.o
CC hw/block/fdc.o
CC hw/block/m25p80.o
CC hw/block/nand.o
CC hw/block/pflash_cfi01.o
CC hw/block/pflash_cfi02.o
CC hw/block/ecc.o
CC hw/block/onenand.o
CC hw/block/nvme.o
CC hw/bt/core.o
CC hw/bt/l2cap.o
CC hw/bt/sdp.o
CC hw/bt/hci.o
CC hw/bt/hid.o
CC hw/bt/hci-csr.o
CC hw/char/ipoctal232.o
CC hw/char/escc.o
CC hw/char/parallel.o
CC hw/char/pl011.o
CC hw/char/serial.o
CC hw/char/serial-pci.o
CC hw/char/serial-isa.o
CC hw/char/virtio-console.o
CC hw/char/xilinx_uartlite.o
CC hw/char/cmsdk-apb-uart.o
CC hw/char/cadence_uart.o
CC hw/char/etraxfs_ser.o
CC hw/char/debugcon.o
CC hw/char/grlib_apbuart.o
CC hw/char/imx_serial.o
/var/tmp/patchew-tester-tmp-e38by36j/src/hw/char/cmsdk-apb-uart.c: In function ‘uart_read’:
/var/tmp/patchew-tester-tmp-e38by36j/src/hw/char/cmsdk-apb-uart.c:164:20: error: array subscript is above array bounds [-Werror=array-bounds]
r = uart_id[offset / 4 - A_PID4];
~~~~~~~^~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors /var/tmp/patchew-tester-tmp-e38by36j/src/rules.mak:66: recipe for target 'hw/char/cmsdk-apb-uart.o' failed
make: *** [hw/char/cmsdk-apb-uart.o] Error 1
make: *** Waiting for unfinished jobs....
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Quoted 8 lines · On 11 July 2017 at 13:46, <[email protected]> wrote:
/var/tmp/patchew-tester-tmp-e38by36j/src/hw/char/cmsdk-apb-uart.c: In function ‘uart_read’:/var/tmp/patchew-tester-tmp-e38by36j/src/hw/char/cmsdk-apb-uart.c:164:20: error: array subscript is above array bounds [-Werror=array-bounds]r = uart_id[offset / 4 - A_PID4]; ~~~~~~~^~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
/var/tmp/patchew-tester-tmp-e38by36j/src/rules.mak:66: recipe for target 'hw/char/cmsdk-apb-uart.o' failed
make: *** [hw/char/cmsdk-apb-uart.o] Error 1
make: *** Waiting for unfinished jobs....
The compiler is correct here -- should be (offset - A_PID4) / 4, since the A_* values are the register offsets and all multiples of 4.
thanks
-- PMM
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Message-id: [email protected]
Type: series
Subject: [Qemu-devel] [PATCH 0/7] ARM: implement MPS2 board (with 2 FPGA flavours)
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
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 log -n 1 --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'
11c6246 hw/arm/mps2: Add SCC
88ee780 hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller 132aa87 hw/arm/mps2: Add timers
474893d hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device 5be5e0e hw/arm/mps2: Add UARTs
de054f9 hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART 0a4d548 hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models
=== OUTPUT BEGIN ===
Checking PATCH 1/7: hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models...
ERROR: line over 90 characters
#72: FILE: hw/arm/mps2.c:22:
+ * https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-system
total: 1 errors, 0 warnings, 284 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.
Checking PATCH 2/7: hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART...
ERROR: line over 90 characters
#57: FILE: hw/char/cmsdk-apb-uart.c:15:
+ * https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kit
total: 1 errors, 0 warnings, 495 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.
Checking PATCH 3/7: hw/arm/mps2: Add UARTs...
Checking PATCH 4/7: hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device...
ERROR: line over 90 characters
#52: FILE: hw/timer/cmsdk-apb-timer.c:15:
+ * https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kit
total: 1 errors, 0 warnings, 331 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.
Checking PATCH 5/7: hw/arm/mps2: Add timers...
Checking PATCH 6/7: hw/misc/mps2_scc: Implement MPS2 Serial Communication Controller...
ERROR: line over 90 characters
#69: FILE: hw/misc/mps2-scc.c:16:
+ * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.100112_0100_03_en/index.html
ERROR: spaces required around that '*' (ctx:WxV) #104: FILE: hw/misc/mps2-scc.c:51:
+static bool scc_cfg_write(MPS2SCC *s, unsigned function,
^
total: 2 errors, 0 warnings, 379 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.
Checking PATCH 7/7: hw/arm/mps2: Add SCC...
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Quoted 5 lines · On 11 July 2017 at 15:00, <[email protected]> wrote:
=== OUTPUT BEGIN ===
Checking PATCH 1/7: hw/arm/mps2: Implement skeleton mps2-an385 and mps2-an511 board models...
ERROR: line over 90 characters
#72: FILE:hw/arm/mps2.c:22:
+ * https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-system
Six complaints about long lines that are unbreakable URLs (in theory we could make checkpatch ignore the longline issue for the case of "line is in a comment and there is no space in the line where it could be broken before the 80 column point", but that's a lot of effort)...
Quoted 4 lines
ERROR: spaces required around that '*' (ctx:WxV) #104: FILE:
hw/misc/mps2-scc.c:51:
+static bool scc_cfg_write(MPS2SCC *s, unsigned function,^
...and one straight-up false positive (this isn't operator *).
thanks
-- PMM