26 May, 2008

1 commit

  • init/Kconfig contains a list of configs that are searched
    for if 'make *config' are used with no .config present.
    Extend this list to look at the config identified by
    ARCH_DEFCONFIG.

    With this change we now try the defconfig targets last.

    This fixes a regression reported
    by: Linus Torvalds

    Signed-off-by: Sam Ravnborg
    Cc: Linus Torvalds
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: "H. Peter Anvin"

    Sam Ravnborg
     

11 May, 2008

1 commit


08 May, 2008

1 commit


06 May, 2008

1 commit


05 May, 2008

1 commit


01 May, 2008

2 commits

  • Daniel Drake reported:

    In 2.6.23, if you unpacked a kernel source tarball and then
    ran "make menuconfig" you'd be presented with this message:
    # using defaults found in arch/i386/defconfig

    and the default options would be set.

    The same thing in 2.6.24 does not give you any "using defaults" message, and
    the default config options within menuconfig are rather blank (e.g. no PCI
    support). You can work around this by explicitly running "make defconfig"
    before menuconfig, but it would be nice to have the behaviour the way it was
    for 2.6.23 (and the way it still is for other archs).

    Fixed by adding a x86 specific defconfig list to Kconfig.

    Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=10470
    Tested-by: dsd@gentoo.org
    Signed-off-by: Sam Ravnborg
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Sam Ravnborg
     
  • the 'reboot_force' flag is a notion that non-PC subarchitectures do
    not have.

    also, unify the X86_BIOS_REBOOT option between 32-bit and 64-bit
    and get rid of a few unnecessary Kconfig and Makefile complications
    that way.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Ingo Molnar
     

29 Apr, 2008

2 commits

  • This adds support for OLPC XO hardware. Open Firmware on XOs don't contain
    the VSA, so it is necessary to emulate the PCI BARs in the kernel. This also
    adds functionality for running EC commands, and a CONFIG_OLPC.

    A number of OLPC drivers depend upon CONFIG_OLPC.

    olpc_ec_timeout is a hack to work around Embedded Controller bugs.

    [akpm@linux-foundation.org: build fix]
    [akpm@linux-foundation.org: geode_has_vsa build fix]
    [akpm@linux-foundation.org: olpc_register_battery_callback doesn't exist]
    Signed-off-by: Andres Salomon
    Acked-by: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Andi Kleen
    Cc: Jordan Crouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • iommu_is_span_boundary in lib/iommu-helper.c was exported for PARISC IOMMUs
    (commit 3715863aa142c4f4c5208f5f3e5e9bac06006d2f). SWIOTLB can use it instead
    of the homegrown function.

    Signed-off-by: FUJITA Tomonori
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: H. Peter Anvin
    Cc: Tony Luck
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    FUJITA Tomonori
     

28 Apr, 2008

2 commits

  • Turn CONFIG_DMI into a selectable option if EMBEDDED is defined, in
    order to be able to remove the DMI table scanning code if it's not
    needed, and then reduce the kernel code size.

    With CONFIG_DMI (i.e before) :

    text data bss dec hex filename
    1076076 128656 98304 1303036 13e1fc vmlinux

    Without CONFIG_DMI (i.e after) :

    text data bss dec hex filename
    1068092 126308 98304 1292704 13b9a0 vmlinux

    Result:

    text data bss dec hex filename
    -7984 -2348 0 -10332 -285c vmlinux

    The new option appears in "Processor type and features", only when
    CONFIG_EMBEDDED is defined.

    This patch is part of the Linux Tiny project, and is based on previous work
    done by Matt Mackall .

    Signed-off-by: Thomas Petazzoni
    Acked-by: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: "H. Anvin"
    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Petazzoni
     
  • Not all architectures define cache_line_size() so as suggested by Andrew move
    the private implementations in mm/slab.c and mm/slob.c to .

    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: H. Peter Anvin
    Reviewed-by: Christoph Lameter
    Signed-off-by: Pekka Enberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pekka Enberg
     

27 Apr, 2008

4 commits


26 Apr, 2008

1 commit


25 Apr, 2008

1 commit


22 Apr, 2008

1 commit

  • …linux-2.6-sched-devel

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched-devel: (62 commits)
    sched: build fix
    sched: better rt-group documentation
    sched: features fix
    sched: /debug/sched_features
    sched: add SCHED_FEAT_DEADLINE
    sched: debug: show a weight tree
    sched: fair: weight calculations
    sched: fair-group: de-couple load-balancing from the rb-trees
    sched: fair-group scheduling vs latency
    sched: rt-group: optimize dequeue_rt_stack
    sched: debug: add some debug code to handle the full hierarchy
    sched: fair-group: SMP-nice for group scheduling
    sched, cpuset: customize sched domains, core
    sched, cpuset: customize sched domains, docs
    sched: prepatory code movement
    sched: rt: multi level group constraints
    sched: task_group hierarchy
    sched: fix the task_group hierarchy for UID grouping
    sched: allow the group scheduler to have multiple levels
    sched: mix tasks and groups
    ...

    Linus Torvalds
     

20 Apr, 2008

2 commits

  • * Here is a simple patch to use an allocated array of cpumasks to
    represent cpumask_of_cpu() instead of constructing one on the stack.
    It's based on the Kconfig option "HAVE_CPUMASK_OF_CPU_MAP" which is
    currently only set for x86_64 SMP. Otherwise the the existing
    cpumask_of_cpu() is used but has been changed to produce an lvalue
    so a pointer to it can be used.

    Cc: H. Peter Anvin
    Signed-off-by: Christoph Lameter
    Signed-off-by: Mike Travis
    Signed-off-by: Ingo Molnar

    Mike Travis
     
  • For example, If the physical address layout on a two node system with 8 GB
    memory is something like:
    node 0: 0-2GB, 4-6GB
    node 1: 2-4GB, 6-8GB

    Current kernels fail to boot/detect this NUMA topology.

    ACPI SRAT tables can expose such a topology which needs to be supported.

    Signed-off-by: Suresh Siddha
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Suresh Siddha
     

18 Apr, 2008

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-kgdb:
    kgdb: always use icache flush for sw breakpoints
    kgdb: fix SMP NMI kgdb_handle_exception exit race
    kgdb: documentation fixes
    kgdb: allow static kgdbts boot configuration
    kgdb: add documentation
    kgdb: Kconfig fix
    kgdb: add kgdb internal test suite
    kgdb: fix several kgdb regressions
    kgdb: kgdboc pl011 I/O module
    kgdb: fix optional arch functions and probe_kernel_*
    kgdb: add x86 HW breakpoints
    kgdb: print breakpoint removed on exception
    kgdb: clocksource watchdog
    kgdb: fix NMI hangs
    kgdb: fix kgdboc dynamic module configuration
    kgdb: document parameters
    x86: kgdb support
    consoles: polling support, kgdboc
    kgdb: core
    uaccess: add probe_kernel_write()

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86: (613 commits)
    x86: standalone trampoline code
    x86: move suspend wakeup code to C
    x86: coding style fixes to arch/x86/kernel/acpi/sleep.c
    x86: setup_trampoline() - fix section mismatch warning
    x86: section mismatch fixes, #1
    x86: fix paranoia about using BIOS quickboot mechanism.
    x86: print out buggy mptable
    x86: use cpu_online()
    x86: use cpumask_of_cpu()
    x86: remove unnecessary tmp local variable
    x86: remove unnecessary memset()
    x86: use ioapic_read_entry() and ioapic_write_entry()
    x86: avoid redundant loop in io_apic_level_ack_pending()
    x86: remove superfluous initialisation in boot code.
    x86: merge mpparse_{32,64}.c
    x86: unify mp_register_gsi
    x86: unify mp_config_acpi_legacy_irqs
    x86: unify mp_register_ioapic
    x86: unify uniq_io_apic_id
    x86: unify smp_scan_config
    ...

    Linus Torvalds
     
  • simplified and streamlined kgdb support on x86, both 32-bit and 64-bit,
    based on patch from:

    Subject: kgdb: core-lite
    From: Jason Wessel

    [ and countless other authors - see the patch for details. ]

    Signed-off-by: Ingo Molnar
    Signed-off-by: Jason Wessel
    Signed-off-by: Jan Kiszka
    Reviewed-by: Thomas Gleixner

    Ingo Molnar
     

17 Apr, 2008

11 commits

  • Move wakeup code to .c, so that video mode setting code can be shared
    between boot and wakeup. Remove nasty assembly code in 64-bit case by
    re-using trampoline code. Stack setup was fixed to clear high 16bits
    of %esp, maybe that fixes some machines.

    .c code sharing and morse code was done H. Peter Anvin, Sam Ravnborg
    reviewed kbuild related stuff, and it seems okay to him. Rafael did
    some cleanups.

    [rjw:
    * Made the patch stop breaking compilation on x86-32
    * Added arch/x86/kernel/acpi/sleep.h
    * Got rid of compiler warnings in arch/x86/kernel/acpi/sleep.c
    * Fixed 32-bit compilation on x86-64 systems
    * Added include/asm-x86/trampoline.h and fixed the non-SMP
    compilation on 64-bit x86
    * Removed arch/x86/kernel/acpi/sleep_32.c which was not used
    * Fixed some breakage caused by the integration of smpboot.c done
    under us in the meantime]

    Signed-off-by: Pavel Machek
    Signed-off-by: H. Peter Anvin
    Reviewed-by: Sam Ravnborg
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Ingo Molnar

    Pavel Machek
     
  • without this patch:

    VOYAGER:
    kernel/built-in.o: In function `crash_kexec':
    (.text+0x28588): undefined reference to `machine_crash_shutdown'

    VISWS:
    kernel/built-in.o: In function `crash_kexec':
    /next-20080401/kernel/kexec.c:1074: undefined reference to `machine_crash_shutdown'
    make[1]: *** [.tmp_vmlinux1] Error 1

    because arch/x86/kernel/reboot.c isn't built since CONFIG_X86_BIOS_REBOOT=n,
    so machine_crash_shutdown() isn't available.

    This patch does seem a small bit odd since the KEXEC help text says that
    kexec is independent of the system firmware.

    Signed-off-by: Randy Dunlap
    Cc: Eric Biederman
    Cc: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Ingo Molnar

    Randy Dunlap
     
  • Signed-off-by: Yinghai Lu
    Signed-off-by: Ingo Molnar

    Yinghai Lu
     
  • Allow the maximum number of nodes in an x86_64 system to
    be configurable. This patch does NOT change the default value
    but allows the value to be a config option.

    Signed-off-by: Jack Steiner
    Signed-off-by: Ingo Molnar

    Jack Steiner
     
  • Fix double help section in PAT Kconfig. Thanks to Randy Dunlap for catching
    this bug.

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Ingo Molnar

    Venki Pallipadi
     
  • Sets up pat_init() infrastructure.

    PAT MSR has following setting.
    PAT
    |PCD
    ||PWT
    |||
    000 WB _PAGE_CACHE_WB
    001 WC _PAGE_CACHE_WC
    010 UC- _PAGE_CACHE_UC_MINUS
    011 UC _PAGE_CACHE_UC

    We are effectively changing WT from boot time setting to WC.
    UC_MINUS is used to provide backward compatibility to existing /dev/mem
    users(X).

    reserve_memtype and free_memtype are new interfaces for maintaining alias-free
    mapping. It is currently implemented in a simple way with a linked list and
    not optimized. reserve and free tracks the effective memory type, as a result
    of PAT and MTRR setting rather than what is actually requested in PAT.

    pat_init piggy backs on mtrr_init as the rules for setting both pat and mtrr
    are same.

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Suresh Siddha
    Signed-off-by: Ingo Molnar

    venkatesh.pallipadi@intel.com
     
  • We use the same routing as x86_64, moved now to setup.c.
    Just with a few ifdefs inside.
    Note that this routing uses prefill_possible_map().
    It has the very nice side effect of allowing hotplugging of
    cpus that are marked as present but disabled by acpi bios.

    Signed-off-by: Glauber Costa
    Signed-off-by: Ingo Molnar

    Glauber de Oliveira Costa
     
  • The proper dependency check uncovered a few dependency problems,
    the subarchitecture used a mixture of selects and depends on SMP
    and PCI dependency was messed up.

    Signed-off-by: Roman Zippel
    Signed-off-by: Ingo Molnar

    Roman Zippel
     
  • X86_HT is used for hyperthreading or multicore on 32-bit.
    The X86_HT on 64-bit is different from 32-bit, it means hyperthreading only.
    And X86_HT is not used on 64-bit except from cpu/initel_cacheinfo.c.

    Unify X86_HT for hyperthreading or multicore.
    Turn X86_HT on when X86_64 and SMP are enabled.

    Signed-off-by: Hiroshi Shimamoto
    Signed-off-by: Ingo Molnar

    Hiroshi Shimamoto
     
  • Signed-off-by: Glauber Costa
    Signed-off-by: Ravikiran Thirumalai
    Acked-by: Shai Fultheim
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Glauber Costa
     
  • Semaphores are no longer performance-critical, so a generic C
    implementation is better for maintainability, debuggability and
    extensibility. Thanks to Peter Zijlstra for fixing the lockdep
    warning. Thanks to Harvey Harrison for pointing out that the
    unlikely() was unnecessary.

    Signed-off-by: Matthew Wilcox
    Acked-by: Ingo Molnar

    Matthew Wilcox
     

13 Mar, 2008

1 commit


12 Mar, 2008

1 commit

  • quicklists cause a serious memory leak on 32-bit x86,
    as documented at:

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

    the reason is that the quicklist pool is a special-purpose
    cache that grows out of proportion. It is not accounted for
    anywhere and users have no way to even realize that it's
    the quicklists that are causing RAM usage spikes. It was
    supposed to be a relatively small pool, but as demonstrated
    by KOSAKI Motohiro, they can grow as large as:

    Quicklists: 1194304 kB

    given how much trouble this code has caused historically,
    and given that Andrew objected to its introduction on x86
    (years ago), the best option at this point is to remove them.

    [ any performance benefits of caching constructed pgds should
    be implemented in a more generic way (possibly within the page
    allocator), while still allowing constructed pages to be
    allocated by other workloads. ]

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Thomas Gleixner
     

05 Mar, 2008

1 commit

  • Add CONFIG_HAVE_KRETPROBES to the arch//Kconfig file for relevant
    architectures with kprobes support. This facilitates easy handling of
    in-kernel modules (like samples/kprobes/kretprobe_example.c) that depend on
    kretprobes being present in the kernel.

    Thanks to Sam Ravnborg for helping make the patch more lean.

    Per Mathieu's suggestion, added CONFIG_KRETPROBES and fixed up dependencies.

    Signed-off-by: Ananth N Mavinakayanahalli
    Acked-by: Mathieu Desnoyers
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ananth N Mavinakayanahalli
     

04 Mar, 2008

1 commit


23 Feb, 2008

1 commit

  • It's always been broken, but recent fixes actually made it do something,
    and now the brokenness shows up as the resulting kernel simply not
    working at all.

    So it used to be that you could enable this config option, and it just
    didn't do anything. Now we'd better stop people from enabling it by
    mistake, since it _does_ do something, but does it so badly as to be
    unusable.

    Code to actually make it work is pending, but incomplete and won't be
    merged into 2.6.25 in any case.

    Acked-by: Arjan van de Ven
    Acked-by: Sam Ravnborg
    Cc: James Morris
    Cc: Ingo Molnar
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

15 Feb, 2008

1 commit