Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2434413imb; Mon, 4 Mar 2019 05:12:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzBnzbUJ/VsrLyFSSgudvBP4yzcm6bmAPYgvytb8f6yzl+GFM/2ArKfl/PaCuy5C+9sxh46 X-Received: by 2002:a17:902:7e46:: with SMTP id a6mr20354213pln.150.1551705166728; Mon, 04 Mar 2019 05:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551705166; cv=none; d=google.com; s=arc-20160816; b=BHCJ2JxIh7DQxehkS8l/WvGk+LUYcasZqna/lIbXryPG8VqcFCT8u383n6XMnr+jBb 6dO4umZQcN0BqpNptNOyzjVsJpWWf6j7wRwJ4XhyQncS4b3oy/6gkAoqrZvSQyU3qF0E PoOkY8nBrtP/U0ogJCZ38NJI1/HFSCpL8RSIYW1Hvl5Cfp9Puhwr8MN7W6GHwFO5eddy IYnnY+MeLgk/moQCPA0LMlax8CGDLLaHreKohQbUnfMjI6KJ/pPFZaRTu3EE74myQ66a rjhMUAwlniJMqVHIlsyRQxaaStMRZJagXX8XjJxZOg7PPVKCqoJydga8w40Y3k0D2dvk cZaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0mz8hR/PW+TukAB77KzXlPfAhIvUFB5c4A/6VIejvxk=; b=NAhPT8feKFZDlhK9kM8vOq4hWdGxYPNt1sTqoVKilulMSl49P2EjQVSMPTz2nKbzoj +ju7hTAq2GelRYSkbuTZWp9xbMcKBSdV6KiNcUtr9Yve9KI+6eSUmlEPBa4J7Yp48k0n WEta7mimRI4JPZr8oBXY9ieTJSpWqbLgHJsAKs8ActfgpPXIFEgWMEwgoH5S6ytn+Ijh MfSNMmpjSmECpBmqg82f1NgiSYVP+f9cWDRkQEyUzd8XqZN7l8Sz1JPHzHE6A6Igaeb2 ubG6jQVMPalMQ8LG0VVfv5e4i2Z++e6eg6aO9cBSIBCZMp/Le76wvCvUjaEG19N8aOe2 6ofg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=N8cidJa+; 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 c11si5585027pfc.39.2019.03.04.05.12.31; Mon, 04 Mar 2019 05:12:46 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=N8cidJa+; 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 S1726797AbfCDNLT (ORCPT + 99 others); Mon, 4 Mar 2019 08:11:19 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43582 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbfCDNLS (ORCPT ); Mon, 4 Mar 2019 08:11:18 -0500 Received: by mail-pg1-f193.google.com with SMTP id l11so3082911pgq.10 for ; Mon, 04 Mar 2019 05:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0mz8hR/PW+TukAB77KzXlPfAhIvUFB5c4A/6VIejvxk=; b=N8cidJa+RBPGSL+FpF/dmOQUuLI1A9v0JjWx4C3aX+xibANTueBDzft2D+a3cvEHdu ZBbZPzSMgIcHuBY8biFXoXeJo85Qodj1KzLd5RsEJda/rl8QB/jcFckZllQYBND4I9db IFXv1KogTJk3/eGYvqccL6WziE2Oz9xj/ktRqxWvtARahwOh22wYKWaseQ5OqyzEDi3q z/To1xy/WMuTBcGyGNxUp5sWGAJS7/dBCr2ouCq0CXGRFzkC5eySyZKUYSVGNxzhnE6O jV25/GxjZcafM4uCvTHkUX1FvmvZ8UHrqXoAdE6HGE/cfws19vborK26vWJlV9v2XcpR OguQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0mz8hR/PW+TukAB77KzXlPfAhIvUFB5c4A/6VIejvxk=; b=iNYxsLFAiP0oUhpqe2vGgGWqWHKhqS4vaVQIi6BgzyyjUplnmGoUvslf+A1aGndT0U jWCGolN74qhE381nswpH9nTNkEDVNMnTMFXSAG5bX6AyoYElBPXvJslk2w0S8FYvO53X doXnQ5F9LOA0pKEI2v8swnygjwsFzWDFGg2CQ91LE7u94yLsp195sMZo7mvM9M+l/HCz Q4kpVfFJ6hYw5uLkAHI2rriZFq1YGroE0XvH4IIjWY2XjNJwTELbyXO1Q43Z6oQDj4z/ 2pPdoWNM6IFCTE4+RdDkG9qTgjXcPrLO1WDLmUw82ZwsyuRFoBwe2OjSh1ailDA9FLgO tHRQ== X-Gm-Message-State: APjAAAU8+EMxBg8c1INr8O160jaPFH5Q1jwGTw+/M+w4iBndkknE1lYP rg3/hgbPWaxLqMnAwuFIOKKzJw== X-Received: by 2002:a65:620f:: with SMTP id d15mr18557884pgv.112.1551705077993; Mon, 04 Mar 2019 05:11:17 -0800 (PST) Received: from kshutemo-mobl1.localdomain ([192.55.54.40]) by smtp.gmail.com with ESMTPSA id v6sm8704444pgb.2.2019.03.04.05.11.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 05:11:17 -0800 (PST) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id 0B911300429; Mon, 4 Mar 2019 16:11:14 +0300 (+03) Date: Mon, 4 Mar 2019 16:11:14 +0300 From: "Kirill A. Shutemov" To: Steven Price Cc: Mark Rutland , Peter Zijlstra , Catalin Marinas , Dave Hansen , Will Deacon , linux-mm@kvack.org, "H. Peter Anvin" , "Liang, Kan" , linux-c6x-dev@linux-c6x.org, x86@kernel.org, Ingo Molnar , Mark Salter , Arnd Bergmann , Aurelien Jacquiot , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , linux-kernel@vger.kernel.org, James Morse Subject: Re: [PATCH v3 05/34] c6x: mm: Add p?d_large() definitions Message-ID: <20190304131113.qlf4bs7to77wm3ui@kshutemo-mobl1> References: <20190227170608.27963-1-steven.price@arm.com> <20190227170608.27963-6-steven.price@arm.com> <20190301214851.ucems2icwt64iabx@kshutemo-mobl1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 04, 2019 at 12:01:37PM +0000, Steven Price wrote: > On 01/03/2019 21:48, Kirill A. Shutemov wrote: > > On Wed, Feb 27, 2019 at 05:05:39PM +0000, Steven Price wrote: > >> 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. > > > > Other option would be to provide the stubs via generic headers form !MMU. > > > > I agree that could be done, but equally the definitions of > p?d_present/p?d_none/p?d_bad etc could be provided by a generic header > for !MMU but currently are not. It makes sense to keep the p?d_large > definitions next to the others. > > I'd prefer to stick with a (relatively) small change here - it's already > quite a long series! But this is certainly something that could be > tidied up for !MMU archs. Agreed. -- Kirill A. Shutemov