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 C7CC0C43381 for ; Fri, 1 Mar 2019 12:28:56 +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 9621120850 for ; Fri, 1 Mar 2019 12:28:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rnFtvA83"; 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="Tm1tQon+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9621120850 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=Y2uTpC6D3FOwEJeyKGF4BgnATWFHbOZRns14TE4AA8A=; b=rnFtvA836iY7xm Ews82Lj0vmruMWUQHBVla8davnaTzWjeyDDTaE0BjLFsCedzGzSGsu4ZuYf0+2qwPDiNLGm+hzaCy ZMsOgIMbEbbHGUq0iwXt+dh3MbqG40QWYvgmsYSByVbCHBwx/Pcv5jvbGNRHXLG8MZmDhClPywEtg u1pcwUBc3QuLxFsRXp09Ce6e7tohCGGaM5EOYMtJaBkGk5wluyqDWCbtusnAwQLjE4q4JujBj1nN/ agjxxdIsRXemtQXAT5TECgj7nsGHMvc9GQwECMGL2XbkmjF0RMDYwMs5LHrwDfoqFEqLtzSm7cYj9 rjmBDHwyQhSShngeWkpg==; 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 1gzhHZ-0008Cl-Fi; Fri, 01 Mar 2019 12:28:53 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzhHV-0007xR-BP for linux-arm-kernel@lists.infradead.org; Fri, 01 Mar 2019 12:28:50 +0000 Received: by mail-pg1-x541.google.com with SMTP id j3so11366524pgm.11 for ; Fri, 01 Mar 2019 04:28:48 -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=//6YYsQF8GgCh58e9gUcqUx70l8klEmhGzm+30mhqCg=; b=Tm1tQon+UU7S9BJ8mWVuw58F/jEjjJT9Y5SBanjOnNYZcQNzXTmiC1Xwnxp2FbG17u C5C0XCbHKjGbuxPl314LrXHPwi0tTbrK3izEi8T/5Rb1o2kho9SfYMCznGhpXWQjf2Do GzBvvN4CDeaFJurfVbSpa/vXOO/FnrGjf5VvcSJYqof1rdcuKdbrJj7dEsL6sP35P7tS zFw4Y3/r5eLSZxvH+5SiSpeBb50fMj17WHwcPQbn+R4ech237C7IyExUbEn1GfNMWDP+ NeKbTY/pFIFt+UnNt4GTLrffJXkDwmL5jvrQGSQ4GPIujgW5nQMdeMVgaVTpENey7BdI j4RQ== 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=//6YYsQF8GgCh58e9gUcqUx70l8klEmhGzm+30mhqCg=; b=hDe8oZF71ixQJxhMAjWqo2vS2F/gcqTclShXMKsOgQzMMYX3+ZSZHZI3BNd5VssORL z8saa47IjswyfV62nTd9S+Udctgu9j5/Ki/UcpTHCCe5f2DZxWH+x0dK+mnRR9I+7YGr BUdhdVertFgsDuK9xhV0cyDElceKuxpBd9lfS8SbReQ2IHw+K/WOh5s3SzIgmsZmrlNr 30BgQlmbaqfpg91tOI7qO11oyaCpv590n4ilW59dlSuN8YRQOhlVP40lyXBmrowYRKmF 6u0B7k45qMQuFLVueGQL2M9EOI/jMQlX/KNh5z5pm3BMd/XI3RG6+p/RygDlX3lv/NsM OCBA== X-Gm-Message-State: AHQUAuZ2Or2/VZva1Z7SHn+/TSLoIVA4JQ469CttC7v7WuMnuzixrNO4 Yo9n9BmXG35ajW0d5m8OuXYeQA== X-Google-Smtp-Source: AHgI3IYJXPBVK8/oKi2e4yu3mf/HzJGVjbMeFmbWAqJgFTTns7suMUS1K566ACkqu9WFhUM6jAHMYA== X-Received: by 2002:aa7:9259:: with SMTP id 25mr5219988pfp.221.1551443328369; Fri, 01 Mar 2019 04:28:48 -0800 (PST) Received: from kshutemo-mobl1.localdomain ([134.134.139.83]) by smtp.gmail.com with ESMTPSA id d5sm30561812pfo.83.2019.03.01.04.28.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 04:28:47 -0800 (PST) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id 2630F3007CA; Fri, 1 Mar 2019 15:28:44 +0300 (+03) Date: Fri, 1 Mar 2019 15:28:44 +0300 From: "Kirill A. Shutemov" To: Mike Rapoport Subject: Re: [PATCH v2 03/13] mm: Add generic p?d_large() macros Message-ID: <20190301122843.a2pwiqejhcbammao@kshutemo-mobl1> References: <20190221113502.54153-1-steven.price@arm.com> <20190221113502.54153-4-steven.price@arm.com> <20190221142812.oa53lfnnfmsuh6ys@kshutemo-mobl1> <20190221145706.zqwfdoyiirn3lc7y@kshutemo-mobl1> <20190301114953.GD5156@rapoport-lnx> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190301114953.GD5156@rapoport-lnx> User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190301_042849_477785_5623D6FB X-CRM114-Status: GOOD ( 21.74 ) 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 , Dave Hansen , Arnd Bergmann , Ard Biesheuvel , Peter Zijlstra , Catalin Marinas , x86@kernel.org, Will Deacon , linux-kernel@vger.kernel.org, Steven Price , linux-mm@kvack.org, =?utf-8?B?SsOpcsO0bWU=?= Glisse , Ingo Molnar , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , James Morse , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, "Liang, Kan" 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 Fri, Mar 01, 2019 at 01:49:53PM +0200, Mike Rapoport wrote: > Hi Kirill, > > On Thu, Feb 21, 2019 at 05:57:06PM +0300, Kirill A. Shutemov wrote: > > On Thu, Feb 21, 2019 at 02:46:18PM +0000, Steven Price wrote: > > > On 21/02/2019 14:28, Kirill A. Shutemov wrote: > > > > On Thu, Feb 21, 2019 at 11:34:52AM +0000, Steven Price wrote: > > > >> From: James Morse > > > >> > > > >> Exposing the pud/pgd levels of the page tables to walk_page_range() means > > > >> we may come across the exotic large mappings that come with large areas > > > >> of contiguous memory (such as the kernel's linear map). > > > >> > > > >> For architectures that don't provide p?d_large() macros, provided a > > > >> does nothing default. > > > > > > > > Nak, sorry. > > > > > > > > Power will get broken by the patch. It has pmd_large() inline function, > > > > that will be overwritten by the define from this patch. > > > > > > > > I believe it requires more ground work on arch side in general. > > > > All architectures that has huge page support has to provide these helpers > > > > (and matching defines) before you can use it in a generic code. > > > > > > Sorry about that, I had compile tested on power, but obviously not the > > > right config to actually see the breakage. > > > > I don't think you'll catch it at compile-time. It would silently override > > the helper with always-false. > > Can you explain why the compiler would override the helper define in, e.g. > arch/powerpc/include/asm/pgtable.h with the generic (0)? This one will not be overrided, but the other one will. See arch/powerpc/include/asm/book3s/64/pgtable.h -- Kirill A. Shutemov _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel