Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2019159img; Wed, 27 Feb 2019 09:07:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IbDW6ZQ+Fq/EgpKvCx9PIJ1/bA9oZIZ42hq8isVVPwaslZsMcU8+I/liuSRMokifhm8GDGp X-Received: by 2002:a62:ed08:: with SMTP id u8mr2657438pfh.200.1551287275756; Wed, 27 Feb 2019 09:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287275; cv=none; d=google.com; s=arc-20160816; b=shQ7tp5ZH8KKfmS/1u7g0is2weiiCnqdxLqn6OUoi2e9aX/iPDBBqtx9olLKD32bXH ssvvlAmBahPw6LIS3ftUKSYVIC+BhPIn12xcba7arX/aIr5yHmdpJbZKcgC4nsjhMfej YRjIujoBhjGUBJviNacK7FZthjiCbQgxJqo2KUsqO4cDoZP8Jjof10sRuvgrkaSxxp/N LKjINjtFCieY+WDitlzr+3rC7EjlQRxQ21hWS8OAi7ZppRZc/FQddM7VLXLJSMYGnKDe PHn4F3HPnyT2vHBjrSZOSi3FbiPu8h28EC4HSbUAQ1xPzjJvjbfFbg7s9n1/db8Yr5NL Lk+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=F2Zj9D+6mzZU1aa6902mR5rKdYqk0kidu/xuD/i/Puw=; b=q8dnxcLxK1etZYTeTHeRnqP0cH2qtUU99RgLKST/48MhGtvYyXNsEnN0yjjjmXc5vO N+Ou8C/8MRKtigWh+r07hi4Lo2sdQAozs1ZNfQ0ja1lmNJ9HaUCIjbwlPmuqEiCPQ1+/ O2Y7MyeeDjvucVtkXz1qQQmdUOZS/thrcj2wQHidbWW7rvrtppB7Zn0LijDxFWmWp+7O 2AYmzXPZtcxPjHPdIgUaqRVlRaGUCeE3BgC9TspGTLGG8DURfLWITpfgGEHRgjhO9+mO 2ocLhzmdhB12qivH5mKs4Mz/LJTc+LVmaMxYtOTiy/oPw9BihbXs2wDQjWMkKOk/Nj1p vKpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si5524474plg.347.2019.02.27.09.07.26; Wed, 27 Feb 2019 09:07:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730007AbfB0RGs (ORCPT + 99 others); Wed, 27 Feb 2019 12:06:48 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35896 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729980AbfB0RGr (ORCPT ); Wed, 27 Feb 2019 12:06:47 -0500 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 11CBA1684; Wed, 27 Feb 2019 09:06:47 -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 5EEB53F738; Wed, 27 Feb 2019 09:06:43 -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?q?J=C3=A9r=C3=B4me=20Glisse?= , 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" , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org Subject: [PATCH v3 05/34] c6x: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:39 +0000 Message-Id: <20190227170608.27963-6-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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 c6x there's no MMU so there's never a large page, so just add stubs. CC: Mark Salter CC: Aurelien Jacquiot CC: linux-c6x-dev@linux-c6x.org Signed-off-by: Steven Price --- arch/c6x/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/c6x/include/asm/pgtable.h b/arch/c6x/include/asm/pgtable.h index ec4db6df5e0d..d532b7df9001 100644 --- a/arch/c6x/include/asm/pgtable.h +++ b/arch/c6x/include/asm/pgtable.h @@ -26,6 +26,7 @@ #define pgd_present(pgd) (1) #define pgd_none(pgd) (0) #define pgd_bad(pgd) (0) +#define pgd_large(pgd) (0) #define pgd_clear(pgdp) #define kern_addr_valid(addr) (1) @@ -34,6 +35,7 @@ #define pmd_present(x) (pmd_val(x)) #define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0) #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK) +#define pmd_large(pgd) (0) #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */ #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */ -- 2.20.1