[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/7] Add support for R-Car Gen4 PCI host controller


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Mon, 24 Feb 2025 09:18:23 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kG/AzRlNEE5meDJALtWRpixPxZ61I2XWF7TZt1xcgpY=; b=MZ25m5mrdw4iYWoTI63xt6v4WEmXOwtJY/IztucN5io5cRHWYHHxIaH8UF2WLV+iHi/zEtcna7BtmQ8LQN0yQrHiOOuJgpwy883SyWs40rHlujN2gm8sF7bY9DHqiFarnydr+84D1+uu+dANGhMz69DnWQAfDCEUwxvG/Mglg3n6OZUD4ipC8J9SxRhVf9DZq6fZfErG/U/rwjwSGMEJ3uwNM288A2qkRpOkPC6iHRNATkqYiJxjRzxqyAfSFgsU6h0FeOB3SY4RCovHdE+DxE51uC3rICh01iwy99U/x34sMXkIgqYDJyZUpbH9qxJZRCF/kVFZbIVnj7GQkWHIBQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MSW2mV/Xw4cMp/P8JHAp1rl4y5WTotwRZpnjIrAXW/pJLPMIJandLGrbd7kXBTneRV/v5TnRcP0uB+aDtHFzmXXfjYf4gC5wqJPOsIMCHP8emDtDFqpewI4DTI+/LG+s1WXxDIN+PWnJ2FNb1O8LAZQrmVuRRS2K2CGYjyzJzbyATMXbWclhmwznNRIoKX10mXnckPhUg/5JCvmXQc5Ks1cSvDCRlU99RA36PXSiJGTOK4bt6ybk0snahN2v+vNrFcU6l3GoRXZUlOAHdslHlRPWkljzQaSdPKeBuPWy/iSJOVC7ouK0QqESX63R/GzOn2rxrM/FkPmOyz2wRaO+ww==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 24 Feb 2025 09:18:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbhp0NQBdW76R7SUWOEr9t9KgJjA==
  • Thread-topic: [PATCH 0/7] Add support for R-Car Gen4 PCI host controller

This series adds support for R-Car Gen4 PCI host controller.

To fully support the controller, the following changes were made:
- Generic mechanism to support PCI child buses is added.
- Private data for PCI host bridge and means to access it are added.

The series also includes a workaround for proper ATU propramming and
optimizations to lessen the performance impact of that workaround.

The series was tested both as a part of the pci-passthrough patches[1] and
standalone on S4 and V4H boards.

[1] https://github.com/Deedone/xen/tree/pci_passthrough_wip

Oleksandr Andrushchenko (4):
  xen/arm: allow PCI host bridge to have private data
  xen/arm: make pci_host_common_probe return the bridge
  xen/arm: add support for PCI child bus
  xen/arm: add support for R-Car Gen4 PCI host controller

Volodymyr Babchuk (3):
  xen/arm: rcar4: add delay after programming ATU
  xen/arm: rcar4: add simple optimization to avoid ATU reprogramming
  xen/arm: rcar4: program ATU to accesses to all functions

 xen/arch/arm/include/asm/pci.h      |  16 +-
 xen/arch/arm/pci/Makefile           |   1 +
 xen/arch/arm/pci/ecam.c             |  17 +-
 xen/arch/arm/pci/pci-access.c       |  37 +-
 xen/arch/arm/pci/pci-host-common.c  | 106 +++++-
 xen/arch/arm/pci/pci-host-generic.c |   2 +-
 xen/arch/arm/pci/pci-host-rcar4.c   | 542 ++++++++++++++++++++++++++++
 xen/arch/arm/pci/pci-host-zynqmp.c  |   2 +-
 xen/arch/arm/vpci.c                 |  91 ++++-
 9 files changed, 764 insertions(+), 50 deletions(-)
 create mode 100644 xen/arch/arm/pci/pci-host-rcar4.c

-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.