Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2787040lqo; Mon, 20 May 2024 17:48:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvO7d/IaXlQpOcRYob8erzEZIn7ypLWVy15f3G8BAdEuU11SuC+PqrIVDEEpP5gJLcT4VHIH+fcq4jRYffUpbIJLqDRp+Xk84N6IMxag== X-Google-Smtp-Source: AGHT+IGJFdg8bHqJ/+orCpzE3vvQEMVZbJw4n/w7XrgRAyemjtI4w8tLh8Kb/LJBkbnofGzmBcW/ X-Received: by 2002:ae9:e40d:0:b0:790:a929:bad4 with SMTP id af79cd13be357-792c757757fmr3419914985a.11.1716252514855; Mon, 20 May 2024 17:48:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716252514; cv=pass; d=google.com; s=arc-20160816; b=xbkLpyfiKHWld/9aVT+d/ZgSCgyQn0NTzQ8WDTEjOJnK6LadwiwNAI0O2ERNVIplxT alRV+ulE2xUXWe7BLYmKrEGwTRuyNSHrlbndhtbNFGqg20tDIxgPMqSRo9iVegEgS1N1 XDnMivf2OA7ksKbYEYTkLww3mLY0kywKVgGVOQ9yRdXvQmRXREhO4/PNsPK6mS/uHw/r hyVl8izsXzM2x0OSASl6eQtIRgV0f7PzS9gqxDtGlt5IuAuKHRcMtg3oABECWzJwEwjw GKnOvCTrLcbqhuahNHt/SRouv0opK1x8swUdGptV23FLX+R8PBEMgijcQj4aTa3aWEk7 AYnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=YLA3mOlhQu9l5RqU75xfAtJgMMySlJsqBiBjGwoY8Fw=; fh=TE0uKfMK40Ngo4fPGKYBmrE3+s4simwSFQJd1ga6xfc=; b=yQpYOs+WD+0drJ0XvV6Y8jqgVhxjTKu5RFChUnRPFX1Z9I5oe7Cw5u5eHpMKV2hpfd 6n7mIYzLLWWwhGr4xmYv0oa0NOaua81Y2qGiS7xPsf+xKzrx8YZCyqOPcV6NRMLlGZ0f RePz3iLcbBzn2gHsxGpaoS+W0aNM/a7JhApLQhNPeIKwBlsHlrQAB+kR48dDbFYI+mUx T/xjl/d9yknfmUDKUYrd6oIxnT4bZsKDYsDQo6tbAPLk6RsV1mooHnw5mk3B5rRcJa7e U+1y+EuNm5fSAj8FFnPmkMlXEMLlMMU33eydBB0uR5FASbigQTGzfQd6N1Y18G5IX82u PmkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=X5NRwOCp; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-184325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184325-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79481044eb3si428883885a.496.2024.05.20.17.48.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 17:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=X5NRwOCp; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-184325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184325-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 971731C211DB for ; Tue, 21 May 2024 00:48:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D007F5C89; Tue, 21 May 2024 00:48:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="X5NRwOCp" Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76B7B81E for ; Tue, 21 May 2024 00:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716252507; cv=none; b=A2VxNwFSGjZkIXxABuOnnre22AVTVAv6FBv8Ha1Ne4L/wWvhbNCfIET/8nCD9RTW9T9fdIMZj0JL4Xu5hG0YkU8rJwBH9Uz8OsBZMsDRO69THRfMZN37P/oXifi/8BiIp/ifdqn2XFzZ8g3BUbeb/NtIBRVA15IVDzt/veVoT9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716252507; c=relaxed/simple; bh=YLA3mOlhQu9l5RqU75xfAtJgMMySlJsqBiBjGwoY8Fw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=fD+WkZpb3M5iwnRn310XpvfI3jGCid53Fa+7RSR04/U0qJ91ZXzMZ+deV84vzKZNGcmV3WTAzlKOli2ompW9FfARD7/5t858WRvFRPB1XqNRptljyzgB2WN/zEXC8zs/msaWx9uF5ZJeTDcAxUMEiJ29HOgtXx0Oc9Q/iaimqk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=X5NRwOCp; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1716252502; bh=YLA3mOlhQu9l5RqU75xfAtJgMMySlJsqBiBjGwoY8Fw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=X5NRwOCpFcBotgjRna13dxvT/o7xnf+Qgsg7NLp8c5A5cJz4rwMGdkHkS5s2nEst7 zZS3eFvoplEpepU32h45RjftKksRrdyYsQPgjDhaXdvsS71vnBI/seSpC0RP8Iw32f udgFlZzlIi4FsxYS7hlqq9vKbhVbrLCzvAMIM8s9aYXk162otscAuQcVwFj1uT98WF QUpdduIflhhd+BYm+bfn61BmCMxbgWxFaozRgF5a3NlcAfFJ1GQmPDwmfXMboL94Qg ukh2cf8tz/B4A+ccwPbAIuoNWFg2J2g+ZUwW9SBlGkSh++THJRNvQ2mVP8AZxgLO4J H8Xzu0Nu12FkQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Vjwln66Mgz4wjF; Tue, 21 May 2024 10:48:21 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Oscar Salvador Cc: Andrew Morton , Jason Gunthorpe , Peter Xu , Nicholas Piggin , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [RFC PATCH v2 06/20] powerpc/8xx: Fix size given to set_huge_pte_at() In-Reply-To: References: <04f4e737608ea0b177b88057db138fbf0d6ab138.1715971869.git.christophe.leroy@csgroup.eu> Date: Tue, 21 May 2024 10:48:21 +1000 Message-ID: <87zfsk2dnu.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christophe Leroy writes: > Hi Oscar, hi Michael, > > Le 20/05/2024 =C3=A0 11:14, Oscar Salvador a =C3=A9crit=C2=A0: >> On Fri, May 17, 2024 at 09:00:00PM +0200, Christophe Leroy wrote: >>> set_huge_pte_at() expects the real page size, not the psize which is >>=20 >> "expects the size of the huge page" sounds bettter? > > Parameter 'pzize' already provides the size of the hugepage, but not in=20 > the way set_huge_pte_at() expects it. > > psize has one of the values defined by MMU_PAGE_XXX macros defined in=20 > arch/powerpc/include/asm/mmu.h while set_huge_pte_at() expects the size=20 > as a value. > >>=20 >>> the index of the page definition in table mmu_psize_defs[] >>> >>> Fixes: 935d4f0c6dc8 ("mm: hugetlb: add huge page size param to set_huge= _pte_at()") >>> Signed-off-by: Christophe Leroy >>=20 >> Reviewed-by: Oscar Salvador >>=20 >> AFAICS, this fixup is not related to the series, right? (yes, you will >> the parameter later) >> I would have it at the very beginning of the series. > > You are right, I should have submitted it separately. > > Michael can you take it as a fix for 6.10 ? Yeah I can. Does it actually cause a bug at runtime (I assume so)? cheers