15 Apr, 2013

1 commit


11 Apr, 2013

2 commits

  • The s3c-fb driver requires header files from the samsung platforms
    to find its platform_data definition, but this no longer works on
    multiplatform kernels, so let's move the data into a new header
    file under include/linux/platform_data.

    Signed-off-by: Arnd Bergmann
    Cc: linux-fbdev@vger.kernel.org
    Acked-by: Jingoo Han
    Signed-off-by: Tomi Valkeinen

    Arnd Bergmann
     
  • In multiplatform configurations, we cannot include headers
    provided by only the exynos platform. Fortunately a number
    of drivers that include those headers do not actually need
    them, so we can just remove the inclusions.

    Signed-off-by: Arnd Bergmann
    Cc: linux-fbdev@vger.kernel.org
    Acked-by: Jingoo Han
    Signed-off-by: Tomi Valkeinen

    Arnd Bergmann
     

10 Apr, 2013

4 commits

  • The Freescale DIU supports a 32x32 color hardware cursor. Framebuffer
    cursors are monochrome, so the driver converts the image data to the
    format that the DIU expects and then programs to hardware accordingly.

    The support cursor enabling/disabling, we provide two cursor image buffers.
    One is always blank (all zeroes), and the other contains the real cursor
    image data. To disable the cursor (used typically for cursor blinking),
    we just tell the hardware to use the blank cursor data.

    Signed-off-by: Timur Tabi
    Signed-off-by: Tomi Valkeinen

    Timur Tabi
     
  • This patch converts the drivers to use the
    module_platform_driver_probe() macro which makes the code smaller and
    a bit simpler.

    Signed-off-by: Fabio Porcedda
    Cc: Florian Tobias Schandinat
    Acked-by: Nicolas Ferre # atmel_lcdfb.c
    Cc: Tomi Valkeinen
    Cc: David Howells
    Cc: Geert Uytterhoeven
    Acked-by: Laurent Pinchart # amifb.c
    Cc: Kuninori Morimoto
    Signed-off-by: Tomi Valkeinen

    Fabio Porcedda
     
  • The only user of Kconfig symbol FB_OMAP_CONSISTENT_DMA_SIZE got removed
    in v3.8, with commit 6ba54ab4a49bbad736b0254aa6bdf0cb83013815 ("ARM:
    OMAP: Remove omap_init_consistent_dma_size()"). Remove this symbol too.

    Signed-off-by: Paul Bolle
    Signed-off-by: Tomi Valkeinen

    Paul Bolle
     
  • Use the newly introduced devm_ioremap_resource() instead of
    devm_request_and_ioremap() which provides more consistent error handling.

    Signed-off-by: Sachin Kamat
    Acked-by: Tony Prisk
    Signed-off-by: Tomi Valkeinen

    Sachin Kamat
     

04 Apr, 2013

15 commits

  • The controller also contains support for displays in a portrait
    orientation and it seems devices which such displays really reached
    the market - Pandigital Novell seems to be one example.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Change the driver to use the framebuffer rotation functions to be
    able to change the rotation at runtime.

    This also removes the setting of the rotation via the platform data.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Some applications seem to have problems using the 8bit grayscale mode.
    Therefore provide a 16bit truecolor mode which also gets converted to
    the 4bit grayscale the display uses, when updating a region.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Don't hardcode the 8bit mode in all parts. This creates the possibility
    to add another colormode easily later on.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Provides a central place for this, which will be helpful for
    the following changes.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Use only information from the new var to calculate the amount
    of memory needed.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • In the recover function the device gets powercycled and is after
    this again active, independent of its previous state.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • The controller init may be called from a context where the device
    is runtime suspended, leading to a deadlock, as the controllers only
    accepts the wakeup command when suspended.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Previously all functions that used the line length used xres directly,
    thus hardcoding a 8bits per pixel value.

    This patch calculates the correct line length according to the actual
    bits per pixel value and changes all line length users to use the
    calculated line length value.

    Signed-off-by: Heiko Stübner
    Signed-off-by: Tomi Valkeinen

    Heiko Stübner
     
  • Now that a display timing binding is available, convert our almost identical
    binding to use the standard binding.

    This patch converts the vt8500 and wm8505 framebuffer drivers and
    associated dts/dtsi files to use the standard binding as defined in
    bindings/video/display-timing.txt.

    There are two side-effects of making this conversion:

    1) The fb node should now be in the board file, rather than the soc file as
    the display-timing node is a child of the fb node.

    2) We still require a bits per pixel property to initialize the framebuffer
    for the different lcd panels. Rather than including this as part of the
    display timing, it is moved into the framebuffer node.

    I have also taken the opportunity to alphabetise the includes of each
    driver to avoid double-ups.

    Signed-off-by: Tony Prisk
    Signed-off-by: Tomi Valkeinen

    Tony Prisk
     
  • The contrast value was typo'd on the original commit (0x80 instead of
    0x08). Following feedback from an enduser, a value of 0x10 seems more
    suitable due to the default backlight being
    Reviewed-by: Jean-Christophe Plagniol-Villard
    Signed-off-by: Tomi Valkeinen

    Tony Prisk
     
  • The various devm_ functions allocate memory that is released when a driver
    detaches. This patch uses these functions for data that is allocated in
    the probe function of a platform device and is only freed in the remove
    function.

    The patch makes some other cleanups. First, the original code used
    devm_kzalloc, but kfree. This would lead to a double free. The problem
    was found using the following semantic match (http://coccinelle.lip6.fr/):

    //
    @@
    expression x,e;
    @@
    x = devm_kzalloc(...)
    ... when != x = e
    ?-kfree(x,...);
    //

    The error-handing code of devm_request_and_ioremap does not print any
    warning message, because devm_request_and_ioremap does this.

    The call to dma_alloc_coherent is converted to its devm equivalent,
    dmam_alloc_coherent. This implicitly introduces a call to
    dmam_free_coherent, which was completly missing in the original code.

    A semicolon is removed at the end of the error-handling code for the call
    to dma_alloc_coherent.

    The block of code calling fb_alloc_cmap is moved below the block of code
    calling wm8505fb_set_par, so that the error-handing code of the call to
    wm8505fb_set_par can just return ret. This way there is only one block of
    error-handling code that needs to call fb_dealloc_cmap, and so this is
    moved up to the place where it is needed, eliminating the need for all
    gotos and labels in the function. This was suggested by Tony Prisk.

    The initializations of fbi and ret at the beginning of the function are not
    necessary and are removed. The call platform_set_drvdata(pdev, NULL); at
    the end of the function is also removed.

    Signed-off-by: Julia Lawall
    Signed-off-by: Tony Prisk
    Signed-off-by: Tomi Valkeinen

    Julia Lawall
     
  • This patch corrects the descriptions for the VIA VT8500 and
    Wondermedia WM8xxx-series framebuffer drivers to correctly reflect
    which hardware they support.

    Signed-off-by: Tony Prisk
    Reviewed-by: Jean-Christophe Plagniol-Villard
    Signed-off-by: Tomi Valkeinen

    Tony Prisk
     
  • With the conversion to devicetree only for arch-vt8500, this
    header is no longer required. This patch removes the #include
    from the two framebuffer drivers that used it, and the header file.

    Signed-off-by: Tony Prisk
    Reviewed-by: Jean-Christophe Plagniol-Villard
    Signed-off-by: Tomi Valkeinen

    Tony Prisk
     
  • wmt_ge_rops is a seperate driver to vt8500/wm8505 framebuffer
    driver but is currently a required option. This patch makes
    accelerated raster ops optional.

    Signed-off-by: Tony Prisk
    Reviewed-by: Jean-Christophe Plagniol-Villard
    Signed-off-by: Tomi Valkeinen

    Tony Prisk
     

01 Apr, 2013

5 commits

  • Linus Torvalds
     
  • Pull slave-dmaengine fixes from Vinod Koul:
    "Two fixes for slave-dmaengine.

    The first one is for making slave_id value correct for dw_dmac and
    the other one fixes the endieness in DT parsing"

    * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
    dw_dmac: adjust slave_id accordingly to request line base
    dmaengine: dw_dma: fix endianess for DT xlate function

    Linus Torvalds
     
  • Pull media fixes from Mauro Carvalho Chehab:
    "For a some fixes for Kernel 3.9:
    - subsystem build fix when VIDEO_DEV=y, VIDEO_V4L2=m and I2C=m
    - compilation fix for arm multiarch preventing IR_RX51 to be selected
    - regression fix at bttv crop logic
    - s5p-mfc/m5mols/exynos: a few fixes for cameras on exynos hardware"

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] [REGRESSION] bt8xx: Fix too large height in cropcap
    [media] fix compilation with both V4L2 and I2C as 'm'
    [media] m5mols: Fix bug in stream on handler
    [media] s5p-fimc: Do not attempt to disable not enabled media pipeline
    [media] s5p-mfc: Fix encoder control 15 issue
    [media] s5p-mfc: Fix frame skip bug
    [media] s5p-fimc: send valid m2m ctx to fimc_m2m_job_finish
    [media] exynos-gsc: send valid m2m ctx to gsc_m2m_job_finish
    [media] fimc-lite: Fix the variable type to avoid possible crash
    [media] fimc-lite: Initialize 'step' field in fimc_lite_ctrl structure
    [media] ir: IR_RX51 only works on OMAP2

    Linus Torvalds
     
  • Pull block fixes from Jens Axboe:
    "Alright, this time from 10K up in the air.

    Collection of fixes that have been queued up since the merge window
    opened, hence postponed until later in the cycle. The pull request
    contains:

    - A bunch of fixes for the xen blk front/back driver.

    - A round of fixes for the new IBM RamSan driver, fixing various
    nasty issues.

    - Fixes for multiple drives from Wei Yongjun, bad handling of return
    values and wrong pointer math.

    - A fix for loop properly killing partitions when being detached."

    * tag 'for-linus-20130331' of git://git.kernel.dk/linux-block: (25 commits)
    mg_disk: fix error return code in mg_probe()
    rsxx: remove unused variable
    rsxx: enable error return of rsxx_eeh_save_issued_dmas()
    block: removes dynamic allocation on stack
    Block: blk-flush: Fixed indent code style
    cciss: fix invalid use of sizeof in cciss_find_cfgtables()
    loop: cleanup partitions when detaching loop device
    loop: fix error return code in loop_add()
    mtip32xx: fix error return code in mtip_pci_probe()
    xen-blkfront: remove frame list from blk_shadow
    xen-blkfront: pre-allocate pages for requests
    xen-blkback: don't store dev_bus_addr
    xen-blkfront: switch from llist to list
    xen-blkback: fix foreach_grant_safe to handle empty lists
    xen-blkfront: replace kmalloc and then memcpy with kmemdup
    xen-blkback: fix dispatch_rw_block_io() error path
    rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
    Adding in EEH support to the IBM FlashSystem 70/80 device driver
    block: IBM RamSan 70/80 error message bug fix.
    block: IBM RamSan 70/80 branding changes.
    ...

    Linus Torvalds
     
  • This reverts commit 6aa9707099c4b25700940eb3d016f16c4434360d.

    Commit 6aa9707099c4 ("lockdep: check that no locks held at freeze time")
    causes problems with NFS root filesystems. The failures were noticed on
    OMAP2 and 3 boards during kernel init:

    [ BUG: swapper/0/1 still has locks held! ]
    3.9.0-rc3-00344-ga937536 #1 Not tainted
    -------------------------------------
    1 lock held by swapper/0/1:
    #0: (&type->s_umount_key#13/1){+.+.+.}, at: [] sget+0x248/0x574

    stack backtrace:
    rpc_wait_bit_killable
    __wait_on_bit
    out_of_line_wait_on_bit
    __rpc_execute
    rpc_run_task
    rpc_call_sync
    nfs_proc_get_root
    nfs_get_root
    nfs_fs_mount_common
    nfs_try_mount
    nfs_fs_mount
    mount_fs
    vfs_kern_mount
    do_mount
    sys_mount
    do_mount_root
    mount_root
    prepare_namespace
    kernel_init_freeable
    kernel_init

    Although the rootfs mounts, the system is unstable. Here's a transcript
    from a PM test:

    http://www.pwsan.com/omap/testlogs/test_v3.9-rc3/20130317194234/pm/37xxevm/37xxevm_log.txt

    Here's what the test log should look like:

    http://www.pwsan.com/omap/testlogs/test_v3.8/20130218214403/pm/37xxevm/37xxevm_log.txt

    Mailing list discussion is here:

    http://lkml.org/lkml/2013/3/4/221

    Deal with this for v3.9 by reverting the problem commit, until folks can
    figure out the right long-term course of action.

    Signed-off-by: Paul Walmsley
    Cc: Mandeep Singh Baines
    Cc: Jeff Layton
    Cc: Shawn Guo
    Cc:
    Cc: Fengguang Wu
    Cc: Trond Myklebust
    Cc: Ingo Molnar
    Cc: Ben Chan
    Cc: Oleg Nesterov
    Cc: Tejun Heo
    Cc: Rafael J. Wysocki
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Walmsley
     

31 Mar, 2013

1 commit

  • Pull SCSI target fixes from Nicholas Bellinger:
    "This includes the bug-fix for a >= v3.8-rc1 regression specific to
    iscsi-target persistent reservation conflict handling (CC'ed to
    stable), and a tcm_vhost patch to drop VIRTIO_RING_F_EVENT_IDX usage
    so that in-flight qemu vhost-scsi-pci device code can detect the
    proper vhost feature bits.

    Also, there are two more tcm_vhost patches still being discussed by
    MST and Asias for v3.9 that will be required for the in-flight qemu
    vhost-scsi-pci device patch to function properly, and that should
    (hopefully) be the last target fixes for this round."

    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    target: Fix RESERVATION_CONFLICT status regression for iscsi-target special case
    tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit

    Linus Torvalds
     

30 Mar, 2013

8 commits

  • On some hardware configurations we have got the request line with the offset.
    The patch introduces convert_slave_id() helper for that cases. The request line
    base is came from the driver data provided by the platform_device_id table.

    Signed-off-by: Mika Westerberg
    Signed-off-by: Andy Shevchenko
    Cc: Viresh Kumar
    Acked-by: Viresh Kumar
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     
  • As reported by Wu Fengguang's build robot tracking sparse warnings, the
    dma_spec arguments in the dw_dma_xlate are already byte swapped on
    little-endian platforms and must not get swapped again. This code is
    currently not used anywhere, but will be used in Linux 3.10 when the
    ARM SPEAr platform starts using the generic DMA DT binding.

    Signed-off-by: Arnd Bergmann
    Reported-by: Fengguang Wu
    Acked-by: Viresh Kumar
    Signed-off-by: Vinod Koul

    Arnd Bergmann
     
  • The Adam Belay's e-mail address in MAINTAINERS under PNP SUPPORT
    is not valid any more and I started to maintain that code in the
    meantime as a matter of fact, so list myself as a maintainer of it
    along with Bjorn and remove the Adam's entry from it.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Pull ceph fix from Sage Weil:
    "This fixes a regression introduced during the last merge window when
    mapping non-existent images."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
    rbd: don't zero-fill non-image object requests

    Linus Torvalds
     
  • A result of ENOENT from a read request for an object that's part of
    an rbd image indicates that there is a hole in that portion of the
    image. Similarly, a short read for such an object indicates that
    the remainder of the read should be interpreted a full read with
    zeros filling out the end of the request.

    This behavior is not correct for objects that are not backing rbd
    image data. Currently rbd_img_obj_request_callback() assumes it
    should be done for all objects.

    Change rbd_img_obj_request_callback() so it only does this zeroing
    for image objects. Encapsulate that special handling in its own
    function. Add an assertion that the image object request is a bio
    request, since we assume that (and we currently don't support any
    other types).

    This resolves a problem identified here:
    http://tracker.ceph.com/issues/4559

    The regression was introduced by bf0d5f503dc11d6314c0503591d258d60ee9c944.

    Reported-by: Dan van der Ster
    Signed-off-by: Alex Elder
    Reviewed-off-by: Sage Weil

    Alex Elder
     
  • Pull btrfs fixes from Chris Mason:
    "We've had a busy two weeks of bug fixing. The biggest patches in here
    are some long standing early-enospc problems (Josef) and a very old
    race where compression and mmap combine forces to lose writes (me).
    I'm fairly sure the mmap bug goes all the way back to the introduction
    of the compression code, which is proof that fsx doesn't trigger every
    possible mmap corner after all.

    I'm sure you'll notice one of these is from this morning, it's a small
    and isolated use-after-free fix in our scrub error reporting. I
    double checked it here."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
    Btrfs: don't drop path when printing out tree errors in scrub
    Btrfs: fix wrong return value of btrfs_lookup_csum()
    Btrfs: fix wrong reservation of csums
    Btrfs: fix double free in the btrfs_qgroup_account_ref()
    Btrfs: limit the global reserve to 512mb
    Btrfs: hold the ordered operations mutex when waiting on ordered extents
    Btrfs: fix space accounting for unlink and rename
    Btrfs: fix space leak when we fail to reserve metadata space
    Btrfs: fix EIO from btrfs send in is_extent_unchanged for punched holes
    Btrfs: fix race between mmap writes and compression
    Btrfs: fix memory leak in btrfs_create_tree()
    Btrfs: fix locking on ROOT_REPLACE operations in tree mod log
    Btrfs: fix missing qgroup reservation before fallocating
    Btrfs: handle a bogus chunk tree nicely
    Btrfs: update to use fs_state bit

    Linus Torvalds
     
  • Commit 3e7fc708eb41 ("ia64 idle: delete pm_idle") in 3.9-rc1 didn't
    finish the job, leaving an un-initialized reference to (*idle)().

    [ Haven't seen a crash from this - but seems like we are just being
    lucky that "idle" is zero so it does get initialized before we jump to
    randomland - Len ]

    Reported-by: Lars-Peter Clausen
    Signed-off-by: Len Brown
    Signed-off-by: Tony Luck
    Signed-off-by: Linus Torvalds

    Len Brown
     
  • Pull arc architecture fixes from Vineet Gupta:
    "This includes fix for a serious bug in DMA mapping API, make
    allyesconfig wreckage, removal of bogus email-list placeholder in
    MAINTAINERS, a typo in ptrace helper code and last remaining changes
    for syscall ABI v3 which we are finally starting to transition-to
    internally.

    The request is late than I intended to - but I was held up with
    debugging a timer link list corruption, for which a proposed fix to
    generic timer code was sent out to lkml/tglx earlier today."

    * 'for-curr' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
    ARC: Fix the typo in event identifier flags used by ptrace
    arc: fix dma_address assignment during dma_map_sg()
    ARC: Remove SET_PERSONALITY (tracks cross-arch change)
    ARC: ABIv3: fork/vfork wrappers not needed in "no-legacy-syscall" ABI
    ARC: ABIv3: Print the correct ABI ver
    ARC: make allyesconfig build breakages
    ARC: MAINTAINERS update for ARC

    Linus Torvalds
     

29 Mar, 2013

4 commits

  • A user reported a panic where we were panicing somewhere in
    tree_backref_for_extent from scrub_print_warning. He only captured the trace
    but looking at scrub_print_warning we drop the path right before we mess with
    the extent buffer to print out a bunch of stuff, which isn't right. So fix this
    by dropping the path after we use the eb if we need to. Thanks,

    Cc: stable@vger.kernel.org
    Signed-off-by: Josef Bacik
    Signed-off-by: Chris Mason

    Josef Bacik
     
  • This patch fixes a regression introduced in v3.8-rc1 code where a failed
    target_check_reservation() check in target_setup_cmd_from_cdb() was causing
    an incorrect SAM_STAT_GOOD status to be returned during a WRITE operation
    performed by an unregistered / unreserved iscsi initiator port.

    This regression is only effecting iscsi-target due to a special case check
    for TCM_RESERVATION_CONFLICT within iscsi_target_erl1.c:iscsit_execute_cmd(),
    and was still correctly disallowing WRITE commands from backend submission
    for unregistered / unreserved initiator ports, while returning the incorrect
    SAM_STAT_GOOD status due to the missing SAM_STAT_RESERVATION_CONFLICT
    assignment.

    This regression was first introduced with:

    commit de103c93aff0bed0ae984274e5dc8b95899badab
    Author: Christoph Hellwig
    Date: Tue Nov 6 12:24:09 2012 -0800

    target: pass sense_reason as a return value

    Go ahead and re-add the missing SAM_STAT_RESERVATION_CONFLICT assignment
    during a target_check_reservation() failure, so that iscsi-target code
    sends the correct SCSI status.

    All other fabrics using target_submit_cmd_*() with a RESERVATION_CONFLICT
    call to transport_generic_request_failure() are not effected by this bug.

    Reported-by: Jeff Leung
    Cc: Christoph Hellwig
    Cc:
    Signed-off-by: Nicholas Bellinger

    Nicholas Bellinger
     
  • This patch adds a VHOST_SCSI_FEATURES mask minus VIRTIO_RING_F_EVENT_IDX
    so that vhost-scsi-pci userspace will strip this feature bit once
    GET_FEATURES reports it as being unsupported on the host.

    This is to avoid a bug where ->handle_kicks() are missed when EVENT_IDX
    is enabled by default in userspace code.

    (mst: Rename to VHOST_SCSI_FEATURES + add comment)

    Acked-by: Michael S. Tsirkin
    Reviewed-by: Asias He
    Cc: Paolo Bonzini
    Signed-off-by: Nicholas Bellinger

    Nicholas Bellinger
     
  • This reverts commit 186930500985 ("mm: introduce VM_POPULATE flag to
    better deal with racy userspace programs").

    VM_POPULATE only has any effect when userspace plays racy games with
    vmas by trying to unmap and remap memory regions that mmap or mlock are
    operating on.

    Also, the only effect of VM_POPULATE when userspace plays such games is
    that it avoids populating new memory regions that get remapped into the
    address range that was being operated on by the original mmap or mlock
    calls.

    Let's remove VM_POPULATE as there isn't any strong argument to mandate a
    new vm_flag.

    Signed-off-by: Michel Lespinasse
    Signed-off-by: Hugh Dickins
    Signed-off-by: Linus Torvalds

    Michel Lespinasse