Received: by 10.213.65.68 with SMTP id h4csp1051737imn; Tue, 27 Mar 2018 13:50:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XOF8Wy0HdRpX04C7h/iSC/5f7OGDeRHxBQMq1RV7vZIlG9GLCabe7XwL+qkuZ6UGazR3S X-Received: by 10.99.158.81 with SMTP id r17mr565017pgo.348.1522183828498; Tue, 27 Mar 2018 13:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522183828; cv=none; d=google.com; s=arc-20160816; b=JTkO535lydTl7T8x16H5y9WPcGFqifhv6stqvElJR2IEbbe1NyVqrsjlq2YnKRK14M drf7KWEZZTf+hNwT+giKVtGR9bqkPBqUFlmcazrfTk4JueBfTwjeEoQUfUMbfV8dhsoh oHY7Bzwd3kfA5tNcu1L9jn8Y6qVMmWBigWOR9NdrpqcbXFoaSMv4mkLHv2fZIetOxEkf FHZ8n2MkESlbMKsl6nSeeJp6rxGnhBQqk/pUzaclp2PHeAQZXftUbx6OFp59o7LGt0Hx ej9lGakpiUZ9Oim8hY52T2HZ1ghpPiNxazASpgnYk6Le10g8Fs3TQQdAa5bnIIAqAzTp Ovhw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=HlkEQOnH4wQguQ8COpUJ/bKT5nuj0c0x5aQ1WgId6CQ=; b=MoVfYdFCokbkCrxE/zmPUYMs9OCPLoMQ9qMVDXvm3chqaYF1Cs9qutPGQAALzcTocD /mNBPMMplMbBUNlQodBj2NxU6ssbyrvZ4BIpWCxp4uPCwJxL93KBvK6uC+zzxy/Zi8LN Sm1DdmjmNxek/Nea17Z/LXewT3ucgyEOr2qV2ker0I5E7yRs0bjE+D7HNxFG3Es7y8bU 5ymBXtFgzO6s9FbvH1AxLl67WAEkDVyP7TRqKzR3QrE/WMJcOmVoy85yPJBxInakGbnK TjNf6Cx3pUwqReCBd4YKfNHUD4eaUIFS3IqeD2dJLci5iv9Afd6r1uiGDgFfMU+/9NOL sRrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gCKfPWFi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si2102991plt.89.2018.03.27.13.50.08; Tue, 27 Mar 2018 13:50:28 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=gCKfPWFi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751964AbeC0UsD (ORCPT + 99 others); Tue, 27 Mar 2018 16:48:03 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:40107 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeC0UsB (ORCPT ); Tue, 27 Mar 2018 16:48:01 -0400 Received: by mail-ot0-f196.google.com with SMTP id w12-v6so280864otj.7; Tue, 27 Mar 2018 13:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HlkEQOnH4wQguQ8COpUJ/bKT5nuj0c0x5aQ1WgId6CQ=; b=gCKfPWFi27hypY439Y+Xf9TSyHskWKsF8uQo7ZFa7lTbKONKodWubeSF/lRG/ut3nV btwPKeZuCCKbwUsSktDaClD73wwlc+Hb8pJ0VV7u7naYtppkSwylCtfwGpbqBjdgJCx6 cId4nM79WZMztVRi43ggpwRbb4iYeIOpBxap+x2vFEo0NTs+VomCKWVXHZpXvP/rLXCS VTVay/TSWOcqIPwzlhoR6IkC/hKhyeOQnGabdntLykgpCm8JMO4dgcRoKBX4rBxIxa1r FcD1ppFDSIS3bD6Fp/XTY+iWyB04MtCiWcLnVzJj97CANBBdfHvHM8JdymlQFupL1Nxg QNcQ== 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:content-transfer-encoding :in-reply-to:user-agent; bh=HlkEQOnH4wQguQ8COpUJ/bKT5nuj0c0x5aQ1WgId6CQ=; b=tuRKi0O/NCJlps0TNt/OWEEnuUrxM8CzL3e3mgTNI6jTsqzil6NiZGEWaQIicfasZu ucrQlZnYLmKM7e5MqPVyhx0oHMu8CH9ma7mhlK5RVZ6d6zehhenRD0IbBxeOhSCiOz+j kHWqUosFEo1ENCXMuSd3PYwdC2xbs55y2kMYLzRquJ9bLvKiERmtTQryDjap+FPmP+tS Ru52qZGoqbfkqPepX6c3B12BlM1ncmHBpYHqYuYl1vuOBq7GibNjhGAyx5zagMHpUEkd 2BxbXuWirJ4kS32tnJVKNMqB7oX4FvBzvjLpLACpEx73ngwaUJ8tVe6AKf7ZQG+7sadw h5yQ== X-Gm-Message-State: AElRT7GbtXB6PM+OjCroRvWeEQNBEujzB89OlPHM98u3LAsiKVxjsaev rIu7Gvm23o+zpH/eA3daQEU= X-Received: by 2002:a9d:48e5:: with SMTP id a34-v6mr582884otj.55.1522183680596; Tue, 27 Mar 2018 13:48:00 -0700 (PDT) Received: from localhost ([4.14.65.228]) by smtp.gmail.com with ESMTPSA id c19-v6sm1086973oiy.6.2018.03.27.13.47.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 13:48:00 -0700 (PDT) Date: Tue, 27 Mar 2018 13:47:55 -0700 From: Nathan Chancellor To: "Kani, Toshi" Cc: "dan.rue@linaro.org" , "linux-kernel@vger.kernel.org" , "torvalds@linux-foundation.org" , "bp@suse.de" , "tglx@linutronix.de" , "lious.lilei@hisilicon.com" , "guohanjun@huawei.com" , "wxf.wang@hisilicon.com" , "stable@vger.kernel.org" , "akpm@linux-foundation.org" , "hpa@zytor.com" , "will.deacon@arm.com" , "catalin.marinas@arm.com" , "mingo@redhat.com" , "gregkh@linuxfoundation.org" , "Hocko, Michal" , "cpandya@codeaurora.org" , "willy@infradead.org" Subject: Re: [PATCH 4.4 20/43] mm/vmalloc: add interfaces to free unmapped page table Message-ID: <20180327204755.GA19436@localhost> References: <20180327162716.407986916@linuxfoundation.org> <20180327162717.580646019@linuxfoundation.org> <20180327201700.xmgzgqox3sz3z32r@xps> <20180327203130.GA18921@localhost> <1522183239.2693.240.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1522183239.2693.240.camel@hpe.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 08:40:56PM +0000, Kani, Toshi wrote: > On Tue, 2018-03-27 at 13:31 -0700, Nathan Chancellor wrote: > > On Tue, Mar 27, 2018 at 03:17:00PM -0500, Dan Rue wrote: > > > On Tue, Mar 27, 2018 at 06:27:24PM +0200, Greg Kroah-Hartman wrote: > > > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > > : > > > > > > This patch causes the following build error on 4.4 arm64: > > > > > > $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=build-arm64 defconfig > > > $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=build-arm64 > > > > > > CC arch/arm64/mm/mmu.o > > > ../arch/arm64/mm/mmu.c:701:5: error: redefinition of ‘pud_free_pmd_page’ > > > int pud_free_pmd_page(pud_t *pud) > > > ^~~~~~~~~~~~~~~~~ > > > In file included from ../arch/arm64/include/asm/pgtable.h:682:0, > > > from ../include/linux/mm.h:55, > > > from ../include/linux/mman.h:4, > > > from ../arch/arm64/mm/mmu.c:25: > > > ../include/asm-generic/pgtable.h:777:19: note: previous definition of ‘pud_free_pmd_page’ was here > > > static inline int pud_free_pmd_page(pud_t *pud) > > > ^~~~~~~~~~~~~~~~~ > > > ../arch/arm64/mm/mmu.c:706:5: error: redefinition of ‘pmd_free_pte_page’ > > > int pmd_free_pte_page(pmd_t *pmd) > > > ^~~~~~~~~~~~~~~~~ > > > In file included from ../arch/arm64/include/asm/pgtable.h:682:0, > > > from ../include/linux/mm.h:55, > > > from ../include/linux/mman.h:4, > > > from ../arch/arm64/mm/mmu.c:25: > > > ../include/asm-generic/pgtable.h:781:19: note: previous definition of ‘pmd_free_pte_page’ was here > > > static inline int pmd_free_pte_page(pmd_t *pmd) > > > ^~~~~~~~~~~~~~~~~ > > > make[2]: *** [../scripts/Makefile.build:270: arch/arm64/mm/mmu.o] Error 1 > > > make[1]: *** [/home/drue/src/linux/4.4-rc/Makefile:969: arch/arm64/mm] Error 2 > > > make[1]: Leaving directory '/home/drue/src/linux/4.4-rc/build-arm64' > > > make: *** [Makefile:152: sub-make] Error 2 > > > > > > > > > > Both of my arm64 devices built fine with this patch... It seems like > > the only way to hit that error is if HAVE_ARCH_HUGE_VMAP isn't set, > > which seems impossible since it is selected by ARM64... > > > > Someone smarter than I might have more insight but this patch is > > unchanged from upstream so I can only assume that this error would > > manifest there as well. > > It appears that HAVE_ARCH_HUGE_VMAP was introduced in 4.6 on arm64. > Hence the problem in 4.4. > > Thanks, > -Toshi > Ah, thanks for the heads up, since I have 324420bf91f6 ("arm64: add support for ioremap() block mappings") in my tree due to Linaro's backport of it for their Linaro Stable Kernel, which serves as a base for most Android kernels. My apologies for not digging deeper and sorry for the noise! Cheers! Nathan