Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-19 Thread Fox Chen
On Fri, Nov 13, 2020 at 2:15 PM Brice Goglin wrote: > > > Le 12/11/2020 à 11:49, Greg Kroah-Hartman a écrit : > > On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: > > Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : > > On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote:

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-18 Thread Greg Kroah-Hartman
On Wed, Nov 18, 2020 at 11:45:46AM +0100, Brice Goglin wrote: > > Le 17/11/2020 à 16:55, Brice Goglin a écrit : > > Le 12/11/2020 à 11:49, Greg Kroah-Hartman a écrit : > >> On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: > >>> Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : >

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-18 Thread Brice Goglin
Le 17/11/2020 à 16:55, Brice Goglin a écrit : > Le 12/11/2020 à 11:49, Greg Kroah-Hartman a écrit : >> On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: >>> Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote: >

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-17 Thread Brice Goglin
Le 12/11/2020 à 11:49, Greg Kroah-Hartman a écrit : > On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: >> Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : >>> On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote: Hello Sorry for the late reply. As the

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-12 Thread Greg Kroah-Hartman
On Thu, Nov 12, 2020 at 12:21:43PM +0100, Brice Goglin wrote: > > Le 12/11/2020 à 11:49, Greg Kroah-Hartman a écrit : > > On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: > >> Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : > >>> On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-12 Thread Greg Kroah-Hartman
On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: > > Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : > > On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote: > >> Le 07/10/2020 à 07:15, Greg Kroah-Hartman a écrit : > >>> On Tue, Oct 06, 2020 at 08:14:47PM -0700, Ricardo

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-12 Thread Brice Goglin
Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : > On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote: >> Le 07/10/2020 à 07:15, Greg Kroah-Hartman a écrit : >>> On Tue, Oct 06, 2020 at 08:14:47PM -0700, Ricardo Neri wrote: On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-11 Thread Greg Kroah-Hartman
On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote: > Le 07/10/2020 à 07:15, Greg Kroah-Hartman a écrit : > > On Tue, Oct 06, 2020 at 08:14:47PM -0700, Ricardo Neri wrote: > >> On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg Kroah-Hartman wrote: > >>> On Mon, Oct 05, 2020 at 05:57:36PM

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-11 Thread Brice Goglin
Le 07/10/2020 à 07:15, Greg Kroah-Hartman a écrit : > On Tue, Oct 06, 2020 at 08:14:47PM -0700, Ricardo Neri wrote: >> On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg Kroah-Hartman wrote: >>> On Mon, Oct 05, 2020 at 05:57:36PM -0700, Ricardo Neri wrote: On Sat, Oct 03, 2020 at 10:53:45AM

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-09 Thread Randy Dunlap
On 10/5/20 6:15 PM, Ricardo Neri wrote: > On Fri, Oct 02, 2020 at 08:27:41PM -0700, Randy Dunlap wrote: >> On 10/2/20 6:17 PM, Ricardo Neri wrote: >>> +/** >>> + * arch_get_cpu_type() - Get the CPU type number >>> + * @cpu: Index of the CPU of which the index is needed >>> + * >>> + * Get the

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-07 Thread Ricardo Neri
On Wed, Oct 07, 2020 at 07:15:46AM +0200, Greg Kroah-Hartman wrote: > On Tue, Oct 06, 2020 at 08:14:47PM -0700, Ricardo Neri wrote: > > On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Oct 05, 2020 at 05:57:36PM -0700, Ricardo Neri wrote: > > > > On Sat, Oct 03,

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-06 Thread Greg Kroah-Hartman
On Tue, Oct 06, 2020 at 08:14:47PM -0700, Ricardo Neri wrote: > On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg Kroah-Hartman wrote: > > On Mon, Oct 05, 2020 at 05:57:36PM -0700, Ricardo Neri wrote: > > > On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > > > > On Fri, Oct 02,

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-06 Thread Ricardo Neri
On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg Kroah-Hartman wrote: > On Mon, Oct 05, 2020 at 05:57:36PM -0700, Ricardo Neri wrote: > > On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > > > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > > > Hybrid CPU

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-06 Thread Greg Kroah-Hartman
On Mon, Oct 05, 2020 at 05:57:36PM -0700, Ricardo Neri wrote: > On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > > Hybrid CPU topologies combine CPUs of different microarchitectures in the > > > same die.

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-05 Thread Ricardo Neri
On Fri, Oct 02, 2020 at 08:27:41PM -0700, Randy Dunlap wrote: > On 10/2/20 6:17 PM, Ricardo Neri wrote: > > +/** > > + * arch_get_cpu_type() - Get the CPU type number > > + * @cpu: Index of the CPU of which the index is needed > > + * > > + * Get the CPU type number of @cpu, a non-zero unsigned

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-05 Thread Ricardo Neri
On Sat, Oct 03, 2020 at 01:05:48PM +0200, Greg Kroah-Hartman wrote: > On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > > +/** > > > + * arch_get_cpu_type_name() - Get the CPU type name > > > + * @cpu_type:

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-05 Thread Ricardo Neri
On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > Hybrid CPU topologies combine CPUs of different microarchitectures in the > > same die. Thus, even though the instruction set is compatible among all > > CPUs,

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-03 Thread Greg Kroah-Hartman
On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > +/** > > + * arch_get_cpu_type_name() - Get the CPU type name > > + * @cpu_type: Type of CPU micro-architecture. > > + * > > + * Returns a string name

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-03 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > Hybrid CPU topologies combine CPUs of different microarchitectures in the > same die. Thus, even though the instruction set is compatible among all > CPUs, there may still be differences in features (e.g., some CPUs may > have

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-02 Thread Randy Dunlap
On 10/2/20 6:17 PM, Ricardo Neri wrote: > +/** > + * arch_get_cpu_type() - Get the CPU type number > + * @cpu: Index of the CPU of which the index is needed > + * > + * Get the CPU type number of @cpu, a non-zero unsigned 32-bit number that Are you sure that @cpu is non-zero? > + * uniquely

[PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-02 Thread Ricardo Neri
Hybrid CPU topologies combine CPUs of different microarchitectures in the same die. Thus, even though the instruction set is compatible among all CPUs, there may still be differences in features (e.g., some CPUs may have counters that others CPU do not). There may be applications interested in