Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1786820pxb; Mon, 11 Oct 2021 13:08:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ2tTyiMTupI6NTuZmYCUQxv65VsR6zoLELuBuj+5R0kEbekAbflTBZDKSKwFcS4E/l5uO X-Received: by 2002:a63:33cb:: with SMTP id z194mr19861055pgz.380.1633982887897; Mon, 11 Oct 2021 13:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633982887; cv=none; d=google.com; s=arc-20160816; b=BVnxLb9AuOXpxJYRfeMdks5nig/8+WUDfDof0dOpbMa/rxGooSOcMMgcSvaJ2KckSE nxnUYf1mv5LIpveNoaAmRuvG9+A1MAaHXRcLcN7n0RYMaAN97rFidej2u8qaob+s3nT7 47dvr0hMYRreoKGhtRNxov15kaLD45bo2aDUv65D+Lf7XlWZvJi2MtGlOqzzcc/h4uhx i3t2OvZlQK1gS46ycYjMAXEbvWQeZbIHFuhoyvxuR57rTUfX2/Xd9CZ0mhRq2sJoh610 GLz7VoRLRb3hYs8VrzAZMxVZy2Fl6jOnDll2olW/U81Ypx07MnT/UuP0y8t7wm8rgD6Y TwWg== 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=sHYrqFRbYrEH2ohEyvm54WlvJW+Ifcb/2V9eQlCd/PU=; b=MGg4PIHqgNl4W17j8jVYVHe/ipo/DnJ4X/gQRCPccmPV7YrMwViwmkJj0UGi2MUbsJ x24lUqzzFU1KwfYM95nQap18Q0OO3H9uDAqR9nbKrPgdGZfChXEOLZyY2O7rN+duTSh8 wOpBGaS9DUZlAzhoUKuc2WexQiyXTmC8nV3b+eRa4aU1o7c7Infcx//8Bp0Hd4008Dlt A+K/qR5d1h2wAhbBJWGPKw1Uap3LGUxTB69hXv0GjIag9avv78Eotri1gAA+w2MMB538 Ej36U6ZGVC5tn4AtlRC/4mI44+lUlsVfxlj5EiBKKaAipfC7B7NfmDfkCcqaujMV2H9W yLAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mIYzaIyd; 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 q8si12768378pgi.286.2021.10.11.13.07.55; Mon, 11 Oct 2021 13:08:07 -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=mIYzaIyd; 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 S234791AbhJKUIo (ORCPT + 99 others); Mon, 11 Oct 2021 16:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbhJKUIn (ORCPT ); Mon, 11 Oct 2021 16:08:43 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C66CC061570; Mon, 11 Oct 2021 13:06:43 -0700 (PDT) Received: from zn.tnic (p200300ec2f08bb0022234ba9186d35fd.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:bb00:2223:4ba9:186d:35fd]) (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 63C7A1EC01FC; Mon, 11 Oct 2021 22:06:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633982801; 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=sHYrqFRbYrEH2ohEyvm54WlvJW+Ifcb/2V9eQlCd/PU=; b=mIYzaIydq3WW3gWAjE6T2K1pdYPtVCYlQvaJDfXOzzREBc6lCOfiQmEe6P+MpCD7Gbnp4i 9X0N4OQCjQChihVgTg6tbJ5oHYmKKsTrwIQ0seEOiQX1ho+iAkWowyBq53F2wrrem02c9f Kc09T7ysxEghODkpZO5N02Jn0nUt1rU= Date: Mon, 11 Oct 2021 22:06:38 +0200 From: Borislav Petkov To: "Winiarska, Iwona" Cc: "corbet@lwn.net" , "jae.hyun.yoo@linux.intel.com" , "d.mueller@elsoft.ch" , "linux-hwmon@vger.kernel.org" , "andrew@aj.id.au" , "Luck, Tony" , "Lutomirski, Andy" , "andriy.shevchenko@linux.intel.com" , "mchehab@kernel.org" , "jdelvare@suse.com" , "linux-kernel@vger.kernel.org" , "olof@lixom.net" , "mingo@redhat.com" , "rdunlap@infradead.org" , "devicetree@vger.kernel.org" , "tglx@linutronix.de" , "linux-aspeed@lists.ozlabs.org" , "arnd@arndb.de" , "linux-doc@vger.kernel.org" , "linux@roeck-us.net" , "zweiss@equinix.com" , "robh+dt@kernel.org" , "openbmc@lists.ozlabs.org" , "gregkh@linuxfoundation.org" , "joel@jms.id.au" , "yazen.ghannam@amd.com" , "linux-arm-kernel@lists.infradead.org" , "pierre-louis.bossart@linux.intel.com" , "x86@kernel.org" , "Williams, Dan J" 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <58ef4107e9b2c60a2605aac0d2fb6670a95bc9e0.camel@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2021 at 07:21:26PM +0000, Winiarska, Iwona wrote: > Same reason why PECI can't just include arch/x86 directly (we're building for > ARM, not x86). Aha. So what do you need those INTEL_FAM6* defines for? I see peci_cpu_device_ids[] which are used to match the CPU so at least that thing must be loading on x86 hardware... reading your 0th message, it sounds like that peci-cpu thing is loaded on an x86 CPU and it then exposes those interfaces which a PECI controller accesses. And then I see in init_core_mask() the single usage of INTEL_FAM6* and that drivers/hwmon/peci/cputemp.c is a CPU temp monitoring client so that thing probably runs on x86 too. Or? If it does, then you don't need the code move. But it looks like I'm missing something... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette