Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1726301

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

From Bob Liu <liubo95@huawei.com>
Newsgroups linux.kernel
Subject Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3
Date 2017-09-05 03:20 +0200
Message-ID <umaGZ-4tx-3@gated-at.bofh.it> (permalink)
References <ufgxP-5ua-3@gated-at.bofh.it> <ufgxQ-5ua-27@gated-at.bofh.it> <ulQ5A-9b-11@gated-at.bofh.it> <um1X4-7my-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2017/9/4 23:51, Jerome Glisse wrote:
> On Mon, Sep 04, 2017 at 11:09:14AM +0800, Bob Liu wrote:
>> On 2017/8/17 8:05, Jérôme Glisse wrote:
>>> Unlike unaddressable memory, coherent device memory has a real
>>> resource associated with it on the system (as CPU can address
>>> it). Add a new helper to hotplug such memory within the HMM
>>> framework.
>>>
>>
>> Got an new question, coherent device( e.g CCIX) memory are likely reported to OS 
>> through ACPI and recognized as NUMA memory node.
>> Then how can their memory be captured and managed by HMM framework?
>>
> 
> Only platform that has such memory today is powerpc and it is not reported
> as regular memory by the firmware hence why they need this helper.
> 
> I don't think anyone has defined anything yet for x86 and acpi. As this is

Not yet, but now the ACPI spec has Heterogeneous Memory Attribute
Table (HMAT) table defined in ACPI 6.2.
The HMAT can cover CPU-addressable memory types(though not non-cache coherent on-device memory).

Ross from Intel already done some work on this, see:
https://lwn.net/Articles/724562/

arm64 supports APCI also, there is likely more this kind of device when CCIX is out
(should be very soon if on schedule).

> memory on PCIE like interface then i don't expect it to be reported as NUMA
> memory node but as io range like any regular PCIE resources. Device driver
> through capabilities flags would then figure out if the link between the
> device and CPU is CCIX capable if so it can use this helper to hotplug it
> as device memory.
> 

From my point of view,  Cache coherent device memory will popular soon and reported through ACPI/UEFI.
Extending NUMA policy still sounds more reasonable to me.

--
Thanks,
Bob Liu

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Bob Liu <liubo95@huawei.com> - 2017-09-04 05:20 +0200
  Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-04 18:00 +0200
    Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Bob Liu <liubo95@huawei.com> - 2017-09-05 03:20 +0200
      Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-05 04:40 +0200
        Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Bob Liu <liubo95@huawei.com> - 2017-09-05 06:00 +0200
          Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-05 16:00 +0200
            Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Dan Williams <dan.j.williams@intel.com> - 2017-09-05 18:20 +0200
            Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Ross Zwisler <ross.zwisler@linux.intel.com> - 2017-09-05 21:10 +0200
              Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-05 21:30 +0200
                Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Ross Zwisler <ross.zwisler@linux.intel.com> - 2017-09-08 21:50 +0200
                Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-08 22:40 +0200
        Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Ross Zwisler <ross.zwisler@linux.intel.com> - 2017-09-05 21:00 +0200
          Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Bob Liu <liubo95@huawei.com> - 2017-09-06 03:30 +0200
            Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-06 04:20 +0200
              Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Bob Liu <liubo95@huawei.com> - 2017-09-07 04:20 +0200
                Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-07 19:10 +0200
                Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Jerome Glisse <jglisse@redhat.com> - 2017-09-07 19:30 +0200
                Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Bob Liu <liubo95@huawei.com> - 2017-09-08 04:10 +0200
                Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Dan Williams <dan.j.williams@intel.com> - 2017-09-08 22:50 +0200
    Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory  region v3 Balbir Singh <bsingharora@gmail.com> - 2017-09-05 05:40 +0200

csiph-web