Skip to content

Allwinner A10 fixes

Beniamino Galvani qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 1 replyIn review
  2. v47 patches 2 repliesSuperseded
  3. v37 patches 10 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches10 repliesSuperseded
v17 patches14 repliesSuperseded

Changelog from the cover letter

v5: Address comment from Peter Crosthwaite:
* use an array for timer input frequencies (patch 5)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7allwinner-a10-pic: set vector address when an interrupt is pendinghw/intc/allwinner-a10-pic.c+10 -40 replies
2/7allwinner-a10-pic: fix behaviour of pending registerhw/intc/allwinner-a10-pic.c+7 -10 replies
3/7allwinner-a10-pit: avoid generation of spurious interruptshw/timer/allwinner-a10-pit.c include/hw/timer/allwinner-a10-pit.h+22 -110 replies
4/7allwinner-a10-pit: use level triggered interruptshw/timer/allwinner-a10-pit.c+14 -10 replies
5/7allwinner-a10-pit: implement prescaler and source selectionhw/arm/cubieboard.c hw/timer/allwinner-a10-pit.c include/hw/timer/allwinner-a10-pit.h+41 -10 replies
6/7allwinner-emac: set autonegotiation complete bit on link uphw/net/allwinner_emac.c include/hw/net/allwinner_emac.h+3 -20 replies
7/7allwinner-emac: update irq status after writes to interrupt registershw/net/allwinner_emac.c+2 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchPeter CrosthwaiteLi Guang
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/7] Allwinner A10 fixes

This series introduces some fixes and missing features found while trying to run mainline Linux kernel on emulated Allwinner A10.

The changes concern interrupt handling, timer and ethernet MAC.

With these applied I'm able to boot Linux 3.14-rc2 using a NFS root:

https://gist.github.com/anonymous/3e09495652009c6b9da4

Changelog:
v5: Address comment from Peter Crosthwaite:
* use an array for timer input frequencies (patch 5)

v4: Address comments from Peter Crosthwaite:
* force argument of qemu_set_irq to 0/1
* update irq status in pit reset handler
* add properties for setting input frequencies of pit
* set pit input frequencies in cubieboard init function

v3: Address comments from Peter Crosthwaite:
* make pending register read-only (patch 2)
* inline timer context structure into timer state (patch 3)
* cleanup timer frequency initialization (patch 5)

v2: Address comments from Li Guang:
* make pic vector register read-only
* allow writing to pic pending register

Beniamino Galvani (7):
allwinner-a10-pic: set vector address when an interrupt is pending
allwinner-a10-pic: fix behaviour of pending register
allwinner-a10-pit: avoid generation of spurious interrupts
allwinner-a10-pit: use level triggered interrupts
allwinner-a10-pit: implement prescaler and source selection
allwinner-emac: set autonegotiation complete bit on link up
allwinner-emac: update irq status after writes to interrupt registers

 hw/arm/cubieboard.c                  |   13 +++++++
 hw/intc/allwinner-a10-pic.c          |   22 +++++++++---
 hw/net/allwinner_emac.c              |    6 ++--
 hw/timer/allwinner-a10-pit.c         |   66 +++++++++++++++++++++++++++-------
 include/hw/net/allwinner_emac.h      |    1 +
 include/hw/timer/allwinner-a10-pit.h |    9 +++++
 6 files changed, 98 insertions(+), 19 deletions(-)
Signature · 1 line
1.7.10.4