Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8708771imu; Thu, 15 Nov 2018 16:24:41 -0800 (PST) X-Google-Smtp-Source: AJdET5d0UXNvcdjPdzRPH//yGfKrRFGyj5J0xIuYhHuNsQ60S2YRHfDuLwm53tVJkfp+9DkNt9Qi X-Received: by 2002:a63:334a:: with SMTP id z71mr7937184pgz.400.1542327881926; Thu, 15 Nov 2018 16:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542327881; cv=none; d=google.com; s=arc-20160816; b=objfiKM+HjA72ZZ6ADwy0Ud97t5R7dghsBxUErwVukAkSn0gbTg61rlIP/KNXL1+QN SxYZ2gg6pNe8cDemo9MksDfUnhGcEJFGTX4PDTyyY3icI3pliVu8+Wiwztu76PoQP5Ou cOpWDsW2ooaEzwiy3NdN04ca3rmPrcY1xgEgPtC558V2WKlyc+EVi6pSNwh6BAuE+tEB M47wF+CbAzxo1gsy+O3zJl6nCKx2Ls6gFjgUBTsFICs9px0JgFPHvwA7da0WNEF0ufdW 37dpp7Q5P9JR/l6wy9lrAaQh8NsTWmCyBuwHj/SpzOd5qdpCnunoWBViyi0WGgYhvnJA HYdQ== 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=7F5GjDVJVkt1DbKHmTOQWsngqzLlmV1p6VX3myKsPrM=; b=FtTy7MDrfCjFaG6e2voJGmeYPSxRF9zr46o1dVesGAPjFvjY3cRwg5Vx37KLFhQGzo prGJqVtnC2grvDjSGVC/Qe/DLpGLU0xSC8b2HyCmVGLB0jS+R52dEXXEX9nqXrIa1oN2 0/3kT5o6HiyApFxLIuLeUSmmwPOYiKBh3YCtYOI+w71yN7Ii+yeyc4ci8UP2XpCH/938 P/ItbgkvH9yJW178mltrqi2azox6nzyMSZaDcmeIAr4ze6n33U1w15OMik1kU3DLQPgX xKKTmD5Gwe+Zh86FsUVXrHtEFNEi73gUwwbapTSujqcf8dkcsilFs58boiUNkBY/Iojm ohSw== 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 m1-v6si28218992plb.303.2018.11.15.16.24.27; Thu, 15 Nov 2018 16:24:41 -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 S1727257AbeKPKcF (ORCPT + 99 others); Fri, 16 Nov 2018 05:32:05 -0500 Received: from mga07.intel.com ([134.134.136.100]:5035 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbeKPKcF (ORCPT ); Fri, 16 Nov 2018 05:32:05 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2018 16:21:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,238,1539673200"; d="scan'208";a="91546085" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by orsmga006.jf.intel.com with ESMTP; 15 Nov 2018 16:21:56 -0800 Subject: Re: [PATCH v3 1/2] x86/fpu: track AVX-512 usage of tasks To: Dave Hansen , Aubrey Li , tglx@linutronix.de, mingo@redhat.com, peterz@infradead.org, hpa@zytor.com Cc: ak@linux.intel.com, tim.c.chen@linux.intel.com, arjan@linux.intel.com, linux-kernel@vger.kernel.org References: <1542236407-4323-1-git-send-email-aubrey.li@intel.com> <6f8a7b97-d889-ce77-b5ad-d03dbf4986b0@intel.com> From: "Li, Aubrey" Message-ID: <88a5d6df-0005-db3e-f3be-83e2a8b63a27@linux.intel.com> Date: Fri, 16 Nov 2018 08:21:55 +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: <6f8a7b97-d889-ce77-b5ad-d03dbf4986b0@intel.com> 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/15 23:40, Dave Hansen wrote: > On 11/14/18 3:00 PM, Aubrey Li wrote: >> AVX-512 component has 3 states, only Hi16_ZMM state causes notable >> frequency drop. Add per task Hi16_ZMM state tracking to context switch. > > Just curious, but is there any public documentation of this? It seems > really odd to me that something using the same AVX-512 instructions on > some low-numbered registers would behave differently than the same > instructions on some high-numbered registers. I'm not saying this is > wrong, but it's certainly counter-intuitive and I think that begs for > some more explanation. Yes, Intel 64 and IA-32 Architectures software developer's Manual mentioned this in performance event CORE_POWER.LVL2_TURBO_LICENSE. "Core cycles where the core was running with power delivery for license level 2 (introduced in Skylake Server microarchitecture). This includes high current AVX 512-bit instructions." I translated license level 2 to frequency drop. Thanks, -Aubrey