Re: [PATCH v6 10/12] cxl/region: Add sysfs attribute for locality attributes of CXL regions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 20 Feb 2024 16:12:39 -0700
Dave Jiang <dave.jiang@xxxxxxxxx> wrote:

> Add read/write latencies and bandwidth sysfs attributes for the enabled CXL
> region. The bandwidth is the aggregated bandwidth of all devices that
> contribute to the CXL region. The latency is the worst latency of the
> device amongst all the devices that contribute to the CXL region.
> 
> Signed-off-by: Dave Jiang <dave.jiang@xxxxxxxxx>
One trivial comment follows though it applies in a couple of places.
Up to you whether you act on it.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>

> +
> +ACCESS_ATTR_RO(1, read_bandwidth);
> +ACCESS_ATTR_RO(1, read_latency);
> +ACCESS_ATTR_RO(1, write_bandwidth);
> +ACCESS_ATTR_RO(1, write_latency);
> +
> +static struct attribute *access1_coordinate_attrs[] = {
> +	ACCESS_ATTR_DECLARE(1, read_bandwidth),
> +	ACCESS_ATTR_DECLARE(1, write_bandwidth),
> +	ACCESS_ATTR_DECLARE(1, read_latency),
> +	ACCESS_ATTR_DECLARE(1, write_latency),
> +	NULL,
I'd drop that comma on the trailing entry, but there are others
already in this file that do have it, so up to you.






[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux