On 27.01.20 14:56, nikhil.nd via Jailhouse wrote:
From: Nikhil Devshatwar <nikhil...@ti.com>

This series adds support for partitioning registers across different cells
in the Jailhouse. Jailhouse supports partitioning memory regions; where it uses
MMU mapping for page aligned regions and subpage handler for non aligned 
regions.

However, most of the embedded platforms will have common set of registers which
need to be partitioned at the granularity of single register. One such example 
is
the pinmux registers avaialble in many platforms including K3 J721e.

This series implements a regmap unit which allows to describe the ownerhip of 
the
registers using a simple bitmap. This scales well when you have to partition
hundreds of control module or pinmux registers.

Nikhil Devshatwar (4):
   configs: arm64: k3-j721e-linux: Add USB mem_regions
   core: Introduce regmaps in cell config for partitioning registers
   core: Implement regmap unit for partitioning registers
   configs: k3-j721e: Add regmaps for PADCONFIG registers

  configs/arm64/k3-j721e-evm-linux-demo.c |  41 +++-
  configs/arm64/k3-j721e-evm.c            |  15 ++
  hypervisor/Makefile                     |   2 +-
  hypervisor/include/jailhouse/cell.h     |   2 +
  hypervisor/include/jailhouse/regmap.h   |  47 +++++
  hypervisor/regmap.c                     | 258 ++++++++++++++++++++++++
  include/jailhouse/cell-config.h         |  22 +-
  tools/jailhouse-cell-linux              |   5 +-
  tools/jailhouse-hardware-check          |   2 +-
  9 files changed, 387 insertions(+), 7 deletions(-)
  create mode 100644 hypervisor/include/jailhouse/regmap.h
  create mode 100644 hypervisor/regmap.c


Worthwhile to discuss, indeed. The key question for me is how well it
could map on other SoCs. Ralf, do you think it could be that simple,
based on your experiments? Or could we also face scenarios where we
would have to dispatch bits of a registers? We already do in some GIC
regs, clock gates may be another case.

Jan

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/e4e85734-bcc5-d833-3f31-53e90c186de3%40web.de.

Reply via email to