Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1715976lql; Wed, 13 Mar 2024 06:28:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaV7Fmi5Cdzpuyt2/1sdGPkubGUYmFfNG8gQ1d6iEasrdgDNthTxqdlvqADrG+JggQaYIN+COyXtbhNN8Q0CEfECSqd6ROf6LxGdYRAw== X-Google-Smtp-Source: AGHT+IEE+a4qMPu9rKUhHpIfwU0nAkhOcECHr5L7fUhaYcUdd2sROvhMrdMx0nLc77j8ivGDeZ9f X-Received: by 2002:a50:d5d0:0:b0:567:4694:159 with SMTP id g16-20020a50d5d0000000b0056746940159mr2428627edj.26.1710336487232; Wed, 13 Mar 2024 06:28:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710336487; cv=pass; d=google.com; s=arc-20160816; b=u35ULdvqYh/eWhIrTNNX9cv2xoFibaaoTx5h5ifxNPJmwWv6NNYHLgZ/JA/CienL/2 zIYs7ANFel3DNQ7ceE8VvYvUxz9y3awpNTXAEiC9XEkATE6TJKI9rtQo/kSRva1i0+ct R3AXJ7LVlIZPGCwlo75bCIJgWg4FgQWJVBwKTNtRruNL1p0yMRzhdSCDnP2P5XbKbrVm kY+nw86+HSw2jxsqAWDgzWMQT70mCp2qDiihyvTl3NCbADF3tYnZVqbiq5V0DKR3VByh 9rpdcb8Tc0p6i95PQls74zsPT+eAeKDJo5/OJ7rzyqXSoY4qaa5pt7jqNbSzHvAxpdoq pnAA== 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:date:message-id:subject :references:in-reply-to:cc:to:from; bh=DmbIx70VpgTsyHW5MxVPL2VMkBXpksrfozxkBws6oWw=; fh=IR91BQ3BTLGB+0AI4Bc2xTyey5jdWHvJZTUP1W3El1o=; b=hWsAJgb3kRBDr2hPgxY3mOKe9xAarjFnqfP9N7O1+HXb7HYFPn7Hs+Ml+CHlmvm1Yx fQEZwjeA8ViVgt2VVvvQRXtGSES/P0VasOf42jXyE89AR8e223rGOviPat3+Y8v33fzx YO/65skvLIaGXmwr4ioKGIlq5uFTJCmy0urf5fjLNhTMEptG0se1bh0xCvY1igQcM8FY 46U6G/cNJ3TZmPhRBxt0VYqyHqgNT+OR0uyFgkVWfh1d6ugK3qfienVvQdU6H2NYwA8j dwlAZtP+giKelB4PlxEuqxg/+zRH8g+5Bwu4RDsUdynruWg76nGtHTnj38E5ghtc9TLc /nTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101528-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j17-20020a05640211d100b005657cb1e3c3si4514802edw.207.2024.03.13.06.28.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101528-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E6B9A1F23CDB for ; Wed, 13 Mar 2024 13:28:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4D6F45C07; Wed, 13 Mar 2024 13:27:54 +0000 (UTC) Received: from gandalf.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 3F6D0446B4 for ; Wed, 13 Mar 2024 13:27:52 +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=1710336474; cv=none; b=B083INA5z7GTBlFl92mfxDZmwZ9oqB4bhJgO5uA0jLrI5DAzALo5vUIdUlN7gobgoUfsPs2hfVwtrP0Ja6fEFvsEqxW51GTv7Xi9t4GNekDn8ibuiuT8FmiU5ZTsw32NTuR0V32yyZ3qIAKCwfpNupfBPWsov3CPlOp18PoPdKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336474; c=relaxed/simple; bh=IVoZ5Nk3c6TGvvv7OnFOEg0/tyh6L7IZfnEYAfEFQSs=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=BAE65IpU7AmrM18Y8zXoQM6QXCQuOqBZHsRRQVoFqOo5snjJy5uUJwWRvoQ9Y7JnsAgGhfvaMHVRgqNhQnL/yzTwEpXk+KyWM1Nbrv7yvbaait7M90l51wBiGs7LrJcwO4xLQW1Cqm3s/mZCM4s7HHBtvX/n663zyRuA9iJeKgk= 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; 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 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 4Tvrsy234rz4x1P; Thu, 14 Mar 2024 00:27:50 +1100 (AEDT) From: Michael Ellerman To: Nicholas Piggin , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <3656d47c53bff577739dac536dbae31fff52f6d8.1708078640.git.christophe.leroy@csgroup.eu> References: <3656d47c53bff577739dac536dbae31fff52f6d8.1708078640.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH 1/2] powerpc: Refactor __kernel_map_pages() Message-Id: <171033598337.517247.16293947196038207498.b4-ty@ellerman.id.au> Date: Thu, 14 Mar 2024 00:19:43 +1100 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: 7bit On Fri, 16 Feb 2024 11:17:33 +0100, Christophe Leroy wrote: > __kernel_map_pages() is almost identical for PPC32 and RADIX. > > Refactor it. > > On PPC32 it is not needed for KFENCE, but to keep it simple > just make it similar to PPC64. > > [...] Applied to powerpc/next. [1/2] powerpc: Refactor __kernel_map_pages() https://git.kernel.org/powerpc/c/3c8016e681c5e0f5f3ad15edb4569727cd32eaff [2/2] powerpc: Don't ignore errors from set_memory_{n}p() in __kernel_map_pages() https://git.kernel.org/powerpc/c/9cbacb834b4afcb55eb8ac5115fa82fc7ede5c83 cheers