Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-27 Thread Yue Hu
On Thu, 27 Aug 2020 11:56:46 +0530 Viresh Kumar wrote: > On 27-08-20, 14:20, Yue Hu wrote: > > Currenly, drivers/video/backlight does not call > > thermal_of_cooling_device_register() > > to register thermal cooling device. The issue happened in msm-4.19 kernel > > for > > QCOM/Android

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-27 Thread Viresh Kumar
On 27-08-20, 14:20, Yue Hu wrote: > Currenly, drivers/video/backlight does not call > thermal_of_cooling_device_register() > to register thermal cooling device. The issue happened in msm-4.19 kernel for > QCOM/Android platform. Backlight in msm-4.19 kernel will register thermal > cooling >

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-27 Thread Yue Hu
On Thu, 27 Aug 2020 10:44:01 +0530 Viresh Kumar wrote: > On 27-08-20, 12:03, Yue Hu wrote: > > Hi Daniel, > > > > Now, i'm just focus on removing the kernel warning based on current code > > logic. > > Commit 8ea229511e06 (thermal: Add cooling device's statistics in sysfs) > > added > > the

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-26 Thread Viresh Kumar
On 27-08-20, 12:03, Yue Hu wrote: > Hi Daniel, > > Now, i'm just focus on removing the kernel warning based on current code > logic. > Commit 8ea229511e06 (thermal: Add cooling device's statistics in sysfs) added > the thermal statistics by viresh and viresh gived the patch an acknowledgement >

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-26 Thread Yue Hu
On Wed, 26 Aug 2020 11:19:02 +0200 Daniel Lezcano wrote: > Hi Yue, > > On 26/08/2020 04:13, Yue Hu wrote: > > On Mon, 24 Aug 2020 12:40:35 +0200 > > Daniel Lezcano wrote: > > > >> On 18/08/2020 08:30, Yue Hu wrote: > >>> From: Yue Hu > >>> > >>> We observed warning about kzalloc() when

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-26 Thread Daniel Lezcano
Hi Yue, On 26/08/2020 04:13, Yue Hu wrote: > On Mon, 24 Aug 2020 12:40:35 +0200 > Daniel Lezcano wrote: > >> On 18/08/2020 08:30, Yue Hu wrote: >>> From: Yue Hu >>> >>> We observed warning about kzalloc() when register thermal cooling device >>> in backlight_device_register(). backlight

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-25 Thread Yue Hu
On Mon, 24 Aug 2020 12:40:35 +0200 Daniel Lezcano wrote: > On 18/08/2020 08:30, Yue Hu wrote: > > From: Yue Hu > > > > We observed warning about kzalloc() when register thermal cooling device > > in backlight_device_register(). backlight display can be a cooling device > > since reducing

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-24 Thread Daniel Lezcano
On 18/08/2020 08:30, Yue Hu wrote: > From: Yue Hu > > We observed warning about kzalloc() when register thermal cooling device > in backlight_device_register(). backlight display can be a cooling device > since reducing screen brightness will can help reduce temperature. > > However,

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-19 Thread Yue Hu
On Wed, 19 Aug 2020 16:47:01 +0530 Amit Kucheria wrote: > On Tue, Aug 18, 2020 at 12:00 PM Yue Hu wrote: > > > > From: Yue Hu > > > > We observed warning about kzalloc() when register thermal cooling device > > in backlight_device_register(). backlight display can be a cooling device > > since

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-19 Thread Amit Kucheria
On Tue, Aug 18, 2020 at 12:00 PM Yue Hu wrote: > > From: Yue Hu > > We observed warning about kzalloc() when register thermal cooling device > in backlight_device_register(). backlight display can be a cooling device > since reducing screen brightness will can help reduce temperature. > >

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-19 Thread Amit Kucheria
On Tue, Aug 18, 2020 at 12:00 PM Yue Hu wrote: > > From: Yue Hu > > We observed warning about kzalloc() when register thermal cooling device > in backlight_device_register(). backlight display can be a cooling device > since reducing screen brightness will can help reduce temperature. > >

[PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-18 Thread Yue Hu
From: Yue Hu We observed warning about kzalloc() when register thermal cooling device in backlight_device_register(). backlight display can be a cooling device since reducing screen brightness will can help reduce temperature. However, ->get_max_state of backlight will assign max brightness of