03 Apr, 2009

1 commit

  • This fixes a build failure with generic debug pagealloc:

    mm/debug-pagealloc.c: In function 'set_page_poison':
    mm/debug-pagealloc.c:8: error: 'struct page' has no member named 'debug_flags'
    mm/debug-pagealloc.c: In function 'clear_page_poison':
    mm/debug-pagealloc.c:13: error: 'struct page' has no member named 'debug_flags'
    mm/debug-pagealloc.c: In function 'page_poison':
    mm/debug-pagealloc.c:18: error: 'struct page' has no member named 'debug_flags'
    mm/debug-pagealloc.c: At top level:
    mm/debug-pagealloc.c:120: error: redefinition of 'kernel_map_pages'
    include/linux/mm.h:1278: error: previous definition of 'kernel_map_pages' was here
    mm/debug-pagealloc.c: In function 'kernel_map_pages':
    mm/debug-pagealloc.c:122: error: 'debug_pagealloc_enabled' undeclared (first use in this function)

    by fixing

    - debug_flags should be in struct page
    - define DEBUG_PAGEALLOC config option for all architectures

    Signed-off-by: Akinobu Mita
    Reported-by: Alexander Beregalov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

02 Apr, 2009

17 commits

  • "struct tty_driver *" lies in m->private not in v which is
    SEQ_TOKEN_START which is 1 which is enough to trigger NULL dereference
    next line:

    BUG: unable to handle kernel NULL pointer dereference at 000000ad
    IP: [] uart_proc_show+0xe/0x2b0

    Noticed by Linus.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: (29 commits)
    [IA64] BUG to BUG_ON changes
    [IA64] Fix typo/thinko in arch/ia64/sn/kernel/sn2/sn2_smp.c
    ia64: remove some warnings.
    ia64/xen: fix the link error.
    ia64/pv_ops/bp/xen: implemented binary patchable pv_cpu_ops.
    ia64/pv_ops/binary patch: define paravirt_dv_serialize_data() and suppress false positive warning.
    ia64/pv_ops/bp/module: support binary patching for kernel module.
    ia64/pv_ops: implement binary patching optimization for native.
    ia64/pv_op/binarypatch: add helper functions to support binary patching for paravirt_ops.
    ia64/pv_ops/xen/gate.S: xen gate page paravirtualization
    ia64/pv_ops: paravirtualize gate.S.
    ia64/pv_ops: move down __kernel_syscall_via_epc.
    ia64/pv_ops/xen: define xen specific gate page.
    ia64/pv_ops: gate page paravirtualization.
    ia64/pv_ops/xen/pv_time_ops: implement sched_clock.
    ia64/pv_ops/pv_time_ops: add sched_clock hook.
    ia64/pv_ops/xen: paravirtualize read/write ar.itc and ar.itm
    ia64/pv_ops: paravirtualize mov = ar.itc.
    ia64/pv_ops/pvchecker: support mov = ar.itc paravirtualization
    ia64/pv_ops: paravirtualize fsys.S.
    ...

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, setup: guard against pre-ACPI 3 e820 code not updating %ecx

    Linus Torvalds
     
  • Commit 64ef8957986f6a04f61e7c95fa6ffeb3a86a6661 ("qeth: remove EDDP")
    removed the qeth_core_offl.[hc] files, but ended up doing so by just
    patching them to zero size, rather than removing them properly.

    Actually remove the files.

    Reported-by: Andrew Price
    Cc: Frank Blaschka
    Cc: David S. Miller
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Impact: BIOS bug safety

    For pre-ACPI 3 BIOSes, pre-initialize the end of the e820 buffer just
    in case the BIOS returns an unchanged %ecx but without actually
    touching the ACPI 3 extended flags field.

    Signed-off-by: H. Peter Anvin

    H. Peter Anvin
     
  • * 'x86/setup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, setup: ACPI 3, BIOS workaround for E820-probing code
    x86, setup: preemptively save/restore edi and ebp around INT 15 E820
    x86, setup: mark %esi as clobbered in E820 BIOS call

    Linus Torvalds
     
  • * 'for-linus' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: (58 commits)
    SUNRPC: Ensure IPV6_V6ONLY is set on the socket before binding to a port
    NSM: Fix unaligned accesses in nsm_init_private()
    NFS: Simplify logic to compare socket addresses in client.c
    NFS: Start PF_INET6 callback listener only if IPv6 support is available
    lockd: Start PF_INET6 listener only if IPv6 support is available
    SUNRPC: Remove CONFIG_SUNRPC_REGISTER_V4
    SUNRPC: rpcb_register() should handle errors silently
    SUNRPC: Simplify kernel RPC service registration
    SUNRPC: Simplify svc_unregister()
    SUNRPC: Allow callers to pass rpcb_v4_register a NULL address
    SUNRPC: rpcbind actually interprets r_owner string
    SUNRPC: Clean up address type casts in rpcb_v4_register()
    SUNRPC: Don't return EPROTONOSUPPORT in svc_register()'s helpers
    SUNRPC: Use IPv4 loopback for registering AF_INET6 kernel RPC services
    SUNRPC: Set IPV6ONLY flag on PF_INET6 RPC listener sockets
    NFS: Revert creation of IPv6 listeners for lockd and NFSv4 callbacks
    SUNRPC: Remove @family argument from svc_create() and svc_create_pooled()
    SUNRPC: Change svc_create_xprt() to take a @family argument
    SUNRPC: svc_setup_socket() gets protocol family from socket
    SUNRPC: Pass a family argument to svc_register()
    ...

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (33 commits)
    ext4: Regularize mount options
    ext4: fix locking typo in mballoc which could cause soft lockup hangs
    ext4: fix typo which causes a memory leak on error path
    jbd2: Update locking coments
    ext4: Rename pa_linear to pa_type
    ext4: add checks of block references for non-extent inodes
    ext4: Check for an valid i_mode when reading the inode from disk
    ext4: Use WRITE_SYNC for commits which are caused by fsync()
    ext4: Add auto_da_alloc mount option
    ext4: Use struct flex_groups to calculate get_orlov_stats()
    ext4: Use atomic_t's in struct flex_groups
    ext4: remove /proc tuning knobs
    ext4: Add sysfs support
    ext4: Track lifetime disk writes
    ext4: Fix discard of inode prealloc space with delayed allocation.
    ext4: Automatically allocate delay allocated blocks on rename
    ext4: Automatically allocate delay allocated blocks on close
    ext4: add EXT4_IOC_ALLOC_DA_BLKS ioctl
    ext4: Simplify delalloc code by removing mpage_da_writepages()
    ext4: Save stack space by removing fake buffer heads
    ...

    Linus Torvalds
     
  • Trond Myklebust
     
  • Also ensure that we use the protocol family instead of the address
    family when calling sock_create_kern().

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • This fixes unaligned accesses in nsm_init_private() when
    creating nlm_reboot keys.

    Signed-off-by: Mans Rullgard
    Reviewed-by: Chuck Lever
    Signed-off-by: Trond Myklebust

    Mans Rullgard
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable:
    Btrfs: try to free metadata pages when we free btree blocks
    Btrfs: add extra flushing for renames and truncates
    Btrfs: make sure btrfs_update_delayed_ref doesn't increase ref_mod
    Btrfs: optimize fsyncs on old files
    Btrfs: tree logging unlink/rename fixes
    Btrfs: Make sure i_nlink doesn't hit zero too soon during log replay
    Btrfs: limit balancing work while flushing delayed refs
    Btrfs: readahead checksums during btrfs_finish_ordered_io
    Btrfs: leave btree locks spinning more often
    Btrfs: Only let very young transactions grow during commit
    Btrfs: Check for a blocking lock before taking the spin
    Btrfs: reduce stack in cow_file_range
    Btrfs: reduce stalls during transaction commit
    Btrfs: process the delayed reference queue in clusters
    Btrfs: try to cleanup delayed refs while freeing extents
    Btrfs: reduce stack usage in some crucial tree balancing functions
    Btrfs: do extent allocation and reference count updates in the background
    Btrfs: don't preallocate metadata blocks during btrfs_search_slot

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (59 commits)
    ide-floppy: do not complete rq's prematurely
    ide: be able to build pmac driver without IDE built-in
    ide-pmac: IDE cable detection on Apple PowerBook
    ide: inline SELECT_DRIVE()
    ide: turn selectproc() method into dev_select() method (take 5)
    MAINTAINERS: move old ide-{floppy,tape} entries to CREDITS (take 2)
    ide: move data register access out of tf_{read|load}() methods (take 2)
    ide: call {in|out}put_data() methods from tf_{read|load}() methods (take 2)
    ide-io-std: shorten ide_{in|out}put_data()
    ide: rename IDE_TFLAG_IN_[HOB_]FEATURE
    ide: turn set_irq() method into write_devctl() method
    ide: use ATA_HOB
    ide-disk: use ATA_ERR
    ide: add support for CFA specified transfer modes (take 3)
    ide-iops: only clear DMA words on setting DMA mode
    ide: identify data word 53 bit 1 doesn't cover words 62 and 63 (take 3)
    au1xxx-ide: auide_{in|out}sw() should be static
    ide-floppy: use ide_pio_bytes()
    ide-{floppy,tape}: fix padding for PIO transfers
    ide: remove CONFIG_BLK_DEV_IDEDOUBLER config option
    ...

    Linus Torvalds
     
  • Replace:

    if (test)
    BUG();

    with
    BUG_ON(test);

    Signed-off-by: Stoyan Gaydarov
    Signed-off-by: Tony Luck

    Stoyan Gaydarov
     
  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (88 commits)
    PCI: fix HT MSI mapping fix
    PCI: don't enable too much HT MSI mapping
    x86/PCI: make pci=lastbus=255 work when acpi is on
    PCI: save and restore PCIe 2.0 registers
    PCI: update fakephp for bus_id removal
    PCI: fix kernel oops on bridge removal
    PCI: fix conflict between SR-IOV and config space sizing
    powerpc/PCI: include pci.h in powerpc MSI implementation
    PCI Hotplug: schedule fakephp for feature removal
    PCI Hotplug: rename legacy_fakephp to fakephp
    PCI Hotplug: restore fakephp interface with complete reimplementation
    PCI: Introduce /sys/bus/pci/devices/.../rescan
    PCI: Introduce /sys/bus/pci/devices/.../remove
    PCI: Introduce /sys/bus/pci/rescan
    PCI: Introduce pci_rescan_bus()
    PCI: do not enable bridges more than once
    PCI: do not initialize bridges more than once
    PCI: always scan child buses
    PCI: pci_scan_slot() returns newly found devices
    PCI: don't scan existing devices
    ...

    Fix trivial append-only conflict in Documentation/feature-removal-schedule.txt

    Linus Torvalds
     
  • sn2_ptc_init() has what looks like a cut-n-paste error. Fix it.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Tony Luck

    Randy Dunlap
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] cio: online_store - trigger recognition for boxed devices
    [S390] cio: disallow online setting of device in transient state
    [S390] cio: introduce notifier for boxed state
    [S390] cio: introduce ccw_device_schedule_sch_unregister
    [S390] cio: wake up on failed recognition
    [S390] fix hypfs build failure
    [PATCH] sysrq: include interrupt.h instead of irq.h

    Linus Torvalds
     

01 Apr, 2009

22 commits

  • The current logic for dmi matching in efifb does not allow efifb to load
    on all hardware that we can dmi match for.

    For a real world example, boot with elilo (3.7 or 3.8 vanilla) and on a
    Apple (MacBook) and EFI framebuffer driver will not load (you will have no
    video). This specific hardware is efi v1.10, so we have UGA and not GOP.
    Without special bootloader magic (i.e. extra elilo patches for UGA
    graphics detection) no screen info will be passed to the kernel and as a
    result efifb will not load.

    This patch allows the dmi match to happen by moving it to earlier in
    efifb_init, and sets the video type (in set_system) so that efifb can load
    when we have a valid dmi match and already know the specifics of the
    hardware.

    Without this patch the efifb driver will fail to load in the event screen
    info is not found and passed in by the bootloader, being that we will
    never get to look for a dmi match. A primary reason for matching with dmi
    is because not all bootloaders detect the video info properly. The
    solution is that in the event of a dmi match, we should set
    screen_info.orig_video_isVGA. Most bootloaders fail to set screen info on
    Apple hardware, and this is a big problem for people who use Apple
    hardware.

    Tested on a MacBook SantaRosa with elilo-3.8 (vanilla) and resolves the
    issue, the dmi match now works, EFI framebuffer now loads and video works.

    Signed-off-by: Brian Maly
    Acked-by: Huang Ying
    Cc: Krzysztof Helt
    Cc: Chandramouli Narayanan
    Acked-by: Peter Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Maly
     
  • Remove Kconfig option for tridentfb acceleration. The acceleration can be
    switched off with modules "noaccel" parameter.

    The acceleration for Trident chips was fixed in the 2.6.27 kernel.

    Also, add CyberXXX and CyberBlade names to Kconfig option's name. It should
    make easier to find the tridentfb choice for cyblafb driver's users. The
    cyblafb driver has been replaced by the tridentfb driver.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • Save one fifo entry on cursor enabling and disabling.

    Save another fifo entry for FB_CUR_SETPOS operation by removing redundant one.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • A hardware cursor is left enabled in the fb_set_par() which is called when a
    new console is created. This is inconsistent with software cursor's
    behaviour.

    Also, this makes a hardware cursor always visible in the Xfbdev (Xorg kdrive)
    server.

    Signed-off-by: Krzysztof Helt
    Cc: Risto Suominen
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • Remove mutex from the nvidiafb_open/nvidiafb_release functions as these
    operations are mutexed at fb layer.

    Signed-off-by: Alessio Igor Bogani
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessio Igor Bogani
     
  • Add suspend/resume for the Acer Travelmate 290D/292LMi with the following
    graphic-chip:

    01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV350
    [Mobility Radeon 9600 M10] [1002:4e50] (prog-if 00 [VGA controller])
    Subsystem: Acer Incorporated [ALI] TravelMate 290 [1025:005a]
    Flags: bus master, 66MHz, medium devsel, latency 128, IRQ 10
    Memory at a8000000 (32-bit, prefetchable) [size=128M]
    I/O ports at c100 [size=256]
    Memory at e0010000 (32-bit, non-prefetchable) [size=64K]
    [virtual] Expansion ROM at a0000000 [disabled] [size=128K]
    Capabilities: [58] AGP version 2.0
    Capabilities: [50] Power Management version 2
    Kernel driver in use: radeonfb
    Kernel modules: radeonfb

    Signed-off-by: Wolfgang Kroener
    Cc: Krzysztof Helt
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfgang Kroener
     
  • The blank operation should receive FB_BLANK_POWERDOWN, not VESA_POWERDOWN.

    Signed-off-by: Felipe Contreras
    Cc: Krzysztof Helt
    Cc: Russell King
    Cc: Andrea Righi
    Acked-by: Trilok Soni
    Cc: Imre Deak
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Felipe Contreras
     
  • If the vbemode option is used, uvesafb calls fb_get_mode() without first
    setting the resolution in info->var. This results in a division by zero
    in fb_get_mode(), as evidenced e.g. in [1]. Fix this by ensuring the
    info->var structure is populated before fb_get_mode() is called.

    [1] http://bugzilla.kernel.org/show_bug.cgi?id=11661#c37

    Signed-off-by: Michal Januszewski
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Januszewski
     
  • A tridentfb driver has all the functionality of the cyblafb driver without
    the bugs of the latter.

    Changes to the tridentfb driver:

    - FBINFO_READS_FAST added to the tridentfb. The cyblafb used a blitter
    for scrolling which is faster than color expansion on Cyberblade
    chipsets. The blitter is slower on a discrete Blade3D core. Use the
    blitter for scrolling in the tridentfb only for integrated Blade3D
    cores. Now, scrolling speed is about equal for the tridentfb and the
    cyblafb.

    - a copyright notice addition is done on request of Jani Monoses (the
    first author of the tridentfb).

    Tested on AGP Blade3D card and PCChips
    M787CLR motherboard: VIA C3 cpu +
    VT8601 north bridge (aka Cyberblade/i1).

    Signed-off-by: Krzysztof Helt
    Cc: "Jani Monoses"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • Add support for the newer Samsung devices, such as found in the S3C2443,
    S3C6400 or S3C6410 series SoC.

    It currently does not support all the alpha- or chroma-key options but it
    will support more exporting more than one framebuffer ready for adding
    overlay and blending functions.

    Signed-off-by: Ben Dooks
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • There is no entry for n411.c to be built, include one in Makefile.

    Signed-off-by: Herton Ronaldo Krzesinski
    Cc: Jaya Kumar
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Herton Ronaldo Krzesinski
     
  • Otherwise this will already return 0 if iteration MAXLOOP-2 occurs in the
    first loop.

    Signed-off-by: Roel Kluin
    Cc: Joseph Chan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Signed-off-by: Roel Kluin
    Acked-by: Michal Januszewski
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Signed-off-by: Roel Kluin
    Acked-by: Michal Januszewski
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Signed-off-by: Roel Kluin
    Acked-by: Ondrej Zajicek
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • - fix cmap leak in removal path
    - fix cmap leak when register_framebuffer fails
    - check return value of fb_alloc_cmap
    - don't continue with driver setup if register_framebuffer fails

    [krzysztof.h1@wp.pl: spotted missing iounmap]
    [randy.dunlap@oracle.com: move data declaration before any code]
    Signed-off-by: Andres Salomon
    Cc: Krzysztof Helt
    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • With for(div = 0; div < max_clk_div; div++) { ... } div reaches max_clk_div.

    Signed-off-by: Roel Kluin
    Cc: Joe Perches
    Acked-by: Trilok Soni
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • The s1d13xxx chip provides two values of identification value: the
    Production id (e.g 13506/13505/13806..) and a revision number 0,1,2,3).
    Together these can help us to differentiate between similiar setups.

    This patch adds the proper way of grabbing both those values and save them
    for future reference (in order to decide what functions a card supports,
    e.g acceleration).

    We also move away from the concept of all s1d13xxx = s1d13806 when we
    really support alot more.

    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: simplify s1d13xxxfb_probe()]
    Signed-off-by: Kristoffer Ericson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kristoffer Ericson
     
  • With a postfix decrement t reaches -1 on timeout which results in a
    return of 0.

    Signed-off-by: Roel Kluin
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Signed-off-by: Andres Salomon
    Acked-by: Krzysztof Helt
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • - fix cmap leak in removal path

    - fix cmap leak when register_framebuffer fails

    Signed-off-by: Andres Salomon
    Acked-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • - fix cmap leak in removal path

    - fix cmap leak when register_framebuffer fails

    - check return value of fb_alloc_cmap

    Signed-off-by: Andres Salomon
    Acked-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon