From patchwork Wed Feb 21 22:59:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10234271 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 219A2604D3 for ; Wed, 21 Feb 2018 23:00:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1311528534 for ; Wed, 21 Feb 2018 23:00:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10CA0285E3; Wed, 21 Feb 2018 23:00:07 +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 [198.137.202.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 9EA1F285DA for ; Wed, 21 Feb 2018 23:00:06 +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=u7YStprtbDn61UXQGZALfN3VbYYA0E7XlkWRORWKATs=; b=rLMH3RDFH/vL4wvs2d54npPr8y R+Id5h+8RhJOnL/3Qiloe4yIhKydar1unq4e7KUXeXqWyEtGfMwfa8OwU9T/mlY5lxRSufxM3SmH/ /W5dPivPfgZ9JPh4sDOPA4R2z7b7y1A0pO1zfoyQc5QBPgiAy0IMHOKQw105DdaGVRatTpUBaYCim htgg0z/6lbV8jQmPvMzilkfqYdl3m70g2PONJ7cG8cfH4LpZy7h+UmHxPcf4hVGn5xMoBxV1pkj2N EFlJ0ods6aSHokzZECqCNcTrcpBsCsTbNQD9m1n6/gqKeH+4zoFPPmFzeNmkTQwb5R7PEynEJDhBr dQo8zzpQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eodMf-0005NO-Hr; Wed, 21 Feb 2018 22:59:53 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eodMa-0005KI-CZ for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2018 22:59:50 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DD9E660B67; Wed, 21 Feb 2018 22:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519253976; bh=y1tr6dnADvsvpMd6Oje9GAyurGlh4UrtOhaN8RuwrUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eiil936dmt75JFclDYpztrXYGGDKNLUWVStQWtZ37SoyG/jlfCFLOjDsufybdYVks OEhzXuMFH/2ICDqf39DWPjO/tguhgZUxLZ9LiZUQxjaLE1j0v/2czBbY08vuF7aA+A aMpIHKW85hZvZ1kX9FAJ5FaFT+3J4zU2oc10wtkc= Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A261E60712; Wed, 21 Feb 2018 22:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519253976; bh=y1tr6dnADvsvpMd6Oje9GAyurGlh4UrtOhaN8RuwrUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eiil936dmt75JFclDYpztrXYGGDKNLUWVStQWtZ37SoyG/jlfCFLOjDsufybdYVks OEhzXuMFH/2ICDqf39DWPjO/tguhgZUxLZ9LiZUQxjaLE1j0v/2czBbY08vuF7aA+A aMpIHKW85hZvZ1kX9FAJ5FaFT+3J4zU2oc10wtkc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A261E60712 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: freedreno@lists.freedesktop.org Subject: [PATCH 01/14] iommu: Add DOMAIN_ATTR_ENABLE_TTBR1 Date: Wed, 21 Feb 2018 15:59:11 -0700 Message-Id: <20180221225924.30737-2-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180221225924.30737-1-jcrouse@codeaurora.org> References: <20180221225924.30737-1-jcrouse@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180221_145948_525013_1CA319BA X-CRM114-Status: GOOD ( 10.78 ) 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: jean-philippe.brucker@arm.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, tfiga@chromium.org, iommu@lists.linux-foundation.org, vivek.gautam@codeaurora.org, linux-arm-kernel@lists.infradead.org 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 Add a new domain attribute to enable the TTBR1 pagetable for drivers and devices that support it. This will enabled using a TTBR1 (otherwise known as a "global" or "system" pagetable for devices that support a split pagetable scheme for switching pagetables quickly and safely. Signed-off-by: Jordan Crouse --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 641aaf0f1b81..e2c49e583d8d 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -153,6 +153,7 @@ enum iommu_attr { DOMAIN_ATTR_FSL_PAMU_ENABLE, DOMAIN_ATTR_FSL_PAMUV1, DOMAIN_ATTR_NESTING, /* two stages of translation */ + DOMAIN_ATTR_ENABLE_TTBR1, DOMAIN_ATTR_MAX, };