Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp612510pxv; Thu, 15 Jul 2021 11:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAAq5jgtJLvHU97LXKPDwESnhAVdI964va2HhGG506nmsyj1N2Z+r8RabFYUSPqixhuVBg X-Received: by 2002:a05:6638:3a1:: with SMTP id z1mr5117662jap.77.1626373860172; Thu, 15 Jul 2021 11:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626373860; cv=none; d=google.com; s=arc-20160816; b=fM0pxGh6wGJvxNtoUo0NGCpFOMGP3AYkTTPKfLgEKV8I8lHovQ0zm8PtqKP2u0dSKA WzQvKNnOiaOgTpGMp8BVd6rmvPF2mBEdCv0wV6Bb9ILaYnELf907Iwm/PS1pCauCJpa3 LLEKRtyFJPhDMmraOW98ZBmMDB8kQon+B2Ti8LJsrcVnaJxCDc6ClT300w53olcM/bS1 4NTUApA8iRtBjUS06t5Xg73Gyd9J+VYhnCZ2wdct82ylpRyBowaVA4ioiwDai+RWf2kJ 314ps3p1dmq/7zaDu9gz0N5m4nTkhDX+NKJegV/ipKyTIzx487LCmlMUEJQC8L5U8EPU haGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=g1tDxoChGH3w0kigxd3IgaB4MUIWFPWVdk27j3deTtI=; b=YJfwmZFe7Mjy6Ei2ccyJQ+Zh2FAZNiC0cdjws48NldkTLzd+sDMWf7mTC7w81i4gZl lRC+A7jC/gIm0J1ckIHLfzpvmNIax4kxrH9m4gSA3P1D5fcFDyvY7C+nIW2kI1bdmOQq IewdA7xyJMjKEAyHPaZhtr35eCCJ1yuNfngWOHvNr8XGNo5rA3T7/It3MKt+NkerB7tx vsezOigTjt6vhJoFAJKFvt0qgcW3lYla/Dlx8YQbsJlGFdhXXaLXhLiE6ao26T97TmcA SgSpBrtNhoK8wswyx7YDgzmuznHT1AA2EZVJ8zP2fElFYoPsDi0hI3kNGfSSDdDq727t KVmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=PArv2XUH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si9850726ilu.53.2021.07.15.11.30.48; Thu, 15 Jul 2021 11:31:00 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=PArv2XUH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbhGOSRE (ORCPT + 99 others); Thu, 15 Jul 2021 14:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233469AbhGOSRE (ORCPT ); Thu, 15 Jul 2021 14:17:04 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F35C06175F for ; Thu, 15 Jul 2021 11:14:10 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id s18so7356263pgg.8 for ; Thu, 15 Jul 2021 11:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g1tDxoChGH3w0kigxd3IgaB4MUIWFPWVdk27j3deTtI=; b=PArv2XUHuoFYYCNw26nHq9CwvzbG6nQeD1+W+9tuw9CIHjCo25QmlzXLEWaMHwiePY B0+9F+qBna6V/l+aVhYdvCOlVYeSr48eboGpBqsRhS4hKxxlqNIveIbIa3FbekNhoW/G ysdTPrACubN0IGKcL+j5ccg+VqLRAYzDmeTC3Fqp2jH1Jca2RhTTVSuvMvHa8YdcoUXq V9iFuS+L4Jp6sxfskiooURy9HmVNrXb8EFmyuonce8+EheWU8z5IVBpnZ6Ol1Mz1tBRT 0RsL3/EoAhhE56GegAW6xdgn+9U6BE0oRAuTlm9BDFcZp4DrNPoH6coz6B1nHF1/wDCH lrrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g1tDxoChGH3w0kigxd3IgaB4MUIWFPWVdk27j3deTtI=; b=rhemOFv0mtn2ZAWYxcq+VMVOnXN6u8X3RNh5hlDl8bd2BiRozpSRTdA0DsqhBib1Yn hVU3vB2SVLcWkoyYn/6wCBB1Xz0hRQVcPAGhsv3BAFqLUEKPb8M64Ddx6sXKsYsfrI5i 1MN7c0mr/UE7VScqW5zV2hvuB44yqS8BSPYRN2vmiOszVgtLCko5IWj7gs09gL4sOAZm cM1kBkgs6Qv/P5jUJednAOtSN13cu05BheMz5T/G51BPDDWdEnKJA+IGVBJeu/ULlBg3 4dMbWlG0YN7rP1rywH7+ebjWHyOsLtKfG0xOeG9gewWxrpbafAM8HZUWOsNm7rFT9Mse q3bA== X-Gm-Message-State: AOAM533nM1A/yIVYetnnU0upjfEiwA4EHqAzpjThi1r+iusRVYmckcv9 j+2J4cWisq6veLC1RJ46tM3u4Tut6mXJspkv2ad7Ug== X-Received: by 2002:a05:6a00:d53:b029:32a:2db6:1be3 with SMTP id n19-20020a056a000d53b029032a2db61be3mr5733775pfv.71.1626372850317; Thu, 15 Jul 2021 11:14:10 -0700 (PDT) MIME-Version: 1.0 References: <20210712220447.957418-1-iwona.winiarska@intel.com> <20210712220447.957418-2-iwona.winiarska@intel.com> <32c71687f11fb418dafa45ecf15f7c6b50dd0397.camel@intel.com> <218ef97a68491e88d8012799385ee244544a157a.camel@intel.com> In-Reply-To: <218ef97a68491e88d8012799385ee244544a157a.camel@intel.com> From: Dan Williams Date: Thu, 15 Jul 2021 11:13:59 -0700 Message-ID: Subject: Re: [PATCH 01/14] x86/cpu: Move intel-family to arch-independent headers To: "Winiarska, Iwona" Cc: "linux-kernel@vger.kernel.org" , "openbmc@lists.ozlabs.org" , "corbet@lwn.net" , "jae.hyun.yoo@linux.intel.com" , "Lutomirski, Andy" , "linux-hwmon@vger.kernel.org" , "Luck, Tony" , "andrew@aj.id.au" , "mchehab@kernel.org" , "jdelvare@suse.com" , "mingo@redhat.com" , "bp@alien8.de" , "devicetree@vger.kernel.org" , "tglx@linutronix.de" , "linux@roeck-us.net" , "linux-doc@vger.kernel.org" , "linux-aspeed@lists.ozlabs.org" , "robh+dt@kernel.org" , "yazen.ghannam@amd.com" , "gregkh@linuxfoundation.org" , "joel@jms.id.au" , "linux-arm-kernel@lists.infradead.org" , "andriy.shevchenko@linux.intel.com" , "x86@kernel.org" , "pierre-louis.bossart@linux.intel.com" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 9:47 AM Winiarska, Iwona wrote: > > On Wed, 2021-07-14 at 16:54 +0000, Williams, Dan J wrote: > > On Tue, 2021-07-13 at 00:04 +0200, Iwona Winiarska wrote: > > > Baseboard management controllers (BMC) often run Linux but are > > > usually > > > implemented with non-X86 processors. They can use PECI to access > > > package > > > config space (PCS) registers on the host CPU and since some > > > information, > > > e.g. figuring out the core count, can be obtained using different > > > registers on different CPU generations, they need to decode the > > > family > > > and model. > > > > > > Move the data from arch/x86/include/asm/intel-family.h into a new > > > file > > > include/linux/x86/intel-family.h so that it can be used by other > > > architectures. > > > > At least it would make the diffstat smaller to allow for rename > > detection when the old file is deleted in the same patch: > > > > MAINTAINERS | 1 + > > {arch/x86/include/asm => include/linux/x86}/intel-family.h | 6 +++--- > > 2 files changed, 4 insertions(+), 3 deletions(-) > > > > ...one thing people have done in the past is include a conversion > > script in the changelog that produced the diff. That way if a > > maintainer wants to be sure to catch any new usage of the header at > > the old location they just run the script. > > You mean like a simple s#asm/intel-family.h#linux/x86/intel-family.h#g > ? > Operating on kernel tree? Or individual patches? Whole kernel tree, something like this patch is a good example: 58c1a35cd522 btrfs: convert kmap to kmap_local_page, simple cases In this one, Ira generated a patch from a script, and the maintainer could re-run it if new development added more of the "old way" before applying Ira's patch. > Is including "old" header in new code that big of a deal? I was proposing ripping the band-aid off and deleting the old header, in which case it would cause compile breakage if someone added a new instance of the old include before the conversion patch was applied. > I guess it > could break grepability (looking for users of the header, now that it > can be pulled from two different places). > It would be worse if someone decided to add new content to old header, > but this should be easier to catch during review. Having 2 potential places for the same definition causes a small ongoing maintenance / review burden, so I vote moving the file rather than leaving a place holder, but it's ultimately an x86 maintainer call.