1. 25 Mar, 2011 4 commits
  2. 24 Mar, 2011 36 commits
    • Christoph Lameter's avatar
      SLUB: Write to per cpu data when allocating it · b8c4c96e
      Christoph Lameter authored
      It turns out that the cmpxchg16b emulation has to access vmalloced
      percpu memory with interrupts disabled. If the memory has never
      been touched before then the fault necessary to establish the
      mapping will not to occur and the kernel will fail on boot.
      
      Fix that by reusing the CONFIG_PREEMPT code that writes the
      cpu number into a field on every cpu. Writing to the per cpu
      area before causes the mapping to be established before we get
      to a cmpxchg16b emulation.
      Tested-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
      Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
      b8c4c96e
    • Thomas Gleixner's avatar
      slub: Fix debugobjects with lockless fastpath · f9b615de
      Thomas Gleixner authored
      On Thu, 24 Mar 2011, Ingo Molnar wrote:
      > RIP: 0010:[<ffffffff810570a9>]  [<ffffffff810570a9>] get_next_timer_interrupt+0x119/0x260
      
      That's a typical timer crash, but you were unable to debug it with
      debugobjects because commit d3f661d6 broke those.
      
      Cc: Christoph Lameter <cl@linux.com>
      Tested-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
      f9b615de
    • Linus Torvalds's avatar
      Merge branch 'for-2.6.39/core' of git://git.kernel.dk/linux-2.6-block · 6c510389
      Linus Torvalds authored
      * 'for-2.6.39/core' of git://git.kernel.dk/linux-2.6-block: (65 commits)
        Documentation/iostats.txt: bit-size reference etc.
        cfq-iosched: removing unnecessary think time checking
        cfq-iosched: Don't clear queue stats when preempt.
        blk-throttle: Reset group slice when limits are changed
        blk-cgroup: Only give unaccounted_time under debug
        cfq-iosched: Don't set active queue in preempt
        block: fix non-atomic access to genhd inflight structures
        block: attempt to merge with existing requests on plug flush
        block: NULL dereference on error path in __blkdev_get()
        cfq-iosched: Don't update group weights when on service tree
        fs: assign sb->s_bdi to default_backing_dev_info if the bdi is going away
        block: Require subsystems to explicitly allocate bio_set integrity mempool
        jbd2: finish conversion from WRITE_SYNC_PLUG to WRITE_SYNC and explicit plugging
        jbd: finish conversion from WRITE_SYNC_PLUG to WRITE_SYNC and explicit plugging
        fs: make fsync_buffers_list() plug
        mm: make generic_writepages() use plugging
        blk-cgroup: Add unaccounted time to timeslice_used.
        block: fixup plugging stubs for !CONFIG_BLOCK
        block: remove obsolete comments for blkdev_issue_zeroout.
        blktrace: Use rq->cmd_flags directly in blk_add_trace_rq.
        ...
      
      Fix up conflicts in fs/{aio.c,super.c}
      6c510389
    • Linus Torvalds's avatar
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-mn10300 · 3dab04e6
      Linus Torvalds authored
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-mn10300:
        MN10300: gcc 4.6 vs am33 inline assembly
        MN10300: Deprecate gdbstub
        MN10300: Allow KGDB to use the MN10300 serial ports
        MN10300: Emulate single stepping in KGDB on MN10300
        MN10300: Generalise kernel debugger kernel halt, reboot or power off hook
        KGDB: Notify GDB of machine halt, reboot or power off
        MN10300: Use KGDB
        MN10300: Create generic kernel debugger hooks
        MN10300: Create general kernel debugger cache flushing
        MN10300: Introduce a general config option for kernel debugger hooks
        MN10300: The icache invalidate functions should disable the icache first
        MN10300: gdbstub: Restrict single-stepping to non-preemptable non-SMP configs
      3dab04e6
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 · 6d1e9a42
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
        pstore: cleanups to pstore_dump()
        [IA64] New syscalls for 2.6.39
      6d1e9a42
    • Linus Torvalds's avatar
      Merge branch 'rmobile-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 · 95985725
      Linus Torvalds authored
      * 'rmobile-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
        mmc: Add MMC_PROGRESS_*
        mmc, ARM: Rename SuperH Mobile ARM zboot helpers
        ARM: mach-shmobile: add coherent DMA mask to CEU camera devices
        ARM: mach-shmobile: Dynamic backlight control for Mackerel
      95985725
    • Linus Torvalds's avatar
      Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 · 4d4fcae1
      Linus Torvalds authored
      * 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
        sh: Fix build alloc_thread_info_node function
        sh: Fix ptrace hw_breakpoint handling
        sh: Fix ptrace fpu state initialisation
        sh: Re-enable GENERIC_HARDIRQS_NO_DEPRECATED.
        sh: pmb: Use struct syscore_ops instead of sysdevs
        sh: Use struct syscore_ops instead of sysdevs
        sh: Conver to asm-generic/sizes.h.
        sh: wire up sys_syncfs.
      4d4fcae1
    • Linus Torvalds's avatar
      Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · b4a41ed2
      Linus Torvalds authored
      * 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
        USB: cdc-acm: fix potential null-pointer dereference on disconnect
        USB: cdc-acm: fix potential null-pointer dereference
        USB: cdc-acm: fix memory corruption / panic
        USB: Fix 'bad dma' problem on WDM device disconnect
        usb: wwan: fix compilation without CONFIG_PM_RUNTIME
        USB: uss720 fixup refcount position
        usb: musb: blackfin: fix typo in new bfin_musb_vbus_status func
        usb: musb: blackfin: fix typo in new dev_pm_ops struct
        usb: musb: blackfin: fix typo in platform driver name
        usb: musb: Fix for merge issue
        ehci-hcd: Bug fix: don't set a QH's Halt bit
        USB: Do not pass negative length to snoop_urb()
      b4a41ed2
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · 76d21c56
      Linus Torvalds authored
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (442 commits)
        [media] videobuf2-dma-contig: make cookie() return a pointer to dma_addr_t
        [media] sh_mobile_ceu_camera: Do not call vb2's mem_ops directly
        [media] V4L: soc-camera: explicitly require V4L2_BUF_TYPE_VIDEO_CAPTURE
        [media] v4l: soc-camera: Store negotiated buffer settings
        [media] rc: interim support for 32-bit NEC-ish scancodes
        [media] mceusb: topseed 0x0011 needs gen3 init for tx to work
        [media] lirc_zilog: error out if buffer read bytes != chunk size
        [media] lirc: silence some compile warnings
        [media] hdpvr: use same polling interval as other OS
        [media] ir-kbd-i2c: pass device code w/key in hauppauge case
        [media] rc/keymaps: Remove the obsolete rc-rc5-tv keymap
        [media] remove the old RC_MAP_HAUPPAUGE_NEW RC map
        [media] rc/keymaps: Rename Hauppauge table as rc-hauppauge
        [media] rc-rc5-hauppauge-new: Fix Hauppauge Grey mapping
        [media] rc-rc5-hauppauge-new: Add support for the old Black RC
        [media] rc-rc5-hauppauge-new: Add the old control to the table
        [media] rc-winfast: Fix the keycode tables
        [media] a800: Fix a few wrong IR key assignments
        [media] opera1: Use multimedia keys instead of an app-specific mapping
        [media] dw2102: Use multimedia keys instead of an app-specific mapping
        ...
      
      Fix up trivial conflicts (remove/modify and some real conflicts) in:
      	arch/arm/mach-omap2/devices.c
      	drivers/staging/Kconfig
      	drivers/staging/Makefile
      	drivers/staging/dabusb/dabusb.c
      	drivers/staging/dabusb/dabusb.h
      	drivers/staging/easycap/easycap_ioctl.c
      	drivers/staging/usbvideo/usbvideo.c
      	drivers/staging/usbvideo/vicam.c
      76d21c56
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://android.git.kernel.org/kernel/tegra · 6e50e9f9
      Linus Torvalds authored
      * 'for-linus' of git://android.git.kernel.org/kernel/tegra:
        ARM: tegra: harmony: initialize the TPS65862 PMIC
        ARM: tegra: update defconfig
        ARM: tegra: harmony: update PCI-e initialization sequence
        ARM: tegra: trimslice: enable MMC/SD slots
        ARM: tegra: enable new drivers in defconfig
        ARM: tegra: Add Toshiba AC100 support
        ARM: tegra: harmony: Set WM8903 gpio_base
        ARM: tegra: harmony: I2C-related portions of audio support
        ARM: tegra: harmony: register i2c devices
        ARM: tegra: seaboard: register i2c devices
        ARM: tegra: harmony: Beginnings of audio support
        ARM: tegra: create defines for SD-related GPIO names
        ARM: tegra: add devices.c entries for audio
      6e50e9f9
    • Linus Torvalds's avatar
      Merge branch 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6 · e264ac8c
      Linus Torvalds authored
      * 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6:
        spi/pl022: Add loopback support for the SPI on 5500
        spi/omap_mcspi: Fix broken last word xfer
        of/flattree: minor cleanups
        dt: eliminate OF_NO_DEEP_PROBE and test for NULL match table
        dt: protect against NULL matches passed to of_match_node()
        dt: Refactor of_platform_bus_probe()
      e264ac8c
    • Simon Horman's avatar
      mmc: Add MMC_PROGRESS_* · 9d9659b6
      Simon Horman authored
      This is my second attempt to make this enum generally available.
      The first attempt added MMCIF_PROGRESS_* to include/linux/mmc/sh_mmcif.h.
      However this is not sufficiently generic as the enum will be
      used by SDHI boot code.
      Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      9d9659b6
    • Simon Horman's avatar
      mmc, ARM: Rename SuperH Mobile ARM zboot helpers · a6558c2d
      Simon Horman authored
      These headers and helpers will also be used for SDHI boot
      so the mmcif name will start to make a lot less sense.
      Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      a6558c2d
    • Linus Torvalds's avatar
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · 047f61c5
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (42 commits)
        ACPI: minor printk format change in acpi_pad
        ACPI: make acpi_pad /sys output more readable
        ACPICA: Update version to 20110316
        ACPICA: Header support for SLIC table
        ACPI: Make sure the FADT is at least rev 2 before using the reset register
        ACPI: Bug compatibility for Windows on the ACPI reboot vector
        ACPICA: Fix access width for reset vector
        ACPI battery: fribble sysfs files from a resume notifier
        ACPI button: remove unused procfs I/F
        ACPI, APEI, Add PCIe AER error information printing support
        PCIe, AER, use pre-generated prefix in error information printing
        ACPI, APEI, Add ERST record ID cache
        ACPI: Use syscore_ops instead of sysdev class and sysdev
        ACPI: Remove the unused EC sysdev class
        ACPI: use __cpuinit for the acpi_processor_set_pdc() call tree
        ACPI: use __init where possible in processor driver
        Thermal_Framework-Fix_crash_during_hwmon_unregister
        ACPICA: Update version to 20110211.
        ACPICA: Add mechanism to defer _REG methods for some installed handlers
        ACPICA: Add support for FunctionalFixedHW in acpi_ut_get_region_name
        ...
      047f61c5
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin · 05061bf6
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin:
        Blackfin: bf54x: re-enable anomaly 05000353 for all revs
        Blackfin: enable atomic64_t support
        Blackfin: wire up new syncfs syscall
        Blackfin: SMP: flush CoreB cache when shutting down
      05061bf6
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.infradead.org/ubi-2.6 · fdc0ad80
      Linus Torvalds authored
      * 'for-linus' of git://git.infradead.org/ubi-2.6:
        UBIFS: fix assertion warning and refine comments
        UBIFS: kill CONFIG_UBIFS_FS_DEBUG_CHKS
        UBIFS: use GFP_NOFS properly
        UBI: use GFP_NOFS properly
      fdc0ad80
    • Linus Torvalds's avatar
      Merge branch 'for-2.6.39' of git://linux-nfs.org/~bfields/linux · dc87c551
      Linus Torvalds authored
      * 'for-2.6.39' of git://linux-nfs.org/~bfields/linux:
        SUNRPC: Remove resource leak in svc_rdma_send_error()
        nfsd: wrong index used in inner loop
        nfsd4: fix comment and remove unused nfsd4_file fields
        nfs41: make sure nfs server return right ca_maxresponsesize_cached
        nfsd: fix compile error
        svcrpc: fix bad argument in unix_domain_find
        nfsd4: fix struct file leak
        nfsd4: minor nfs4state.c reshuffling
        svcrpc: fix rare race on unix_domain creation
        nfsd41: modify the members value of nfsd4_op_flags
        nfsd: add proc file listing kernel's gss_krb5 enctypes
        gss:krb5 only include enctype numbers in gm_upcall_enctypes
        NFSD, VFS: Remove dead code in nfsd_rename()
        nfsd: kill unused macro definition
        locks: use assign_type()
      dc87c551
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus · 5818fcc8
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus:
        Squashfs: Use vmalloc rather than kmalloc for zlib workspace
        Squashfs: handle corruption of directory structure
        Squashfs: wrap squashfs_mount() definition
        Squashfs: xz_wrapper doesn't need to include squashfs_fs_i.h anymore
        Squashfs: Update documentation to include compression options
        Squashfs: Update Kconfig help text to include xz compression
        Squashfs: add compression options support to xz decompressor
        Squashfs: extend decompressor framework to handle compression options
      5818fcc8
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 0625bef6
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        IB: Increase DMA max_segment_size on Mellanox hardware
        IB/mad: Improve an error message so error code is included
        RDMA/nes: Don't print success message at level KERN_ERR
        RDMA/addr: Fix return of uninitialized ret value
        IB/srp: try to use larger FMR sizes to cover our mappings
        IB/srp: add support for indirect tables that don't fit in SRP_CMD
        IB/srp: rework mapping engine to use multiple FMR entries
        IB/srp: allow sg_tablesize to be set for each target
        IB/srp: move IB CM setup completion into its own function
        IB/srp: always avoid non-zero offsets into an FMR
      0625bef6
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 · a6a1d648
      Linus Torvalds authored
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (90 commits)
        mfd: Push byte swaps out of wm8994 bulk read path
        mfd: Rename ab8500 gpadc header
        mfd: Constify WM8994 write path
        mfd: Push byte swap out of WM8994 bulk I/O
        mfd: Avoid copying data in WM8994 I2C write
        mfd: Remove copy from WM831x I2C write function
        mfd: Staticise WM8994 PM ops
        regulator: Add a subdriver for TI TPS6105x regulator portions v2
        mfd: Add a core driver for TI TPS61050/TPS61052 chips v2
        gpio: Add Tunnel Creek support to sch_gpio
        mfd: Add Tunnel Creek support to lpc_sch
        pci_ids: Add Intel Tunnel Creek LPC Bridge device ID.
        regulator: MAX8997/8966 support
        mfd: Add WM8994 bulk register write operation
        mfd: Append additional read write on 88pm860x
        mfd: Adopt mfd_data in 88pm860x input driver
        mfd: Adopt mfd_data in 88pm860x regulator
        mfd: Adopt mfd_data in 88pm860x led
        mfd: Adopt mfd_data in 88pm860x backlight
        mfd: Fix MAX8997 Kconfig entry typos
        ...
      a6a1d648
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd · 1b506cfb
      Linus Torvalds authored
      * 'for-linus' of git://git.open-osd.org/linux-open-osd:
        exofs: deprecate the commands pending counter
        exofs: Write sbi->s_nextid as part of the Create command
        exofs: Add option to mount by osdname
        exofs: Override read-ahead to align on stripe_size
        exofs: simple fsync race fix
        exofs: Optimize read_4_write
        exofs: Trivial: fix some indentation and debug prints
        exofs: Remove redundant unlikely()
      1b506cfb
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6 · 4cc4d24e
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6: (140 commits)
        MAINTAINERS: de-orphan fbdev.
        MAINTAINERS: Add file pattern for fb dt bindings.
        video: Move sm501fb devicetree binding documentation to a better place.
        fbcon: fix situation where fbcon gets deinitialised and can't reinit.
        video, sm501: add OF binding to support SM501
        video, sm501: add edid and commandline support
        video, sm501: add I/O functions for use on powerpc
        video: Fix EDID macros H_SYNC_WIDTH and H_SYNC_OFFSET
        fbcon: Bugfix soft cursor detection in Tile Blitting
        video: add missing framebuffer_release in error path
        video: metronomefb: add __devexit_p around reference to metronomefb_remove
        video: hecubafb: add __devexit_p around reference to hecubafb_remove
        drivers:video:aty:radeon_base Fix typo occationally to occasionally
        atmel_lcdfb: add fb_blank function
        atmel_lcdfb: implement inverted contrast pwm
        video: s3c-fb: return proper error if clk_get fails
        uvesafb,vesafb: create WC or WB PAT-entries
        video: ffb: fix ffb_probe error path
        radeonfb: Let hwmon driver probe the "monid" I2C bus
        fbdev: sh_mobile_lcdc: checking NULL instead of IS_ERR()
        ...
      4cc4d24e
    • Artem Bityutskiy's avatar
      UBIFS: fix assertion warning and refine comments · 6ed09c34
      Artem Bityutskiy authored
      This patch fixes the following UBIFS assertion warning:
      
      UBIFS assert failed in do_readpage at 115 (pid 199)
      [<b00321b8>] (unwind_backtrace+0x0/0xdc) from [<af025118>]
      (do_readpage+0x108/0x594 [ubifs])
      [<af025118>] (do_readpage+0x108/0x594 [ubifs]) from [<af025764>]
      (ubifs_write_end+0x1c0/0x2e8 [ubifs])
      [<af025764>] (ubifs_write_end+0x1c0/0x2e8 [ubifs]) from
      [<b00a0164>] (generic_file_buffered_write+0x18c/0x270)
      [<b00a0164>] (generic_file_buffered_write+0x18c/0x270) from
      [<b00a08d4>] (__generic_file_aio_write+0x478/0x4c0)
      [<b00a08d4>] (__generic_file_aio_write+0x478/0x4c0) from
      [<b00a0984>] (generic_file_aio_write+0x68/0xc8)
      [<b00a0984>] (generic_file_aio_write+0x68/0xc8) from
      [<af024a78>] (ubifs_aio_write+0x178/0x1d8 [ubifs])
      [<af024a78>] (ubifs_aio_write+0x178/0x1d8 [ubifs]) from
      [<b00d104c>] (do_sync_write+0xb0/0x100)
      [<b00d104c>] (do_sync_write+0xb0/0x100) from [<b00d1abc>]
      (vfs_write+0xac/0x154)
      [<b00d1abc>] (vfs_write+0xac/0x154) from [<b00d1c10>]
      (sys_write+0x3c/0x68)
      [<b00d1c10>] (sys_write+0x3c/0x68) from [<b002d9a0>]
      (ret_fast_syscall+0x0/0x2c)
      
      The 'PG_checked' flag is used to indicate that the page does not
      supposedly exist on the media (e.g., a hole or a page beyond the
      inode size), so it requires slightly bigger budget, because we have
      to account the indexing size increase. And this flag basically
      tells that the budget for this page has to be "new page budget".
      The "new page budget" is slightly bigger than the "existing page
      budget".
      
      The 'do_readpage()' function has the following assertion which
      sometimes is hit: 'ubifs_assert(!PageChecked(page))'. Obviously,
      the meaning of this assertion is: "I should not be asked to read
      a page which does not exist on the media".
      
      However, in 'ubifs_write_begin()' we have a small "trick". Notice,
      that VFS may write pages which were not read yet, so the page data
      were not loaded from the media to the page cache yet. If VFS tells
      that it is going to change only some part of the page, we obviously
      have to load it from the media. However, if VFS tells that it is
      going to change whole page, we do not read it from the media for
      optimization purposes.
      
      However, since we do not read it, we do not know if it exists on
      the media or not (a hole, etc). So we set the 'PG_checked' flag
      to this page to force bigger budget, just in case.
      
      So 'ubifs_write_begin()' sets 'PG_checked'. Then we are in
      'ubifs_write_end()'. And VFS tells us: "hey, for some reasons I
      changed my mind and did not change whole page". Frankly, I do not
      know why this happens, but I hit this somehow on an ARM platform.
      And this is extremely rare.
      
      So in this case UBIFS does the following:
      
      1. Cancels allocated budget.
      2. Loads the page from the media by calling 'do_readpage()'.
      3. Asks VFS to repeat the whole write operation from the very
         beginning (call '->write_begin() again, etc).
      
      And the assertion warning is hit at the step 2 - remember we have
      the 'PG_checked' set for this page, and 'do_readpage()' does not
      like this. So this patch fixes the problem by adding step 1.5 and
      cleaning the 'PG_checked' before calling 'do_readpage()'.
      
      All in all, this patch does not fix any functionality issue, but it
      silences UBIFS false positive warning which may happen in very very
      rare cases.
      
      And while on it, this patch also improves a commentary which explains
      the reasons of setting the 'PG_checked' flag for the page. The old
      commentary was a bit difficult to understand.
      Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      6ed09c34
    • Artem Bityutskiy's avatar
      UBIFS: kill CONFIG_UBIFS_FS_DEBUG_CHKS · 9d523caf
      Artem Bityutskiy authored
      Simplify UBIFS configuration menu and kill the option to enable self-check
      compile-time. We do not really need this because we can do this run-time
      using the module parameters or the corresponding sysfs interfaces. And
      there is a value in simplifying the kernel configuration menu which becomes
      increasingly large.
      Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      9d523caf
    • Artem Bityutskiy's avatar
      UBIFS: use GFP_NOFS properly · fc5e58c0
      Artem Bityutskiy authored
      This patch fixes a brown-paperbag bug which was introduced by me:
      I used incorrect "GFP_KERNEL | GFP_NOFS" allocation flags to make
      sure my allocations do not cause write-back. But the correct form
      is "GFP_NOFS".
      Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      fc5e58c0
    • Artem Bityutskiy's avatar
      UBI: use GFP_NOFS properly · 3d46b316
      Artem Bityutskiy authored
      This patch fixes a brown-paperbag bug which was introduced by me:
      I used incorrect "GFP_KERNEL | GFP_NOFS" allocation flags to make
      sure my allocations do not cause write-back. But the correct form
      is "GFP_NOFS".
      Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      3d46b316
    • Dave Airlie's avatar
      drm/vblank: update recently added vbl interface to be more future proof. · 51eab416
      Dave Airlie authored
      This makes the interface a bit cleaner by leaving a single gap in the
      vblank bit space instead of creating two gaps.
      
      Suggestions from Michel on mailing list/irc.
      Reviewed-by: default avatarMichel Dänzer <michel@daenzer.net>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      51eab416
    • Thomas Renninger's avatar
      drm radeon: Return -EINVAL on wrong pm sysfs access · 1783e4bf
      Thomas Renninger authored
      Throw an error if someone tries to fill this with
      wrong data, instead of simply ignoring the input.
      Now you get:
      
      echo hello >/sys/../power_method
      -bash: echo: write error: Invalid argument
      Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
      CC: Alexander.Deucher@amd.com
      CC: dri-devel@lists.freedesktop.org
      Reviewed-by: default avatarAlex Deucher <alexdeucher@gmail.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      1783e4bf
    • Alex Deucher's avatar
      drm/radeon/kms: fix hardcoded EDID handling · fafcf94e
      Alex Deucher authored
      On some servers there is a hardcoded EDID provided
      in the vbios so that the driver will always see a
      display connected even if something like a KVM
      prevents traditional means like DDC or load
      detection from working properly.  Also most
      server boards with DVI are not actually DVI, but
      DVO connected to a virtual KVM service processor.
      If we fail to detect a monitor via DDC or load
      detection and a hardcoded EDID is available, use
      it.
      
      Additionally, when using the hardcoded EDID, use
      a copy of it rather than the actual one stored
      in the driver as the detect() and get_modes()
      functions may free it if DDC is successful.
      
      This fixes the virtual KVM on several internal
      servers.
      Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      fafcf94e
    • Dave Airlie's avatar
      Merge remote branch 'intel/drm-intel-fixes' of ../drm-next into drm-core-next · 2d370f50
      Dave Airlie authored
      * 'intel/drm-intel-fixes' of ../drm-next:
        Revert "drm/i915: Don't save/restore hardware status page address register"
        drm/i915: Avoid unmapping pages from a NULL address space
        drm/i915: Fix use after free within tracepoint
        drm/i915: Restore missing command flush before interrupt on BLT ring
        drm/i915: Disable pagefaults along execbuffer relocation fast path
        drm/i915: Fix computation of pitch for dumb bo creator
        drm/i915: report correct render clock frequencies on SNB
        drm/i915/dp: Correct the order of deletion for ghost eDP devices
        drm/i915: Fix tiling corruption from pipelined fencing
        drm/i915: Re-enable self-refresh
        drm/i915: Prevent racy removal of request from client list
        drm/i915: skip redundant operations whilst enabling pipes and planes
        drm/i915: Remove surplus POSTING_READs before wait_for_vblank
      2d370f50
    • Chris Wilson's avatar
      Revert "drm/i915: Don't save/restore hardware status page address register" · f0c86024
      Chris Wilson authored
      This reverts commit a7a75c8f.
      
      There are two different variations on how Intel hardware addresses the
      "Hardware Status Page". One as a location in physical memory and the
      other as an offset into the virtual memory of the GPU, used in more
      recent chipsets. (The HWS itself is a cacheable region of memory which
      the GPU can write to without requiring CPU synchronisation, used for
      updating various details of hardware state, such as the position of
      the GPU head in the ringbuffer, the last breadcrumb seqno, etc).
      
      These two types of addresses were updated in different locations of code
      - one inline with the ringbuffer initialisation, and the other during
      device initialisation. (The HWS page is logically associated with
      the rings, and there is one HWS page per ring.) During resume, only the
      ringbuffers were being re-initialised along with the virtual HWS page,
      leaving the older physical address HWS untouched. This then caused a
      hang on the older gen3/4 (915GM, 945GM, 965GM) the first time we tried
      to synchronise the GPU as the breadcrumbs were never being updated.
      Reported-and-tested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Reported-by: default avatarJan Niehusmann <jan@gondor.com>
      Reported-and-tested-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
      Reported-and-tested-by: default avatarMichael "brot" Groh <brot@minad.de>
      Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Acked-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      f0c86024
    • Nobuhiro Iwamatsu's avatar
      sh: Fix build alloc_thread_info_node function · b15ed691
      Nobuhiro Iwamatsu authored
      By commit b6a84016,
      alloc_thread_info was replaced by alloc_thread_info_node.
      However, the change of the function name and the addition of the argument
      were incomplete.
      Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
      CC: Eric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      b15ed691
    • Paul Mundt's avatar
      Merge branch 'master' of... · a3d33622
      Paul Mundt authored
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into sh-latest
      a3d33622
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 · b81a618d
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
        deal with races in /proc/*/{syscall,stack,personality}
        proc: enable writing to /proc/pid/mem
        proc: make check_mem_permission() return an mm_struct on success
        proc: hold cred_guard_mutex in check_mem_permission()
        proc: disable mem_write after exec
        mm: implement access_remote_vm
        mm: factor out main logic of access_process_vm
        mm: use mm_struct to resolve gate vma's in __get_user_pages
        mm: arch: rename in_gate_area_no_task to in_gate_area_no_mm
        mm: arch: make in_gate_area take an mm_struct instead of a task_struct
        mm: arch: make get_gate_vma take an mm_struct instead of a task_struct
        x86: mark associated mm when running a task in 32 bit compatibility mode
        x86: add context tag to mark mm when running a task in 32-bit compatibility mode
        auxv: require the target to be tracable (or yourself)
        close race in /proc/*/environ
        report errors in /proc/*/*map* sanely
        pagemap: close races with suid execve
        make sessionid permissions in /proc/*/task/* match those in /proc/*
        fix leaks in path_lookupat()
      
      Fix up trivial conflicts in fs/proc/base.c
      b81a618d
    • Linus Torvalds's avatar
      Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm · 2f284c84
      Linus Torvalds authored
      * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (35 commits)
        ARM: Update (and cut down) mach-types
        ARM: 6771/1: vexpress: add support for multiple core tiles
        ARM: 6797/1: hw_breakpoint: Fix newlines in WARNings
        ARM: 6751/1: vexpress: select applicable errata workarounds in Kconfig
        ARM: 6753/1: omap4: Enable ARM local timers with OMAP4430 es1.0 exception
        ARM: 6759/1: smp: Select local timers vs broadcast timer support runtime
        ARM: pgtable: add pud-level code
        ARM: 6673/1: LPAE: use phys_addr_t instead of unsigned long for start of membanks
        ARM: Use long long format when printing meminfo physical addresses
        ARM: integrator: add Integrator/CP sched_clock support
        ARM: realview/vexpress: consolidate SMP bringup code
        ARM: realview/vexpress: consolidate localtimer support
        ARM: integrator/versatile: consolidate FPGA IRQ handling code
        ARM: rationalize versatile family Kconfig/Makefile
        ARM: realview: remove old AMBA device DMA definitions
        ARM: versatile: remove old AMBA device DMA definitions
        ARM: vexpress: use new init_early for clock tree and sched_clock init
        ARM: realview: use new init_early for clock tree and sched_clock init
        ARM: versatile: use new init_early for clock tree and sched_clock init
        ARM: integrator: use new init_early for clock tree init
        ...
      2f284c84