Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1735418rbb; Mon, 26 Feb 2024 22:07:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqmKwf6XuiEcpN1YY+RTXUQ2OtO6gIg3YYNV6OABnwAUnjr4/QlcpnaklJw7Lrmh23mUc1K2JLuAa6r5LcAjqxbObOPGa2d9T46mJfbw== X-Google-Smtp-Source: AGHT+IEepwznLn332uXGXsPekPgqQwUQF8LeO9AAU1wmYAoMLs2tf7Otv6sKE9popiUfZOral2CB X-Received: by 2002:a17:903:48c:b0:1db:4746:5fdd with SMTP id jj12-20020a170903048c00b001db47465fddmr7414200plb.43.1709014073468; Mon, 26 Feb 2024 22:07:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709014073; cv=pass; d=google.com; s=arc-20160816; b=NPiOfChm4gMWyllcb/JI3Qr7fLvxUtoPoYUuOCbdCyhHOHVcHmQjuP+T0xCuOGc4Kn BA1OC0brrIbUPiNJ8AsOpCLyRyNyhLNhPG/6jod9ACPmXaJT9W+hnSCvYvLxLFePBB1H k/tMrZr1Ca8ocSKmb7mgIdgCLCmllTK5d804G5pka0XHq5ZspCb4WBnTGr9WLkvMQjeQ kBIhWbzq/Axz//+d22EAAYaghTWyY0+CRsE+dX3C3igfDh7H9C6KSH3Hmxwe2gxdnEM9 0/NnT62GwrrUFLnAaDr01j5CXV8ve0y6IhaR/Y0IMhWkOqC02mL5G96rbzhlOf5ciFGU tsVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=20EfPIHxyQmybVUOaqQJjyWj5FqndYMB2UQnS5e1DH0=; fh=DxHyV5mnReo7bC+tx2vrb7I1gTCB9Z4OplQkK7owDxE=; b=GFwIQeBN0iQRKGZYRomJiN8B+6GKHG4FtIs0YufLfDZs0iEst3hD3l0+N0Siuvc+g4 MrZZ7LQP79FlxASrqCjR4rLoT4pAhJiPbASrpePy/LvMUw/0acEXoCzDz/S8DzCTAh4v I14Q0Qmz7oXcglVXdCBjO9UEtDDzS5deahVRJcp/mn7UbRIWxzZQuB9cZ0aDpzlhbO/1 8WnMFKXVi6ePJsdS/8Mmp8wT5sOlKd4g/3qlHVDFMnmkmWN4dd5u38kjKWiP6kBufpiT tKVSAUGPbibeXwplPalBBwIxfjm1VcKrQtlJzvTyyPGxEG5zBNzFuEn4gO8Xe3lg03Sn 99pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=SMAjj3hw; 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-82734-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82734-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l7-20020a170903244700b001dcabe6022esi842739pls.46.2024.02.26.22.07.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 22:07:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82734-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=SMAjj3hw; 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-82734-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82734-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 311342866FB for ; Tue, 27 Feb 2024 06:07:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C62453379; Tue, 27 Feb 2024 06:07:48 +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="SMAjj3hw" 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 3306B5336E for ; Tue, 27 Feb 2024 06:07:44 +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=1709014067; cv=none; b=PHX2gnjC/bt8B/+oL6+idz3M0cZI3CCkf7vs0Ea0CsW7BtQPwwTa/HeQyj16NhdaSuX4qoPQdx4GvV3Xxyc3inmPJAVP2Zk90WMdDP2lTjyP+29VOPjUeA7G1zA7q674ZuQivREbc99iTHil3RrbNX88FaVAGNvEYFad7yCrfg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709014067; c=relaxed/simple; bh=tcyvtIM2a9zA9kgA+zfRtdG9EGJaJj2Y0qWf+9sNFSY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=WvlJwvD9ldX+Gdm22MfbNQr245DJZof/39ULHwXRD3HV8pAs05O+VjDmGy55QPrfk2WHet5yr+ITOUqilaW8rzA00v+lcUgfyZzzbaVBqhAiNSccWM635XZKR0Sxmn9HXnBrMWZ4u46MOmqCg3s00vlT4NoZAQQvCY7vHXdjBb4= 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=SMAjj3hw; 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=1709014062; bh=20EfPIHxyQmybVUOaqQJjyWj5FqndYMB2UQnS5e1DH0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SMAjj3hwsEHrCVNHNpUo6f81S+hVoit86vYtw+/8Ycxz6e9h6EJcvRgpR4uSy8PEY 6Bi5rZJLKiuiHel+o5eZYodjQuvjMnbhittjjBZ5j6hqe+9HUYtvwSaQlX80jAbUln PGveJMRq1LOdNRhaGc1Us0tRIpAPALInbEfIYt1JxYvMFijKxrQcs2jFaAvq+mJHqv rfJeSASYGWNopbWe9MhHfMXZv8ogA0cxDIaxh06bGwM0gYoL0SXT/wquqXTXGZZw8N /xLwz+73DqWoz7ljz3EkCT8QGphGwwk9aSrKF1kc47Mqy6wywUbFGPGPhQqrxSgMNF EK3jTevCoCwGg== 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 4TkRq16g4Dz4wby; Tue, 27 Feb 2024 17:07:41 +1100 (AEDT) From: Michael Ellerman To: Kunwu Chan , npiggin@gmail.com, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/mm: Code cleanup for __hash_page_thp In-Reply-To: References: <20240125092624.537564-1-chentao@kylinos.cn> <87h6hva4b0.fsf@mail.lhotse> Date: Tue, 27 Feb 2024 17:07:36 +1100 Message-ID: <87jzmq5tjr.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 Kunwu Chan writes: > Thanks for the reply. > > On 2024/2/26 18:49, Michael Ellerman wrote: >> Kunwu Chan writes: >>> This part was commented from commit 6d492ecc6489 >>> ("powerpc/THP: Add code to handle HPTE faults for hugepages") >>> in about 11 years before. >>> >>> If there are no plans to enable this part code in the future, >>> we can remove this dead code. >> >> I agree the code can go. But I'd like it to be replaced with a comment >> explaining what the dead code was trying to say. > Thanks, i'll update a new patch with the following comment: > /* > * No CPU has hugepages but lacks no execute, so we > * don't need to worry about cpu no CPU_FTR_COHERENT_ICACHE feature case > */ Maybe wait until we can get some input from Aneesh. I'm not sure the code/comment are really up to date. cheers