Received: by 10.223.185.116 with SMTP id b49csp9038527wrg; Fri, 2 Mar 2018 12:11:22 -0800 (PST) X-Google-Smtp-Source: AG47ELsuF3glbLG42o+khkIQm6DDCSdV87o6RuYmTsACkNFxHpAMp8W3mggGamAjfnJOV8gNBXax X-Received: by 10.101.97.207 with SMTP id j15mr5381033pgv.266.1520021482180; Fri, 02 Mar 2018 12:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520021482; cv=none; d=google.com; s=arc-20160816; b=o4chbgodxi8I7xIqCEUJkjhMFhnF3jm46uejQsg81jx5iGIat+PEpOCIE+oRRalJ1M YEgFAXlfCsjeABJSQuXrjHXPTpqPiakMNJNQMN+K3IsnGZt+4zlvrtbO6BpddeHdw8y7 9g/ar6oU4QOAyq/nLVEpPK/V+1UEQj3fX1lutUvKTF09AMANrfeHvyNJvlLI6B35rLHm R30e5njFChDTsxFOjO8Kozo9Wae3fqFNKSxG2Ic1g84GiepemW/A/jxx+ALdmanL8C2M 6drF0WJQMlPW+HR+atLWUTKW5MxD+nLXerUwRKZJnG6Gfh3xziCNx9sLwRZXmXHKcx53 1juQ== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=DYwXvZWFxDAqM3P/vxcxDjvmRh8oCvsZVqAC96pVxMU=; b=hEimQZqeA9hoHSzc86vRXQGkw/Dcs8tJRat9fOmXwj9G/gZRP1/7KSg47ahtxCNQ/M z2SJtlvZtwAlHKtzjol5Y2841Qq0j9e6GBw1UfLj9EytdcvR5aM08HDd0qv2WR8iclVl fUBUZls/htOEMMJ8+qAILhdge3QMsGsF02KIcrPmEHfc5ZO+iJL3TlvcmHWUnfpQ3mX1 6ctkKwPtn+CrloUwoTWWlru4To8J0aHLUnFobJUseGud1t6T8d6Lya8fF7vfata52wpF 0X32IC/oL4TkIxSx/S68lcIcC+8abxbNUeMjfR7HsazmQ4eCdq576DOKIET7SPWM/NFQ xKSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Lf6pt/Ss; dkim=fail header.i=@linux-foundation.org header.s=google header.b=IUk+h7OV; 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 t12si4417144pgb.190.2018.03.02.12.11.06; Fri, 02 Mar 2018 12:11:22 -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=fail header.i=@gmail.com header.s=20161025 header.b=Lf6pt/Ss; dkim=fail header.i=@linux-foundation.org header.s=google header.b=IUk+h7OV; 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 S1034531AbeCBQ5l (ORCPT + 99 others); Fri, 2 Mar 2018 11:57:41 -0500 Received: from mail-it0-f45.google.com ([209.85.214.45]:33428 "EHLO mail-it0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034460AbeCBQ5i (ORCPT ); Fri, 2 Mar 2018 11:57:38 -0500 Received: by mail-it0-f45.google.com with SMTP id w19so2591058ite.0; Fri, 02 Mar 2018 08:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=DYwXvZWFxDAqM3P/vxcxDjvmRh8oCvsZVqAC96pVxMU=; b=Lf6pt/SsvK8Mhd8K9RNDoOvC4esz+xP+DM6lNBaloDfjJ559EAxJqV8XMGsptz3J/F 4VzJ80oUVmNp/DQMqL6nmwWGHGuz2N9mLhOMeiyr70OgTUD9WqKR4Z7UheciQxy/hgF5 ALHkdA62mZ+sb8BjxAm6BPJiz1QcdPgv0jXIxUmbD9ykQZqpeMUlA2HgpRzH1bKtVvah G/ia/XNoyPLpg+KfN6rhASB3btzwXtsJhbGbeWoOrxSbEQhEg+v2tCFveJuyhtDIYvw7 HnpjvYUTEWoDEaddNk7+oZ6opsuLViot6VDbl3coE9PWlke/IHwLZvla83soUmaEvFkN Zz3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=DYwXvZWFxDAqM3P/vxcxDjvmRh8oCvsZVqAC96pVxMU=; b=IUk+h7OVzjKaxzSixaTNqY942EN+aJFgo0cLgRkk+rtfgqEhreAWGS5A44Gu/KgyVV 4izoNY5sfviAlsfozv+Op2yAwMrla9vJWg8b+WC8FhgCBNF3k5q3isONMEAC9ffg/6Gn hB9Wjq8FTSZ5PX05qFAh1p7M2XTQdfVUG9Kgc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=DYwXvZWFxDAqM3P/vxcxDjvmRh8oCvsZVqAC96pVxMU=; b=jqzA2Upya65uhLcZBEAOPQ/tnZpmf6tMA3TYWWlf6IaCnuX1j5MrcTv9686EkK41Vb hdUeoFcXLSnizphJuCi9PfuCcwOppky3u0qIAOyykefKdtktFX0NUjQphXxRQH7diBtQ wDpD48RPInvKaBKuV7PLlL0wzJZQ6x1H7Gkat030siqQFjcltP9hF5wk5mqTBWstbTBA VDGPULaHyJ7/arAd0qCzQv0g1cWf+5Qhy7BCmQzjymMRMCRQuhIZvz1dfYDH5fDg1cL0 YDeNMWcuq6U+y+e0nQsA5yJSvp3YIqfCSVcX0zu4t/2NFT0zgItivYJkV9XmPUb4IPMt ZHAQ== X-Gm-Message-State: AElRT7Hs3JuRbFFmPN2+a/FBlLE93Y7wuB5wtCE2AiE8tYN7DNSreU7a AdRFkRowMAux4mMQX1USBX22J4ozlDDeMeiZXKk= X-Received: by 10.36.89.137 with SMTP id p131mr3253451itb.113.1520009857452; Fri, 02 Mar 2018 08:57:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Fri, 2 Mar 2018 08:57:36 -0800 (PST) In-Reply-To: <1520010446.2693.19.camel@hpe.com> References: <20180228234006.21093-1-logang@deltatee.com> <1519876489.4592.3.camel@kernel.crashing.org> <1519876569.4592.4.camel@au1.ibm.com> <1519936477.4592.23.camel@au1.ibm.com> <1519936815.4592.25.camel@au1.ibm.com> <20180301205315.GJ19007@ziepe.ca> <1519942012.4592.31.camel@au1.ibm.com> <1519943658.4592.34.camel@kernel.crashing.org> <1520010446.2693.19.camel@hpe.com> From: Linus Torvalds Date: Fri, 2 Mar 2018 08:57:36 -0800 X-Google-Sender-Auth: iwq_mfgIrCvK5oFk5le1tRx0Ctk Message-ID: Subject: Re: [PATCH v2 00/10] Copy Offload in NVMe Fabrics with P2P PCI Memory To: "Kani, Toshi" Cc: "benh@kernel.crashing.org" , "linux-kernel@vger.kernel.org" , "alex.williamson@redhat.com" , "linux-block@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "hch@lst.de" , "axboe@kernel.dk" , "linux-nvdimm@lists.01.org" , "jglisse@redhat.com" , "linux-nvme@lists.infradead.org" , "maxg@mellanox.com" , "linux-pci@vger.kernel.org" , "keith.busch@intel.com" , "oliveroh@au1.ibm.com" , "jgg@ziepe.ca" , "bhelgaas@google.com" 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, Mar 2, 2018 at 8:22 AM, Kani, Toshi wrote: > > FWIW, this thing is called MTRRs on x86, which are initialized by BIOS. No. Or rather, that's simply just another (small) part of it all - and an architected and documented one at that. Like the page table caching entries, the memory type range registers are really just "secondary information". They don't actually select between PCIe and RAM, they just affect the behavior on top of that. The really nitty-gritty stuff is not architected, and generally not documented outside (possibly) the BIOS writer's guide that is not made public. Those magical registers contain details like how the DRAM is interleaved (if it is), what the timings are, where which memory controller handles which memory range, and what are goes to PCIe etc. Basically all the actual *steering* information is very much hidden away from the kernel (and often from the BIOS too). The parts we see at a higher level are just tuning and tweaks. Note: the details differ _enormously_ between different chips. The setup can be very different, with things like Knights Landing having the external cache that can also act as local memory that isn't a cache but maps at a different physical address instead etc. That's the kind of steering I'm talking about - at a low level how physical addresses get mapped to different cache partitions, memory controllers, or to the IO system etc. Linus