Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1630830pxy; Thu, 29 Apr 2021 10:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmoJraXOZVJznH6uNFzVN/5YhwqRTLDHuKuHlYcxAVWet+gJMdNOXL1UXWqxZYY4u8j7d+ X-Received: by 2002:a05:6402:3591:: with SMTP id y17mr977121edc.67.1619718856910; Thu, 29 Apr 2021 10:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619718856; cv=none; d=google.com; s=arc-20160816; b=Q19dA7CMQLcOjcznt1ov81gK6tSK/M2UXdFGD2K0ST1o5CumfM8ESN8DnScDEPHMnp 5gJrPAt7EaieFaR+9gaMlv2tIqVETvaQk7wI6qe9IZRkiTBSRmOkz4H+06U8Rbk2YLdE XPn8Cfk2I3iThavTFnHpR1HxRa863tQAPn1Lb0uNgW2AU9kFcXv93PBSBSt1RnBGaLLx VJbsiOx73ajc2QzNV3xN1P1uwZKF21q3Bx0RSdWAeolg0GDomSuftLRD82UmaHTJ3kZe qAiHIBuXmR4uFAJDyBYoaTpvkO0A0SmPM1uHw2tdxNfzlhJulVQYvqZJSHySXbGpCvR3 ZCsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=7mWcxNGYu1vZ5SoAyV1dgb04mKn9zxXE7GLS1pnpBE4=; b=Obbj97nyGsXj9RhKJv4QLIL4mnyAVJlGrRj6CoJIau1xoMpIYyWb6Ugc/6G1IqS43A WH9riIYZbq7yaeKOqq1aRrAyz7HAhKpDL1yTY9Jtukebh/NqtFTrX8adGgHy+w+hJ5Rs 3v/SU4aqVnBubYVXGCr8A0Cj7eEmWkOl4xfm7MmW8zwgWCmXIEZmgoynHLHCAIe0i4r4 K8xE/jUutZF9F0dO/T8wlnlaP4gefGByY0TonH8JBu3XVrV5r0jakSLe/f8/ahgRzPYC ZNzlGKNWawdHOfgcq7mQxvql5MV77+aBInsmqEP2tGMszZuPmSZiYNf5RtOt3TSDZtLD 5lAA== 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 kq6si679647ejb.103.2021.04.29.10.53.53; Thu, 29 Apr 2021 10:54:16 -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 S241031AbhD2RvJ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Apr 2021 13:51:09 -0400 Received: from mga12.intel.com ([192.55.52.136]:57556 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233706AbhD2RvI (ORCPT ); Thu, 29 Apr 2021 13:51:08 -0400 IronPort-SDR: YLgrXuhPP4sWKDqqlEY8/Nn8Z7JDx5gmRHdwCp5lQRgCurZE855wCNjmMrp/fpy5rLcdRtjKnn uHc7b/+pfhuA== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="176555664" X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="176555664" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 10:50:21 -0700 IronPort-SDR: bsJ7xWyidrkJGopANBwSbJO+yz7E0LhA2K2ENvAKxgJOrQH3hrN0jjMG1LmUimBlQWNXwMfiQs prEPB2UOK4mw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="455644726" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by FMSMGA003.fm.intel.com with ESMTP; 29 Apr 2021 10:50:21 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 29 Apr 2021 10:50:20 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 29 Apr 2021 10:50:20 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2106.013; Thu, 29 Apr 2021 10:50:20 -0700 From: "Luck, Tony" To: "Chatre, Reinette" , "tan.shaopeng@fujitsu.com" , "Yu, Fenghua" CC: "'linux-kernel@vger.kernel.org'" , "'linux-arm-kernel@lists.infradead.org'" , 'James Morse' , "misono.tomohiro@fujitsu.com" Subject: RE: About add an A64FX cache control function into resctrl Thread-Topic: About add an A64FX cache control function into resctrl Thread-Index: AQHXPR8AhIvM7pb1S52qTlM+pjp6RKrLxTbg Date: Thu, 29 Apr 2021 17:50:20 +0000 Message-ID: <49cdd0b707194148915e2efe2ab5d707@intel.com> References: <14ddf86b-89e1-ba26-b684-f3d5d5f8ade7@intel.com> In-Reply-To: <14ddf86b-89e1-ba26-b684-f3d5d5f8ade7@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.22.254.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>> [Sector cache function] >>>> The sector cache function split cache into multiple sectors and >>>> control them separately. It is implemented on the L1D cache and >>>> L2 cache in the A64FX processor and can be controlled individually >>>> for L1D cache and L2 cache. A64FX has no L3 cache. Each L1D cache and >>>> L2 cache has 4 sectors. Which L1D sector is used is specified by the >>>> value of [57:56] bits of address, how many ways of sector are >>>> specified by the value of register (IMP_SCCR_L1_EL0). >>>> Which L2 sector is used is specified by the value of [56] bits of >>>> address, and how many ways of sector are specified by value of >>>> register (IMP_SCCR_ASSIGN_EL1, IMP_SCCR_SET0_L2_EL1, >>>> IMP_SCCR_SET1_L2_EL1). Are A64FX binaries position independent? I.e. could the OS reassign a running task to a different sector by remapping it to different virtual addresses during a context switch? Or is this a static property at task launch? -Tony