Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Mark Rutland
On Tue, Jun 28, 2016 at 04:33:46PM +0100, Catalin Marinas wrote: > On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: > > +#define CPUINFO_ATTR_RO(_name) > > \ > > + static ssize_t show_##_name(struct device *dev,

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Mark Rutland
On Tue, Jun 28, 2016 at 04:33:46PM +0100, Catalin Marinas wrote: > On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: > > +#define CPUINFO_ATTR_RO(_name) > > \ > > + static ssize_t show_##_name(struct device *dev,

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Suzuki K Poulose
On 28/06/16 16:33, Catalin Marinas wrote: On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: +#define CPUINFO_ATTR_RO(_name) \ + static ssize_t show_##_name(struct device *dev, \ +

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Suzuki K Poulose
On 28/06/16 16:33, Catalin Marinas wrote: On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: +#define CPUINFO_ATTR_RO(_name) \ + static ssize_t show_##_name(struct device *dev, \ +

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Catalin Marinas
On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: > +#define CPUINFO_ATTR_RO(_name) > \ > + static ssize_t show_##_name(struct device *dev, > \ > + struct device_attribute

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Catalin Marinas
On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: > +#define CPUINFO_ATTR_RO(_name) > \ > + static ssize_t show_##_name(struct device *dev, > \ > + struct device_attribute

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Catalin Marinas
On Tue, Jun 28, 2016 at 12:06:22PM +0100, Will Deacon wrote: > On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K Poulose wrote: > > +static struct attribute_group cpuregs_attr_group = { > > + .attrs = cpuregs_attrs, > > + .name = "identification" > > +}; > > This makes sense because

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Catalin Marinas
On Tue, Jun 28, 2016 at 12:06:22PM +0100, Will Deacon wrote: > On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K Poulose wrote: > > +static struct attribute_group cpuregs_attr_group = { > > + .attrs = cpuregs_attrs, > > + .name = "identification" > > +}; > > This makes sense because

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Will Deacon
On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K Poulose wrote: > From: Steve Capper > > It can be useful for JIT software to be aware of MIDR_EL1 and > REVIDR_EL1 to ascertain the presence of any core errata that could > affect code generation. > > This patch exposes

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Will Deacon
On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K Poulose wrote: > From: Steve Capper > > It can be useful for JIT software to be aware of MIDR_EL1 and > REVIDR_EL1 to ascertain the presence of any core errata that could > affect code generation. > > This patch exposes these registers through

[PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-21 Thread Suzuki K Poulose
From: Steve Capper It can be useful for JIT software to be aware of MIDR_EL1 and REVIDR_EL1 to ascertain the presence of any core errata that could affect code generation. This patch exposes these registers through sysfs:

[PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-21 Thread Suzuki K Poulose
From: Steve Capper It can be useful for JIT software to be aware of MIDR_EL1 and REVIDR_EL1 to ascertain the presence of any core errata that could affect code generation. This patch exposes these registers through sysfs: /sys/devices/system/cpu/cpu$ID/identification/midr