Skip to contentSkip to conversation

speedstep-smi fails to load if CONFIG_CPU_FREQ_DEBUG is not set

Bug 5553 [email protected] 1 participant 1 message Mar 23, 2006

lore
Share & tools
lore
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=5553

------- Additional Comments From [email protected] 2006-03-23 11:24 ------- Hallo, I also have this problem on linux 2.6.16, and the patch in
http://bugzilla.kernel.org/show_bug.cgi?id=5553#c8 does not help.

I found that any printk() statement before the asm code seems to fix the symptom (hence the driver can be loaded without problems).

Just for istance, the following patch make the module loadable without touching explicitly the 'command' variable or anything else.

speedstep-smi.c renamed from speedstep-smi.c.orig +1 -0
@@ -70,6 +70,7 @@ static int speedstep_smi_ownership (void
 	command = (smi_sig & 0xffffff00) | (smi_cmd & 0xff);
 	magic = virt_to_phys(magic_data);
 
+	printk("Loading speedstep-smi.\n");
 	dprintk("trying to obtain ownership with command %x at port %x\n", command,

smi_port);

__asm__ __volatile__(

Maybe a workaround like this can be used in a future kernel version to let users load the module, while thinking to a real fix (it sounds a bit 'redmondish', I know :) )

Thanks,
Antonio Ospite.

------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.