Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1846059pxb; Mon, 11 Oct 2021 14:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykoImrBQxU13AY7BJSuG62h+vj96FDSm/fDtlYXDlKHVFKcGjHRj90qlm+KiElrYFss5gr X-Received: by 2002:a17:906:7016:: with SMTP id n22mr28037250ejj.567.1633988034081; Mon, 11 Oct 2021 14:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633988034; cv=none; d=google.com; s=arc-20160816; b=GhpPEK98vMZ3vTS7FuMDPjzf3NUj9qYyqJ41715YSkf5Zm61h0c0aDPOe9bCIfa5tZ J/c8noTXmFyTJoMyO1GksfmI+1w0YSf3Jptf1PD3ronyILcjTy4W954C3BQaMH07PAFP SJfn6BTPQlmQemGtYIdUrplpQGfKX/FgferHn5SxWLB5rE4boDFMS5CIrvPXSpEUJJ4m Eh7tJYxt+ZjTEtr7wk6tOkbVdOw+0DfZA5RliYGOPLRFUiku3t7Xp4mVSFXW2+BjxD2N XV+A7BWyEIR6MxGYSLIuQUnw2JBKz1cZPbUk4IcO7GGg/HIoKHpnRiLIlAXElTY63r/u XCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ktB79OgjKWu4SFhSyygmMhHHJddjGqbKPeqk6+xxA10=; b=YRos5yOx50XDpz85x3Vn4CSqAtF2SepMk0qEuKTA4BvSr3BBIzX51oNrmf++zjmT68 V+W9VORuq6L3/6TgDtzjua8abm2EKx/hBtRGWEIphXrDhjb9ccNu/Bg81h0EftUITjYn ML4I0jDG5DDtQWuwbIGMf8N22uOhC668HbF6htkEfNslSL9Ni9NYuPzaGvI5paTBqEKV t+exrqgkNXHVbzPxaPDA5hRH0Qc9LSEmRbQQA4K2kT5U0uk4KUKnz9VePbfek94mN0l+ UxkAtJgBcegOBKWUuEUgcXW8aZRcg9we1O83+2akJ8hcMpo+JIRujViTAqc08CMkHZ4S XDQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="AP8NNI/l"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x88si13092126ede.207.2021.10.11.14.33.30; Mon, 11 Oct 2021 14:33:54 -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=@alien8.de header.s=dkim header.b="AP8NNI/l"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235277AbhJKVdv (ORCPT + 99 others); Mon, 11 Oct 2021 17:33:51 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35146 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbhJKVdv (ORCPT ); Mon, 11 Oct 2021 17:33:51 -0400 Received: from zn.tnic (p200300ec2f08bb0003b0f726e81805f8.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:bb00:3b0:f726:e818:5f8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DA1831EC04D6; Mon, 11 Oct 2021 23:31:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633987909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ktB79OgjKWu4SFhSyygmMhHHJddjGqbKPeqk6+xxA10=; b=AP8NNI/lF9orIz29IHoZ1onaqIlWc4+tv7BBIyQ+KqL9M5VUAmvyQner4HQ8Dfej+ezj0s rDjJ5dFRCYDxJHoQ7a4kNXigxCehCvPoD4ITWptC1gRP9uXVExolKqM7HHEp1MW8PxfoEr lJQDN29VXXUI+lSK76b0wei8vrWh1jM= Date: Mon, 11 Oct 2021 23:31:45 +0200 From: Borislav Petkov To: "Winiarska, Iwona" Cc: "corbet@lwn.net" , "jae.hyun.yoo@linux.intel.com" , "x86@kernel.org" , "Lutomirski, Andy" , "linux-hwmon@vger.kernel.org" , "Luck, Tony" , "andrew@aj.id.au" , "Williams, Dan J" , "mchehab@kernel.org" , "jdelvare@suse.com" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "rdunlap@infradead.org" , "devicetree@vger.kernel.org" , "tglx@linutronix.de" , "linux-aspeed@lists.ozlabs.org" , "olof@lixom.net" , "arnd@arndb.de" , "linux@roeck-us.net" , "linux-doc@vger.kernel.org" , "robh+dt@kernel.org" , "openbmc@lists.ozlabs.org" , "zweiss@equinix.com" , "d.mueller@elsoft.ch" , "gregkh@linuxfoundation.org" , "joel@jms.id.au" , "linux-arm-kernel@lists.infradead.org" , "andriy.shevchenko@linux.intel.com" , "yazen.ghannam@amd.com" , "pierre-louis.bossart@linux.intel.com" Subject: Re: [PATCH v2 01/15] x86/cpu: Move intel-family to arch-independent headers Message-ID: References: <20210803113134.2262882-1-iwona.winiarska@intel.com> <20210803113134.2262882-2-iwona.winiarska@intel.com> <58ef4107e9b2c60a2605aac0d2fb6670a95bc9e0.camel@intel.com> <337b6332312ea63862aedd09279417c9e1c7e11f.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <337b6332312ea63862aedd09279417c9e1c7e11f.camel@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2021 at 08:38:43PM +0000, Winiarska, Iwona wrote: > Everything that's part of this series runs on the BMC (Baseboard > Management Controller). There's nothing ARM specific to it - it's just > that the BMC hardware we're currently supporting is ARM-based. PECI is > an interface that's exposed by some x86 CPUs - but that's a hardware > interface (available completely independent from whatever is actually > running on the x86 CPU). Aha, I think I got it: so this whole PECI pile is supposed to run on the BMC - which can be ARM but doesn't have to be, i.e., code should be generic enough - and the interfaces to the x86 CPU do get exposed to the Linux running on the BMC. Which brings me to the answer to your other mail: On Mon, Oct 11, 2021 at 07:32:38PM +0000, Winiarska, Iwona wrote: > Nothing wrong - just a trade-off between churn and keeping things tidy > and not duplicated, similar to patch 1. And just like in patch 1, if > you have a strong opinion against it - we can duplicate. So it is not about strong opinion. Rather, it is about whether this exporting would be disadvantageous for x86 freedom. And I think it will be: Because if you exported those and then we went and changed those interfaces and defines (changed their naming, function arguments, whatever) and something outside of x86 used them, we will break that something. And usually we go and fix those users too but I doubt anyone has access to that PECI hw to actually test fixes, etc, etc. So I'd prefer the small amount of duplication vs external stuff using x86 facilities any day of the week. And so I'd suggest you simply copy the handful of functions and defines you're gonna be needing and the defines and be done with it. Dave's idea makes sense to me too but lately it keeps happening that we change something in x86-land and it turns out something "from the outside" is using it and it breaks, so it is a lot easier if things are independent. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette