Skip to content

*hacky* basic support for Nvidia Tegra K1/Jetson board (probably ignore)

Ian Campbell xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xen: arm: Add debug keyhandler to dump the physical GIC state.xen/arch/arm/domain.c xen/arch/arm/gic-v2.c xen/arch/arm/gic-v3.c +2 more+96 -80 replies
2/10xen: arm: earlyprintk support for Nvidia Jetsondocs/misc/arm/early-printk.txt xen/arch/arm/Rules.mk+6 -00 replies
3/10xen: arm: add platform hook for routing IRQ to guestsxen/arch/arm/irq.c xen/arch/arm/platform.c xen/include/asm-arm/platform.h+15 -00 replies
4/10WIP: xen: ns16550: Add nvidia, tegra20-uart to DT compatible listxen/drivers/char/ns16550.c+1 -00 replies
5/10WIP: xen: arm: intial platform support for Nvidia TK1xen/arch/arm/platforms/Makefile xen/arch/arm/platforms/tegra.c+396 -00 replies
6/10HACK: xen: arm: Map other regions to dom0 after one failsxen/arch/arm/domain_build.c+3 -20 replies
7/10HACK: xen: arm: trying to figure out ns16550 vs. Tegra issuexen/drivers/char/ns16550.c+15 -10 replies
8/10HACK: xen: arm: Add mask, unmask and eoi platform hooks.xen/arch/arm/gic-v2.c xen/arch/arm/platform.c xen/include/asm-arm/platform.h+27 -00 replies
9/10HACK: xen: arm: stop recursing with dom0 mappings once we've hit a ranges.xen/arch/arm/domain_build.c+14 -40 replies
10/10Tegra hacking.xen/arch/arm/platforms/tegra.c+67 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH WIP 0/10] *hacky* basic support for Nvidia Tegra K1/Jetson board (probably ignore)

There is a lot of hacky and WIP stuff here, including a serial driver issue (FIFO depth? Interrupts?) which I haven't gotten to the bottom of yet. But with these hacks and sync_console I can boot on the platform and run guests etc.

Actually only up to and including patch #7 "HACK: xen: arm: trying to figure out ns16550 vs. Tegra issue" are needed for a functioning system.

I'm not sure when I'll be able to dig in properly into the issues so I'm sending it out now. Nothing here is to be applied, except possibly "xen:
arm: Add debug keyhandler to dump the physical GIC stat" but even that needs more cleanup I think (in particular only handles GICv2).

I've deliberately not CC-d anyone on the patches themselves so as not to spam you with half complete rubbish.

The following changes since commit f0ffd6032f679ec4b9a39d526cdbcdaf692e2f03:

netif.h: describe request/response structures in terms of binary layout (2015-03-03 11:26:24 +0000)

are available in the git repository at:

git://xenbits.xen.org/people/ianc/xen.git tegra-tk1-jetson-v1

for you to fetch changes up to c78d51660446d33dac4bb07c3c17e1d14d62ebc2:

Tegra hacking. (2015-03-10 08:55:00 +0000)

----------------------------------------------------------------
Ian Campbell (10):
xen: arm: Add debug keyhandler to dump the physical GIC state.
xen: arm: earlyprintk support for Nvidia Jetson
xen: arm: add platform hook for routing IRQ to guests
WIP: xen: ns16550: Add nvidia,tegra20-uart to DT compatible list
WIP: xen: arm: intial platform support for Nvidia TK1
HACK: xen: arm: Map other regions to dom0 after one fails
HACK: xen: arm: trying to figure out ns16550 vs. Tegra issue
HACK: xen: arm: Add mask, unmask and eoi platform hooks.
HACK: xen: arm: stop recursing with dom0 mappings once we've hit a ranges. Tegra hacking.

 docs/misc/arm/early-printk.txt  |   1 +
 xen/arch/arm/Rules.mk           |   5 +++
 xen/arch/arm/domain.c           |   2 +-
 xen/arch/arm/domain_build.c     |  23 +++++++---
 xen/arch/arm/gic-v2.c           |  69 +++++++++++++++++++++++++++++-
 xen/arch/arm/gic-v3.c           |   5 ++-
 xen/arch/arm/gic.c              |  25 ++++++++++-
 xen/arch/arm/irq.c              |   4 ++
 xen/arch/arm/platform.c         |  22 ++++++++++
 xen/arch/arm/platforms/Makefile |   1 +
 xen/arch/arm/platforms/tegra.c  | 461 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 xen/drivers/char/ns16550.c      |  17 +++++++-
 xen/include/asm-arm/gic.h       |   6 ++-
 xen/include/asm-arm/platform.h  |  13 ++++++
 14 files changed, 639 insertions(+), 15 deletions(-)
 create mode 100644 xen/arch/arm/platforms/tegra.c

Ian.