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

[Xen-devel] [RFC 0/2] Generic DT Support for SMMU


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Brian Woods <brian.woods@xxxxxxxxxx>
  • Date: Thu, 9 Jan 2020 17:26:28 -0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ekJWvSyjNHOS7J5HTnDlsC67r1PwlxTGYHxP/NHX/8=; b=RGTRIfuXKaEx7Tl2wOHm7VL22l9V4MuoqpnkIf7qf+XUd8ibKyZ+MhvYA9Qg1iXQxIrKd9LSWb/TOnoTtfgKQ70uUx9dvd8iRnCdtHen9rC+/z+0ookPfEbKKnNPryDQkLkMWvlLo3e81GzKm+vZhNR8XJu0Ln5XRl7ofLAVzk8fgnxh22tLmijCRgHCqjsKckQLrmtZjYWCZ+zm0BQGNHdZMWpEy8stnyHC6LyYqX015LR3bVnCmSVpsZhgIxz4yUgmQLmpxG8c4HMwp+89h9FKTT+UQ0RPFtBWo+KwBxRMRlOi7gWm4coc1pGJuiVU6BqYGgmpweTLoq9nbvYvXw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YP9PGxUuYuK81oHhP/cwoFJCm60q9xp9rPxbZpK2iYGd10f/nGxlulo17HCD5R1EGSxQsrco0XYRI38tQR76aNnX4qqdLoQBwnIsH4j2jUa6osM2Iuq/0jGPPAlUyxfufLvN2XsBAOgU86tJLdgkFPXjFz9AU20HJQ6qJROB2FgJoBiD6VUqP2oYGeLE/e1a/j9ZuYNYaAELSmc+Quh5Z6tPTsvMIDhWSDs3xfVEFz4fdLRKVtzWFsaFu/ftvR0hnfmBl1zmP3qL37abWBB1owookIbKdgtB6y4R2igG2XthZbYpKxyhPJb8/outQgqF3k6oOqqYTurDe+H6yAm7JA==
  • Authentication-results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=bestguesspass action=none header.from=xilinx.com;
  • Cc: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Brian Woods <brian.woods@xxxxxxxxxx>
  • Delivery-date: Fri, 10 Jan 2020 01:27:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

I'd like some feedback on these patches.  Parts I particularly want
feedback on are listed below and each patch will have a copy of the
relevant parts requesting feedback.  Any feedback is welcomed though.
Also, the commit messages are a little rough.

Patch 1:
  - Check in device_tree.c.  This is needed, otherwise it won't boot due
    to dev_iommu_fwspec_get(dev) being true and returning EEXIST.  I'm
    not completely sure what type of check is best here.

Patch 2:
   - Checks for the: arm_smmu_dt_add_device* and arm_smmu_dt_xlate*
     functions.

These patches have been tested with device passthrough on a Xilinx
ZCU102 with passing the on board ethernet to a guest via the SMMU.

Brian Woods (2):
  arm,smmu: add support for iommu_fwspec functions
  smmu: add support for generic DT bindings

 xen/drivers/passthrough/arm/smmu.c    | 156 +++++++++++++++++++++++++---------
 xen/drivers/passthrough/device_tree.c |  20 +----
 2 files changed, 118 insertions(+), 58 deletions(-)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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