From patchwork Wed Jul 19 09:33:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9850903 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 B47DA602C8 for ; Wed, 19 Jul 2017 09:35:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9125428590 for ; Wed, 19 Jul 2017 09:35:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85A0C28621; Wed, 19 Jul 2017 09:35:47 +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 1D33D28590 for ; Wed, 19 Jul 2017 09:35:47 +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=9b5F+b3buLTnSNcn5EhJMxDKER12LEn03IC8/j3c0fE=; b=Jrp8P/NmP+if2tEP3OYYEALx5C m0Kk1z5NH+5x9WZhctsJ3qxMqZzcVZ658R9Ln9/nimwmd6BNrLtgVTPWrYc9t5moGasgzsVb0Gv9w GyhsTjA4akEicgfrvM1IYGCTYyJWu+OvGV5RIvrsy65JdpmStDuBPLh2K08GSJVlE7RGXI2mVJh8v e2G1677IyPHAEhbyDToRWuUcbHW0sOTpDDumBNkvrYILpI0jiN4QkkBRIlL/2B/RNNcDD7tLHOLA1 9PvjZNCgMefd5OtT5L6CZlU+GCHf9LI++yNUvw1H5UzNOfnRIV7tY7OrALV0pzVennmTBYKckXmW8 PLZF5V+A==; 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 1dXlOS-0003Gd-OJ; Wed, 19 Jul 2017 09:35:44 +0000 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXlNz-0001T1-Ep for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2017 09:35:23 +0000 Received: by mail-wr0-x22d.google.com with SMTP id y43so56241710wrd.3 for ; Wed, 19 Jul 2017 02:34:59 -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=0msIcDfbAyQldZrDxFfsVMYM+yYqI5Ckz3yv58KiDDc=; b=LsG4kQIrmWmmkf7vCX5ZnalXALSyukE6FaLx+13pfpEqPGOAzMRYJrd9QLcblr/F2Z auwm6c1HL7xhrgVWNxGWWL5ZQsjSyjYyLpmlz+L00JFhawhxh5j2aoaLDdH30yI1f82P XZzYak3G/jk6W/2WXdQtkq/MY/WLpCJ660uLs= 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=0msIcDfbAyQldZrDxFfsVMYM+yYqI5Ckz3yv58KiDDc=; b=BtcDjB3CUQnm8Rsn9jQFmPOnVUq0+lLwQ1szs2yo7d35j9HhFjlGhkQxYdCKvFbZsx tLEN5LQcePkKDmRTep59JOJUEt7TMPxlPrTuOiO4Rbr2q5BJxItsB0Ljs/TyoxnF8yzH qkQAu/dMQ4gzKCenCwc7mGL/sie3+0mdBuyBHztu7YsZ5dVNj0dPWyjxB3O7b3kXpYv4 J+Y1iUHOM8XuIEznb4widVAJ0OBhFkymRgVBBUna+315CsDclOlUIMm5D9H79kFlUOlE /0mPgSv97+eTT0LSpApTVHOvb3ZFZkLRaGPyl06iIyvXcCiX9bsrG+FggZ16gHjroP3m G2NQ== X-Gm-Message-State: AIVw112v/cQq+59hIcLffpLr1hfAxFt3qTPN/+WSGJLvbjMS+PgRN1nH QsUQvaPPQYqGFqs6IEI= X-Received: by 10.223.150.74 with SMTP id c10mr3662895wra.124.1500456898519; Wed, 19 Jul 2017 02:34:58 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Jul 2017 02:34:58 -0700 (PDT) From: Anup Patel To: Will Deacon , Robin Murphy , Joerg Roedel , Baptiste Reynal , Alex Williamson Subject: [PATCH 2/5] iommu/arm-smmu: add IOMMU_CAP_BYPASS to the ARM SMMU driver Date: Wed, 19 Jul 2017 15:03:55 +0530 Message-Id: <1500456838-18405-3-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_023516_151663_4261D66E X-CRM114-Status: GOOD ( 11.03 ) 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 SMMUv1 and SMMUv2 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.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index bc89b4d..08a9020 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1483,6 +1483,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; }