Received: by 10.223.164.202 with SMTP id h10csp317659wrb; Fri, 17 Nov 2017 00:51:41 -0800 (PST) X-Google-Smtp-Source: AGs4zMaDL5lONjH4Hl/21eDJIaAgiIFFg0BWoormPwQyz3wZQle2kc/nRI8V4HHSP9oJi2ykhqEV X-Received: by 10.101.86.196 with SMTP id w4mr4509706pgs.335.1510908701808; Fri, 17 Nov 2017 00:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510908701; cv=none; d=google.com; s=arc-20160816; b=bZneHq+pgZc9U1wYxfLe8UvX9q6CIXWVEbGICNWkbyjf9wHuCUJ7aLHDIeoAq8k6g4 JgI+YiLO3YIyToG/WnuH2kU6M1cKqEGH4B5Phi7XEkjbEg2H4jRnOfcyT2CJBY7NtFPb Y2qa41AFGFSL3vFx7Cd90Wn1TBJlgeS+K+8kMTeFUZG0XWlKlobURrnlr194VcaUZxiX DcQ+v1bfKvbdY4IhuhLQIHs4lcS6TQ3jPm3Y6uD3JVdbtZww0fnFr9R7WqMyTlv2GnGg 17lGnjPwfnrj8VxWAgUx5G/2P/M6Vr5P8BXsgspJtgjOPf/UuNdXn39Y+ytVYT0lTGIy F1eQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=OfPWFqHIohpEmVvl858qyWTL9SyMuLme73mQzA7sNns=; b=rBqLPSINdwBL9057h33RfwGjhbq/2lNQRTqWES7j9vD4IFv7p3LVqoMw0XneF1i3/8 z6keJfv76MUd7WSX4YYxSEYVjDIz/0HdUJh1op+joS09u1bE1UtxGgOvdioyotP37bKL W3r8U8T37v1mAh7/gVk0mCeWMOxxplUJCPRNDEJojZMtBuG+HfOUzdQOMAWELfloupfR L61aaA+NuSZhBNxCJJ+umf3dPHd46PhyWzRPw68bMciuu3d9v2JOILaM+3n40W484Mc5 GQaFsVL2MrONb7Lnv6NJYN7LnttkztkD+IWEqkqm3yQMiCsEmtrkZ7h9VzF6f1vSKUIz Lung== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si2433623pls.322.2017.11.17.00.51.29; Fri, 17 Nov 2017 00:51: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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936724AbdKPXMF (ORCPT + 92 others); Thu, 16 Nov 2017 18:12:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33804 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936386AbdKPXL6 (ORCPT ); Thu, 16 Nov 2017 18:11:58 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B246F61467; Thu, 16 Nov 2017 23:11:58 +0000 (UTC) Received: from redhat.com (ovpn-120-144.rdu2.redhat.com [10.10.120.144]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7883B600D1; Thu, 16 Nov 2017 23:11:57 +0000 (UTC) Date: Thu, 16 Nov 2017 18:11:55 -0500 From: Jerome Glisse To: chetan L Cc: Bob Liu , David Nellans , John Hubbard , Balbir Singh , "linux-kernel@vger.kernel.org" , Michal Hocko , Linux MM , Dan Williams , Andrew Morton , linux-accelerators@lists.ozlabs.org Subject: Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5 Message-ID: <20171116231155.GA5640@redhat.com> References: <0d7273c3-181c-6d68-3c5f-fa518e782374@huawei.com> <20170930224927.GC6775@redhat.com> <20171012153721.GA2986@redhat.com> <20171116024425.GC2934@redhat.com> <20171116212904.GA4823@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 16 Nov 2017 23:11:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 16, 2017 at 02:41:39PM -0800, chetan L wrote: > On Thu, Nov 16, 2017 at 1:29 PM, Jerome Glisse wrote: > > > > > For the NUMA discussion this is related to CPU less node ie not wanting > > to add any more CPU less node (node with only memory) and they are other > > aspect too. For instance you do not necessarily have good informations > > from the device to know if a page is access a lot by the device (this > > kind of information is often only accessible by the device driver). Thus > > @Jerome - one comment w.r.t 'do not necessarily have good info on > device access'. > > So you could be assuming a few things here :). CCIX extends the CPU > complex's coherency domain(it is now a single/unified coherency > domain). The CCIX-EP (lets say an accelerator/XPU or a NIC or a combo) > is now a true peer w.r.t the host-numa-node(s) (aka 1st class > citizen). I don't know how much info was revealed at the latest ARM > techcon where CCIX was presented. So I cannot divulge any further > details until I see that slide deck. However, you can safely assume > that the host will have *all* the info w.r.t the device-access and > vice-versa. I do have access to CCIX, last time i read the draft, few month ago, my understanding was that there is no mechanism to differentiate between device behind the root complex. So when you do autonuma you don't know which of your CCIX device is the one faulting hence you can not keep track of that inside struct page for autonuma (ignoring the issue with the lack of CPUID for each device). This is what i mean by NUMA is not a good fit as it is. Yes everything is cache coherent and all, but that is just a small part of what is needed to make autonuma as it is today work. J�r�me From 1584296199549362830@xxx Fri Nov 17 07:09:55 +0000 2017 X-GM-THRID: 1572843623662560165 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread