From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66E14C43381 for ; Mon, 4 Mar 2019 13:11:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 37A042075B for ; Mon, 4 Mar 2019 13:11:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WJQukYWv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=shutemov-name.20150623.gappssmtp.com header.i=@shutemov-name.20150623.gappssmtp.com header.b="N8cidJa+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37A042075B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shutemov.name Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2N9w2O/sjzQpBHllX5PcBaDU+K76z88cDPO8qukrmes=; b=WJQukYWvIQBfnf Xgsz5Sb0asupUI1dhxlQhTKEwIdDWIpmbF/dbelsP/Z1peoOmgZMmzTn65glBPEEbLxcq5pFUSkTV 4mn0n7gsQRnT8Q1I1vmffblScTHkrEH37rD3hQRh8SITZ3lrMTuX0/1TegUpj6ajx593aIYQNxMQT BX5Thl6nvR+PXEfgyA8qsapsTlfaB0CHbdj0Sk6h52xorNBsS2Tw0ymo1ZGVXVWnwB5tKmBFADgPx p5q75/nwjzOcP3zdnrI7YWIfGyOQwJXtWn9AZFSRFx5tqkdcGrD5Ni1fJHYx2LmlH2zz6gVT5spcX dl2OxPwfFK6N0L+UNx5w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0nNK-0007eo-7d; Mon, 04 Mar 2019 13:11:22 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0nNG-0007dr-Bp for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2019 13:11:19 +0000 Received: by mail-pf1-x442.google.com with SMTP id s22so3006779pfh.4 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=Q1AW0JPszPyin7vNmItj5ELAGiziBZHNOHNalj3ugw4BjX9lapR4z8xe6+mr5QTK+W 7K51PQfRASxVUHr24/DrtqgwWzCDYl+esgIrsj/s8svoBtWgB10frCJo2Rov5mnP+Hmq pWdafhz2Ua7QoHC16CGf+9BnGGQ9LrbonxdFoFtgDi308dhsRTxcT8zOxFEKpALZinA6 4YGb2XBU9BXNK8v//3D68yQaO9grwdHYNEVptmqEOX8cHOrEiKCkfVHZs28mNHW2mlcZ 8SPBOLNyQQmLIK+nwUPtIM8S+6Ms8V2844zTwLOekGsgAjoTcJSRBXCZEIAV3fG9yRrG e+tA== X-Gm-Message-State: APjAAAX8ug9LfnyelKnqtBj+P8MebKw+7hqn290mLoyuZC+jX0ALVJ/9 RiWvpahTczcdmOMHEa60LuPolQ== X-Google-Smtp-Source: APXvYqzAWJ2k3k7IQ3uno9qOI/nhQp7EloMYKyZOcYGMZpgzNkdiqKlyXi09LWDL4bNZVmSSr/me3Q== 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 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-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_051118_518938_DD74C38B X-CRM114-Status: GOOD ( 15.44 ) 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: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel