Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp992693imu; Fri, 11 Jan 2019 12:53:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN6UDrvvlEn1aE44D81DPUGT5T5oZZWRyxBQK1imM3qpE+jZGUfzgJkLSuG2HFEbCk2LogCS X-Received: by 2002:a63:e21:: with SMTP id d33mr14684126pgl.272.1547240019931; Fri, 11 Jan 2019 12:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240019; cv=none; d=google.com; s=arc-20160816; b=ZrNwAoNdOXgsUVPIgtsLjftXq392v7MdYO6M/kgzcFK32MePR66hXTp1qlnSc7l/iR 7iZPLFJu4QmCGJuW8uFdpL9dpwtG8FwVs3xzAV4tGWQwI7LMniPScvvoekxCvN30yMAo /Zb9ve1jzbZmh8kvuvuZpvk/lunQUlPb7RVDRbG+v6DgCZAEq4tW75oawZYh76q+Vp3b lSLkfRsnclrWTjU/PJj84l40v1Fol1zt49UMTchVGTqqTTb9fEXeVjHkmielZp9utakr F7PBdwVymo7nyfaRXIyn4Q2HMI9EeYhWKzlsYm4IlswLMCVdfv+sxetzwN5N1WeRZ83V sZZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oAkInDyjniJpNrxeYSro+8Xc80fV7Ji6IK0jrUn2go4=; b=zxOUT4KUnPx3Ajcal11EUFdzrHoFUalwN9Wo0uwQVpA2mBK6E+WamtPUgy0Pa/nP+8 IGtiq0Ux7gjz1SNnwQiUSQ3DymYaWrbv0J4cGsRJaYyqV1RTqm3ttTEhQHYu14QF9ayr k45rClB+Z8BH3kbL17MHnoa+jSq0T4Wlmv70V0hhQaJUjqAqcLS9PTf9sRJYNfeAOnWv V4AREdTz9nYJ2U2KbiX1tcSC58GzNrO04jd3/tRkYKC1G0y0A5eIGw152oVINfZTEFRu QPkLx5UCw/79kUfVFag5A2xCShAtje8iQMzhtiSENIZMCWniFv4Qh4EsNoxThiM9uW4e YNxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=GynMm4CM; 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 j191si2766265pgd.31.2019.01.11.12.53.25; Fri, 11 Jan 2019 12:53:39 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=GynMm4CM; 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 S2388030AbfAKQZb (ORCPT + 99 others); Fri, 11 Jan 2019 11:25:31 -0500 Received: from mail-ot1-f52.google.com ([209.85.210.52]:32827 "EHLO mail-ot1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731099AbfAKQZa (ORCPT ); Fri, 11 Jan 2019 11:25:30 -0500 Received: by mail-ot1-f52.google.com with SMTP id i20so13635677otl.0 for ; Fri, 11 Jan 2019 08:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oAkInDyjniJpNrxeYSro+8Xc80fV7Ji6IK0jrUn2go4=; b=GynMm4CMejh1CwRzf9A5mk1pWbr1Kd7YN4HkcRh0SLOuwUfT8P8jdMFuhN10SBogUJ Do8PjmFDOBpbAaYUFfVreWWY4Vgd0zdGOIKela17q10Ujo05+Juu0zJu2oUbdqe4RD+g sbnRbAiOh8+QLsKzjcjrJi4VcPYh4ihsYH1icy+WmDYokiV+SArrHsheCiXshTTLeN6A +WqHnY5YbXvc7zG3ESPYISgBEFRj3jFvnoXvTDWs8Wp8L4bVEwEZPgykBGTVHxmvBOdJ RJ/lUd4zYBO8AJQKr6bvpJz/A9OHAKDNIpuf6X5cc2hm8eBpN3LdvxIbfmWQJERBTydQ uxoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oAkInDyjniJpNrxeYSro+8Xc80fV7Ji6IK0jrUn2go4=; b=Up8pwKPAtKT+B2EOIj0DY1W8+VRIY5HIbu5oKsPhtQdHr6lmie/xOPUMdKqBhmUNOl 2ehWDgQ7ofLfrExUn3hw9KIDIb0jWLq/VeIZ2d6vby8MALsFbFh2f983ClYSUfRgwAuX 8D0rTphmqd3rTXZaS/HiMIRJjoaVPdqz73qibLj5PFJLeMNWhDJUTNeJ46+aKahtrMpX J8EB9VC9eRJmjT+oNt7KUNl3B7pSnp0SrvlWiyYamNnjMxP6R+/LaR3XjPymxQcI8Fvp TGbkcyOeKuzyxsMGcisPieCZP/D06zC23MyDBQavmzh7dJOG8hrzgBJrmsjdzy/+dwVk QCkg== X-Gm-Message-State: AJcUukcPzZeINcHHvaUTBkbe5za55j/YFQFz0tewh0Eemt8pQl2YcDkv ultfxuXj6X4GIhCDxE4DR0tq6XeR5YEQCw/lU5D6EQ== X-Received: by 2002:a9d:6a50:: with SMTP id h16mr9413162otn.95.1547223929462; Fri, 11 Jan 2019 08:25:29 -0800 (PST) MIME-Version: 1.0 References: <20190109174341.19818-1-keith.busch@intel.com> <20190109174341.19818-8-keith.busch@intel.com> <87y37sit8x.fsf@linux.ibm.com> <20190110173016.GC21095@localhost.localdomain> <20190111113238.000068b0@huawei.com> <20190111155828.GD21095@localhost.localdomain> In-Reply-To: <20190111155828.GD21095@localhost.localdomain> From: Dan Williams Date: Fri, 11 Jan 2019 08:25:17 -0800 Message-ID: Subject: Re: [PATCHv3 07/13] node: Add heterogenous memory access attributes To: Keith Busch Cc: Jonathan Cameron , "Aneesh Kumar K.V" , Linux Kernel Mailing List , Linux ACPI , Linux MM , Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 7:59 AM Keith Busch wrote: > > On Fri, Jan 11, 2019 at 11:32:38AM +0000, Jonathan Cameron wrote: > > On Thu, 10 Jan 2019 10:30:17 -0700 > > Keith Busch wrote: > > > I am not aware of a real platform that has an initiator-target pair with > > > better latency but worse bandwidth than any different initiator paired to > > > the same target. If such a thing exists and a subsystem wants to report > > > that, you can register any arbitrary number of groups or classes and > > > rank them according to how you want them presented. > > > > > > > It's certainly possible if you are trading off against pin count by going > > out of the soc on a serial bus for some large SCM pool and also have a local > > SCM pool on a ddr 'like' bus or just ddr on fairly small number of channels > > (because some one didn't put memory on all of them). > > We will see this fairly soon in production parts. > > > > So need an 'ordering' choice for this circumstance that is predictable. > > As long as the reported memory target access attributes are accurate for > the initiator nodes listed under an access class, I'm not sure that it > matters what order you use. All the information needed to make a choice > on which pair to use is available, and the order is just an implementation > specific decision. Agree with Keith. If the performance is differentiated it will be in a separate class. A hierarchy of classes is not enforced by the interface, but it tries to advertise some semblance of the "best" initiator pairing for a given target by default with the flexibility to go more complex if the situation arises. As was seen in the SCSI specification efforts to advertise all manner of cache hinting the kernel community discovered that only a small fraction of what hardware vendors thought mattered actually demonstrated value in practice. That experience is instructive that the kernel interfaces for hardware performance hints should prioritize what makes sense for the kernel and applications generally, not necessarily every conceivable performance detail that a hardware platform chooses to expose, or niche applications might consume.