From patchwork Wed Feb 27 17:05:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Price X-Patchwork-Id: 10831969 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EFE621390 for ; Wed, 27 Feb 2019 17:08:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D78892E306 for ; Wed, 27 Feb 2019 17:08:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C68C12E305; Wed, 27 Feb 2019 17:08:02 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F80B2E305 for ; Wed, 27 Feb 2019 17:08:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 00B9A8E001A; Wed, 27 Feb 2019 12:08:00 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id ED9C68E0001; Wed, 27 Feb 2019 12:07:59 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D9DB98E001A; Wed, 27 Feb 2019 12:07:59 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by kanga.kvack.org (Postfix) with ESMTP id 7B1AE8E0001 for ; Wed, 27 Feb 2019 12:07:59 -0500 (EST) Received: by mail-ed1-f70.google.com with SMTP id h16so7211992edq.16 for ; Wed, 27 Feb 2019 09:07:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=x+mImCKjHMivjMCtyHQ8sHzcBk8CcZE99nWra+GnYCo=; b=pF+dLW1MtiSNgSjQJ+Go8iIWZATFMEuVtJWlR5FxGXXx61a2QLQzUKC2FR0VuO/P3y ooRODo0ahH+q417lA4Yk16Tpx54PPdpWeLIWeUxdVz+HMG3oV/E6XP0w9Zz4DHt8mIn1 mG4Uxo+Dcx11SEtyZnqp65z9HgKkYjgG5k3yYDgzRcC6+4G3u3G31Fr3VUkh6w5RNCx3 jxgDzlkMPQh9yDXTKp6HkPCt7lH7knYnv3iLiWCryPYivA7f30tz3orNNbaPahLFAVJH q5FWDX5XprzSFTZTPTPp6sFonHzO/MkUFFeuX+Vyu8tyNeYrEVZu6Ba3Co9Z6hLNHgLJ Z+YQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of steven.price@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=steven.price@arm.com X-Gm-Message-State: AHQUAuYMEZcGYh2F8ZlhGueZBVYtxgA0SONbvjkG0NEYXwzvHVRfn8hD tswZ8741JPcwDtmizMPLSSEZCOUKHUOf19FA1jl7OwkSkZxtQXLdQ30XM0L18yZ6aDgbPjSxOz/ 34G0avSinhXx7yJDEs7aoX6O1l8id8o/xKS+eyZ4c/mmJzLu4yPiiT40vD5Epk4NnLw== X-Received: by 2002:a05:6402:6d7:: with SMTP id n23mr3170371edy.233.1551287278985; Wed, 27 Feb 2019 09:07:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IavP+mxnwfhAYmqjsRPF9yTabQRcIEaKt+oyjH6j1n21cgu5STjkg0gle6Is9WAKpFI+HYJ X-Received: by 2002:a05:6402:6d7:: with SMTP id n23mr3170315edy.233.1551287278040; Wed, 27 Feb 2019 09:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287278; cv=none; d=google.com; s=arc-20160816; b=QC/7TGBdv+ma0rdw2SJbQgydYxmzemwr6Hmcg6tqcOTIB/DxzSJ7TTYCY5M/lo5wL8 YpopFB/C9E1ioVaAU6qAGSjMmh3cjUH/APikIpFoeSz5YY4HSDivJpgFvfQ4ZJ8Xg/6l J+CP4GYmH5yzb8FP6IjqeA6b9dKCtnkuNYzlU4p+jqCL3SeQuuDHyhCM7KVw+XJSUkW5 XrKhSigJgMGfDCczvV3ncvISeY5XEC9nUo6msFJVu22oYjZfmyOk+thQG3aZjWHjq9QK BTmC7dn4yT8rjyCCrjPsQg4KtrIx+m79tP7h5ptVx6pYSB98NX0krVrViKk0Sqskdzpz 1WFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=x+mImCKjHMivjMCtyHQ8sHzcBk8CcZE99nWra+GnYCo=; b=as3IMsCvtwK55viWIHU3WHT/y+Fr6angBjdjeczZAN1OsQwpwjsOJYQkR34C4vf8Rn TyaNZHiZ2NPbfUi2O4qSzj8YBKzByWbKSJ/aUR4OxdRtEfI7FPotfVRrX+uPYOOylScu HuPN48XIHbk3OYRWjNPjBAQYibB16/DaVEj6SbPlJZXF8TqxG5/7Li7WjdV5ijbp53Ck M8YvV4tlieDEQjVcyAsinA9RBpuClVfSq33DbjgZSamy3LhMMYp7YKGt4yMNaiv4oakZ M9a4VwKozg6/gXO16Zets6qLFDPX9A/17nWiwTJfkOOsZBfjphfG0KwY6brkr2+PnfUw ap5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of steven.price@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=steven.price@arm.com Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id k56si622336edb.378.2019.02.27.09.07.57 for ; Wed, 27 Feb 2019 09:07:58 -0800 (PST) Received-SPF: pass (google.com: domain of steven.price@arm.com designates 217.140.101.70 as permitted sender) client-ip=217.140.101.70; Authentication-Results: mx.google.com; spf=pass (google.com: domain of steven.price@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=steven.price@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C63A19BF; Wed, 27 Feb 2019 09:07:57 -0800 (PST) Received: from e112269-lin.arm.com (e112269-lin.cambridge.arm.com [10.1.196.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6AFCE3F738; Wed, 27 Feb 2019 09:07:53 -0800 (PST) From: Steven Price To: linux-mm@kvack.org Cc: Steven Price , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , Peter Zijlstra , Thomas Gleixner , Will Deacon , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , "Liang, Kan" , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Subject: [PATCH v3 23/34] xtensa: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:57 +0000 Message-Id: <20190227170608.27963-24-steven.price@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190227170608.27963-1-steven.price@arm.com> References: <20190227170608.27963-1-steven.price@arm.com> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For xtensa, we don't support large pages, so add a stub returning 0. CC: Chris Zankel CC: Max Filippov CC: linux-xtensa@linux-xtensa.org Signed-off-by: Steven Price Acked-by: Max Filippov --- arch/xtensa/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h index 29cfe421cf41..60c3e86b9782 100644 --- a/arch/xtensa/include/asm/pgtable.h +++ b/arch/xtensa/include/asm/pgtable.h @@ -266,6 +266,7 @@ static inline void pgtable_cache_init(void) { } #define pmd_none(pmd) (!pmd_val(pmd)) #define pmd_present(pmd) (pmd_val(pmd) & PAGE_MASK) #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) +#define pmd_large(pmd) (0) #define pmd_clear(pmdp) do { set_pmd(pmdp, __pmd(0)); } while (0) static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; }