Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Suzuki K Poulose
On 18/01/18 14:25, Suzuki K Poulose wrote: On 18/01/18 14:21, Dave Martin wrote: On Thu, Jan 18, 2018 at 12:08:43PM +, Robin Murphy wrote: On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Suzuki K Poulose
On 18/01/18 14:25, Suzuki K Poulose wrote: On 18/01/18 14:21, Dave Martin wrote: On Thu, Jan 18, 2018 at 12:08:43PM +, Robin Murphy wrote: On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Suzuki K Poulose
On 18/01/18 14:21, Dave Martin wrote: On Thu, Jan 18, 2018 at 12:08:43PM +, Robin Murphy wrote: On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct arm64_cpu_capabilities const *cap; +}; + +static int

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Suzuki K Poulose
On 18/01/18 14:21, Dave Martin wrote: On Thu, Jan 18, 2018 at 12:08:43PM +, Robin Murphy wrote: On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct arm64_cpu_capabilities const *cap; +}; + +static int

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Dave Martin
On Thu, Jan 18, 2018 at 12:08:43PM +, Robin Murphy wrote: > On 18/01/18 12:00, Robin Murphy wrote: > [...] > >>+struct enable_arg { > >>+    int (*enable)(struct arm64_cpu_capabilities const *); > >>+    struct arm64_cpu_capabilities const *cap; > >>+}; > >>+ > >>+static int

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Dave Martin
On Thu, Jan 18, 2018 at 12:08:43PM +, Robin Murphy wrote: > On 18/01/18 12:00, Robin Murphy wrote: > [...] > >>+struct enable_arg { > >>+    int (*enable)(struct arm64_cpu_capabilities const *); > >>+    struct arm64_cpu_capabilities const *cap; > >>+}; > >>+ > >>+static int

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Robin Murphy
On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct arm64_cpu_capabilities const *cap; +}; + +static int __enable_cpu_capability(void *arg) +{ +    struct enable_arg const *e = arg; + +    return

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Robin Murphy
On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct arm64_cpu_capabilities const *cap; +}; + +static int __enable_cpu_capability(void *arg) +{ +    struct enable_arg const *e = arg; + +    return

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Robin Murphy
On 18/01/18 11:45, Dave Martin wrote: On Wed, Jan 17, 2018 at 05:42:19PM +, Suzuki K Poulose wrote: We issue the enable() call back for all CPU hwcaps capabilities available on the system, on all the CPUs. So far we have ignored the argument passed to the call back, which had a prototype to

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Robin Murphy
On 18/01/18 11:45, Dave Martin wrote: On Wed, Jan 17, 2018 at 05:42:19PM +, Suzuki K Poulose wrote: We issue the enable() call back for all CPU hwcaps capabilities available on the system, on all the CPUs. So far we have ignored the argument passed to the call back, which had a prototype to

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Dave Martin
On Wed, Jan 17, 2018 at 05:42:19PM +, Suzuki K Poulose wrote: > We issue the enable() call back for all CPU hwcaps capabilities > available on the system, on all the CPUs. So far we have ignored > the argument passed to the call back, which had a prototype to > accept a "void *" for use with

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Dave Martin
On Wed, Jan 17, 2018 at 05:42:19PM +, Suzuki K Poulose wrote: > We issue the enable() call back for all CPU hwcaps capabilities > available on the system, on all the CPUs. So far we have ignored > the argument passed to the call back, which had a prototype to > accept a "void *" for use with

[PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Suzuki K Poulose
This v2 of the patch posted here [1]. Following the discussion there, I have included a patch (Patch 1) to clarify the argument passed to @enable() call back for a capability. Original patch (Patch 2) is unchanged. [1]

[PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Suzuki K Poulose
This v2 of the patch posted here [1]. Following the discussion there, I have included a patch (Patch 1) to clarify the argument passed to @enable() call back for a capability. Original patch (Patch 2) is unchanged. [1]