Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp70607pxk; Mon, 5 Oct 2020 18:08:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy82H7kJJ6J4fjOAwyKEMz83BKniT9heDcjbI3Cg/kwOPBUNaO2haT/lh3H36B8k2gFWd2v X-Received: by 2002:aa7:c545:: with SMTP id s5mr2719548edr.10.1601946506932; Mon, 05 Oct 2020 18:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601946506; cv=none; d=google.com; s=arc-20160816; b=eBIMnWZp7ihpwJewkeHzYncBHONYFP6+GNmzarW1YJD1IIthpBXwpsq+16H0JF/vJ3 mE0O0GjTJEBKzmblkK0V5JKhyFyqbrft5mg33uKg1uJ/X/3pvtFSxsqLLUr60g/g91Hf o9J4DEdV8ZEa7bl15RBT4+sWjgJ+0vvYKyyPVkk5Tp1kXQrpvUGaqsvHGoURbc6Kf2dZ j0BtL/qzM9EahTWy7Pv82hNCKSxJJk82A6PPkxcl5VCBzGn1gSJ8PQ0xnDu7BaA9bfcR nBj/AtQkxzL/6eRVWt5crSsxyykOFoJmcLXotku5lFLWmo34WkQiSah4Wn9lhBFfHLw8 hoKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=UIANLEkSydjM1pW5JIRbK6KHb0MIJK09RUsim8aQibk=; b=j+z/QBHrB80dSC6Kg9KuP/stFZ3EbOKZldo2sSua7+LFOmYaKxNETcGMJh20MOasRk k1eLhHthI6cPPlw+v9KebZAX3zKscKInzR/aFGHX2PrOwPmjbxfTlFE5APaIVi+IWggg +G2N5vy999s0NTjydsrM9kmPKD+p7y9RweFQSy5ktPuKwtTskl3CpL9YeWthyCYOGIBv Ucql5COuKeGqJ6vxFSXtiv0lx1gacN9BBrA3tI/aly3lOiwaz1nE20eUbL5wbEyv4pzR 3Ftk93YUhRjbUvaKRt/rbM/Fm9Bg8sEflqbNvqW6Znf6/GfshPOmZ/LOWO+PQOqXJ2a+ wTmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 q23si892127ejd.363.2020.10.05.18.08.04; Mon, 05 Oct 2020 18:08:26 -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; 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 S1725896AbgJFBGh (ORCPT + 99 others); Mon, 5 Oct 2020 21:06:37 -0400 Received: from mga05.intel.com ([192.55.52.43]:44650 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgJFBGh (ORCPT ); Mon, 5 Oct 2020 21:06:37 -0400 IronPort-SDR: suNcF+wd2X9sCieTtc93tF4KeXHIR2GJyABPJg2UO9fkql3j53KZWxVKjCOOA+IFJ9CNppfAAg 2Ys/2hZqJPmw== X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="248999147" X-IronPort-AV: E=Sophos;i="5.77,341,1596524400"; d="scan'208";a="248999147" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 18:06:36 -0700 IronPort-SDR: ffBB7t+xNXiv8KMGFiiIMOi5s2eA6Y4WZE1hFXaawbbF8MKbCjYe8YUQhB36VzTPHK/HcwaLBq degP0k/ldI5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,341,1596524400"; d="scan'208";a="353188958" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by FMSMGA003.fm.intel.com with ESMTP; 05 Oct 2020 18:06:36 -0700 Date: Mon, 5 Oct 2020 18:08:35 -0700 From: Ricardo Neri To: Greg Kroah-Hartman Cc: x86@kernel.org, Borislav Petkov , Ingo Molnar , Thomas Gleixner , "Rafael J. Wysocki" , Tony Luck , Len Brown , "Ravi V. Shankar" , linux-kernel@vger.kernel.org, Andi Kleen , Dave Hansen , "Gautham R. Shenoy" , Kan Liang , Srinivas Pandruvada Subject: Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface Message-ID: <20201006010835.GF6041@ranerica-svr.sc.intel.com> References: <20201003011745.7768-1-ricardo.neri-calderon@linux.intel.com> <20201003011745.7768-2-ricardo.neri-calderon@linux.intel.com> <20201003085345.GA114893@kroah.com> <20201003110548.GA145099@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201003110548.GA145099@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 03, 2020 at 01:05:48PM +0200, Greg Kroah-Hartman wrote: > On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > > +/** > > > + * arch_get_cpu_type_name() - Get the CPU type name > > > + * @cpu_type: Type of CPU micro-architecture. > > > + * > > > + * Returns a string name associated with the CPU micro-architecture type as > > > + * indicated in @cpu_type. The format shall be _. Returns > > > + * NULL if the CPU type is not known. > > > + */ > > > +const char __weak *arch_get_cpu_type_name(u32 cpu_type) > > > +{ > > > + return NULL; > > > +} > > > > Why is vendor part of this? Shouldn't it just be arch? > > > > I say this as "vendor" is kind of "interesting" when it comes to other > > arches... > > > > Speaking of other arches, we all know that other arches have this > > feature as well, have you worked with any other groups to verify that > > this interface will also work with them? > > Here's one set of patches for ARM64 for much the same type of cpu > design: > https://android-review.googlesource.com/c/kernel/common/+/1437098/3 > Yes, it's not been posted to any kernel lists, but this is public so you > need to work with the ARM developers to come up with an interface that > works for everyone please. Thanks for the pointer, Greg! I will study this proposal and work with the ARM engineers. BR, Ricardo