* Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem...
@ 2003-09-24 22:37 Andrew Morton
2003-10-03 17:29 ` Dominik Brodowski
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2003-09-24 22:37 UTC (permalink / raw)
To: Ashley Pittman; +Cc: cpufreq
OK, thanks. I've copied the cpurfeq guys; hopefully they can fix this one
up.
Begin forwarded message:
Date: Wed, 24 Sep 2003 23:33:18 +0100
From: Ashley Pittman <ashley@quadrics.com>
To: Andrew Morton <akpm@osdl.org>
Subject: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem...
Hi,
This problem is entirely reproducible for me, rather than describe it
i'm sending you a script that provokes it. The chip is a via C3 so the
longhaul module inserts properly and kinda works.
I suspect the problem is the 'cpufreq_userspace' module not increasing
the ref count of the cpufreq directory but it's also possible the
problem lies with the sysfs code itself, I can't see any notes about
refcounting in the sysfs documentation so I'm not really sure where the
answer lies.
In case your not familar with the cpufreq code the longhaul driver
creates the sysfs directory, the cpufreq_longhaul module creates a file
in that directory. When the longhaul module is remove the directory
should also go but that leaves the file with nowhere to go.
The problem still persists with the latest 2.6.0-test5-bk11 patch.
Ashley,
#!/bin/sh
modprobe longhaul
modprobe cpufreq_userspace
cd /sys/devices/system/cpu/cpu0/cpufreq
echo userspace > scaling_governor
ls scaling_setspeed
# This doesnt fail but look at the $PWD...
rmmod longhaul
# Note the $PWD is empty...
cd
modprobe longhaul
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# This next line segv's, oops the kernel and makes future 'lsmod' hang
rmmod longhaul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem...
2003-09-24 22:37 Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem Andrew Morton
@ 2003-10-03 17:29 ` Dominik Brodowski
2003-10-28 23:40 ` Ashley Pittman
0 siblings, 1 reply; 3+ messages in thread
From: Dominik Brodowski @ 2003-10-03 17:29 UTC (permalink / raw)
To: Andrew Morton, davej; +Cc: Ashley Pittman, cpufreq
Thanks for noticing this. Attached patch [for 2.6.0-test6-bk] should fix it.
Dominik
diff -ruN linux-original/drivers/cpufreq/cpufreq.c linux/drivers/cpufreq/cpufreq.c
--- linux-original/drivers/cpufreq/cpufreq.c 2003-10-02 17:36:42.000000000 +0200
+++ linux/drivers/cpufreq/cpufreq.c 2003-10-03 19:09:45.336175240 +0200
@@ -449,6 +449,9 @@
if (!kobject_get(&data->kobj))
return -EFAULT;
+ if (cpufreq_driver->target)
+ __cpufreq_governor(data, CPUFREQ_GOV_STOP);
+
kobject_unregister(&data->kobj);
kobject_put(&data->kobj);
@@ -459,9 +462,6 @@
*/
wait_for_completion(&data->kobj_unregister);
- if (cpufreq_driver->target)
- __cpufreq_governor(data, CPUFREQ_GOV_STOP);
-
if (cpufreq_driver->exit)
cpufreq_driver->exit(data);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem...
2003-10-03 17:29 ` Dominik Brodowski
@ 2003-10-28 23:40 ` Ashley Pittman
0 siblings, 0 replies; 3+ messages in thread
From: Ashley Pittman @ 2003-10-28 23:40 UTC (permalink / raw)
To: Dominik Brodowski; +Cc: Andrew Morton, davej, cpufreq
On Friday, Oct 3, 2003, at 18:29 Europe/London, Dominik Brodowski wrote:
> Thanks for noticing this. Attached patch [for 2.6.0-test6-bk] should
> fix it.
Apologies for the delay, this did fix it.
Ashley,
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
---
Ashley Pittman
ashley@pittman.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-28 23:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-24 22:37 Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem Andrew Morton
2003-10-03 17:29 ` Dominik Brodowski
2003-10-28 23:40 ` Ashley Pittman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox