libera/#maemo-leste/ Wednesday, 2023-09-13

freemangordontmlind: any idea https://pastebin.com/WPAruC7C?00:08
freemangordonseems pwm_apply_state() cannot be called from atomic context00:10
tmlindfreemangordon: no idea.. but clk_prepare can sleep, maybe it can be done with separate clk_prepare() & clk_enable() calls?08:22
freemangordonactually dmtimer tries to get the functional clock rate08:24
tmlindseems like that should not change and could be done earlier during init or something?08:25
freemangordonhere: https://elixir.bootlin.com/linux/v6.1.48/source/drivers/clocksource/timer-ti-dm.c#L75408:26
freemangordonright08:26
freemangordonI was thinking about that08:26
freemangordonor, register frequency notifier?08:26
freemangordontmlind: what about getting the freq on init an doing devm_clk_notifier_register() ?08:28
tmlindstash rate on register, update it in case change_rate happens, read it on stop for the delay needed?08:29
freemangordonthat way no  clk_get_rate() will be needed08:30
tmlindyeah08:30
freemangordonbut what if someone else changes the fclk frequency?08:30
freemangordonI mean, if I dont register notifier08:30
tmlindfclk is claimed by the dmtimer only afaik?08:30
tmlindmaybe add a comment on the possible need for a notifier08:31
freemangordonis there any issue if I go for notifier directly? it seems easier to me08:32
tmlindsounds good to me08:32
freemangordonok, but I can't find if  pwm_apply_state() can be called from atomic context08:33
tmlindno idea, probably changing state in an interrupt is needed though..08:33
tmlindfor rate changes etc08:33
freemangordonin case API does not allow it, making dmtimer not sleeping does not make sense08:33
tmlindok08:34
tmlindputting together a branch on v6.6-rc1 here fyi.. still need to deal with the modem stuff at least so probably not done until next week at some point08:35
tmlindfreemangordon: hmm any plans on moving pvr mesa to use the legacy mesa amber branch? seems that would provide a stable base with fixes backported..08:35
freemangordonno idea :)08:36
tmlindok08:36
freemangordonbut maybe we will have to08:36
freemangordontmlind: so, according to https://github.com/torvalds/linux/blob/master/drivers/pwm/core.c#L502, I should not call  pwm_apply_state() from irq handler08:39
tmlindok08:39
freemangordontmlind: any idea how fast wait queues are? Like, do we expect big delay between wake_up_xxx() call and waiting thread being resumed?11:27

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!