Re: [PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes

2019-01-18 Thread Keith Busch
On Thu, Jan 17, 2019 at 12:41:19PM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 16, 2019 at 6:59 PM Keith Busch wrote: > > > > Add entries for memory initiator and target node class attributes. > > > > Signed-off-by: Keith Busch > > I would recommend combi

Re: [PATCHv4 00/13] Heterogeneuos memory node attributes

2019-01-17 Thread Keith Busch
On Thu, Jan 17, 2019 at 10:18:35AM -0800, Jonathan Cameron wrote: > I've been having a play with various hand constructed HMAT tables to allow > me to try breaking them in all sorts of ways. > > Mostly working as expected. > > Two places I am so far unsure on... > > 1. Concept of 'best' is not

Re: [PATCH 0/4] Allow persistent memory to be used like normal RAM

2019-01-17 Thread Keith Busch
On Thu, Jan 17, 2019 at 12:20:06PM -0500, Jeff Moyer wrote: > Keith Busch writes: > > On Thu, Jan 17, 2019 at 11:29:10AM -0500, Jeff Moyer wrote: > >> Dave Hansen writes: > >> > Persistent memory is cool. But, currently, you have to rewrite > >> &

Re: [PATCH 0/4] Allow persistent memory to be used like normal RAM

2019-01-17 Thread Keith Busch
On Thu, Jan 17, 2019 at 11:29:10AM -0500, Jeff Moyer wrote: > Dave Hansen writes: > > Persistent memory is cool. But, currently, you have to rewrite > > your applications to use it. Wouldn't it be cool if you could > > just have it show up in your system like normal RAM and get to > > it like a

Re: [PATCHv4 00/13] Heterogeneuos memory node attributes

2019-01-17 Thread Keith Busch
On Thu, Jan 17, 2019 at 11:58:21PM +1100, Balbir Singh wrote: > On Wed, Jan 16, 2019 at 10:57:51AM -0700, Keith Busch wrote: > > It had previously been difficult to describe these setups as memory > > rangers were generally lumped into the NUMA node of the CPUs. New > > pla

[PATCHv4 07/13] node: Add heterogenous memory access attributes

2019-01-16 Thread Keith Busch
re. When a subsystem makes use of this interface, initiators of a lower class number, "Z", have better performance relative to higher class numbers. When provided, class 0 is the highest performing access class. Signed-off-by: Keith Busch --- drivers/base/Kconfig | 8 +

[PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes

2019-01-16 Thread Keith Busch
Add entries for memory initiator and target node class attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/stable/sysfs-devices-node b

[PATCHv4 04/13] node: Link memory nodes to their compute nodes

2019-01-16 Thread Keith Busch
class0/target_nodelist Y # cat /sys/devices/system/node/nodeY/class0/initiator_nodelist X Signed-off-by: Keith Busch --- drivers/base/node.c | 127 ++- include/linux/node.h | 6 ++- 2 files changed, 131 insertions(+), 2 deletions(-) diff

[PATCHv4 00/13] Heterogeneuos memory node attributes

2019-01-16 Thread Keith Busch
the attributes from such systems that are useful for applications to know about, and readily usable with existing tools and libraries. Keith Busch (13): acpi: Create subtable parsing infrastructure acpi: Add HMAT to generic parsing tables acpi/hmat: Parse and report heterogeneous memory node

[PATCHv4 08/13] Documentation/ABI: Add node performance attributes

2019-01-16 Thread Keith Busch
Add descriptions for memory class initiator performance access attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 28 1 file changed, 28 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation

[PATCHv4 10/13] node: Add memory caching attributes

2019-01-16 Thread Keith Busch
are the cache size, the line size, associativity, and write back policy. Signed-off-by: Keith Busch --- drivers/base/node.c | 142 +++ include/linux/node.h | 39 ++ 2 files changed, 181 insertions(+) diff --git a/drivers/base/node.c b

[PATCHv4 01/13] acpi: Create subtable parsing infrastructure

2019-01-16 Thread Keith Busch
parsing the entries array may be more reused for all ACPI system tables and the common code doesn't need to be duplicated. Reviewed-by: Rafael J. Wysocki Cc: Dan Williams Signed-off-by: Keith Busch --- arch/arm64/kernel/acpi_numa.c | 2 +- arch/arm64/kernel/smp.c

[PATCHv4 13/13] doc/mm: New documentation for memory performance

2019-01-16 Thread Keith Busch
to query this information. Reviewed-by: Mike Rapoport Signed-off-by: Keith Busch --- Documentation/admin-guide/mm/numaperf.rst | 184 ++ 1 file changed, 184 insertions(+) create mode 100644 Documentation/admin-guide/mm/numaperf.rst diff --git a/Documentation/admin-guide

[PATCHv4 02/13] acpi: Add HMAT to generic parsing tables

2019-01-16 Thread Keith Busch
The Heterogeneous Memory Attribute Table (HMAT) header has different field lengths than the existing parsing uses. Add the HMAT type to the parsing rules so it may be generically parsed. Cc: Dan Williams Reviewed-by: Rafael J. Wysocki Signed-off-by: Keith Busch --- drivers/acpi/tables.c | 9

[PATCHv4 12/13] acpi/hmat: Register memory side cache attributes

2019-01-16 Thread Keith Busch
Register memory side cache attributes with the memory's node if HMAT provides the side cache iniformation table. Signed-off-by: Keith Busch --- drivers/acpi/hmat/hmat.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/acpi/hmat/hmat.c b/drivers/acpi

[PATCHv4 09/13] acpi/hmat: Register performance attributes

2019-01-16 Thread Keith Busch
Save the best performace access attributes and register these with the memory's node if HMAT provides the locality table. While HMAT does make it possible to know performance for all possible initiator-target pairings, we export only the best pairings at this time. Signed-off-by: Keith Busch

[PATCHv4 11/13] Documentation/ABI: Add node cache attributes

2019-01-16 Thread Keith Busch
Add the attributes for the system memory side caches. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 34 + 1 file changed, 34 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation/ABI/stable/sysfs

[PATCHv4 03/13] acpi/hmat: Parse and report heterogeneous memory

2019-01-16 Thread Keith Busch
Systems may provide different memory types and export this information in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse these tables provided by the platform and report the memory access and caching attributes. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 1

[PATCHv4 06/13] acpi/hmat: Register processor domain to its memory

2019-01-16 Thread Keith Busch
requires valid address ranges have an equivalent SRAT entry, verify each memory target satisfies this requirement. Signed-off-by: Keith Busch --- drivers/acpi/hmat/hmat.c | 143 --- 1 file changed, 136 insertions(+), 7 deletions(-) diff --git a/drivers

Re: [PATCHv3 03/13] acpi/hmat: Parse and report heterogeneous memory

2019-01-15 Thread Keith Busch
On Thu, Jan 10, 2019 at 07:42:46AM -0800, Rafael J. Wysocki wrote: > On Wed, Jan 9, 2019 at 6:47 PM Keith Busch wrote: > > > > Systems may provide different memory types and export this information > > in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse thes

Re: Please remove warnings from msi.c:1269 and blk-mq-pci.c:52 some day

2019-01-14 Thread Keith Busch
[+linux-n...@lists.infradead.org] On Mon, Jan 14, 2019 at 10:03:39AM -0700, Keith Busch wrote: > [+Ming] > On Mon, Jan 14, 2019 at 08:31:45AM -0600, Bjorn Helgaas wrote: > > [+cc Dou, Jens, Thomas, Christoph, linux-pci, LKML] > > > > On Sun, Jan 13, 2019 at 11:24 PM fin

Re: Please remove warnings from msi.c:1269 and blk-mq-pci.c:52 some day

2019-01-14 Thread Keith Busch
[+Ming] On Mon, Jan 14, 2019 at 08:31:45AM -0600, Bjorn Helgaas wrote: > [+cc Dou, Jens, Thomas, Christoph, linux-pci, LKML] > > On Sun, Jan 13, 2019 at 11:24 PM fin4478 fin4478 wrote: > > > > Hi, > > > > A regression from the 4.20 kernel: I have the Asgard 256GB nvme drive > > and my custom

Re: [PATCHv3 13/13] doc/mm: New documentation for memory performance

2019-01-14 Thread Keith Busch
On Sun, Jan 13, 2019 at 01:42:30PM +0200, Mike Rapoport wrote: > There are a couple of nitpicks below, otherwise > > Reviewed-by: Mike Rapoport Thank you for the detailed review. I've incorporated all your recommmendations for the next revision.

Re: [PATCHv3 08/13] Documentation/ABI: Add node performance attributes

2019-01-14 Thread Keith Busch
On Mon, Jan 14, 2019 at 12:10:12AM +0100, Pavel Machek wrote: > On Wed 2019-01-09 10:43:36, Keith Busch wrote: > > + This node's write latency in nanosecondss available to memory > > + initiators in nodes found in this class's > > initiators_nodelist. >

Re: [PATCHv3 07/13] node: Add heterogenous memory access attributes

2019-01-11 Thread Keith Busch
On Fri, Jan 11, 2019 at 11:32:38AM +, 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 pair

Re: [PATCHv3 07/13] node: Add heterogenous memory access attributes

2019-01-10 Thread Keith Busch
On Thu, Jan 10, 2019 at 06:07:02PM +0530, Aneesh Kumar K.V wrote: > Keith Busch writes: > > > Heterogeneous memory systems provide memory nodes with different latency > > and bandwidth performance attributes. Provide a new kernel interface for > > subsystems to regis

Re: [PATCH] nvme: fix out of bounds access in nvme_cqe_pending

2019-01-10 Thread Keith Busch
On Wed, Jan 09, 2019 at 05:54:59PM -0800, Yao HongBo wrote: > On 1/10/2019 2:39 AM, Christoph Hellwig wrote: > > On Mon, Jan 07, 2019 at 10:22:07AM +0800, Hongbo Yao wrote: > >> There is an out of bounds array access in nvme_cqe_peding(). > >> > >> When enable irq_thread for nvme interrupt, there

[PATCHv3 10/13] node: Add memory caching attributes

2019-01-09 Thread Keith Busch
are the cache size, the line size, associativity, and write back policy. Signed-off-by: Keith Busch --- drivers/base/node.c | 142 +++ include/linux/node.h | 39 ++ 2 files changed, 181 insertions(+) diff --git a/drivers/base/node.c b

[PATCHv3 09/13] acpi/hmat: Register performance attributes

2019-01-09 Thread Keith Busch
Save the best performace access attributes and register these with the memory's node if HMAT provides the locality table. While HMAT does make it possible to know performance for all possible initiator-target pairings, we export only the best pairings at this time. Signed-off-by: Keith Busch

[PATCHv3 04/13] node: Link memory nodes to their compute nodes

2019-01-09 Thread Keith Busch
system/node/nodeX/class0/target_nodelist Y # cat /sys/devices/system/node/nodeY/class0/initiator_nodelist X Signed-off-by: Keith Busch --- drivers/base/node.c | 127 ++- include/linux/node.h | 6 ++- 2 files changed, 131 insertions(+), 2 del

[PATCHv3 07/13] node: Add heterogenous memory access attributes

2019-01-09 Thread Keith Busch
re. When a subsystem makes use of this interface, initiators of a lower class number, "Z", have better performance relative to higher class numbers. When provided, class 0 is the highest performing access class. Signed-off-by: Keith Busch --- drivers/base/Kconfig | 8 +

[PATCHv3 05/13] Documentation/ABI: Add new node sysfs attributes

2019-01-09 Thread Keith Busch
Add entries for memory initiator and target node class attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/stable/sysfs-devices-node b

[PATCHv3 12/13] acpi/hmat: Register memory side cache attributes

2019-01-09 Thread Keith Busch
Register memory side cache attributes with the memory's node if HMAT provides the side cache iniformation table. Signed-off-by: Keith Busch --- drivers/acpi/hmat.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/acpi/hmat.c b/drivers/acpi/hmat.c

[PATCHv3 11/13] Documentation/ABI: Add node cache attributes

2019-01-09 Thread Keith Busch
Add the attributes for the system memory side caches. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 34 + 1 file changed, 34 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation/ABI/stable/sysfs

[PATCHv3 06/13] acpi/hmat: Register processor domain to its memory

2019-01-09 Thread Keith Busch
requires valid address ranges have an equivalent SRAT entry, verify each memory target satisfies this requirement. Signed-off-by: Keith Busch --- drivers/acpi/hmat.c | 143 +--- 1 file changed, 136 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCHv3 01/13] acpi: Create subtable parsing infrastructure

2019-01-09 Thread Keith Busch
parsing the entries array may be more reused for all ACPI system tables and the common code doesn't need to be duplicated. Reviewed-by: Rafael J. Wysocki Cc: Dan Williams Signed-off-by: Keith Busch --- arch/arm64/kernel/acpi_numa.c | 2 +- arch/arm64/kernel/smp.c

[PATCHv3 08/13] Documentation/ABI: Add node performance attributes

2019-01-09 Thread Keith Busch
Add descriptions for memory class initiator performance access attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 28 1 file changed, 28 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation

[PATCHv3 00/13] Heterogeneuos memory node attributes

2019-01-09 Thread Keith Busch
est performing class, "class0". Various changelog and documentation updates and clarifications. Keith Busch (13): acpi: Create subtable parsing infrastructure acpi: Add HMAT to generic parsing tables acpi/hmat: Parse and report heterogeneous memory node: Link memory nodes to their com

[PATCHv3 02/13] acpi: Add HMAT to generic parsing tables

2019-01-09 Thread Keith Busch
The Heterogeneous Memory Attribute Table (HMAT) header has different field lengths than the existing parsing uses. Add the HMAT type to the parsing rules so it may be generically parsed. Cc: Dan Williams Signed-off-by: Keith Busch --- drivers/acpi/tables.c | 9 + include/linux/acpi.h

[PATCHv3 13/13] doc/mm: New documentation for memory performance

2019-01-09 Thread Keith Busch
to query this information. Signed-off-by: Keith Busch --- Documentation/admin-guide/mm/numaperf.rst | 184 ++ 1 file changed, 184 insertions(+) create mode 100644 Documentation/admin-guide/mm/numaperf.rst diff --git a/Documentation/admin-guide/mm/numaperf.rst b

[PATCHv3 03/13] acpi/hmat: Parse and report heterogeneous memory

2019-01-09 Thread Keith Busch
Systems may provide different memory types and export this information in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse these tables provided by the platform and report the memory access and caching attributes. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 8

Re: [PATCH] nvme-core: don't initlialize ctrl->cntlid twice

2019-01-08 Thread Keith Busch
gt; > if (ctrl->cntlid != le16_to_cpu(id->cntlid)) > > below will always be a no-op. Yeah, this bug defeats the fabrics sanity check. Good catch. Reviewed-by: Keith Busch > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > index 2e65be8b1387..1ec87b30fa

Re: [PATCH v4 2/2] trace nvme submit queue status

2018-12-18 Thread Keith Busch
On Tue, Dec 18, 2018 at 06:47:50PM +0100, h...@lst.de wrote: > On Tue, Dec 18, 2018 at 10:26:46AM -0700, Keith Busch wrote: > > No need for a space after the %s. __print_disk_name already appends a > > space if there's a disk name, and we don't want the extra space if there >

Re: [PATCH v4 2/2] trace nvme submit queue status

2018-12-18 Thread Keith Busch
On Mon, Dec 17, 2018 at 08:51:38PM -0800, yupeng wrote: > +TRACE_EVENT(nvme_sq, > + TP_PROTO(void *rq_disk, int qid, int sq_head, int sq_tail), > + TP_ARGS(rq_disk, qid, sq_head, sq_tail), > + TP_STRUCT__entry( > + __array(char, disk, DISK_NAME_LEN) > +

Re: [PATCHv2 12/12] doc/mm: New documentation for memory performance

2018-12-12 Thread Keith Busch
On Wed, Dec 12, 2018 at 10:23:24AM +0530, Aneesh Kumar K.V wrote: > On 12/11/18 6:33 AM, Keith Busch wrote: > > +When multiple memory initiators exist, they may not all have the same > > +performance when accessing a given memory target. The highest performing > > +initia

Re: [PATCH] PCI/AER: only insert one element into kfifo

2018-12-12 Thread Keith Busch
ot; * @n: number of elements to be added". > > We want to insert only one element into kfifo, not "sizeof(entry) = 16". > Without this patch, we would get 15 uninitialized elements. > > Signed-off-by: Yanjiang Jin My bad. I had trouble testing the GHES path for this. Tha

Re: [PATCHv2 02/12] acpi/hmat: Parse and report heterogeneous memory

2018-12-11 Thread Keith Busch
On Tue, Dec 11, 2018 at 12:29:45PM -0800, Dan Williams wrote: > On Tue, Dec 11, 2018 at 8:58 AM Keith Busch wrote: > > +static int __init > > +acpi_parse_cache(union acpi_subtable_headers *header, const unsigned long > > end) > > +{ > > + struct acpi_h

Re: [PATCHv2 02/12] acpi/hmat: Parse and report heterogeneous memory

2018-12-11 Thread Keith Busch
On Mon, Dec 10, 2018 at 10:03:40PM -0800, Dan Williams wrote: > I have a use case to detect the presence of a memory-side-cache early > at init time [1]. To me this means that hmat_init() needs to happen as > a part of acpi_numa_init(). Subsequently I think that also means that > the sysfs portion

[PATCHv2 03/12] node: Link memory nodes to their compute nodes

2018-12-10 Thread Keith Busch
NODE}/primary_cpu_nodelist) \ -- fio --filename=/dev/nvme0n1 --bs=4k --name=access-test Signed-off-by: Keith Busch --- drivers/base/node.c | 85 include/linux/node.h | 4 +++ 2 files changed, 89 insertions(+) diff --git a/drivers/base/node.c b

[PATCHv2 00/12] Heterogeneous memory node attributes

2018-12-10 Thread Keith Busch
with subsys_initcall instead of device_init. Combined the numa performance documentation into a single file and moved it to admin-guide/mm/. Changelogs updated with spelling/grammar/editorial fixes, and include additional examples. Keith Busch (12): acpi: Create subtable parsing infrastructure acpi

[PATCHv2 09/12] node: Add memory caching attributes

2018-12-10 Thread Keith Busch
, associativity, and write back policy. Signed-off-by: Keith Busch --- drivers/base/node.c | 140 +++ include/linux/node.h | 23 + 2 files changed, 163 insertions(+) diff --git a/drivers/base/node.c b/drivers/base/node.c index 768612c06c56

[PATCHv2 11/12] acpi/hmat: Register memory side cache attributes

2018-12-10 Thread Keith Busch
Register memory side cache attributes with the memory's node if HMAT provides the side cache information table. Signed-off-by: Keith Busch --- drivers/acpi/hmat.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/acpi/hmat.c b/drivers/acpi/hmat.c

[PATCHv2 04/12] Documentation/ABI: Add new node sysfs attributes

2018-12-10 Thread Keith Busch
Add the entries for primary cpu and memory node attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 34 - 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation

[PATCHv2 02/12] acpi/hmat: Parse and report heterogeneous memory

2018-12-10 Thread Keith Busch
Systems may provide different memory types and export this information in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse these tables provided by the platform and report the memory access and caching attributes. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 8

[PATCHv2 06/12] node: Add heterogenous memory performance

2018-12-10 Thread Keith Busch
dev/nvme0n1 --bs=4k --name=access-test Signed-off-by: Keith Busch --- drivers/base/Kconfig | 8 drivers/base/node.c | 44 include/linux/node.h | 22 ++ 3 files changed, 74 insertions(+) diff --git a/drivers/base/Kconfi

[PATCHv2 08/12] acpi/hmat: Register performance attributes

2018-12-10 Thread Keith Busch
Save the best performance access attributes and register these with the memory's node if HMAT provides the locality table. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 1 + drivers/acpi/hmat.c | 34 ++ 2 files changed, 35 insertions(+) diff --git

[PATCHv2 05/12] acpi/hmat: Register processor domain to its memory

2018-12-10 Thread Keith Busch
. Since HMAT requires valid address ranges have an equivalent SRAT entry, verify each memory target satisfies this requirement. Signed-off-by: Keith Busch --- drivers/acpi/hmat.c | 149 +--- 1 file changed, 142 insertions(+), 7 deletions(-) diff

[PATCHv2 12/12] doc/mm: New documentation for memory performance

2018-12-10 Thread Keith Busch
to query this information. Signed-off-by: Keith Busch --- Documentation/admin-guide/mm/numaperf.rst | 171 ++ 1 file changed, 171 insertions(+) create mode 100644 Documentation/admin-guide/mm/numaperf.rst diff --git a/Documentation/admin-guide/mm/numaperf.rst b

[PATCHv2 10/12] Documentation/ABI: Add node cache attributes

2018-12-10 Thread Keith Busch
Add the attributes for the system memory side caches. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 34 + 1 file changed, 34 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation/ABI/stable/sysfs

[PATCHv2 01/12] acpi: Create subtable parsing infrastructure

2018-12-10 Thread Keith Busch
parsing the entries array may be more reused for all ACPI system tables. Signed-off-by: Keith Busch --- arch/x86/kernel/acpi/boot.c | 36 drivers/acpi/numa.c | 16 +-- drivers/acpi/scan.c | 4 +-- drivers/acpi/tables.c| 67

[PATCHv2 07/12] Documentation/ABI: Add node performance attributes

2018-12-10 Thread Keith Busch
Add descriptions for primary memory initiator performance access attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 28 1 file changed, 28 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation

Re: [PATCH] nvme-rdma: complete requests from ->timeout

2018-12-07 Thread Keith Busch
On Fri, Dec 07, 2018 at 12:05:37PM -0800, Sagi Grimberg wrote: > > > Could you please take a look at this bug and code review? > > > > We are seeing more instances of this bug and found that reconnect_work > > could hang as well, as can be seen from below stacktrace. > > > > Workqueue:

Re: [PATCH] nvme-rdma: complete requests from ->timeout

2018-12-07 Thread Keith Busch
On Fri, Dec 07, 2018 at 12:05:37PM -0800, Sagi Grimberg wrote: > > > Could you please take a look at this bug and code review? > > > > We are seeing more instances of this bug and found that reconnect_work > > could hang as well, as can be seen from below stacktrace. > > > > Workqueue:

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-12-04 Thread Keith Busch
On Tue, Dec 04, 2018 at 09:13:33PM +0530, Aneesh Kumar K.V wrote: > Keith Busch writes: > > > > Indeed, that particular example is out of scope for this series. The > > first objective is to aid a process running in node B's CPUs to allocate > > memory in B1

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-12-04 Thread Keith Busch
On Tue, Dec 04, 2018 at 09:13:33PM +0530, Aneesh Kumar K.V wrote: > Keith Busch writes: > > > > Indeed, that particular example is out of scope for this series. The > > first objective is to aid a process running in node B's CPUs to allocate > > memory in B1

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-27 Thread Keith Busch
On Mon, Nov 26, 2018 at 11:00:09PM -0800, Dan Williams wrote: > On Wed, Nov 14, 2018 at 2:53 PM Keith Busch wrote: > > > > Heterogeneous memory systems provide memory nodes with latency > > and bandwidth performance attributes that are different from other > >

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-27 Thread Keith Busch
On Mon, Nov 26, 2018 at 11:00:09PM -0800, Dan Williams wrote: > On Wed, Nov 14, 2018 at 2:53 PM Keith Busch wrote: > > > > Heterogeneous memory systems provide memory nodes with latency > > and bandwidth performance attributes that are different from other > >

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-26 Thread Keith Busch
On Mon, Nov 26, 2018 at 11:06:19AM -0800, Greg Kroah-Hartman wrote: > On Wed, Nov 14, 2018 at 03:49:17PM -0700, Keith Busch wrote: > > System memory may have side caches to help improve access speed. While > > the system provided cache is transparent to the software accessing &

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-26 Thread Keith Busch
On Mon, Nov 26, 2018 at 11:06:19AM -0800, Greg Kroah-Hartman wrote: > On Wed, Nov 14, 2018 at 03:49:17PM -0700, Keith Busch wrote: > > System memory may have side caches to help improve access speed. While > > the system provided cache is transparent to the software accessing &

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-26 Thread Keith Busch
On Thu, Nov 22, 2018 at 06:59:21PM +0530, Anshuman Khandual wrote: > > > On 11/20/2018 04:36 AM, Keith Busch wrote: > > On Mon, Nov 19, 2018 at 09:44:00AM +0530, Anshuman Khandual wrote: > >> On 11/15/2018 04:19 AM, Keith Busch wrote: > >>> System memory

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-26 Thread Keith Busch
On Thu, Nov 22, 2018 at 06:59:21PM +0530, Anshuman Khandual wrote: > > > On 11/20/2018 04:36 AM, Keith Busch wrote: > > On Mon, Nov 19, 2018 at 09:44:00AM +0530, Anshuman Khandual wrote: > >> On 11/15/2018 04:19 AM, Keith Busch wrote: > >>> System memory

Re: [PATCH 3/7] doc/vm: New documentation for memory performance

2018-11-20 Thread Keith Busch
On Tue, Nov 20, 2018 at 02:51:50PM +0100, Mike Rapoport wrote: > On Wed, Nov 14, 2018 at 03:49:16PM -0700, Keith Busch wrote: > > Platforms may provide system memory where some physical address ranges > > perform differently than others. These heterogeneous memory attributes

Re: [PATCH 3/7] doc/vm: New documentation for memory performance

2018-11-20 Thread Keith Busch
On Tue, Nov 20, 2018 at 02:51:50PM +0100, Mike Rapoport wrote: > On Wed, Nov 14, 2018 at 03:49:16PM -0700, Keith Busch wrote: > > Platforms may provide system memory where some physical address ranges > > perform differently than others. These heterogeneous memory attributes

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 09:44:00AM +0530, Anshuman Khandual wrote: > On 11/15/2018 04:19 AM, Keith Busch wrote: > > System memory may have side caches to help improve access speed. While > > the system provided cache is transparent to the software accessing > > these memory

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 09:44:00AM +0530, Anshuman Khandual wrote: > On 11/15/2018 04:19 AM, Keith Busch wrote: > > System memory may have side caches to help improve access speed. While > > the system provided cache is transparent to the software accessing > > these memory

Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 10:58:12AM +0100, Rafael J. Wysocki wrote: > > +static unsigned long __init > > +acpi_get_entry_length(struct acpi_subtable_entry *entry) > > +{ > > + switch (entry->type) { > > + case ACPI_SUBTABLE_COMMON: > > + return entry->hdr->common.length; >

Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 10:58:12AM +0100, Rafael J. Wysocki wrote: > > +static unsigned long __init > > +acpi_get_entry_length(struct acpi_subtable_entry *entry) > > +{ > > + switch (entry->type) { > > + case ACPI_SUBTABLE_COMMON: > > + return entry->hdr->common.length; >

Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 11:53:05AM -0500, Tyler Baicar wrote: > On Thu, Nov 15, 2018 at 8:49 PM Sinan Kaya wrote: > > > > On 11/15/2018 3:16 PM, Alexandru Gagniuc wrote: > > > I've asked around a few people at Dell and they unanimously agree that > > > _OSC is the correct way to determine

Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 11:53:05AM -0500, Tyler Baicar wrote: > On Thu, Nov 15, 2018 at 8:49 PM Sinan Kaya wrote: > > > > On 11/15/2018 3:16 PM, Alexandru Gagniuc wrote: > > > I've asked around a few people at Dell and they unanimously agree that > > > _OSC is the correct way to determine

Re: [PATCH v2 2/2] PCI: pciehp: Add HXT quirk for Command Completed errata

2018-11-19 Thread Keith Busch
On Wed, Nov 07, 2018 at 03:25:05PM +0800, Shunyong Yang wrote: > The HXT SD4800 PCI controller does not set the Command Completed > bit unless writes to the Slot Command register change "Control" > bits. > > This patch adds SD4800 to the quirk. > > Cc: Joey Zheng > Signed-off-by: Shunyong Yang

Re: [PATCH v2 2/2] PCI: pciehp: Add HXT quirk for Command Completed errata

2018-11-19 Thread Keith Busch
On Wed, Nov 07, 2018 at 03:25:05PM +0800, Shunyong Yang wrote: > The HXT SD4800 PCI controller does not set the Command Completed > bit unless writes to the Slot Command register change "Control" > bits. > > This patch adds SD4800 to the quirk. > > Cc: Joey Zheng > Signed-off-by: Shunyong Yang

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 08:45:25AM +0530, Anshuman Khandual wrote: > On 11/17/2018 12:02 AM, Keith Busch wrote: > > On Thu, Nov 15, 2018 at 12:36:54PM -0800, Matthew Wilcox wrote: > >> So ... let's imagine a hypothetical system (I've never seen one built like > >> th

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 08:45:25AM +0530, Anshuman Khandual wrote: > On 11/17/2018 12:02 AM, Keith Busch wrote: > > On Thu, Nov 15, 2018 at 12:36:54PM -0800, Matthew Wilcox wrote: > >> So ... let's imagine a hypothetical system (I've never seen one built like > >> th

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 09:05:07AM +0530, Anshuman Khandual wrote: > On 11/15/2018 04:19 AM, Keith Busch wrote: > > Heterogeneous memory systems provide memory nodes with latency > > and bandwidth performance attributes that are different from other > > nodes. Create an int

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 09:05:07AM +0530, Anshuman Khandual wrote: > On 11/15/2018 04:19 AM, Keith Busch wrote: > > Heterogeneous memory systems provide memory nodes with latency > > and bandwidth performance attributes that are different from other > > nodes. Create an int

Re: Enable tracing only for one function and its children?

2018-11-16 Thread Keith Busch
On Fri, Nov 16, 2018 at 04:37:55PM -0600, Timur Tabi wrote: > Is there a way to enable ftrace tracing only for one specific function > and all the functions it calls? Then when the function returns, > disable tracing until the next time? > > When I pass the function name only to

Re: Enable tracing only for one function and its children?

2018-11-16 Thread Keith Busch
On Fri, Nov 16, 2018 at 04:37:55PM -0600, Timur Tabi wrote: > Is there a way to enable ftrace tracing only for one specific function > and all the functions it calls? Then when the function returns, > disable tracing until the next time? > > When I pass the function name only to

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-16 Thread Keith Busch
On Thu, Nov 15, 2018 at 12:36:54PM -0800, Matthew Wilcox wrote: > On Thu, Nov 15, 2018 at 07:59:20AM -0700, Keith Busch wrote: > > On Thu, Nov 15, 2018 at 05:57:10AM -0800, Matthew Wilcox wrote: > > > On Wed, Nov 14, 2018 at 03:49:14PM -0700, Keith Busch wrote: > > > >

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-16 Thread Keith Busch
On Thu, Nov 15, 2018 at 12:36:54PM -0800, Matthew Wilcox wrote: > On Thu, Nov 15, 2018 at 07:59:20AM -0700, Keith Busch wrote: > > On Thu, Nov 15, 2018 at 05:57:10AM -0800, Matthew Wilcox wrote: > > > On Wed, Nov 14, 2018 at 03:49:14PM -0700, Keith Busch wrote: > > > >

Re: [PATCH 0/7] ACPI HMAT memory sysfs representation

2018-11-16 Thread Keith Busch
On Fri, Nov 16, 2018 at 11:57:58AM +0530, Anshuman Khandual wrote: > On 11/15/2018 04:19 AM, Keith Busch wrote: > > This series provides a new sysfs representation for heterogeneous > > system memory. > > > > The previous series that was specific to HMAT that this serie

Re: [PATCH 0/7] ACPI HMAT memory sysfs representation

2018-11-16 Thread Keith Busch
On Fri, Nov 16, 2018 at 11:57:58AM +0530, Anshuman Khandual wrote: > On 11/15/2018 04:19 AM, Keith Busch wrote: > > This series provides a new sysfs representation for heterogeneous > > system memory. > > > > The previous series that was specific to HMAT that this serie

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-15 Thread Keith Busch
On Thu, Nov 15, 2018 at 05:57:10AM -0800, Matthew Wilcox wrote: > On Wed, Nov 14, 2018 at 03:49:14PM -0700, Keith Busch wrote: > > Memory-only nodes will often have affinity to a compute node, and > > platforms have ways to express that locality relationship. > > >

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-15 Thread Keith Busch
On Thu, Nov 15, 2018 at 05:57:10AM -0800, Matthew Wilcox wrote: > On Wed, Nov 14, 2018 at 03:49:14PM -0700, Keith Busch wrote: > > Memory-only nodes will often have affinity to a compute node, and > > platforms have ways to express that locality relationship. > > >

[PATCH 2/7] node: Add heterogenous memory performance

2018-11-14 Thread Keith Busch
/nodeY/initiator_access /sys/devices/system/node/nodeY/initiator_access |-- read_bandwidth |-- read_latency |-- write_bandwidth `-- write_latency The bandwidth is exported as MB/s and latency is reported in nanoseconds. Signed-off-by: Keith Busch --- drivers/base/Kconfig | 8

[PATCH 7/7] acpi/hmat: Parse and report heterogeneous memory

2018-11-14 Thread Keith Busch
with the memory numa nodes so they can be observed through sysfs. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 9 ++ drivers/acpi/Makefile | 1 + drivers/acpi/hmat.c | 384 ++ drivers/acpi/tables.c | 10 ++ 4 files changed, 404 insertions

[PATCH 4/7] node: Add memory caching attributes

2018-11-14 Thread Keith Busch
. Signed-off-by: Keith Busch --- drivers/base/node.c | 117 +++ include/linux/node.h | 23 ++ 2 files changed, 140 insertions(+) diff --git a/drivers/base/node.c b/drivers/base/node.c index 232535761998..bb94f1d18115 100644 --- a/drivers/base

[PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-14 Thread Keith Busch
Y' local to commpute node 'X': # ls -l /sys/devices/system/node/nodeX/initiator* /sys/devices/system/node/nodeX/targetY -> ../nodeY # ls -l /sys/devices/system/node/nodeY/target* /sys/devices/system/node/nodeY/initiatorX -> ../nodeX Signed-off-by: Keith Busch ---

[PATCH 2/7] node: Add heterogenous memory performance

2018-11-14 Thread Keith Busch
/nodeY/initiator_access /sys/devices/system/node/nodeY/initiator_access |-- read_bandwidth |-- read_latency |-- write_bandwidth `-- write_latency The bandwidth is exported as MB/s and latency is reported in nanoseconds. Signed-off-by: Keith Busch --- drivers/base/Kconfig | 8

[PATCH 7/7] acpi/hmat: Parse and report heterogeneous memory

2018-11-14 Thread Keith Busch
with the memory numa nodes so they can be observed through sysfs. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 9 ++ drivers/acpi/Makefile | 1 + drivers/acpi/hmat.c | 384 ++ drivers/acpi/tables.c | 10 ++ 4 files changed, 404 insertions

[PATCH 4/7] node: Add memory caching attributes

2018-11-14 Thread Keith Busch
. Signed-off-by: Keith Busch --- drivers/base/node.c | 117 +++ include/linux/node.h | 23 ++ 2 files changed, 140 insertions(+) diff --git a/drivers/base/node.c b/drivers/base/node.c index 232535761998..bb94f1d18115 100644 --- a/drivers/base

<    1   2   3   4   5   6   7   8   9   10   >