From patchwork Wed May 4 11:40:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 9012571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E206D9F1D3 for ; Wed, 4 May 2016 11:42:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B3FB2039D for ; Wed, 4 May 2016 11:42:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D60A203A4 for ; Wed, 4 May 2016 11:42:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1axvAx-0001pX-2h; Wed, 04 May 2016 11:41:07 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1axvAY-0001UW-DV for linux-arm-kernel@lists.infradead.org; Wed, 04 May 2016 11:40:43 +0000 Received: by mail-wm0-x231.google.com with SMTP id n129so184767198wmn.1 for ; Wed, 04 May 2016 04:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CgFrfMe7mC0Htp17DFpEyyPbCgNQu2iC7llgxwSiBtE=; b=enfC3Yyi/ti9lKU45c1m+EqNSBzwG2vQJTQWotZixRfEW+Nflz7vVzWjTAtA0vsZjf Zwt3BPLRGiW4hFfUVlCw+Xjrc+93x3WM2/9LTfEJqANuG8GOOd1HFanjhlYtajGvCusF 7RRVxN0CYh+MsGHXn8lyFzSCJ0UFKgWGUpJL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CgFrfMe7mC0Htp17DFpEyyPbCgNQu2iC7llgxwSiBtE=; b=XhbZ0bmYN5NmOB8daagFg3T8GQ2leBJnXwjz+viF8c3QsPXlxiMsejrD0fJSb9G5Fl 6MP11bbWlR3cPB+9ovKCEvzgDKIw9swvWWRoc/Mxl1coTW8YiUb9DVDvwMHFvQXuH86k RgCSov0T7OlEFVDSBIB4pyzfPvRw/ZYhHaTkOxPP0SYlymJv8eNh+lDpXc0NIt6m5xbB frWToinhCUsVFwup04QPIgu8Wv0sgEJmteLK3UZGcgrbD8o45/JWS1OikXLM0/VeK4Wo dgg5DDtSgwMZxCoWNrt/8Em4yNVq7eXsYl4C8mkf9HumgIV93qMcH8l4qRed2KQZUBV9 3rrw== X-Gm-Message-State: AOPr4FUAUk/iyQX3d+4uT2iAVzslE95dXybdn+Cf38NizMhpLnuMFhJQROySA6cs0MdRDGoH X-Received: by 10.195.18.99 with SMTP id gl3mr8127570wjd.162.1462362020906; Wed, 04 May 2016 04:40:20 -0700 (PDT) Received: from new-host-61.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id u6sm3766963wjh.2.2016.05.04.04.40.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 May 2016 04:40:19 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, robin.murphy@arm.com, alex.williamson@redhat.com, will.deacon@arm.com, joro@8bytes.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, christoffer.dall@linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v9 3/8] iommu: introduce an msi cookie Date: Wed, 4 May 2016 11:40:02 +0000 Message-Id: <1462362007-2753-4-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462362007-2753-1-git-send-email-eric.auger@linaro.org> References: <1462362007-2753-1-git-send-email-eric.auger@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160504_044042_666324_96C3A93B X-CRM114-Status: GOOD ( 11.22 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: julien.grall@arm.com, patches@linaro.org, Jean-Philippe.Brucker@arm.com, p.fedin@samsung.com, linux-kernel@vger.kernel.org, Bharat.Bhushan@freescale.com, iommu@lists.linux-foundation.org, pranav.sawargaonkar@gmail.com, yehuday@marvell.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This opaque pointer will enable to store information about msi iommu mappings. Signed-off-by: Eric Auger --- v7 -> v8: remove spinlock and RB tree v5 -> v6: - initialize reserved_binding_list - use a spinlock instead of a mutex --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 021b659..09fba4c 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -90,6 +90,7 @@ struct iommu_domain { struct iommu_domain_geometry geometry; struct iommu_domain_msi_geometry msi_geometry; void *iova_cookie; + void *msi_cookie; }; enum iommu_cap {