Skip to content

Add MDESC & VIO support for VCC

Jag Raman sparclinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 1 replyIn review
  2. v112 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12sparc64: ensure VIO operations are defined while being usedarch/sparc/kernel/viohs.c+13 -40 replies
2/12sparc64: specify the device class in VIO version info. packetarch/sparc/kernel/viohs.c+1 -00 replies
3/12sparc64: skip handshake for LDC channels in RAW modearch/sparc/kernel/ldc.c arch/sparc/kernel/viohs.c+15 -10 replies
4/12sparc64: expand MDESC interfacearch/sparc/include/asm/mdesc.h arch/sparc/kernel/mdesc.c+232 -00 replies
5/12sparc64: mdesc: use __GFP_REPEAT action modifier for VM allocationarch/sparc/kernel/mdesc.c+3 -50 replies
6/12sparc64: add MDESC node name property to VIO device metadataarch/sparc/include/asm/mdesc.h arch/sparc/include/asm/vio.h arch/sparc/kernel/mdesc.c +1 more+68 -510 replies
7/12sparc64: refactor code to obtain cfg_handle property from MDESCarch/sparc/kernel/vio.c+19 -110 replies
8/12sparc64: remove restriction on VIO device name sizearch/sparc/kernel/vio.c+4 -190 replies
9/12sparc64: check if a client is allowed to register for MDESC notificationsarch/sparc/kernel/mdesc.c+17 -00 replies
10/12sparc64: enhance VIO device probingarch/sparc/include/asm/vio.h arch/sparc/kernel/vio.c+42 -160 replies
11/12sparc64: Enhance search for VIO device in MDESCarch/sparc/include/asm/vio.h arch/sparc/kernel/mdesc.c arch/sparc/kernel/vio.c+64 -630 replies
12/12sparc64: add port_id to VIO device metadataarch/sparc/include/asm/vio.h arch/sparc/kernel/vio.c+3 -00 replies

Reviews trailers per patch

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

PatchLiam MerwickShannon Nelson
1/12R-b R-b
2/12R-b R-b
3/12R-b R-b
4/12R-b R-b
5/12R-b R-b
6/12R-b R-b
7/12R-b R-b
8/12R-b R-b
9/12R-b R-b
10/12R-b R-b
11/12R-b R-b
12/12R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/12] Add MDESC & VIO support for VCC

This series of patches is part of an effort to add VCC (Virtual Console Concentrator) support to Linux.

VCC enables the virtualization of serial console on SPARC processors. VCC provides access to the guest domain's serial console.

VCC depends on some core functionalities in the linux kernel for SPARC. The functionalities include LDC (Logical Domain Channels), MDESC (Machine Descriptor) and VIO (Virtual IO protocol). In order for VCC to be enabled, it requires that these core functionalities support them.

This series of patches adds MDESC & VIO support to enable VCC on Linux. It is the second batch of changes to enable VCC.

This version of the series addresses the following changes suggested by Dave Miller
Patch 4/5:
- "name" field in vdev_port md_node_info is declared as "const char *"
- Code has been modified to dynamically allocate & free "name" in vdev_port md_node_info
- Parameters to mdesc_get_node(), mdesc_get_node_info() & mdesc_get_node_ops() have been updated to use "const char *"

Patch 6/5:
- "node_name" parameter in vio_create_one() has been changed to "const char *" type from "char *"
- Typecasts in vio_create_one() invocations to convert "const char *" to "char *" have been removed

Patch 11/5:
- Invocations of mdesc_node_get() & mdesc_get_node_info() have been updated to use the prototypes defined in patch 4/5

Jag Raman (12):
sparc64: ensure VIO operations are defined while being used
sparc64: specify the device class in VIO version info. packet
sparc64: skip handshake for LDC channels in RAW mode
sparc64: expand MDESC interface
sparc64: mdesc: use __GFP_REPEAT action modifier for VM allocation
sparc64: add MDESC node name property to VIO device metadata
sparc64: refactor code to obtain cfg_handle property from MDESC
sparc64: remove restriction on VIO device name size
sparc64: check if a client is allowed to register for MDESC
notifications
sparc64: enhance VIO device probing
sparc64: Enhance search for VIO device in MDESC
sparc64: add port_id to VIO device metadata

 arch/sparc/include/asm/mdesc.h |   24 +++-
 arch/sparc/include/asm/vio.h   |   13 ++-
 arch/sparc/kernel/ldc.c        |   10 ++
 arch/sparc/kernel/mdesc.c      |  331 ++++++++++++++++++++++++++++++++++------
 arch/sparc/kernel/vio.c        |  244 ++++++++++++++++--------------
 arch/sparc/kernel/viohs.c      |   24 +++-
 6 files changed, 479 insertions(+), 167 deletions(-)