Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4293185pxb; Mon, 8 Feb 2021 12:39:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJx68/I5omQHm79BaMVeuKo5CSsIByuaGMRhPb8bWuCDi0WntOWJ2iqTayWhQwJqRjvXkh5y X-Received: by 2002:a17:906:b4a:: with SMTP id v10mr14456256ejg.382.1612816768181; Mon, 08 Feb 2021 12:39:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612816768; cv=none; d=google.com; s=arc-20160816; b=uaH77S3DJY0DchXtyzF4Y7MgEe+FaefenXKTKkTqSzpgtECpWyQ/iLLkYsP3254DfL IU/k3XxucaijEy5l/hddCA05f/zp6X4QOQZ1YSmKuXntQ6LBVzn1rWzAWgZzTc8tw4pp 7r+RKDB+9clB6AhifvZANb6o0rPiZqorVsdI5MKmTEVy5oKxTwXA+Lwe+HWOIBZgZCua wS6+n1iM95reE7K3w6PuMpjhcQ0/lEhOItsggpd+yCtAJ0ucJa/rAno3ba2dIAM0JALC 40Mq6KwCRJYQM0X5mql8huPuNzAt4A6cfU7yO2SHuCwv1W04i1SbDPZKUjmtmNz8Q2Za ZiVA== 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=LQn+pWHGqbtgPfnM9tOWZS6wPqkEaJHJhfGUBzfOF9g=; b=tS0dn8VfS3k2/HzSDpD/4jfeKwSvT3xr1W9jo5uRRYRwVyiXOj1syfhaJ9zDJDCLK4 W0dV9aJr9AmjMpBr3px7v6Uc6+nuGxp09+JAP/+AUZBufiRDrK5ohtfpA1K6DJ3eOrd7 whUIgCffImVI3gn+lQYXZGLUwmV8XiBJ9p/OWZ5VkoszKKwns1gmqaOkDrUeaj+RUZEr FALE+ltoFgV0aPPamwVLCNrESTwSCSqEazLESbl3GaNJLSVfR6JTd0In1qsvR3Qt0tDI xgQZ5fsZ4LV4bGpQgliSvXcsa0jMz6hyPzaskJlGwrDZ8HIZs3KJ+j/uRCVvvXPRv0fm burQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Z6Q6mo8K; 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 b11si12103878ejg.243.2021.02.08.12.39.04; Mon, 08 Feb 2021 12:39:28 -0800 (PST) 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=Z6Q6mo8K; 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 S232846AbhBHUhj (ORCPT + 99 others); Mon, 8 Feb 2021 15:37:39 -0500 Received: from mail.skyhub.de ([5.9.137.197]:50820 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233739AbhBHTTn (ORCPT ); Mon, 8 Feb 2021 14:19:43 -0500 Received: from zn.tnic (p200300ec2f073f00132389f64ded89c1.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:3f00:1323:89f6:4ded:89c1]) (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 02C901EC0512; Mon, 8 Feb 2021 20:19:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1612811941; 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=LQn+pWHGqbtgPfnM9tOWZS6wPqkEaJHJhfGUBzfOF9g=; b=Z6Q6mo8K9istjRAkkYQ538h7wPEI3jtW7N6FMqezZQHRnYiJsTialCjpyPuwKT/Qk1VLij ENVlQdlDfEG0qVWoyxU7Im+qpvn3dwOn46AmEokEW2wA7Mwd5/mwHYls+jN/RHA0hFAMhe W+cS105iEZeD22ufo7i8DVx2zyTKHu8= Date: Mon, 8 Feb 2021 20:19:02 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: "Liang, Kan" , peterz@infradead.org, acme@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, namhyung@kernel.org, jolsa@redhat.com, ak@linux.intel.com, yao.jin@linux.intel.com, alexander.shishkin@linux.intel.com, adrian.hunter@intel.com, Ricardo Neri , Andy Lutomirski , Dave Hansen , "Rafael J. Wysocki" , "Ravi V. Shankar" , Sean Christopherson , Srinivas Pandruvada , Len Brown Subject: Re: [PATCH 02/49] x86/cpu: Describe hybrid CPUs in cpuinfo_x86 Message-ID: <20210208191902.GG18227@zn.tnic> References: <1612797946-18784-1-git-send-email-kan.liang@linux.intel.com> <1612797946-18784-3-git-send-email-kan.liang@linux.intel.com> <20210208175640.GD18227@zn.tnic> <20210208191018.GA86425@agluck-desk2.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210208191018.GA86425@agluck-desk2.amr.corp.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 11:10:18AM -0800, Luck, Tony wrote: > > +u32 x86_read_hybrid_type(void) > > +{ > > + if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU)) > > + return cpuid_eax(0x0000001a); > > + > > + return 0; > > +} > > Machine check logging will want to include this in "struct mce". > > But ok to pick it up with a function like you describe above. Sure, that looks ok. We can always lift it up into cpuinfo_x86 later, when it is needed on the majority of machines but right now it is only a small subset of machines which have this. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette