Re: [PATCH] thermal: sysfs: Fall back to vmalloc() for cooling device's statistics

2020-08-21 Thread Yue Hu
On Fri, 21 Aug 2020 08:39:45 + David Laight wrote: > From: Yue Hu > > Sent: 21 August 2020 03:44 > > > > 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 red

RE: [PATCH] thermal: sysfs: Fall back to vmalloc() for cooling device's statistics

2020-08-21 Thread David Laight
From: Yue Hu > Sent: 21 August 2020 03:44 > > 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 vmalloc() for cooling device's statistics

2020-08-21 Thread Amit Kucheria
On Fri, Aug 21, 2020 at 8:14 AM 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 vmalloc() for cooling device's statistics

2020-08-20 Thread Viresh Kumar
On 21-08-20, 10:44, 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, ->get_max_st

[PATCH] thermal: sysfs: Fall back to vmalloc() for cooling device's statistics

2020-08-20 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 1