Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18577187ybl; Fri, 3 Jan 2020 05:10:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxC/ZCaNlVyt3DsLWY/XqbPRBDKbrEdFXyrmVm3foLYmA3Smha9s6jJ9bOj6M1IyF4N/3zr X-Received: by 2002:aca:ec4d:: with SMTP id k74mr3675555oih.64.1578057009824; Fri, 03 Jan 2020 05:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578057009; cv=none; d=google.com; s=arc-20160816; b=Ie7bEI3pT2VAFu+soXi42z0Ig2y24tSk053NuI8gaXSR+P+HRQGQM9NXCZmhjXY1LX zvKo0Fxavr1a3gZl2YTbd2HD55wvvI9aLqPld72cvx1ey2kxhBu3M0paxZ+enKxt/fU1 sByXK5sjjZ+Pcl+++lcL1EWeME/D+sNvI34vqejK6f1i9d1LocGlkAKCsmIT6V0/vXVP NpgoK5kpMWDZ8tT2e/XWIL5K46k+CxyrqGyTs8O1YVed+WI0v2ehmkYztkxu1aYJ7rHC XX+zYx5J5b5mUZEVEF02CR8uPi8uwvlUSCuUkiYDlsLEEslVFQvygTYIenEJk72oRons lmfg== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=fNNAPpuR8h6ljqW2y/COSnQtx9t+znkfAICgrREGQ+s=; b=Hw5myPiz10YrXzMOhP8Smt5p92nuo1hdxE2VaToynIvCTW9WAouaQG2/eEATXaufF8 oLOgIz3+vnk1QENigR3ySBsghYk6FKPV2F3UdHlzPmmGllfGgBxiW297SXSPwn3MfReK JB0zG9orK2OrwRQynH+bmBgfgOeS7REgcn2uZt4V6UPXkx2XhiNHrg15NQD5FCR2vj6j iY03YM+1pKBLLaQeg6VvMTg+O0zcbXGzIzBouDxXKrs3eYgL0+EDv0TT71i0iN9nT+wZ F/ep7fAlp1H/JmE31g1gNmZ1fhDqZzE2hbLLE5OCUbRlW9K+1SZJzKjijjJFy8DQsCOM i9cQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si21399079oie.41.2020.01.03.05.09.57; Fri, 03 Jan 2020 05:10:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727730AbgACNIy convert rfc822-to-8bit (ORCPT + 99 others); Fri, 3 Jan 2020 08:08:54 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:2227 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727587AbgACNIy (ORCPT ); Fri, 3 Jan 2020 08:08:54 -0500 Received: from lhreml709-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 398379D5653B36C4EBDE; Fri, 3 Jan 2020 13:08:52 +0000 (GMT) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by lhreml709-cah.china.huawei.com (10.201.108.32) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 3 Jan 2020 13:08:51 +0000 Received: from localhost (10.202.226.57) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 3 Jan 2020 13:08:51 +0000 Date: Fri, 3 Jan 2020 13:08:50 +0000 From: Jonathan Cameron To: Brice Goglin CC: , , , , , Keith Busch , , "Rafael J . Wysocki" , , "Andrew Morton" , Dan Williams , Tao Xu , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla Subject: Re: [PATCH V6 0/7] ACPI: Support Generic Initiator proximity domains Message-ID: <20200103130850.00000ace@Huawei.com> In-Reply-To: <13b2cc22-df30-ebee-fb94-cd66d8334507@gmail.com> References: <20191216153809.105463-1-Jonathan.Cameron@huawei.com> <20191218145041.00005a11@Huawei.com> <1867024e-b0c4-c291-7190-262cc4b297a8@gmail.com> <20200102152604.000039f1@Huawei.com> <20200103100920.00006a18@Huawei.com> <13b2cc22-df30-ebee-fb94-cd66d8334507@gmail.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.202.226.57] X-ClientProxiedBy: lhreml730-chm.china.huawei.com (10.201.108.81) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Jan 2020 13:18:59 +0100 Brice Goglin wrote: > Le 03/01/2020 ? 11:09, Jonathan Cameron a ?crit?: > > > > 1) If the memory and processor are in the same domain, that should mean the > > access characteristics within that domain are the best in the system. > > It is possible to have a setup with very low latency access > > from a particular processor but also low bandwidth. Another domain may have > > high bandwidth but long latency. Such systems may occur, but they are probably > > going to not be for 'normal memory the OS can just use'. > > > > 2) If we have a relevant "Memory Proximity Domain Attributes Structure" > > Note this was renamed in acpi 6.3 from "Address Range Structure" as > > it no longer has any address ranges. > > (which are entirely optional btw) that indicates that the memory controller > > for a given memory lies in the proximity domain of the Initiator specified. > > If that happens we ignore cases where hmat says somewhere else is nearer > > via bandwidth and latency. > > > > For case 1) I'm not sure we actually enforce it. > > I think you've hit case 2). > > > > Removing the address range structures should work, or as you say you can > > move that memory into separate memory nodes. > > > I removed the "processor proximity domain valid" flag from the address > range structure of node2, and the GI is now its access0 initiator > instead of node2 itself. Looks like it confirms I was in case 2) > > Thanks > > Brice Cool. I was wondering if that change would work fine. It is a somewhat crazy setup so I didn't have an equivalent in my test set. Sounds like all is working as expected. Thanks, Jonathan