<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/x86/kernel/head64.c, branch linux-3.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-05-20T18:36:03Z</updated>
<entry>
<title>x86: Fix bit corruption at CPU resume time</title>
<updated>2013-05-20T18:36:03Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2013-05-20T18:36:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e427ec2d066b48a5c27b3a5a3315f7e4e729077'/>
<id>urn:sha1:5e427ec2d066b48a5c27b3a5a3315f7e4e729077</id>
<content type='text'>
In commit 78d77df71510 ("x86-64, init: Do not set NX bits on non-NX
capable hardware") we added the early_pmd_flags that gets the NX bit set
when a CPU supports NX. However, the new variable was marked __initdata,
because the main _use_ of this is in an __init routine.

However, the bit setting happens from secondary_startup_64(), which is
called not only at bootup, but on every secondary CPU start.  Including
resuming from STR and at CPU hotplug time.  So the value cannot be
__initdata.

Reported-bisected-and-tested-by: Michal Hocko &lt;mhocko@suse.cz&gt;
Cc: stable@vger.kernel.org # v3.9
Acked-by: Peter Anvin &lt;hpa@linux.intel.com&gt;
Cc: Fernando Luis Vázquez Cao &lt;fernando@oss.ntt.co.jp&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>x86-64, init: Do not set NX bits on non-NX capable hardware</title>
<updated>2013-05-02T18:27:35Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2013-05-02T17:33:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=78d77df71510a96e042de7ba6dbd7998103642cb'/>
<id>urn:sha1:78d77df71510a96e042de7ba6dbd7998103642cb</id>
<content type='text'>
During early init, we would incorrectly set the NX bit even if the NX
feature was not supported.  Instead, only set this bit if NX is
actually available and enabled.  We already do very early detection of
the NX bit to enable it in EFER, this simply extends this detection to
the early page table mask.

Reported-by: Fernando Luis Vázquez Cao &lt;fernando@oss.ntt.co.jp&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
Link: http://lkml.kernel.org/r/1367476850.5660.2.camel@nexus
Cc: &lt;stable@vger.kernel.org&gt; v3.9
</content>
</entry>
<entry>
<title>x86: Drop KERNEL_IMAGE_START</title>
<updated>2013-04-02T23:03:29Z</updated>
<author>
<name>Borislav Petkov</name>
</author>
<published>2013-03-04T20:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e3c2a8cf647e2f3a1e9d38009b0d1c02145822f'/>
<id>urn:sha1:8e3c2a8cf647e2f3a1e9d38009b0d1c02145822f</id>
<content type='text'>
We have KERNEL_IMAGE_START and __START_KERNEL_map which both contain the
start of the kernel text mapping's virtual address. Remove the prior one
which has been replicated a lot less times around the tree.

No functionality change.

Signed-off-by: Borislav Petkov &lt;bp@alien8.de&gt;
Link: http://lkml.kernel.org/r/1362428180-8865-3-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'x86/microcode' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip</title>
<updated>2013-02-23T03:22:52Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2013-02-23T03:22:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c47f39e3b75e1138823984ad5079547c7a41b726'/>
<id>urn:sha1:c47f39e3b75e1138823984ad5079547c7a41b726</id>
<content type='text'>
Pull x86 microcode loading update from Peter Anvin:
 "This patchset lets us update the CPU microcode very, very early in
  initialization if the BIOS fails to do so (never happens, right?)

  This is handy for dealing with things like the Atom erratum where we
  have to run without PSE because microcode loading happens too late.

  As I mentioned in the x86/mm push request it depends on that
  infrastructure but it is otherwise a standalone feature."

* 'x86/microcode' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/Kconfig: Make early microcode loading a configuration feature
  x86/mm/init.c: Copy ucode from initrd image to kernel memory
  x86/head64.c: Early update ucode in 64-bit
  x86/head_32.S: Early update ucode in 32-bit
  x86/microcode_intel_early.c: Early update ucode on Intel's CPU
  x86/tlbflush.h: Define __native_flush_tlb_global_irq_disabled()
  x86/microcode_intel_lib.c: Early update ucode on Intel's CPU
  x86/microcode_core_early.c: Define interfaces for early loading ucode
  x86/common.c: load ucode in 64 bit or show loading ucode info in 32 bit on AP
  x86/common.c: Make have_cpuid_p() a global function
  x86/microcode_intel.h: Define functions and macros for early loading ucode
  x86, doc: Documentation for early microcode loading
</content>
</entry>
<entry>
<title>x86-64: don't set the early IDT to point directly to 'early_idt_handler'</title>
<updated>2013-02-22T21:09:51Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2013-02-22T21:09:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac630dd98a47b60b27d716758d5f4276cb974662'/>
<id>urn:sha1:ac630dd98a47b60b27d716758d5f4276cb974662</id>
<content type='text'>
The code requires the use of the proper per-exception-vector stub
functions (set up as the early_idt_handlers[] array - note the 's') that
make sure to set up the error vector number.  This is true regardless of
whether CONFIG_EARLY_PRINTK is set or not.

Why? The stack offset for the comparison of __KERNEL_CS won't be right
otherwise, nor will the new check (from commit 8170e6bed465: "x86,
64bit: Use a #PF handler to materialize early mappings on demand") for
the page fault exception vector.

Acked-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>x86/head64.c: Early update ucode in 64-bit</title>
<updated>2013-01-31T21:20:24Z</updated>
<author>
<name>Fenghua Yu</name>
</author>
<published>2012-12-21T07:44:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=feddc9de8bf69415da6f96eca0219186b70d145a'/>
<id>urn:sha1:feddc9de8bf69415da6f96eca0219186b70d145a</id>
<content type='text'>
This updates ucode on BSP in 64-bit mode. Paging and virtual address are
working now.

Signed-off-by: Fenghua Yu &lt;fenghua.yu@intel.com&gt;
Link: http://lkml.kernel.org/r/1356075872-3054-11-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>x86: Merge early kernel reserve for 32bit and 64bit</title>
<updated>2013-01-30T03:32:58Z</updated>
<author>
<name>Yinghai Lu</name>
</author>
<published>2013-01-24T20:20:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c902b656c4a808d9c6f40a387b166455efecd62'/>
<id>urn:sha1:6c902b656c4a808d9c6f40a387b166455efecd62</id>
<content type='text'>
They are the same, and we could move them out from head32/64.c to setup.c.

We are using memblock, and it could handle overlapping properly, so
we don't need to reserve some at first to hold the location, and just
need to make sure we reserve them before we are using memblock to find
free mem to use.

Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt;
Link: http://lkml.kernel.org/r/1359058816-7615-32-git-send-email-yinghai@kernel.org
Cc: Alexander Duyck &lt;alexander.h.duyck@intel.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>x86, boot: Support loading bzImage, boot_params and ramdisk above 4G</title>
<updated>2013-01-30T03:32:33Z</updated>
<author>
<name>Yinghai Lu</name>
</author>
<published>2013-01-29T04:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee92d815027a76ef92f3ec7b155b0c8aa345f239'/>
<id>urn:sha1:ee92d815027a76ef92f3ec7b155b0c8aa345f239</id>
<content type='text'>
xloadflags bit 1 indicates that we can load the kernel and all data
structures above 4G; it is set if kernel is relocatable and 64bit.

bootloader will check if xloadflags bit 1 is set to decide if
it could load ramdisk and kernel high above 4G.

bootloader will fill value to ext_ramdisk_image/size for high 32bits
when it load ramdisk above 4G.
kernel use get_ramdisk_image/size to use ext_ramdisk_image/size to get
right positon for ramdisk.

Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt;
Cc: Rob Landley &lt;rob@landley.net&gt;
Cc: Matt Fleming &lt;matt.fleming@intel.com&gt;
Cc: Gokul Caushik &lt;caushik1@gmail.com&gt;
Cc: Josh Triplett &lt;josh@joshtriplett.org&gt;
Cc: Joe Millenbach &lt;jmillenbach@gmail.com&gt;
Link: http://lkml.kernel.org/r/1359058816-7615-26-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>x86, boot: Add get_cmd_line_ptr()</title>
<updated>2013-01-29T23:25:45Z</updated>
<author>
<name>Yinghai Lu</name>
</author>
<published>2013-01-24T20:19:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1da834cd902f5e5df0b11a3948fc43c6071b590'/>
<id>urn:sha1:f1da834cd902f5e5df0b11a3948fc43c6071b590</id>
<content type='text'>
Add an accessor function for the command line address.
Later we will add support for holding a 64-bit address via ext_cmd_line_ptr.

Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt;
Link: http://lkml.kernel.org/r/1359058816-7615-17-git-send-email-yinghai@kernel.org
Cc: Gokul Caushik &lt;caushik1@gmail.com&gt;
Cc: Josh Triplett &lt;josh@joshtriplett.org&gt;
Cc: Joe Millenbach &lt;jmillenbach@gmail.com&gt;
Cc: Alexander Duyck &lt;alexander.h.duyck@intel.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>x86: Merge early_reserve_initrd for 32bit and 64bit</title>
<updated>2013-01-29T23:20:41Z</updated>
<author>
<name>Yinghai Lu</name>
</author>
<published>2013-01-24T20:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b8c78be01203e1c95ec5dfef6db307796fe0bc7'/>
<id>urn:sha1:1b8c78be01203e1c95ec5dfef6db307796fe0bc7</id>
<content type='text'>
They are the same, could move them out from head32/64.c to setup.c.

We are using memblock, and it could handle overlapping properly, so
we don't need to reserve some at first to hold the location, and just
need to make sure we reserve them before we are using memblock to find
free mem to use.

Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt;
Link: http://lkml.kernel.org/r/1359058816-7615-15-git-send-email-yinghai@kernel.org
Reviewed-by: Pekka Enberg &lt;penberg@kernel.org&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
</feed>
