Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-25 Thread Sudeep Holla
On 25/05/18 05:05, Viresh Kumar wrote: > On 25-05-18, 07:00, Ilia Lin wrote: >> >> >> On May 25, 2018 6:54:12 AM GMT+03:00, Viresh Kumar >> wrote: >>> On 24-05-18, 18:03, Ilia Lin wrote: +static int __init qcom_cpufreq_kryo_init(void) +{ + struct

Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-25 Thread Sudeep Holla
On 25/05/18 05:05, Viresh Kumar wrote: > On 25-05-18, 07:00, Ilia Lin wrote: >> >> >> On May 25, 2018 6:54:12 AM GMT+03:00, Viresh Kumar >> wrote: >>> On 24-05-18, 18:03, Ilia Lin wrote: +static int __init qcom_cpufreq_kryo_init(void) +{ + struct device_node *np; + struct

Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-24 Thread Viresh Kumar
On 25-05-18, 07:00, Ilia Lin wrote: > > > On May 25, 2018 6:54:12 AM GMT+03:00, Viresh Kumar > wrote: > >On 24-05-18, 18:03, Ilia Lin wrote: > >> +static int __init qcom_cpufreq_kryo_init(void) > >> +{ > >> + struct device_node *np; > >> + struct device *cpu_dev; >

Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-24 Thread Viresh Kumar
On 25-05-18, 07:00, Ilia Lin wrote: > > > On May 25, 2018 6:54:12 AM GMT+03:00, Viresh Kumar > wrote: > >On 24-05-18, 18:03, Ilia Lin wrote: > >> +static int __init qcom_cpufreq_kryo_init(void) > >> +{ > >> + struct device_node *np; > >> + struct device *cpu_dev; > >> + int ret; > >> + > >>

Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-24 Thread Viresh Kumar
On 24-05-18, 18:03, Ilia Lin wrote: > +static int __init qcom_cpufreq_kryo_init(void) > +{ > + struct device_node *np; > + struct device *cpu_dev; > + int ret; > + > + cpu_dev = get_cpu_device(0); > + if (NULL == cpu_dev) > + ret = -ENODEV; > + > + np =

Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-24 Thread Viresh Kumar
On 24-05-18, 18:03, Ilia Lin wrote: > +static int __init qcom_cpufreq_kryo_init(void) > +{ > + struct device_node *np; > + struct device *cpu_dev; > + int ret; > + > + cpu_dev = get_cpu_device(0); > + if (NULL == cpu_dev) > + ret = -ENODEV; > + > + np =

[PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-24 Thread Ilia Lin
In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. Qualcomm Process Voltage Scaling Tables defines the voltage and frequency value based on the msm-id in SMEM and speedbin blown

[PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-24 Thread Ilia Lin
In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. Qualcomm Process Voltage Scaling Tables defines the voltage and frequency value based on the msm-id in SMEM and speedbin blown