All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression in 2.6.27-rc1 for set_cpus_allowed_ptr
@ 2008-08-08 19:44 Langsdorf, Mark
  2008-08-08 21:03 ` Rafael J. Wysocki
  0 siblings, 1 reply; 13+ messages in thread
From: Langsdorf, Mark @ 2008-08-08 19:44 UTC (permalink / raw)
  To: lkml

One of my co-workers noticed that the powernow-k8
driver no longer restarts when a CPU core is 
hot-disabled and then hot-enabled on AMD quad-core
systems.  

The following comands work fine on 2.6.26 and fail 
on 2.6.27-rc1:

echo 0 > /sys/devices/system/cpu/cpu3/online
echo 1 > /sys/devices/system/cpu/cpu3/online
find /sys -name cpufreq

For 2.6.26, the find will return a cpufreq
directory for each processor.  In 2.6.27-rc1,
the cpu3 directory is missing.

After digging through the code, the following
logic is failing when the core is hot-enabled
at runtime.  The code works during the boot
sequence.

	cpumask_t = current->cpus_allowed;
	set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu));
	if (smp_processor_id() != cpu)
		return -ENODEV;

The objective is to move to the specific CPU and
test it's MSRs to see if it is supported.  For
some reason, it isn't working.  Any suggestions
on how to fix this are appreciated.

-Mark Langdsorf
Operating System Research Center
AMD


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-08-11 22:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 19:44 Regression in 2.6.27-rc1 for set_cpus_allowed_ptr Langsdorf, Mark
2008-08-08 21:03 ` Rafael J. Wysocki
2008-08-08 21:31   ` Dmitry Adamushko
2008-08-11 12:30     ` Ingo Molnar
2008-08-11 14:01       ` Langsdorf, Mark
2008-08-11 14:20         ` Ingo Molnar
2008-08-11 14:28       ` Dmitry Adamushko
2008-08-11 22:03       ` Linus Torvalds
2008-08-11 22:10         ` Ingo Molnar
2008-08-11 22:14         ` Max Krasnyansky
2008-08-11 22:46           ` Ingo Molnar
2008-08-11 22:49             ` Max Krasnyansky
2008-08-11 22:55               ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.