23 Jul, 2008

1 commit


22 Jul, 2008

13 commits

  • currently if you use PTRACE_SINGLEBLOCK on AMD K6-3 (i586) it will crash.
    Kernel now wrongly assumes existing DEBUGCTLMSR MSR register there.

    Removed the assumption also for some other non-K6 CPUs but I am not sure there
    (but it can only bring small inefficiency there if my assumption is wrong).

    Based on info from Roland McGrath, Chuck Ebbert and Mikulas Patocka.
    More info at:
    https://bugzilla.redhat.com/show_bug.cgi?id=456175

    Signed-off-by: Jan Kratochvil
    Cc:
    Signed-off-by: Ingo Molnar

    Jan Kratochvil
     
  • PTE_PFN_MASK was getting lonely, so I made it a friend.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Rusty Russell
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • Rusty, in his peevish way, complained that macros defining constants
    should have a name which somewhat accurately reflects the actual
    purpose of the constant.

    Aside from the fact that PTE_MASK gives no clue as to what's actually
    being masked, and is misleadingly similar to the functionally entirely
    different PMD_MASK, PUD_MASK and PGD_MASK, I don't really see what the
    problem is.

    But if this patch silences the incessent noise, then it will have
    achieved its goal (TODO: write test-case).

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Rusty Russell
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • (Jeremy said:
    rusty: use PTE_MASK
    rusty: use PTE_MASK
    rusty: use PTE_MASK
    When I asked:
    jsgf: does that include the NX flag?
    He responded eloquently:
    rusty: use PTE_MASK
    rusty: use PTE_MASK
    yes, it's the official constant of masking flags out of ptes
    )

    Change a15af1c9ea2750a9ff01e51615c45950bad8221b 'x86/paravirt: add
    pte_flags to just get pte flags' removed lguest's private pte_flags()
    in favor of a generic one.

    Unfortunately, the generic one doesn't filter out the non-flags bits:
    this results in lguest creating corrupt shadow page tables and blowing
    up host memory.

    Since noone is supposed to use the pfn part of pte_flags(), it seems
    safest to always do the filtering.

    Signed-off-by: Rusty Russell
    Acked-by: Jeremy Fitzhardinge
    Signed-off-and-morning-tea-spilled-by: Ingo Molnar

    Rusty Russell
     
  • beauty fix: /proc/cpuinfo will still show apic feature even if
    we booted up with it disabled.

    Signed-off-by: Yinghai Lu
    Signed-off-by: Ingo Molnar

    Yinghai Lu
     
  • Use the new generic int attribute accessors for the x86 mce tolerant
    attribute. Simple example to illustrate the new macros.

    There are much more places all over the tree that could be converted
    like this.

    Signed-off-by: Andi Kleen
    Signed-off-by: Greg Kroah-Hartman

    Andi Kleen
     
  • This allow to dynamically generate attributes and share show/store
    functions between attributes. Right now most attributes are generated
    by special macros and lots of duplicated code. With the attribute
    passed it's instead possible to attach some data to the attribute
    and then use that in shared low level functions to do different things.

    I need this for the dynamically generated bank attributes in the x86
    machine check code, but it'll allow some further cleanups.

    I converted all users in tree to the new show/store prototype. It's a single
    huge patch to avoid unbisectable sections.

    Runtime tested: x86-32, x86-64
    Compiled only: ia64, powerpc
    Not compile tested/only grep converted: sh, arm, avr32

    Signed-off-by: Andi Kleen
    Signed-off-by: Greg Kroah-Hartman

    Andi Kleen
     
  • We have the dev_printk() variants for this kind of thing, use them
    instead of directly trying to access the bus_id field of struct device.

    This is done in order to remove bus_id entirely.

    Cc: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • device_create() is race-prone, so use the race-free
    device_create_drvdata() instead as device_create() is going away.

    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: H. Peter Anvin
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] cpufreq: remove CVS keywords
    [CPUFREQ] change cpu freq arrays to per_cpu variables

    Linus Torvalds
     
  • The message talked about "left on" when it meant to say disabled.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • There are a couple of places where (P)Dprintk is used which is an old
    compile time enabled printk wrapper. Convert it to the generic
    pr_debug().

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     

21 Jul, 2008

7 commits


20 Jul, 2008

19 commits