Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2139338ybf; Mon, 2 Mar 2020 02:49:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzVjCsVaWH/7ddneV3LI3OCDU3AGCd4s1GvcvQzQcDgifXPm7RzLv3D+V28doDiZm5xIl4a X-Received: by 2002:a9d:7d8b:: with SMTP id j11mr13360175otn.259.1583146140265; Mon, 02 Mar 2020 02:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583146140; cv=none; d=google.com; s=arc-20160816; b=YtH6c2cmzqz2Gub/xlRob1O9TNd0abZ7cLouPj9aVy6OjIgVEYA6koxTq11rxk70fl GSz5s81cVcnps2IoddFdXF9zSUrnDywT58fDIrMXRqNhvDTsr8AYq1IMZMNdgmShlA5Z 85mMwGEl1eYafdr5UGknwvVXPcNXjT4O/pg83fYeHDrCMVnJv/J6n/yu1ZRFs0v9FxMO CG68NJO88tQo+LR5+WI6olqL2WXjHKG0laq+8imEAb5AuQOY9doK3aEsbunWcKAbo7/J 9KFf2eBc+06J38kR7isbRv69MyqWYHuaoTOeEnckuMcUDspEY+fMFqcfWcVfvXmQRAzG a8zA== 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=cnzTaYEorfAs2dr7MROhB5VHbzaNwH4+/Qj5iqcj3N0=; b=p4apdTDMJFd2zPg3vwr/4FUMv8lLpJfHNc4gLYeLIHScC9vb2nc1uXYBdrLB2Be2zY 0+rXf/UBDn4Q5XYlGmbA1SmrGIdBpCiltfO2M3yKCy9pz0xAIn5kCBqXU+dN8IvJqNlU geoBxbqKquQagbEzQKAfWWfn/kLwtcleLBAPyZKoDrZ/hpYpoS3LrJ8MVWEhoJO99n77 1pIpB4xZguMeUfZPp5nXLrllA1GBf/5VQve8Sgergn0f5GayTgczQ/MwO3wo7CoR2tKo yyxeGsRWQ5rT0x7FQDm6Sqb1g9hkHXoIQyxKAYbEkk9R0rJT2O7MHHfWHn/3Pr0dWRjY 2lyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="NOQO/NZt"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e126si2095267oib.53.2020.03.02.02.48.45; Mon, 02 Mar 2020 02:49:00 -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=@kernel.org header.s=default header.b="NOQO/NZt"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbgCBKrd (ORCPT + 99 others); Mon, 2 Mar 2020 05:47:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:37670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgCBKrd (ORCPT ); Mon, 2 Mar 2020 05:47:33 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8497921D56; Mon, 2 Mar 2020 10:47:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583146052; bh=dIm/8ZZbZ/vIbNAl5/mRzUMYkjtj7nHnXCU8Ya7cEEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NOQO/NZtL0iQxyV8FJpHMBe0DIw5gIywHkUiNL/Mn4PBX9uRr0W402PY+xkr1Qkz7 CA1Uurs+XJw02igcsNJ54u+hPE2rXZmpKut4qZ70A27HW8lnlUll7fz24dzO3LOTat K+ar5QSV44POmbLSAi4E4Tm7sd9XpmI83PztLP3Y= Date: Mon, 2 Mar 2020 10:47:27 +0000 From: Will Deacon To: Naresh Kamboju , anshuman.khandual@arm.com, catalin.marinas@arm.com Cc: Linux-Next Mailing List , rppt@linux.ibm.com, Linux Kernel Mailing List , Stephen Rothwell , Arnd Bergmann , lkft-triage@lists.linaro.org, Andrew Morton , suzuki.poulose@arm.com, Anders Roxell Subject: Re: Linux-next-20200302: arm64 build failed Message-ID: <20200302104726.GA7995@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+Anshuman and Catalin] On Mon, Mar 02, 2020 at 01:58:26PM +0530, Naresh Kamboju wrote: > Linux-Next 20200302 arm64 build failed due to below errors, > Suspecting patch causing this build break. > > 87d900aef3e2 arm/arm64: add support for folded p4d page tables > > Error log, > ------------- > arch/arm64/mm/mmu.c: In function 'unmap_hotplug_pud_range': > include/linux/compiler.h:284:1: error: incompatible type for argument > 1 of 'p4d_page_paddr' > ({ \ > ^ > arch/arm64/include/asm/memory.h:270:45: note: in definition of macro > '__phys_to_virt' > #define __phys_to_virt(x) ((unsigned long)((x) - physvirt_offset)) > ^ > arch/arm64/include/asm/pgtable.h:629:42: note: in expansion of macro '__va' > #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr)))) > ^~~~ > include/linux/compiler.h:293:22: note: in expansion of macro '__READ_ONCE' > #define READ_ONCE(x) __READ_ONCE(x, 1) > ^~~~~~~~~~~ > arch/arm64/include/asm/pgtable.h:628:52: note: in expansion of macro 'READ_ONCE' > #define pud_offset_phys(dir, addr) (p4d_page_paddr(READ_ONCE(*(dir))) > + pud_index(addr) * sizeof(pud_t)) > ^~~~~~~~~ > arch/arm64/include/asm/pgtable.h:629:47: note: in expansion of macro > 'pud_offset_phys' > #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr)))) > ^~~~~~~~~~~~~~~ > arch/arm64/mm/mmu.c:827:10: note: in expansion of macro 'pud_offset' > pudp = pud_offset(pgdp, addr); > ^~~~~~~~~~ Looks like we need an implementation of unmap_hotplug_p4d_range() to walk the dummy p4d level. Unfortunately, we don't have the folded p4d patches in the arm64 tree so we'll either need a common branch or the hotplug patches will need to be dropped for the moment. Will