Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1411576imu; Tue, 20 Nov 2018 17:40:24 -0800 (PST) X-Google-Smtp-Source: AJdET5ckcjRjHxabqbOF2yfj/iYPtM3aaHn2HBZ9QAju5K6kSXY/rN+g53nivG53PtClbAnZwACy X-Received: by 2002:a63:4e41:: with SMTP id o1mr4207798pgl.282.1542764424915; Tue, 20 Nov 2018 17:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542764424; cv=none; d=google.com; s=arc-20160816; b=ILmsRuoWcqipjwSXPyTeXw/00l0vfAYVeWrnsTr5pw6ZrlWwrVmvyP5grLH3AmxyMA 6d0VXdp4mleRu2cAHm9Nd/l96sQ5k0gG8REItIU76UkET0NlL8P5GjGb8rs0T+7Mp1wf HVoGv5HNnHp91/WQ/Rl/gRI2QdwNTiR079frRBtgAiED3yT271QSWl90S3Xt9S5KQHef nBz/0SW+Jou/lmRyPX6S3VT5/snB6LTJEYV2ZymO7B1NOLrp6OUvMzg/LoiU0w6nwRPp 9Rb6vPK8p5lOTlLIINYQlQeiyktiXXcfjyg5eWjB0eTsMzudhPyrPaXrhHZ4NtfPY1Ni 6lCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=79G2hOV9tMHhdMGk2YT+1x0ayJK61rOKIA6mzzRZuBg=; b=j+1SKokVNUVfpPfVRr3+vV+DLB6DPgyre9Om0XcwyrL6xm6dE0Gs3w+ieF9Vs3yinW Bj5W3oDPOiLRZMjHLheknzdJMpFrKwUA6RCsqXcuPF6q0rroa1Cajy5+EgelJdWCkGuk G2OjTsLeMovx+Jm4/gf8aa2xyUwVuLEDQVo3WRihaOMezY7kBOK4Qk5/5y+qV8jh/ybC J5+HWppJ+brKp2GBAnhqBuxtHPXX/X91WODHVbJASIkiWxREz0IndXc+wfyEIgR4QMP+ HXLGdApGUwwHkWAfMngo+edb84y9wvVr8gbo2UhmHo8TlCWh0IntHOdqkmT1eatNA6nI ZL0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 5-v6si47189858plt.408.2018.11.20.17.40.09; Tue, 20 Nov 2018 17:40:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726612AbeKUMLN (ORCPT + 99 others); Wed, 21 Nov 2018 07:11:13 -0500 Received: from mga04.intel.com ([192.55.52.120]:57904 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbeKUMLN (ORCPT ); Wed, 21 Nov 2018 07:11:13 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2018 17:39:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,259,1539673200"; d="scan'208";a="93661380" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by orsmga008.jf.intel.com with ESMTP; 20 Nov 2018 17:39:01 -0800 Subject: Re: [PATCH v3 2/2] proc: add /proc//arch_state To: Peter Zijlstra , Aubrey Li Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, dave.hansen@intel.com, arjan@linux.intel.com, linux-kernel@vger.kernel.org References: <1542236407-4323-1-git-send-email-aubrey.li@intel.com> <1542236407-4323-2-git-send-email-aubrey.li@intel.com> <20181119173904.GC2131@hirez.programming.kicks-ass.net> From: "Li, Aubrey" Message-ID: Date: Wed, 21 Nov 2018 09:39:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20181119173904.GC2131@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/11/20 1:39, Peter Zijlstra wrote: > On Thu, Nov 15, 2018 at 07:00:07AM +0800, Aubrey Li wrote: >> Add a /proc//arch_state interface to expose per-task cpu specific >> state values. >> >> Exposing AVX-512 Hi16_ZMM registers usage is for the user space job >> scheduler to cluster AVX-512 using tasks together, because these tasks >> could cause core turbo frequency drop. > > I still don't much like the name; how about arch_simd_state ? My intention is #cat /proc//arch_state 0 1 0 Here, the first "0" denotes simd_state, and the second "1" denotes another cpu specific feature(may come soon), and can be extended. But sure I can limit it to simd_state and change the name in the patch. >Also, > since we're printing an integer, I still prefer we go print the turbo > license level. I know level 1 isn't too interesting atm, but consider > future hardware widening the thing again and us growing level 3 or > something. The problem is, FWICT, the bits in XSAVE buffer is not exactly mapped to the turbo license level, so we can't print turbo license level correctly, or the first patch need rework for that. > > Also; you were going to shop around with the other architectures to see > what they want/need for this interface. I see nothing on that. > I'm open for your suggestion, :) Thanks, -Aubrey