From patchwork Wed Jul 19 09:33:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9850905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C51E602C8 for ; Wed, 19 Jul 2017 09:36:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECB2C28621 for ; Wed, 19 Jul 2017 09:36:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E18402862D; Wed, 19 Jul 2017 09:36:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BB7A928621 for ; Wed, 19 Jul 2017 09:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=J5a36Kq95xiPO62t3bD3KSZE79LYItOeEpV0Z3c1UKU=; b=QWw3foPgdqZowDFc7CmOR4ZWzC boZFMpjDonohwP75m4Oah0G8WPqIs2Mwp2gyn2wdby55ipMz2FCAih9JocI5JybH5vY9qiMjTSSpP 85mldlXg+QTJG1JpjikMjwaAafcKDLRa036rjUAbojY1zvmaMi3wACHe036yuEEHxcJz+/3aLGKiW tSfqE3ELljUqpF2KybKicAB9T3Rrp5s6MXlGDBYYM0Kc1y3gveuMrgzasG9hNb811en+0fkO2EJHP zQR5xWN5HLVgaxoUHYYHKKIj1sEcwkfMNZf4Iy04SCiUGv7dqUa5ule9P/BDlI9Fb3FtVRyjrhPJd voZWW/ZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXlOm-0003aI-G9; Wed, 19 Jul 2017 09:36:04 +0000 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXlOB-00026p-AF for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2017 09:35:30 +0000 Received: by mail-wr0-x22b.google.com with SMTP id y43so56243288wrd.3 for ; Wed, 19 Jul 2017 02:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uzKbWPYLjvspPt/KkSLAfa7gPWV1Nto2baZAIXDS4No=; b=aEcf5HSxKpln0VTujGjhdx2n5OOoAK+NqVBEBguTEeQ7HP/6b+yaAFjmlDeVIo03nx cvzjgbAE96vD4/9AklNFrYRrwUOh5Rk+c3i8BoUg+f9xsHWToq5wDWbspHaB97wbRIpo ivlyNODlGsUXV7QjoIkBPp2eiFtf5gr4Y06vM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uzKbWPYLjvspPt/KkSLAfa7gPWV1Nto2baZAIXDS4No=; b=F2qf4krgeM5rK3gNiHBL3JQ9pCHfkNQI3pDpqKz6FZM388uXz1lHMk4iD85HZ2lJWo y2DAk0nk8yziBlQkluQX93o0TD+F+2UM+QQ3nJOT7mPhg3mMTrxtP073lKEwBAcRM17f j2woIRr/svhNEwUUP8jzJbSTTGjZB9bv6bLli76PgszidcNJOVpRyv9Uu+3rAIHf4hRr /r7aIMvLQLZs2i5gK5rXzFDqgsSSQAPYYt0gi+fLLSkdXW+EU64KvZ1yoL3lFIBmrux7 Qs8BxjCD4vmGcZRFTsnVNUqtK/gZML6fy2elwmCKaIzYyoeUAt0HshrlzICHl71cNB5k vYYg== X-Gm-Message-State: AIVw111n2ODkebbQaRMWOUcsJ1hzB4+5545SzMIZi2tZeiClSu08h7jC HAZVlphH2GLPxkyo X-Received: by 10.223.142.164 with SMTP id q33mr3476346wrb.13.1500456905470; Wed, 19 Jul 2017 02:35:05 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id y12sm8227473wrb.39.2017.07.19.02.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Jul 2017 02:35:04 -0700 (PDT) From: Anup Patel To: Will Deacon , Robin Murphy , Joerg Roedel , Baptiste Reynal , Alex Williamson Subject: [PATCH 3/5] iommu/arm-smmu-v3: add IOMMU_CAP_BYPASS to the ARM SMMUv3 driver Date: Wed, 19 Jul 2017 15:03:56 +0530 Message-Id: <1500456838-18405-4-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500456838-18405-1-git-send-email-anup.patel@broadcom.com> References: <1500456838-18405-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170719_023527_903575_7ABBFE84 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, Scott Branden , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Anup Patel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The ARM SMMUv3 support bypassing transactions for which domain is not configured. The patch adds corresponding IOMMU capability to advertise this fact. Signed-off-by: Anup Patel --- drivers/iommu/arm-smmu-v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 568c400..a6c7f66 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -1423,6 +1423,8 @@ static bool arm_smmu_capable(enum iommu_cap cap) return true; case IOMMU_CAP_NOEXEC: return true; + case IOMMU_CAP_BYPASS: + return true; default: return false; }