Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp69960lqp; Sat, 8 Jun 2024 06:39:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNI6bjVfOEln20BYTQI5nrLGwmkUYSTDr6McbI8dwQLMU97YeeGLZBPytyAR6whZmQK1DpTM02zn7JhZrP40LggQnFF/Wd4W3qGsfMsg== X-Google-Smtp-Source: AGHT+IFOOKXNHFhzHG7cQZ+hrcDBkab8xkgKQO8IUN1cxYwFBcBi2xbjcU9w2m8cHqmWQseUJdZA X-Received: by 2002:a05:6602:14c2:b0:7eb:7351:8beb with SMTP id ca18e2360f4ac-7eb735193a5mr136168839f.0.1717853975522; Sat, 08 Jun 2024 06:39:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717853975; cv=pass; d=google.com; s=arc-20160816; b=mCMR0tVcHM+5u9bHnpdwoXeWgT41IthGbKszHtwfm2glwMNitXKEz4CDKUsbfaq27v BUIWu0HwFUn+FMEjniVxlZQmb52aFcuiEZUon+8hdAM5uL8Yjqx7AE3aGHAO2gVpjfFK 3x8mcshoZA659ppUXa4F3d+UY8RVFkLPpx/v3rsCMyWDkv4p+bA7eDnhmR59WZdRJ/EZ Xqw4heFs5KOZxpitiL2jRXpgKrLYQ94aXxQMcJqo715VYQSSHCvN5mSq2cH3KApCTfvn gflP60OmLZQmJ8VAdhEUZ3RK9juOSpO7HnbmdQE9iRdg2u+SO+Rr2FdnuRF/FGb64L6z v0BA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PQ29wWCcL69CHNpGbAphn9Hd4o/BHBI19wH67CwMGO0=; fh=SC5fcv8UKL1xDTWqfawN+/M5iB3TDx4lkHugItJVqQg=; b=TMLKBeZbCne86yM7BTAve5sawsf7sZXAYUY2nn6oQcLp3SKndNDHuRjUeBqOY2FD0t peVHc6Qk8e2L2sA0YXvZN18AwyKEtC1t4dogqclaWv863I1ahZqXq7IyAiPlYIOAHDwH VU8Zey1w6b6bs9yXcCj3Ma9ozHLyrn3HYCkC0lHlUmKp9wKGNSlRhMIM75F61q3qRUUu gQNFhIpTvCNrQTtAQTMuIwq5qcyjHoTPgVVZoaHU2OZ3WbhpegYy3vNUaY9cBYlEzR+6 wCN/VXqwNSRXYCCGbgndX196e6ldxNsSLYvI5u6mMsIxBU4AZFMsjX5Ecg8ph7ZLWyQf 1rNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=UcWsidjU; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-207046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de294f8c6fsi1597885a12.704.2024.06.08.06.39.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 06:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=UcWsidjU; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-207046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BC840B21B5A for ; Sat, 8 Jun 2024 13:39:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ED2C17966D; Sat, 8 Jun 2024 13:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="UcWsidjU" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 3575415A86A for ; Sat, 8 Jun 2024 13:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717853964; cv=none; b=cAUfxWwg1NlDBffJ+Ttr7/W2zno0N5AAQHki2INvcaPipxE+WCyCMUIKxzFG4xmjDcg2chTOc+T0rhDKVO99rtophhNLBNzznlcAh4qp/RZqFgrmmQKNjYfLuPX63tyGCmZmXxEylkO0C1uAVJcS/bj3QFtYBKFxvG3da6PHkFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717853964; c=relaxed/simple; bh=uaPK4xrTNaoaOY/sggbFJGDdFEFu0GvkAoaczriQjN8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bNkFn23IgyLEZWwAISge4SjdrhRuhyYcGIQo34Ne0PM+v3ZztVKC240oLatzSgVLW+XM5lkFrGLRTAotxctG+pD8HaMiqNNT27KkoXXzyvXAKPR/+r7wyg/wuvPGBbKDLIwVySYDBYkHMIVsnASCyBlzXXNu/yp9/bhizlf6PR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=UcWsidjU; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id C845540E0176; Sat, 8 Jun 2024 13:39:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CWErTM9s9C7R; Sat, 8 Jun 2024 13:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1717853955; bh=PQ29wWCcL69CHNpGbAphn9Hd4o/BHBI19wH67CwMGO0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UcWsidjUwXX4R0wVlaFb0Pe3OrC2PNgzvOqIN7tBpmMNM6NYU2wK38mihW/aiKNia l1YgOF0gXxbplYT3/EHdRhiHNoB4CsDC0svzHOsoGW+aKnr1GRpDLfYr1vRKALbsy2 /cbkcVeWgNv0oJ2eukG8WIH+yBfv6ITR54eWsq4mdalK4PDagweK8e36eDiijWcexK Gxp4S3HplJQXIGUbLGxdfUttQFRiFmS9WS3yJm5y8ETX0LitF+5wG+TakZ0qp+hbuj UXZWjLalEWPm3GUAa8HT6rQVcmNMr1peTVoNkGpQheTOfgwKkHl/17MmrMVIvjkcgc cjFLNM1Q9ApD9RTQlTQxSh4rzWHf96Pc1MDVI3LM1UwOE2ETTwSOOBVcHRXEORybH2 h4zpbJrZ2r6NSPpDsBxk4laAZHs2WcTStGXtHW/8qhXK30mjWDeCcP0Ym+7Rag49ml Pwu8KpswqJYXnI8ck5P74xfIFY/oFFyZ1+BytzgFOYk8T0eanKwqW7QchKdKya9AFP diD8PvPLbl9VLNUeE/0aXxhpQN4Ys7YLCkOa7KHDcHhb/U0t6TTEnKHG+mg7iOdQ4s zyFkuuilq3O4ym7JuSwZM9N2fI9CIhSFPzJHcOlN8DALOFF7NXKWXll/lizCbQzA+v W38QVOzU2xH0c6E3+8383Da4= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8A63840E016A; Sat, 8 Jun 2024 13:39:03 +0000 (UTC) Date: Sat, 8 Jun 2024 15:38:53 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: "x86@kernel.org" , "Yu, Fenghua" , "Chatre, Reinette" , "Wieczor-Retman, Maciej" , Peter Newman , James Morse , Babu Moger , Drew Fustini , Dave Martin , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: Re: [PATCH v3 1/2] cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel) Message-ID: <20240608133853.GAZmRe7d3Q3IpXhD-l@fat_crate.local> References: <20240606164047.318378-1-tony.luck@intel.com> <20240606164047.318378-2-tony.luck@intel.com> <20240608121207.GEZmRKl3uwP9Bfrx8D@fat_crate.local> 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-Disposition: inline In-Reply-To: On Sat, Jun 08, 2024 at 01:27:30PM +0000, Luck, Tony wrote: > Does this look like an OK direction? Yap, actually pretty nice and straight-forward at a quick glance. > Any better name for the new header? Considering how we call that machinery "cpuhp" everywhere, I think it actually fits perfectly. > While I'm moving those declarations, should I zap the "extern " from the > function ones to match current fashion for this (checkpatch barfs all over > them)? Yeah, you can ignore checkpatch or simply do another patch ontop which does just that. Code movement should be only mechanical movement, with no other changes for ease of review. In any case, thanks for doing that, that looks real good to me. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette