From patchwork Tue Mar 9 18:19:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rahul Singh X-Patchwork-Id: 12126323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55223C433E0 for ; Tue, 9 Mar 2021 18:20:44 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CBD6F65228 for ; Tue, 9 Mar 2021 18:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBD6F65228 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.95658.180593 (Exim 4.92) (envelope-from ) id 1lJgxw-00009b-73; Tue, 09 Mar 2021 18:20:20 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 95658.180593; Tue, 09 Mar 2021 18:20:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJgxw-00009U-3t; Tue, 09 Mar 2021 18:20:20 +0000 Received: by outflank-mailman (input) for mailman id 95658; Tue, 09 Mar 2021 18:20:18 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJgxu-00009P-Jj for xen-devel@lists.xenproject.org; Tue, 09 Mar 2021 18:20:18 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 91cb705f-1054-43c4-a5e1-7594f8d59ff1; Tue, 09 Mar 2021 18:20:16 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5436031B; Tue, 9 Mar 2021 10:20:16 -0800 (PST) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A48F3F73C; Tue, 9 Mar 2021 10:20:15 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 91cb705f-1054-43c4-a5e1-7594f8d59ff1 From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, rahul.singh@arm.com, Stefano Stabellini , Julien Grall , Volodymyr Babchuk Subject: [PATCH 0/5] xen/arm: smmuv1: Fix stream match conflict issue Date: Tue, 9 Mar 2021 18:19:24 +0000 Message-Id: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 This patch is the work to fix the stream match conflict issue when two devices have the same stream-id. Approach taken is to merge the below commit from Linux driver to fix the issue. 1. "iommu/arm-smmu: Handle stream IDs more dynamically" commit 21174240e4f4439bb8ed6c116cdbdc03eba2126e 2. "iommu/arm-smmu: Consolidate stream map entry state" commit 1f3d5ca43019bff1105838712d55be087d93c0da 3. "iommu/arm-smmu: Keep track of S2CR state" commit 8e8b203eabd8b9e96d02d6339e4abce3e5a7ea4b 4. "iommu/arm-smmu: Add a stream map entry iterator" commit d3097e39302083d58922a3d1032d7d59a63d263d 5. "iommu/arm-smmu: Intelligent SMR allocation" commit 588888a7399db352d2b1a41c9d5b3bf0fd482390 Rahul Singh (5): xen/arm: smmuv1: Handle stream IDs more dynamically xen/arm: smmuv1: Consolidate stream map entry state xen/arm: smmuv1: Keep track of S2CR state xen/arm: smmuv1: Add a stream map entry iterator xen/arm: smmuv1: Intelligent SMR allocation xen/drivers/passthrough/arm/smmu.c | 423 ++++++++++++++++++----------- 1 file changed, 262 insertions(+), 161 deletions(-) Acked-by: Stefano Stabellini Reviewed-by: Bertrand Marquis