From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277AbeCLMZJ (ORCPT ); Mon, 12 Mar 2018 08:25:09 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53416 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932231AbeCLMZF (ORCPT ); Mon, 12 Mar 2018 08:25:05 -0400 Subject: Re: [RFC PATCH 0/4] add support for CommonLPIAff field To: Yang Yingliang Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <1520837395-10288-1-git-send-email-yangyingliang@huawei.com> <3b6997c9-761f-3f5e-79ac-6b785a9a14d9@arm.com> <5AA66ED7.7080007@huawei.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <97382ff7-7f8f-f960-aa92-41a96c8e169f@arm.com> Date: Mon, 12 Mar 2018 12:25:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5AA66ED7.7080007@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/18 12:13, Yang Yingliang wrote: > > > On 2018/3/12 17:55, Marc Zyngier wrote: >> On 12/03/18 06:49, Yang Yingliang wrote: >>> This patch set adjust struct rdists to support CommonLPIAff field. >>> This field is described in spec: >>> >>> CommonLPIAff, bits [25:24] >>> The affinity level at which Redistributors share a LPI Configuration table. >>> 00 All Redistributors must share a LPI Configuration table. >>> 01 All Redistributors with the same Aff3 value must share an LPI Configurationt table. >>> 10 All Redistributors with the same Aff3.Aff2 value must share an LPI Configuration table. >>> 11 All Redistributors with the same Aff3.Aff2.Aff1 value must share an LPI Configuration >>> table. >> >> What are you trying to achieve here? We already share the same >> configuration table across all the redistributors, irrelevant the of >> CommonLPIAff. Why would we need to do anything else? > > In some cases, such as "with the same Aff3.Aff2 value must share an LPI > Configuration table", redistributors will access local memory node > only, it may improve the performance. And I don't have any beneficial > data now. I may provide it later. These are two different things. - "must share" is what the kernel does *today*. No changes are required. - NUMA behaviour has nothing to do with CommonLPIAff, and cannot be based on that field. Thanks, M. -- Jazz is not dead. It just smells funny...