<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/x86/kernel/msr.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-10-16T16:24:43Z</updated>
<entry>
<title>device create: misc: convert device_create_drvdata to device_create</title>
<updated>2008-10-16T16:24:43Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2008-07-22T03:03:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9b12619f7b6f19c871437ec24a088787a04b1de'/>
<id>urn:sha1:a9b12619f7b6f19c871437ec24a088787a04b1de</id>
<content type='text'>
Now that device_create() has been audited, rename things back to the
original call to be sane.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x86: msr: correct return value on partial operations</title>
<updated>2008-08-26T00:46:12Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2008-08-26T00:34:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85f1cb60157e06d9e8996b02fad9ba6964523d75'/>
<id>urn:sha1:85f1cb60157e06d9e8996b02fad9ba6964523d75</id>
<content type='text'>
Return the correct return value when the MSR driver partially
completes a request (we should return the number of bytes actually
read or written, instead of the error code.)

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
<entry>
<title>x86: msr: propagate errors from smp_call_function_single()</title>
<updated>2008-08-26T00:45:48Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2008-08-26T00:27:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6f31932d0a1d2b13952f506ebc92675e2d8df80'/>
<id>urn:sha1:c6f31932d0a1d2b13952f506ebc92675e2d8df80</id>
<content type='text'>
Propagate error (-ENXIO) from smp_call_function_single().  These
errors can happen when a CPU is unplugged while the MSR driver is
open.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
<entry>
<title>x86, msr: fix NULL pointer deref due to msr_open on nonexistent CPUs</title>
<updated>2008-08-15T11:38:30Z</updated>
<author>
<name>Darrick J. Wong</name>
</author>
<published>2008-08-14T22:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=967060d00d7ab8e992963a966cd3d18156c02d55'/>
<id>urn:sha1:967060d00d7ab8e992963a966cd3d18156c02d55</id>
<content type='text'>
msr_open tests for someone trying to open a device for a nonexistent CPU.
However, the function always returns 0, not ret like it should, hence
userspace can BUG the kernel trivially.  This bug was introduced by the
cdev lock_kernel pushdown patch last May.

The BUG can be reproduced with these commands:

# mknod fubar c 202 8 &lt;-- pick a number less than NR_CPUS that is not
                          the number of an online CPU
# cat fubar

Signed-off-by: Darrick J. Wong &lt;djwong@us.ibm.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>device create: x86: convert device_create to device_create_drvdata</title>
<updated>2008-07-22T04:54:46Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2008-05-21T19:52:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bfd49c8ab1859ae0f5fa1df2b3781c99115f442'/>
<id>urn:sha1:3bfd49c8ab1859ae0f5fa1df2b3781c99115f442</id>
<content type='text'>
device_create() is race-prone, so use the race-free
device_create_drvdata() instead as device_create() is going away.

Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x86: cdev lock_kernel() pushdown</title>
<updated>2008-05-18T21:43:40Z</updated>
<author>
<name>Jonathan Corbet</name>
</author>
<published>2008-05-15T15:12:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5119e92efc733d730b34f9605a5ae61fdc4bf649'/>
<id>urn:sha1:5119e92efc733d730b34f9605a5ae61fdc4bf649</id>
<content type='text'>
Push the cdev lock_kernel() call down into the x86 msr and cpuid drivers.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>PM: Remove destroy_suspended_device()</title>
<updated>2008-04-20T02:10:28Z</updated>
<author>
<name>Rafael J. Wysocki</name>
</author>
<published>2008-03-23T19:28:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b844eba292b477cda14582bfc6f535deed57a82d'/>
<id>urn:sha1:b844eba292b477cda14582bfc6f535deed57a82d</id>
<content type='text'>
After 2.6.24 there was a plan to make the PM core acquire all device
semaphores during a suspend/hibernation to protect itself from
concurrent operations involving device objects.  That proved to be
too heavy-handed and we found a better way to achieve the goal, but
before it happened, we had introduced the functions
device_pm_schedule_removal() and destroy_suspended_device() to allow
drivers to "safely" destroy a suspended device and we had adapted some
drivers to use them.  Now that these functions are no longer necessary,
it seems reasonable to remove them and modify their users to use the
normal device unregistration instead.

Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x86: coding style fixes to arch/x86/kernel/msr.c</title>
<updated>2008-04-17T15:40:50Z</updated>
<author>
<name>Paolo Ciarrocchi</name>
</author>
<published>2008-02-22T22:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94a9fa41421625caedc328a2b0a0d5c78919a20f'/>
<id>urn:sha1:94a9fa41421625caedc328a2b0a0d5c78919a20f</id>
<content type='text'>
Before:
   total: 2 errors, 0 warnings, 231 lines checked
After:
   total: 0 errors, 0 warnings, 231 lines checked

No code changed:

arch/x86/kernel/msr.o:

   text	   data	    bss	    dec	    hex	filename
   1199	     12	      4	   1215	    4bf	msr.o.before
   1199	     12	      4	   1215	    4bf	msr.o.after

md5:
   604be0d07d829bc52a9346babd084bdc  msr.o.before.asm
   604be0d07d829bc52a9346babd084bdc  msr.o.after.asm

Signed-off-by: Paolo Ciarrocchi &lt;paolo.ciarrocchi@gmail.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86: cpuid, msr: use inode mutex instead of big kernel lock</title>
<updated>2008-02-04T15:47:59Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2008-02-04T15:47:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b06ac867176d5d24757bda7e13f6255d6b96d7b'/>
<id>urn:sha1:2b06ac867176d5d24757bda7e13f6255d6b96d7b</id>
<content type='text'>
Instead of grabbing the BKL on seek, use the inode mutex in the style
of generic_file_llseek().

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</content>
</entry>
<entry>
<title>x86: fix section mismatch warnings when referencing notifiers</title>
<updated>2008-02-01T16:49:42Z</updated>
<author>
<name>Sam Ravnborg</name>
</author>
<published>2008-02-01T16:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c72258c7c9de448d5ea826ec6b4737eccbaa6718'/>
<id>urn:sha1:c72258c7c9de448d5ea826ec6b4737eccbaa6718</id>
<content type='text'>
Fix the following warnings:
WARNING: arch/x86/kernel/built-in.o(.exit.text+0xf8): Section mismatch in reference from the function msr_exit() to the variable .cpuinit.data:msr_class_cpu_notifier
WARNING: arch/x86/kernel/built-in.o(.exit.text+0x158): Section mismatch in reference from the function cpuid_exit() to the variable .cpuinit.data:cpuid_class_cpu_notifier
WARNING: arch/x86/kernel/built-in.o(.exit.text+0x171): Section mismatch in reference from the function microcode_exit() to the variable .cpuinit.data:mc_cpu_notifier

In all three cases there were a function annotated __exit
that referenced a variable annotated __cpuinitdata.

The fix was to replace the annotation of the notifier
with __refdata to tell modpost that the reference to
a _cpuinit function in the notifier are OK.
The unregister call that references the notifier
variable will simple delete the function pointer
so there is no problem ignoring the reference.

Note: This looks like another case where __cpuinit
has been used as replacement for proper use
of CONFIG_HOTPLUG_CPU to decide what code are used for
HOTPLUG_CPU.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
</feed>
