28 Jun, 2010

2 commits

  • This patch updates percpu allocator such that it can serve limited
    amount of allocation before slab comes online. This is primarily to
    allow slab to depend on working percpu allocator.

    Two parameters, PERCPU_DYNAMIC_EARLY_SIZE and SLOTS, determine how
    much memory space and allocation map slots are reserved. If this
    reserved area is exhausted, WARN_ON_ONCE() will trigger and allocation
    will fail till slab comes online.

    The following changes are made to implement early alloc.

    * pcpu_mem_alloc() now checks slab_is_available()

    * Chunks are allocated using pcpu_mem_alloc()

    * Init paths make sure ai->dyn_size is at least as large as
    PERCPU_DYNAMIC_EARLY_SIZE.

    * Initial alloc maps are allocated in __initdata and copied to
    kmalloc'd areas once slab is online.

    Signed-off-by: Tejun Heo
    Cc: Christoph Lameter

    Tejun Heo
     
  • In pcpu_build_alloc_info() and pcpu_embed_first_chunk(), @dyn_size was
    ssize_t, -1 meant auto-size, 0 forced 0 and positive meant minimum
    size. There's no use case for forcing 0 and the upcoming early alloc
    support always requires non-zero dynamic size. Make @dyn_size always
    mean minimum dyn_size.

    While at it, make pcpu_build_alloc_info() static which doesn't have
    any external caller as suggested by David Rientjes.

    Signed-off-by: Tejun Heo
    Cc: David Rientjes

    Tejun Heo
     

12 Jun, 2010

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    wimax/i2400m: fix missing endian correction read in fw loader
    net8139: fix a race at the end of NAPI
    pktgen: Fix accuracy of inter-packet delay.
    pkt_sched: gen_estimator: add a new lock
    net: deliver skbs on inactive slaves to exact matches
    ipv6: fix ICMP6_MIB_OUTERRORS
    r8169: fix mdio_read and update mdio_write according to hw specs
    gianfar: Revive the driver for eTSEC devices (disable timestamping)
    caif: fix a couple range checks
    phylib: Add support for the LXT973 phy.
    net: Print num_rx_queues imbalance warning only when there are allocated queues

    Linus Torvalds
     

11 Jun, 2010

2 commits

  • Currently, the accelerated receive path for VLAN's will
    drop packets if the real device is an inactive slave and
    is not one of the special pkts tested for in
    skb_bond_should_drop(). This behavior is different then
    the non-accelerated path and for pkts over a bonded vlan.

    For example,

    vlanx -> bond0 -> ethx

    will be dropped in the vlan path and not delivered to any
    packet handlers at all. However,

    bond0 -> vlanx -> ethx

    and

    bond0 -> ethx

    will be delivered to handlers that match the exact dev,
    because the VLAN path checks the real_dev which is not a
    slave and netif_recv_skb() doesn't drop frames but only
    delivers them to exact matches.

    This patch adds a sk_buff flag which is used for tagging
    skbs that would previously been dropped and allows the
    skb to continue to skb_netif_recv(). Here we add
    logic to check for the deliver_no_wcard flag and if it
    is set only deliver to handlers that match exactly. This
    makes both paths above consistent and gives pkt handlers
    a way to identify skbs that come from inactive slaves.
    Without this patch in some configurations skbs will be
    delivered to handlers with exact matches and in others
    be dropped out right in the vlan path.

    I have tested the following 4 configurations in failover modes
    and load balancing modes.

    # bond0 -> ethx

    # vlanx -> bond0 -> ethx

    # bond0 -> vlanx -> ethx

    # bond0 -> ethx
    |
    vlanx -> --

    Signed-off-by: John Fastabend
    Signed-off-by: David S. Miller

    John Fastabend
     
  • …/git/tip/linux-2.6-tip

    * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    tracing: Fix null pointer deref with SEND_SIG_FORCED
    perf: Fix signed comparison in perf_adjust_period()
    powerpc/oprofile: fix potential buffer overrun in op_model_cell.c
    perf symbols: Set the DSO long name when using symbol_conf.vmlinux_name

    Linus Torvalds
     

09 Jun, 2010

4 commits

  • 10, 233 is allocated officially to /dev/kmview which is shipping in
    Ubuntu and Debian distributions. vhost_net seem to have borrowed it
    without making a proper request and this causes regressions in the other
    distributions.

    vhost_net can use a dynamic minor so use that instead. Also update the
    file with a comment to try and avoid future misunderstandings.

    cc: stable@kernel.org
    Signed-off-by: Alan Cox
    [ We should have caught this before 2.6.34 got released. - Linus ]
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (23 commits)
    drm/radeon: don't poll tv dac if crtc2 is in use.
    drm/radeon: reset i2c valid to avoid incorrect tv-out polling.
    drm/nv50: fix iommu errors caused by device reading from address 0
    drm/nouveau: off by one in init_i2c_device_find()
    nouveau: off by one in nv50_gpio_location()
    drm/nouveau: completely fail init if we fail to map the PRAMIN BAR
    drm/nouveau: match U/DP script against SOR link
    drm/radeon/kms/pm: resurrect printing power states
    drm/radeon/kms: add trivial debugging for voltage
    drm/radeon/kms/r600+: use voltage from requested clock mode (v3)
    drm/radeon/kms/pm: track current voltage (v2)
    drm/radeon/kms/pm: Disable voltage adjust on RS780/RS880
    drm/radeon/kms: fix typo in printing the HPD info
    drm/radeon/kms/pm: add mid profile
    drm/radeon/kms/pm: Misc fixes
    drm/radeon/kms/combios: fix typo in voltage fix
    drm/radeon/kms/evergreen: set accel_enabled
    drm/vmwgfx: return -EFAULT for copy_to_user errors
    drm/drm_crtc: return -EFAULT on copy_to_user errors
    drm/fb: use printk to print out the switching to text mode error.
    ...

    Linus Torvalds
     
  • If a filesystem writes more than one page in ->writepage, write_cache_pages
    fails to notice this and continues to attempt writeback when wbc->nr_to_write
    has gone negative - this trace was captured from XFS:

    wbc_writeback_start: towrt=1024
    wbc_writepage: towrt=1024
    wbc_writepage: towrt=0
    wbc_writepage: towrt=-1
    wbc_writepage: towrt=-5
    wbc_writepage: towrt=-21
    wbc_writepage: towrt=-85

    This has adverse effects on filesystem writeback behaviour. write_cache_pages()
    needs to terminate after a certain number of pages are written, not after a
    certain number of calls to ->writepage are made. This is a regression
    introduced by 17bc6c30cf6bfffd816bdc53682dd46fc34a2cf4 ("vfs: Add
    no_nrwrite_index_update writeback control flag"), but cannot be reverted
    directly due to subsequent bug fixes that have gone in on top of it.

    Signed-off-by: Dave Chinner
    Reviewed-by: Christoph Hellwig
    Signed-off-by: Linus Torvalds

    Dave Chinner
     
  • BUG: unable to handle kernel NULL pointer dereference at
    0000000000000006
    IP: [] ftrace_raw_event_signal_generate+0x87/0x140

    TP_STORE_SIGINFO() forgets about SEND_SIG_FORCED, fix.

    We should probably export is_si_special() and change TP_STORE_SIGINFO()
    to use it in the longer term.

    Signed-off-by: Oleg Nesterov
    Acked-by: Roland McGrath
    Cc: Steven Rostedt
    Cc: Andrew Morton
    Cc: Jason Baron
    Cc: Masami Hiramatsu
    Cc: 2.6.33.x-2.6.34.x
    LKML-Reference:
    Signed-off-by: Frederic Weisbecker

    Oleg Nesterov
     

08 Jun, 2010

2 commits

  • This is needed to enable accel in the ddx. However,
    due to a bug in older versions of the ddx, it relies
    on accel being disabled in order to load properly on
    evergreen chips. To maintain compatility, we add a new
    get accel param and call that from the ddx. The old one
    always returns false for evergreen cards.

    [this fixes a regression with older userspaces on newer kernels].

    Signed-off-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • JMB362 is a new variant of jmicron controller which is similar to
    JMB360 but has two SATA ports instead of one. As there is no PATA
    port, single function AHCI mode can be used as in JMB360. Add pci
    quirk for JMB362.

    Signed-off-by: Tejun Heo
    Reported-by: Aries Lee
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     

05 Jun, 2010

14 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (30 commits)
    X25: remove duplicated #include
    tcp: use correct net ns in cookie_v4_check()
    rps: tcp: fix rps_sock_flow_table table updates
    ppp_generic: fix multilink fragment sizes
    syncookies: remove Kconfig text line about disabled-by-default
    ixgbe: only check pfc bits in hang logic if pfc is enabled
    net: check for refcount if pop a stacked dst_entry
    ixgbe: return IXGBE_ERR_RAR_INDEX when out of range
    act_pedit: access skb->data safely
    sfc: Store port number in net_device::dev_id
    epic100: Test __BIG_ENDIAN instead of (non-existent) CONFIG_BIG_ENDIAN
    tehuti: return -EFAULT on copy_to_user errors
    isdn/kcapi: return -EFAULT on copy_from_user errors
    e1000e: change logical negate to bitwise
    sfc: Get port number from CS_PORT_NUM, not PCI function number
    cls_u32: use skb_header_pointer() to dereference data safely
    TCP: tcp_hybla: Fix integer overflow in slow start increment
    act_nat: fix the wrong checksum when addr isn't in old_addr/mask
    net/fec: fix pm to survive to suspend/resume
    korina: count RX DMA OVR as rx_fifo_error
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    Minix: Clean up left over label
    fix truncate inode time modification breakage
    fix setattr error handling in sysfs, configfs
    fcntl: return -EFAULT if copy_to_user fails
    wrong type for 'magic' argument in simple_fill_super()
    fix the deadlock in qib_fs
    mqueue doesn't need make_bad_inode()

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    module: fix bne2 "gave up waiting for init of module libcrc32c"
    module: verify_export_symbols under the lock
    module: move find_module check to end
    module: make locking more fine-grained.
    module: Make module sysfs functions private.
    module: move sysfs exposure to end of load_module
    module: fix kdb's illicit use of struct module_use.
    module: Make the 'usage' lists be two-way

    Linus Torvalds
     
  • These were placed in the header in ef665c1a06 to get the various
    SYSFS/MODULE config combintations to compile.

    That may have been necessary then, but it's not now. These functions
    are all local to module.c.

    Signed-off-by: Rusty Russell
    Cc: Randy Dunlap

    Rusty Russell
     
  • Linus changed the structure, and luckily this didn't compile any more.

    Reported-by: Stephen Rothwell
    Signed-off-by: Rusty Russell
    Cc: Jason Wessel
    Cc: Martin Hicks

    Rusty Russell
     
  • When adding a module that depends on another one, we used to create a
    one-way list of "modules_which_use_me", so that module unloading could
    see who needs a module.

    It's actually quite simple to make that list go both ways: so that we
    not only can see "who uses me", but also see a list of modules that are
    "used by me".

    In fact, we always wanted that list in "module_unload_free()": when we
    unload a module, we want to also release all the other modules that are
    used by that module. But because we didn't have that list, we used to
    first iterate over all modules, and then iterate over each "used by me"
    list of that module.

    By making the list two-way, we simplify module_unload_free(), and it
    allows for some trivial fixes later too.

    Signed-off-by: Linus Torvalds
    Signed-off-by: Rusty Russell (cleaned & rebased)

    Linus Torvalds
     
  • xfrm triggers a warning if dst_pop() drops a refcount
    on a noref dst. This patch changes dst_pop() to
    skb_dst_pop(). skb_dst_pop() drops the refcnt only
    on a refcounted dst. Also we don't clone the child
    dst_entry, so it is not refcounted and we can use
    skb_dst_set_noref() in xfrm_output_one().

    Signed-off-by: Steffen Klassert
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Steffen Klassert
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (23 commits)
    sh: Make intc messages consistent via pr_fmt.
    sh: make sure static declaration on ms7724se
    sh: make sure static declaration on mach-migor
    sh: make sure static declaration on mach-ecovec24
    sh: make sure static declaration on mach-ap325rxa
    clocksource: sh_cmt: compute mult and shift before registration
    clocksource: sh_tmu: compute mult and shift before registration
    sh: PIO disabling for x3proto and urquell.
    sh: mach-sdk7786: conditionally disable PIO support.
    sh: support for platforms without PIO.
    usb: r8a66597-hcd pio to mmio accessor conversion.
    usb: gadget: r8a66597-udc pio to mmio accessor conversion.
    usb: gadget: m66592-udc pio to mmio accessor conversion.
    sh: add romImage MMCIF boot for sh7724 and Ecovec V2
    sh: add boot code to MMCIF driver header
    sh: prepare MMCIF driver header file
    sh: allow romImage data between head.S and the zero page
    sh: Add support MMCIF for ecovec
    sh: remove duplicated #include
    input: serio: disable i8042 for non-cayman sh platforms.
    ...

    Linus Torvalds
     
  • * 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/i7core: (83 commits)
    i7core_edac: Better describe the supported devices
    Add support for Westmere to i7core_edac driver
    i7core_edac: don't free on success
    i7core_edac: Add support for X5670
    Always call i7core_[ur]dimm_check_mc_ecc_err
    i7core_edac: fix memory leak of i7core_dev
    EDAC: add __init to i7core_xeon_pci_fixup
    i7core_edac: Fix wrong device id for channel 1 devices
    i7core: add support for Lynnfield alternate address
    i7core_edac: Add initial support for Lynnfield
    i7core_edac: do not export static functions
    edac: fix i7core build
    edac: i7core_edac produces undefined behaviour on 32bit
    i7core_edac: Use a more generic approach for probing PCI devices
    i7core_edac: PCI device is called NONCORE, instead of NOCORE
    i7core_edac: Fix ringbuffer maxsize
    i7core_edac: First store, then increment
    i7core_edac: Better parse "any" addrmask
    i7core_edac: Use a lockless ringbuffer
    edac: Create an unique instance for each kobj
    ...

    Linus Torvalds
     
  • * 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (87 commits)
    V4L/DVB: ivtv: Timing tweaks and code re-order to try and improve stability
    V4L/DVB: ivtv: Avoid accidental video standard change
    V4L/DVB: ivtvfb : Module load / unload fixes
    V4L/DVB: cx2341x: Report correct temporal setting for log-status
    V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address
    V4L/DVB: drivers/media: Eliminate a NULL pointer dereference
    V4L/DVB: dvb-core: Fix ULE decapsulation bug
    V4L/DVB: Bug fix: make IR work again for dm1105
    V4L/DVB: media/IR: nec-decoder needs to select BITREV
    V4L/DVB: video/saa7134: change dprintk() to i2cdprintk()
    V4L/DVB: video/saa7134: remove duplicate break
    V4L/DVB: IR/imon: add auto-config for 0xffdc rf device
    V4L/DVB: IR/imon: clean up usage of bools
    V4L/DVB: em28xx: remove unneeded null checks
    V4L/DVB: ngene: remove unused #include
    V4L/DVB: ak881x needs slab.h
    V4L/DVB: FusionHDTV: Use quick reads for I2C IR device probing
    V4L/DVB: Technotrend S2-3200 ships with a TT 1500 remote
    V4L/DVB: drivers/media: Use kzalloc
    V4L/DVB: m920x: Select simple tuner
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block: (27 commits)
    block: make blk_init_free_list and elevator_init idempotent
    block: avoid unconditionally freeing previously allocated request_queue
    pipe: change /proc/sys/fs/pipe-max-pages to byte sized interface
    pipe: change the privilege required for growing a pipe beyond system max
    pipe: adjust minimum pipe size to 1 page
    block: disable preemption before using sched_clock()
    cciss: call BUG() earlier
    Preparing 8.3.8rc2
    drbd: Reduce verbosity
    drbd: use drbd specific ratelimit instead of global printk_ratelimit
    drbd: fix hang on local read errors while disconnected
    drbd: Removed the now empty w_io_error() function
    drbd: removed duplicated #includes
    drbd: improve usage of MSG_MORE
    drbd: need to set socket bufsize early to take effect
    drbd: improve network latency, TCP_QUICKACK
    drbd: Revert "drbd: Create new current UUID as late as possible"
    brd: support discard
    Revert "writeback: fix WB_SYNC_NONE writeback from umount"
    Revert "writeback: ensure that WB_SYNC_NONE writeback with sb pinned is sync"
    ...

    Linus Torvalds
     
  • task_struct->pesonality is "unsigned int", but sys_personality() paths use
    "unsigned long pesonality". This means that every assignment or
    comparison is not right. In particular, if this argument does not fit
    into "unsigned int" __set_personality() changes the caller's personality
    and then sys_personality() returns -EINVAL.

    Turn this argument into "unsigned int" and avoid overflows. Obviously,
    this is the user-visible change, we just ignore the upper bits. But this
    can't break the sane application.

    There is another thing which can confuse the poorly written applications.
    User-space thinks that this syscall returns int, not long. This means
    that the returned value can be negative and look like the error code. But
    note that libc won't be confused and thus errno won't be set, and with
    this patch the user-space can never get -1 unless sys_personality() really
    fails. And, most importantly, the negative RET != -1 is only possible if
    that app previously called personality(RET).

    Pointed-out-by: Wenming Zhang
    Suggested-by: Linus Torvalds
    Signed-off-by: Oleg Nesterov
    Cc: "H. Peter Anvin"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • It's used to superblock ->s_magic, which is unsigned long.

    Signed-off-by: Roberto Sassu
    Reviewed-by: Mimi Zohar
    Signed-off-by: Eric Paris
    CC: stable@kernel.org
    Signed-off-by: Al Viro

    Roberto Sassu
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda-intel - fix wallclk variable update and condition
    ALSA: asihpi - Fix uninitialized variable
    ALSA: hda: Use LPIB for ASUS M2V
    usb/gadget: Replace the old USB audio FU definitions in f_audio.c
    ASoC: MX31ads sound support should depend on MACH_MX31ADS_WM1133_EV1
    ASoC: Add missing Kconfig entry for Phytec boards
    ALSA: usb-audio: export UAC2 clock selectors as mixer controls
    ALSA: usb-audio: clean up find_audio_control_unit()
    ALSA: usb-audio: add UAC2 sepecific Feature Unit controls
    ALSA: usb-audio: unify constants from specification
    ALSA: usb-audio: parse clock topology of UAC2 devices
    ALSA: usb-audio: fix selector unit string index accessor
    include/linux/usb/audio-v2.h: add more UAC2 details
    ALSA: usb-audio: support partially write-protected UAC2 controls
    ALSA: usb-audio: UAC2: clean up parsing of bmaControls
    ALSA: hda: Use LPIB for another mainboard
    ALSA: hda: Use mb31 quirk for an iMac model
    ALSA: hda: Use LPIB for an ASUS device

    Linus Torvalds
     

04 Jun, 2010

3 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    libata: implement on-demand HPA unlocking
    libata: use the enlarged capacity after late HPA unlock
    SCSI: implement sd_unlock_native_capacity()
    libata-sff: trivial corrections to Kconfig help text
    sata_nv: don't diddle with nIEN on mcp55
    sata_via: magic vt6421 fix for transmission problems w/ WD drives

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

    * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sched, trace: Fix sched_switch() prev_state argument
    sched: Fix wake_affine() vs RT tasks
    sched: Make sure timers have migrated before killing the migration_thread

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

    * 'perf-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf: Fix crash in swevents
    perf buildid-list: Fix --with-hits event processing
    perf scripts python: Give field dict to unhandled callback
    perf hist: fix objdump output parsing
    perf-record: Check correct pid when forking
    perf: Do the comm inheritance per thread in event__process_task
    perf: Use event__process_task from perf sched
    perf: Process comm events by tid
    blktrace: Fix new kernel-doc warnings
    perf_events: Fix unincremented buffer base on partial copy
    perf_events: Fix event scheduling issues introduced by transactional API
    perf_events, trace: Fix perf_trace_destroy(), mutex went missing
    perf_events, trace: Fix probe unregister race
    perf_events: Fix races in group composition
    perf_events: Fix races and clean up perf_event and perf_mmap_data interaction

    Linus Torvalds
     

03 Jun, 2010

6 commits

  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (41 commits)
    drm/radeon/kms: make sure display hw is disabled when suspending
    drm/vmwgfx: Allow userspace to change default layout. Bump minor.
    drm/vmwgfx: Fix framebuffer modesetting
    drm/vmwgfx: Fix vga save / restore with display topology.
    vgaarb: use MIT license
    vgaarb: convert pr_devel() to pr_debug()
    drm: fix typos in Linux DRM Developer's Guide
    drm/radeon/kms/pm: voltage fixes
    drm/radeon/kms/pm: radeon_set_power_state fixes
    drm/radeon/kms/pm: patch default power state with default clocks/voltages on r6xx+
    drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen
    drm/radeon/kms/pm: add support for SetVoltage cmd table (V2)
    drm/radeon/kms/evergreen: add initial CS parser
    drm/kms: disable/enable poll around switcheroo on/off
    drm/nouveau: fixup confusion over which handle the DSM is hanging off.
    drm/nouveau: attempt to get bios from ACPI v3
    drm/nv50: cast IGP memory location to u64 before shifting
    drm/ttm: Fix ttm_page_alloc.c
    drm/ttm: Fix cached TTM page allocation.
    drm/vmwgfx: Remove some leftover debug messages.
    ...

    Linus Torvalds
     
  • This changes the interface to be based on bytes instead. The API
    matches that of F_SETPIPE_SZ in that it rounds up the passed in
    size so that the resulting page array is a power-of-2 in size.

    The proc file is renamed to /proc/sys/fs/pipe-max-size to
    reflect this change.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • The host may change the layout and, since the change is
    communicated to the master, the master needs a way to
    communicate the change to the kernel driver.

    The minor version number is bumped to advertize the
    availability of this feature.

    Signed-off-by: Jakob Bornecrantz
    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Jakob Bornecrantz
     
  • Signed-off-by: Tiago Vignatti
    Cc: Henry Zhao
    Signed-off-by: Dave Airlie

    Tiago Vignatti
     
  • Implement ata_scsi_unlock_native_capacity() which will be called
    through SCSI layer when block layer notices that partitions on a
    device extend beyond the end of the device. It requests EH to unlock
    HPA, waits for completion and returns the current device capacity.

    This allows libata to unlock HPA on demand instead of having to decide
    whether to unlock upfront. Unlocking on demand is safer than
    unlocking by upfront because some BIOSes write private data to the
    area beyond HPA limit. This was suggested by Ben Hutchings.

    Signed-off-by: Tejun Heo
    Suggested-by: Ben Hutchings
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • Implement sd_unlock_native_capacity() method which calls into
    hostt->unlock_native_capacity() if implemented. This will be invoked
    by block layer if partitions extend beyond the end of the device and
    can be used to implement, for example, on-demand ATA host protected
    area unlocking.

    Signed-off-by: Tejun Heo
    Cc: Ben Hutchings
    Signed-off-by: Jeff Garzik

    Tejun Heo
     

02 Jun, 2010

3 commits

  • Takashi Iwai
     
  • * 'drm-intel-next' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel: (41 commits)
    drm/i915: add HAS_BSD check to i915_getparam
    drm/i915: Honor sync polarity from VBT panel timing descriptors
    drm/i915: Unmask interrupt for render engine on Sandybridge
    drm/i915: Fix PIPE_CONTROL command on Sandybridge
    drm/i915: Fix up address spaces in slow_kernel_write()
    drm/i915: Use non-atomic kmap for slow copy paths
    drm/i915: Avoid moving from CPU domain during pwrite
    drm/i915: Cleanup after failed initialization of ringbuffers
    drm/i915: Reject bind_to_gtt() early if object > aperture
    drm/i915: Check error code whilst moving buffer to GTT domain.
    drm/i915: Remove spurious warning "Failure to install fence"
    drm/i915: Rebind bo if currently bound with incorrect alignment.
    drm/i915: Include pitch in set_base debug statement.
    drm/i915: Only print "nothing to do" debug message as required.
    drm/i915: Propagate error from unbinding an unfenceable object.
    drm/i915: Avoid nesting of domain changes when setting display plane
    drm/i915: Hold the spinlock whilst resetting unpin_work along error path
    drm/i915: Only print an message if there was an error
    drm/i915: Clean up leftover bits from hws move to ring structure.
    drm/i915: Add CxSR support on Pineview DDR3
    ...

    Linus Torvalds
     
  • This will let userland only try to use the new media decode
    functionality when the appropriate kernel is present.

    Signed-off-by: Zou Nan hai
    Signed-off-by: Eric Anholt

    Zou Nan hai
     

01 Jun, 2010

3 commits

  • * 'for-35' of git://repo.or.cz/linux-kbuild: (81 commits)
    kbuild: Revert part of e8d400a to resolve a conflict
    kbuild: Fix checking of scm-identifier variable
    gconfig: add support to show hidden options that have prompts
    menuconfig: add support to show hidden options which have prompts
    gconfig: remove show_debug option
    gconfig: remove dbg_print_ptype() and dbg_print_stype()
    kconfig: fix zconfdump()
    kconfig: some small fixes
    add random binaries to .gitignore
    kbuild: Include gen_initramfs_list.sh and the file list in the .d file
    kconfig: recalc symbol value before showing search results
    .gitignore: ignore *.lzo files
    headerdep: perlcritic warning
    scripts/Makefile.lib: Align the output of LZO
    kbuild: Generate modules.builtin in make modules_install
    Revert "kbuild: specify absolute paths for cscope"
    kbuild: Do not unnecessarily regenerate modules.builtin
    headers_install: use local file handles
    headers_check: fix perl warnings
    export_report: fix perl warnings
    ...

    Linus Torvalds
     
  • Conflicts:
    fs/pipe.c

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • Commit 9195291e5f05e01d67f9a09c756b8aca8f009089 added calls to
    sched_clock() from preemptible code. sched_clock() is both the
    wrong interface AND cannot be called without preempt disabled.

    Apply a temporary fix to get rid of the warnings, a real patch
    is in the works.

    Signed-off-by: Jens Axboe

    Jens Axboe