22 Jun, 2011

1 commit

  • Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).

    To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
    definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
    via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
    Removal of mm.h from scatterlist.h was tried and was found not feasible
    on most archs, so the link was cutoff earlier.

    Hope people are OK with tiny include file.

    Note, that mm_types.h is still dragged in, but it is a separate story.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     

21 Jun, 2011

4 commits


20 Jun, 2011

5 commits


19 Jun, 2011

1 commit

  • Commit 916f676f8dc started reserving boot service code since some systems
    require you to keep that code around until SetVirtualAddressMap is called.

    However, in some cases those areas will overlap with reserved regions.
    The proper medium-term fix is to fix the bootloader to prevent the
    conflicts from occurring by moving the kernel to a better position,
    but the kernel should check for this possibility, and only reserve regions
    which can be reserved.

    Signed-off-by: Maarten Lankhorst
    Link: http://lkml.kernel.org/r/4DF7A005.1050407@gmail.com
    Acked-by: Matthew Garrett
    Signed-off-by: H. Peter Anvin
    Signed-off-by: Ingo Molnar

    Maarten Lankhorst
     

18 Jun, 2011

3 commits


17 Jun, 2011

3 commits

  • The earlier attempts (24bdb0b62cc82120924762ae6bc85afc8c3f2b26)
    at fixing this problem caused other problems to surface (PV guests
    with no PCI passthrough would have SWIOTLB turned on - which meant
    64MB of precious contingous DMA32 memory being eaten up per guest).
    The problem was: "on xen we add an extra memory region at the end of
    the e820, and on this particular machine this extra memory region
    would start below 4g and cross over the 4g boundary:

    [0xfee01000-0x192655000)

    Unfortunately e820_end_of_low_ram_pfn does not expect an
    e820 layout like that so it returns 4g, therefore initial_memory_mapping
    will map [0 - 0x100000000), that is a memory range that includes some
    reserved memory regions."

    The memory range was the IOAPIC regions, and with the 1-1 mapping
    turned on, it would map them as RAM, not as MMIO regions. This caused
    the hypervisor to complain. Fortunately this is experienced only under
    the initial domain so we guard for it.

    Acked-by: Stefano Stabellini
    Signed-off-by: Konrad Rzeszutek Wilk

    Konrad Rzeszutek Wilk
     
  • * 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-3.x:
    sh: sh7724: Add USBHS DMAEngine support
    sh: ecovec: Add renesas_usbhs support
    sh, exec: remove redundant set_fs(USER_DS)
    drivers: sh: resume enabled clocks fix
    dmaengine: shdma: SH_DMAC_MAX_CHANNELS message fix
    sh: Fix up xchg/cmpxchg corruption with gUSA RB.
    sh: Remove compressed kernel libgcc dependency.
    sh: fix wrong icache/dcache address-array start addr in cache-debugfs.

    Linus Torvalds
     
  • …nel/git/lethal/sh-3.x

    * 'rmobile-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-3.x:
    ARM: mach-shmobile: mackerel: tidyup usbhs driver settings
    ARM: mach-shmobile: Correct SCIF port types for SH7367.
    ARM: mach-shmobile: sh73a0 gic_arch_extn.irq_set_wake() fix
    ARM: mach-shmobile: Mackerel USB platform data update
    ARM: mach-shmobile: AG5EVM SDHI1 platform data update

    Linus Torvalds
     

16 Jun, 2011

8 commits

  • Some files use GPIOF_ macros but don't include the header file
    for them. These macros are being moved to , so add
    includes for where needed.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Grant Likely

    Randy Dunlap
     
  • Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • * 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: footbridge: fix clock event support
    ARM: footbridge: fix debug macros
    ARM: initrd: disable initrds outside of memory
    ARM: extend Code: line by one 16-bit quantity for Thumb instructions
    ARM: 6955/1: cmpxchg syscall should data abort if page not write
    ARM: 6954/1: zImage: fix Thumb2 breakage
    ARM: 6953/1: DT: don't try to access physical address zero
    ARM: 6949/2: mach-u300: fix compilaton warning in IO accessors
    Revert "ARM: 6944/1: mm: allow ASID 0 to be allocated to tasks"
    Revert "ARM: 6943/1: mm: use TTBR1 instead of reserved context ID"
    davinci: make PCM platform devices static
    arm: davinci: Fix fallout from generic irq chip conversion
    ARM: 6894/1: mmci: trigger card detect IRQs on falling and rising edges
    ARM: 6952/1: fix lockdep warning of "unannotated irqs-off"
    ARM: 6951/1: include .bss in memory layout information
    ARM: 6948/1: Fix .size directives for __arm{7,9}tdmi_proc_info
    ARM: 6947/2: mach-u300: fix compilation error in timer
    ARM: 6946/1: vexpress: move v2m clock init to init_early
    ARM: mx51/sdma: Check the chip revision in run-time
    arm: mxs: include asm/processor.h for cpu_relax()

    Linus Torvalds
     
  • Fix several security issues in Alpha-specific syscalls. Untested, but
    mostly trivial.

    1. Signedness issue in osf_getdomainname allows copying out-of-bounds
    kernel memory to userland.

    2. Signedness issue in osf_sysinfo allows copying large amounts of
    kernel memory to userland.

    3. Typo (?) in osf_getsysinfo bounds minimum instead of maximum copy
    size, allowing copying large amounts of kernel memory to userland.

    4. Usage of user pointer in osf_wait4 while under KERNEL_DS allows
    privilege escalation via writing return value of sys_wait4 to kernel
    memory.

    Signed-off-by: Dan Rosenberg
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Matt Turner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Rosenberg
     
  • RTC_CLASS is changed to bool, so 'm' is invalid.

    Signed-off-by: Wanlong Gao
    Acked-by: Mike Frysinger
    Acked-by: Wolfram Sang
    Acked-by: Hans-Christian Egtvedt
    Acked-by: Benjamin Herrenschmidt
    Cc: Guan Xuetao
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wanlong Gao
     
  • .. As it won't actually power off the machine.

    Reported-by: Sven Köhler
    Tested-by: Sven Köhler
    Signed-off-by: Tom Goetz
    Signed-off-by: Konrad Rzeszutek Wilk

    Tom Goetz
     
  • The MAXSMP config option requires CPUMASK_OFFSTACK, which in turn
    requires we init the memory for the maps while we bring up the cpus.
    MAXSMP also increases NR_CPUS to 4096. This increase in size exposed an
    issue in the argument construction for multicalls from
    xen_flush_tlb_others. The args should only need space for the actual
    number of cpus.

    Also in 2.6.39 it exposes a bootup problem.

    BUG: unable to handle kernel NULL pointer dereference at (null)
    IP: [] set_cpu_sibling_map+0x123/0x30d
    ...
    Call Trace:
    [] ? xen_restore_fl_direct_reloc+0x4/0x4
    [] xen_smp_prepare_cpus+0x36/0x135
    ..

    CC: stable@kernel.org
    Signed-off-by: Andrew Jones
    [v2: Updated to compile on 3.0]
    [v3: Updated to compile when CONFIG_SMP is not defined]
    Signed-off-by: Konrad Rzeszutek Wilk

    Andrew Jones
     

15 Jun, 2011

5 commits

  • - usb0 pipe is same as default. own pipe config is not needed
    - usb1 lost get_id function

    Signed-off-by: Kuninori Morimoto
    Acked-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • [ Also from Ben Hutchings and Vitaliy Ivanov
    ]

    Commit 06ae40ce073d ("x86 idle: EXPORT_SYMBOL(default_idle, pm_idle)
    only when APM demands it") removed the export for pm_idle/default_idle
    unless the apm module was modularised and CONFIG_APM_CPU_IDLE was set.

    But the apm module uses pm_idle/default_idle unconditionally,
    CONFIG_APM_CPU_IDLE only affects the bios idle threshold. Adjust the
    export accordingly.

    [ Used #ifdef instead of #if defined() as it's shorter, and what both
    Ben and Vitaliy used.. Andy, you're out-voted ;) - Linus ]

    Reported-by: Randy Dunlap
    Acked-by: Jiri Kosina
    Acked-by: Ingo Molnar
    Acked-by: Len Brown
    Signed-off-by: Andy Whitcroft
    Signed-off-by: Vitaliy Ivanov
    Signed-off-by: Ben Hutchings
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • * 'for-linus-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
    m68k: use kernel processor defines for conditional optimizations
    m68knommu: create config options for CPU classes
    m68knommu: fix linker script exported name sections

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/avr32-2.6:
    avr32, exec: remove redundant set_fs(USER_DS)
    avr32: make intc_resume() return void to conform to syscore_ops
    avr32: add some more at91 to cpu.h definition
    avr32: set CONFIG_CC_OPTIMIZE_FOR_SIZE=y for all defconfigs
    avr32/at32ap: fix mapping of platform device id for USART
    avr32: fix use of non-existing portnr variable in at32_map_usart()

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm: Compare only lower 32 bits of framebuffer map offsets
    drm/i915: Don't leak in i915_gem_shmem_pread_slow()
    drm/radeon/kms: do bounds checking for 3D_LOAD_VBPNTR and bump array limit
    drm/radeon/kms: fix mac g5 quirk
    x86/uv/x2apic: update for change in pci bridge handling.
    alpha, drm: Remove obsolete Alpha support in MGA DRM code
    alpha/drm: Cleanup Alpha support in DRM generic code
    savage: remove unnecessary if statement
    drm/radeon: fix GUI idle IH debug statements
    drm/radeon/kms: check modes against max pixel clock
    drm: fix fbs in DRM_IOCTL_MODE_GETRESOURCES ioctl

    Linus Torvalds
     

14 Jun, 2011

10 commits