Skip to content

Early USB debug port and i386 boot cleanups

Eric W. Biederman lkml virtualization 1 version Applied

Status from this message: Merged into the original patch thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 16 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12x86_64: Allow fixmaps to be used with the initial page table.arch/x86_64/kernel/head.S+13 -10 replies
1/12x86_64: Allow fixmaps to be used with the initial page table.arch/x86_64/kernel/head.S+13 -11 reply
2/12i386 head.S: Remove unnecessary use of %ebx as the boot cpu flagarch/i386/kernel/head.S+1 -60 replies
2/12i386 head.S: Remove unnecessary use of %ebx as the boot cpu flagarch/i386/kernel/head.S+1 -60 replies
3/12i386 head.S: Always run the full set of paging statearch/i386/kernel/head.S+2 -20 replies
3/12i386 head.S: Always run the full set of paging statearch/i386/kernel/head.S+2 -20 replies
4/12i386 voyager: Use modern techniques to setup and teardown low identiy mappings.arch/i386/mach-voyager/voyager_smp.c+6 -322 replies
5/12i386: During page table initialization always set the leaf page table entries.arch/i386/mm/init.c+20 -320 replies
5/12i386: During page table initialization always set the leaf page table entries.arch/i386/mm/init.c+20 -323 replies
6/12i386: Minimum cpu detection cleanups.arch/i386/kernel/verify_cpu.S include/asm-i386/required-features.h+3 -62 replies
7/12i386: Add missing !X86_PAE dependincy to the 2G/2G split.arch/i386/Kconfig+1 -02 replies
8/12i386: Convert the boot time page tables to the kernels native format.arch/i386/Kconfig arch/i386/kernel/efi.c arch/i386/kernel/head.S +8 more+137 -2443 replies
9/12i386/x86_64: EHCI usb debug port early printk support.arch/x86_64/kernel/early_printk.c drivers/usb/host/ehci.h include/asm-i386/fixmap.h +1 more+581 -03 replies
10/12i386: Introduce head32.carch/i386/Makefile arch/i386/kernel/Makefile arch/i386/kernel/head.S +1 more+17 -30 replies
11/12i386: Move setup_idt from head.S to head32.carch/i386/kernel/head.S arch/i386/kernel/head32.c+31 -630 replies
12/12i386: remove cpuid checking in head.Sarch/i386/kernel/cpu/common.c arch/i386/kernel/head.S arch/i386/kernel/setup.c+47 -1070 replies

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchJeremy Fitzhardinge
1/12
1/12
2/12
2/12
3/12
3/12
4/12
5/12A-b A-b
5/12A-b A-b
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/12] Early USB debug port and i386 boot cleanups

Modern hardware relies primarily on memory mapped I/O which is typically at addresses that are not mapped by the kernels initial page tables, which makes using them currently unusable for early debugging print support.

So this patch set digs in and fixes the early page tables on both arch/i386 and arch/x86_64 so that set_fixmap works with our initial boot
page tables. All that is needed is that we allocate preallocate the pte
page that the fixmap entries live on.

On arch/i386 I accomplish this by ensuring the boot time page tables are in the native mode. Doing this provides an alternative and slightly more capable fix to Jeremy's problem of not having the initial memory mapping covering enough pages to identity map all of low memory. Because we are now updating the page table we are running on we add the mappings we need for the initial page table as we build the initial page table.

Since I was in there I kept cleaning up arch/i386/head.S. In particular I have gotten as far as removing the early cpuid, and have added a head32.S.

Eric