Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp397086ybt; Wed, 17 Jun 2020 04:01:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3MWs/4vN9f6SivygTgq8NBn/88gHDTTiSpNOw9P8lKSpKUNCcpS/+nRftYsO0gyILfhzG X-Received: by 2002:a05:6402:3052:: with SMTP id bu18mr6515332edb.323.1592391680782; Wed, 17 Jun 2020 04:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592391680; cv=none; d=google.com; s=arc-20160816; b=Ywi/kp2Alcy9BzpgBZp8POvLZOMRps9/4LM1MWa9/CFGe19CxsCIOsOW0oGaxsV+fn GjWiEKMC29z2j0l1wtddrIigHvS/Fxjg7x2eW/lXdO4wEOC6pGLKum3NtLU6Ve6lE2ji eiUSZGVUuznsRb+iiW6rDXKqSu7J6piduZVZLLjZV+P6E8/FHCxgh+KozCegKxoUzAVk uLS0VvaG1DqMLNtLP0DqPaiHkbCtSpOjqEDvesJ8nCuXxRYZnd/CKsd+Hwv9LfrD3mKc 4yBefgScoas605DnAh6MPOMW7n3exhZyuu0ehsdNPm44DFj0bvWD66nJ+ImAylcCthrO RBRw== 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=r5Z1/xEwWuaUBEX2yq9Cl4w7pvgbxMRlyXiApLMYbrs=; b=tF0thHpa7iBOrE5XFrRkSYzmgsUdQGeXn+XOzWQCXGH8+wXpbP2DJAyN7xn4v2+g5v hUyAQFivjmVLAf6CRPtUwnqGIJUoYKea6+6YCELFC9Bw9FapfHGglluEE19NEI2DstyI qSIdI49yi6wWy+Qe6Gkl3kgtP5QfctIiwN9vC5RnvJjxnJpQ+N2NQhASpc2jZjy0KwfF 0St3UKYyBUM8Wcnd0Szw72TCJMljkK7VQK8oARkO/oPJJeAzx2W6fob2G7GxRm8oLIFR rDNAyL6HxIhBCxKOIdyeIHHqQU1Q4jXzV9jUGsWTOPCpVV3lBAaG9SPDWhO5LueRC8aV o+Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HB7HHd1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id se5si12747717ejb.205.2020.06.17.04.00.58; Wed, 17 Jun 2020 04:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HB7HHd1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726763AbgFQK5O (ORCPT + 99 others); Wed, 17 Jun 2020 06:57:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:55712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgFQK5O (ORCPT ); Wed, 17 Jun 2020 06:57:14 -0400 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 0AC77208B3; Wed, 17 Jun 2020 10:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592391433; bh=oVYweIR6zLMediXDsU1jDQ9pyvK//XIYoenxlo7SOcE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HB7HHd1u1+1jDZ68+nOq2V/Yg9kDRfF1mmDDPGQSytreC543TQYscnE8rTyG7ryWc EJ497VjPlRBG1okeyG9fRVW0vkxlOE6AxZX+c7XaDhFmhezLeATXXnIZkYJs/f+/+9 zWW/n+CA4dyENNhzkB6Q499C43G10YVNCGjGKsEM= Date: Wed, 17 Jun 2020 11:57:08 +0100 From: Will Deacon To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Andrew Morton , "Peter Zijlstra (Intel)" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, arnd@arndb.de Subject: Re: [PATCH 0/3] Fix build failure with v5.8-rc1 Message-ID: <20200617105708.GA3503@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 [+Arnd in case he's interested in this series] On Mon, Jun 15, 2020 at 12:57:55PM +0000, Christophe Leroy wrote: > Commit 2ab3a0a02905 ("READ_ONCE: Enforce atomicity for > {READ,WRITE}_ONCE() memory accesses") leads to following build > failure on powerpc 8xx. > > To fix it, this small series introduces a new helper named ptep_get() > to replace the direct access with READ_ONCE(). This new helper > can be overriden by architectures. Thanks for doing this, and sorry for the breakage. For the series: Acked-by: Will Deacon Hopefully we can introduce accessors for the other page-table levels too, but that can obviously happen incrementally. Will > Christophe Leroy (3): > mm/gup: Use huge_ptep_get() in gup_hugepte() > mm: Allow arches to provide ptep_get() > powerpc/8xx: Provide ptep_get() with 16k pages > > arch/powerpc/include/asm/nohash/32/pgtable.h | 10 ++++++++++ > include/asm-generic/hugetlb.h | 2 +- > include/linux/pgtable.h | 7 +++++++ > mm/gup.c | 4 ++-- > 4 files changed, 20 insertions(+), 3 deletions(-) > > -- > 2.25.0 >