Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3037838imu; Mon, 19 Nov 2018 09:41:36 -0800 (PST) X-Google-Smtp-Source: AJdET5e+wyn2fE0Zw2gTF5hNNJM53MTb+EHjYH/ur+NI6XoE/oBoblzM46uSpbn06/pThAboOVAH X-Received: by 2002:a17:902:8346:: with SMTP id z6mr23194304pln.340.1542649296415; Mon, 19 Nov 2018 09:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542649296; cv=none; d=google.com; s=arc-20160816; b=bvaiygi3cdqpERy0nuTUzrW4ZQp8QbE/w59AgeIQmNl3nmK2SBSita5j1iij4d7R8z ctVEQNJGEAatYSAcqvUJO9Pw5K7GaxVvoq/0BJ3z8AjZMwwjHFmiqpthnaUurBHkWIqs xcod5KPIuiHtomLc9xJAn8hq0w1Ju4rqWvzFMFshthHB0D/mYNh3gqkESWS5uSOAx87s utGaNON4xYFrIeFhoEFTg9YCM9I1Y9ykHJRLRWOU6iYJsjVWQ8LZSyAvnUHn/fSsZ8EV BNyvFxmSEEg/AIyuJPrytH5lEPTev8Q/ns1keCSOjnoAbvRno624DGTmb0wwEJo+73qb OKHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VH8Js/f79sDvzte9nhjFucLKZjxH/ybNk99a1CltyQQ=; b=zO+E/AwFA7Onsym0caf3oEklpp7PctlSoq8WvHV6yMROa1hCXcounsxs/msFtu6PkC m/dC3BT/8T2Qe9/LCxyfK21ovnFy8lGISL+COQh9Yf7IlzxktCxAou5YSNERbNYjZf8f QqGTqr+hQd7XulK9LU90CLMMZ0l2u7sSv8BMbmnvEKiTU8yrO3gIudJtq46yey0niQK/ ikQS8ilXEvEiPAJ/2mZuUDgKKcWg87RH0TJkvkKfAWkBovis4Fc+O/bqFS6DZPMqjdqp Ne67dYasjmJGXlqFKFsVS133vRK94CN5pnClF5QfPvU8R0rKwu75bSniR8cDDZMqP4yO mR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="RT3/NDDg"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si13135231plb.103.2018.11.19.09.41.18; Mon, 19 Nov 2018 09:41:36 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="RT3/NDDg"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389950AbeKTEDh (ORCPT + 99 others); Mon, 19 Nov 2018 23:03:37 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34380 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389738AbeKTEDg (ORCPT ); Mon, 19 Nov 2018 23:03:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VH8Js/f79sDvzte9nhjFucLKZjxH/ybNk99a1CltyQQ=; b=RT3/NDDgmC54ZKZpYDKoINbYm PvYy5lzui9So6NLuAaKeeEPl1xrTE2pYsjbMr8OhxNM+3+hCUG8FFwzFyZGWbpbH9NGQttAsSz098 fYvZx36ALRks9891os3F21ieypjF8l7KejUXbc8IpdkXqmf3UPz9dB0fcEqpYgZkFNjPYaSv653V8 0rWT+ZtDIORyk9SdbvWh0EIRq9PUHSjWNr6Zq6hTVYiebQbWRx9P5Pmq3+FQgxVfzzIPven4r3PaL eIwckW0iB1G6zJKfsWnvqmpd6rcVxj7EcVqYkJyHRY1OROFuF1wW8rMB5CswH6HXLZ2/HOECr8wPS /jI98ZXgw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOnVq-0004vP-SD; Mon, 19 Nov 2018 17:39:07 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2DEA32029FD58; Mon, 19 Nov 2018 18:39:04 +0100 (CET) Date: Mon, 19 Nov 2018 18:39:04 +0100 From: Peter Zijlstra To: 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, Aubrey Li Subject: Re: [PATCH v3 2/2] proc: add /proc//arch_state Message-ID: <20181119173904.GC2131@hirez.programming.kicks-ass.net> References: <1542236407-4323-1-git-send-email-aubrey.li@intel.com> <1542236407-4323-2-git-send-email-aubrey.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542236407-4323-2-git-send-email-aubrey.li@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? 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. 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.