03 Nov, 2014

3 commits


02 Nov, 2014

1 commit

  • A critical 3.18 regression fix from Rob, (thanks!)
    A fix to avoid advertizing modes we can't support from Sinclair
    (welcome Sinclair!)
    and a fix for an incorrect hash key computation from me that is
    completely harmless, but can wait 'til the next merge window if necessary.
    (I can't really bother stable with this one).

    * 'vmwgfx-fixes-3.18' of git://people.freedesktop.org/~thomash/linux:
    drm/vmwgfx: Filter out modes those cannot be supported by the current VRAM size.
    drm/vmwgfx: Fix hash key computation
    drm/vmwgfx: fix lock breakage

    Dave Airlie
     

31 Oct, 2014

5 commits

  • When screen objects are enabled, the bpp is assumed to be 32, otherwise
    it is set to 16.

    v2:
    * Use u32 instead of u64 for assumed_bpp.
    * Fixed mechanism to check for screen objects
    * Limit the back buffer size to VRAM.

    Signed-off-by: Sinclair Yeh
    Reviewed-by: Thomas Hellstrom
    Cc:

    Sinclair Yeh
     
  • The hash key computation in vmw_cmdbuf_res_remove incorrectly didn't take
    the resource type into account, contrary to all the other related functions.
    This becomes important when the cmdbuf resource manager handles more than
    one resource type.

    Signed-off-by: Thomas Hellstrom
    Reviewed-by: Brian Paul

    Thomas Hellstrom
     
  • After:

    commit d059f652e73c35678d28d4cd09ab2cec89696af9
    Author: Daniel Vetter
    AuthorDate: Fri Jul 25 18:07:40 2014 +0200

    drm: Handle legacy per-crtc locking with full acquire ctx

    drm_mode_cursor_common() was switched to use drm_modeset_(un)lock_crtc()
    which uses full aquire ctx. So dropping/reaquiring the lock via
    drm_modeset_(un)lock() directly isn't the right thing to do, as lockdep
    kindly points out.

    The 'FIXME's about sorting out whether vmwgfx *really* needs to lock-all
    for cursor updates still apply.

    Signed-off-by: Rob Clark
    Reviewed-by: Jakob Bornecrantz
    Tested-by: Thomas Hellstrom

    Rob Clark
     
  • - dpm stability fixes for SI and KV
    - remove an invalid pci id
    - kmalloc_array fixes
    - minor cleanups

    * 'drm-fixes-3.18' of git://people.freedesktop.org/~agd5f/linux:
    drm/radeon: remove some buggy dead code
    drm/radeon: remove invalid pci id
    drm/radeon: dpm fixes for asrock systems
    radeon: clean up coding style differences in radeon_get_bios()
    drm/radeon: Use drm_malloc_ab instead of kmalloc_array
    drm/radeon/dpm: disable ulv support on SI

    Dave Airlie
     
  • bunch of DP fixes, and some backlight fix.

    * tag 'drm-intel-fixes-2014-10-30' of git://anongit.freedesktop.org/drm-intel:
    drm/i915/dp: only use training pattern 3 on platforms that support it
    drm/i915: Ignore VBT backlight check on Macbook 2, 1
    drm/i915: Fix GMBUSFREQ on vlv/chv
    drm/i915: Ignore long hpds on eDP ports
    drm/i915: Do a dummy DPCD read before the actual read

    Dave Airlie
     

30 Oct, 2014

2 commits

  • Ivybridge + 30" monitor prints a drm error on every modeset, since IVB
    doesn't support DP3 we should even bother trying to use it.

    This regression has been introduced in

    commit 06ea66b6bb445043dc25a9626254d5c130093199
    Author: Todd Previte
    Date: Mon Jan 20 10:19:39 2014 -0700

    drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable
    devices

    Reported-by: Dave Airlie
    Reference: http://mid.gmane.org/1414566170-9868-1-git-send-email-airlied@gmail.com
    Cc: Todd Previte
    Cc: stable@vger.kernel.org (3.15+)
    Reviewed-by: Ville Syrjälä
    Signed-off-by: Jani Nikula

    Jani Nikula
     
  • The calculation of "num_shader_engines" has a precedence bug because
    the right shift happens before the mask, but this variable is never used
    so we can just delete it.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Alex Deucher

    Dan Carpenter
     

29 Oct, 2014

1 commit

  • commit c675949ec58ca50d5a3ae3c757892f1560f6e896
    Author: Jani Nikula
    Date: Wed Apr 9 11:31:37 2014 +0300

    drm/i915: do not setup backlight if not available according to VBT

    prevents backlight setup on Macbook 2,1. Apply quirk to ignore the VBT
    check so backlight is set up properly.

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81438
    Signed-off-by: Jens Stein Jørgensen
    Cc: stable@vger.kernel.org (3.15+)
    Signed-off-by: Jani Nikula

    jens stein
     

28 Oct, 2014

10 commits

  • 0x4c6e is a secondary device id so should not be used
    by the driver.

    Noticed-by: Mark Kettenis
    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • - bapm seems to cause CPU stuck messages so disable it.
    - nb dpm seems to prevent GPU dpm from getting enabled, so
    disable it.

    bug:
    https://bugs.freedesktop.org/show_bug.cgi?id=85107

    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • Signed-off-by: Wilfried Klaebe
    Signed-off-by: Alex Deucher

    Wilfried Klaebe
     
  • Should avoid kmalloc failures due to large number of array entries.

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81991
    Reviewed-by: Dave Airlie
    Reviewed-by: Christian König
    Signed-off-by: Michel Dänzer
    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Michel Dänzer
     
  • Causes problems on some boards.

    bug:
    https://bugs.freedesktop.org/show_bug.cgi?id=82889

    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • Three changes for the Armada DRM driver:
    1. Add back the flags which tell the DRM core that we can do vblank. This
    was removed in error during the recent restructuring, and came to light
    while trying textured Xv rendering.

    2. Fixing a refcount leak with Xv overlay.

    3. As per recent discussion, the drm_vblank_pre_modeset() calls can cause
    deadlock with other changes to generic code. This change prevents those
    deadlocks by switching to the drm_crtc_vblank_*() calls instead.

    * 'drm-armada-fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
    drm/armada: convert to use vblank_on/off calls
    drm/armada: fix page_flip refcounting leak
    drm/armada: add IRQ support back

    Dave Airlie
     
  • Pull media fixes from Mauro Carvalho Chehab:
    "A series of driver fixes:
    - a few compilation fixes with randconfigs
    - one potential compilation breakage on userspace due to the usage of
    a gcc extension
    - several warnings fixed
    - some other random driver fixes"

    * tag 'media/v3.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (22 commits)
    [media] s5p-jpeg: Avoid -Wuninitialized warning in s5p_jpeg_parse_hdr
    [media] s5p-fimc: Only build suspend/resume for PM
    [media] s5p-jpeg: Only build suspend/resume for PM
    [media] Remove references to non-existent PLAT_S5P symbol
    [media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory()
    [media] tw68: remove bogus I2C_ALGOBIT dependency
    [media] usbvision-video: two use after frees
    [media] tw68: remove deprecated IRQF_DISABLED
    [media] xc5000: use after free in release()
    [media] em28xx-input: NULL dereference on error
    [media] wl128x: fix fmdbg compiler warning
    Revert "[media] v4l2-dv-timings: fix a sparse warning"
    [media] hackrf: harmless off by one in debug code
    [media] cx23885: initialize config structs for T9580
    [media] v4l: uvcvideo: Fix buffer completion size check
    [media] vivid: fix buffer overrun
    [media] saa7146: Create a device name before it's used
    [media] em28xx: fix uninitialized variable warning
    [media] vivid: fix Kconfig FB dependency
    [media] anysee: make sure loading modules is const
    ...

    Linus Torvalds
     
  • Pull EDAC fixes from Borislav Petkov:
    "Correct severity of reported errors in several EDAC drivers. From
    Jason Baron"

    * tag 'edac_fixes_for_3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    e7xxx_edac: Report CE events properly
    cpc925_edac: Report UE events properly
    i82860_edac: Report CE events properly
    i3200_edac: Report CE events properly

    Linus Torvalds
     
  • Pull spi fixes from Mark Brown:
    "Quite a few driver fixes in here, including some fairly substantial
    ones for the recently added Rockchip driver, plus a fix for spidev to
    more reliably support bidirectional transfers which is fairly large
    but basically mechanical.

    It's a bit more code than I'd like but all fixes"

    * tag 'spi-v3.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
    spi: orion: fix potential NULL pointer de-reference
    spi/rockchip: spi controller must be disabled in tx callback too
    spi/rockchip: fix bug that cause spi transfer timed out in DMA duplex mode
    spi/rockchip: fix bug that case spi can't go as fast as slave request
    spi: pl022: Fix incorrect dma_unmap_sg
    spi: spidev: Use separate TX and RX bounce buffers
    spi: dw: Initialize of_node to discover DT node children

    Linus Torvalds
     
  • Pull regulator fixes from Mark Brown:
    "A couple of fixes for v3.18, one fix for an incorrect voltage to
    register mapping in the rk808 driver and a fix for a build failure in
    some SH defconfigs"

    * tag 'regulator-v3.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
    regulator: Include err.h from consumer.h to fix build failure
    regulator: rk808: Fix min_uV for DCDC1 & DCDC2

    Linus Torvalds
     

27 Oct, 2014

9 commits

  • vlv_cdclk_freq is in kHz but we need MHz for the GMBUSFREQ divider.

    This is a regression from:
    commit f8bf63fdcb1f82459dae7a3f22ee5ce92f3ea727
    Author: Ville Syrjälä
    Date: Fri Jun 13 13:37:54 2014 +0300

    drm/i915: Kill duplicated cdclk readout code from i2c

    Signed-off-by: Ville Syrjälä
    Cc: stable@vger.kernel.org
    Signed-off-by: Jani Nikula

    Ville Syrjälä
     
  • Turning vdd on/off can generate a long hpd pulse on eDP ports. In order
    to handle hpd we would need to turn on vdd to perform aux transfers.
    This would lead to an endless cycle of
    "vdd off -> long hpd -> vdd on -> detect -> vdd off -> ..."

    So ignore long hpd pulses on eDP ports. eDP panels should be physically
    tied to the machine anyway so they should not actually disappear and
    thus don't need long hpd handling. Short hpds are still needed for link
    re-train and whatnot so we can't just turn off the hpd interrupt
    entirely for eDP ports. Perhaps we could turn it off whenever the panel
    is disabled, but just ignoring the long hpd seems sufficient.

    Signed-off-by: Ville Syrjälä
    Cc: stable@vger.kernel.org
    Reviewed-by: Dave Airlie
    Reviewed-by: Todd Previte
    Signed-off-by: Jani Nikula

    Ville Syrjälä
     
  • Sometimes we seem to get utter garbage from DPCD reads. The resulting
    buffer is filled with the same byte, and the operation completed without
    errors. My HP ZR24w monitor seems particularly susceptible to this
    problem once it's gone into a sleep mode.

    The issue seems to happen only for the first AUX message that wakes the
    sink up. But as the first AUX read we often do is the DPCD receiver
    cap it does wreak a bit of havoc with subsequent link training etc. when
    the receiver cap bw/lane/etc. information is garbage.

    A sufficient workaround seems to be to perform a single byte dummy read
    before reading the actual data. I suppose that just wakes up the sink
    sufficiently and we can just throw away the returned data in case it's
    crap. DP_DPCD_REV seems like a sufficiently safe location to read here.

    Signed-off-by: Ville Syrjälä
    Reviewed-by: Todd Previte
    Cc: stable@vger.kernel.org
    Signed-off-by: Jani Nikula

    Ville Syrjälä
     
  • …spi/fix/rockchip' and 'spi/fix/spidev' into spi-linus

    Mark Brown
     
  • Mark Brown
     
  • Mark Brown
     
  • Linus Torvalds
     
  • Pull ARM SoC fixes from Olof Johansson:
    "Another week, another small batch of fixes.

    Most of these make zynq, socfpga and sunxi platforms work a bit
    better:

    - due to new requirements for regulators, DWMMC on socfpga broke past
    v3.17
    - SMP spinup fix for socfpga
    - a few DT fixes for zynq
    - another option (FIXED_REGULATOR) for sunxi is needed that used to
    be selected by other options but no longer is.
    - a couple of small DT fixes for at91
    - ...and a couple for i.MX"

    * tag 'armsoc-for-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    ARM: dts: imx28-evk: Let i2c0 run at 100kHz
    ARM: i.MX6: Fix "emi" clock name typo
    ARM: multi_v7_defconfig: enable CONFIG_MMC_DW_ROCKCHIP
    ARM: sunxi_defconfig: enable CONFIG_REGULATOR_FIXED_VOLTAGE
    ARM: dts: socfpga: Add a 3.3V fixed regulator node
    ARM: dts: socfpga: Fix SD card detect
    ARM: dts: socfpga: rename gpio nodes
    ARM: at91/dt: sam9263: fix PLLB frequencies
    power: reset: at91-reset: fix power down register
    MAINTAINERS: add atmel ssc driver maintainer entry
    arm: socfpga: fix fetching cpu1start_addr for SMP
    ARM: zynq: DT: trivial: Fix mc node
    ARM: zynq: DT: Add cadence watchdog node
    ARM: zynq: DT: Add missing reference for memory-controller
    ARM: zynq: DT: Add missing reference for ADC
    ARM: zynq: DT: Add missing address for L2 pl310
    ARM: zynq: DT: Remove 222 MHz OPP
    ARM: zynq: DT: Fix GEM register area size

    Linus Torvalds
     
  • Pull vfs updates from Al Viro:
    "overlayfs merge + leak fix for d_splice_alias() failure exits"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    overlayfs: embed middle into overlay_readdir_data
    overlayfs: embed root into overlay_readdir_data
    overlayfs: make ovl_cache_entry->name an array instead of pointer
    overlayfs: don't hold ->i_mutex over opening the real directory
    fix inode leaks on d_splice_alias() failure exits
    fs: limit filesystem stacking depth
    overlay: overlay filesystem documentation
    overlayfs: implement show_options
    overlayfs: add statfs support
    overlay filesystem
    shmem: support RENAME_WHITEOUT
    ext4: support RENAME_WHITEOUT
    vfs: add RENAME_WHITEOUT
    vfs: add whiteout support
    vfs: export check_sticky()
    vfs: introduce clone_private_mount()
    vfs: export __inode_permission() to modules
    vfs: export do_splice_direct() to modules
    vfs: add i_op->dentry_open()

    Linus Torvalds
     

26 Oct, 2014

1 commit


25 Oct, 2014

8 commits

  • Commit 78b81f4666fb ("ARM: dts: imx28-evk: Run I2C0 at 400kHz") caused issues
    when doing the following sequence in loop:

    - Boot the kernel
    - Perform audio playback
    - Reboot the system via 'reboot' command

    In many times the audio card cannot be probed, which causes playback to fail.

    After restoring to the original i2c0 frequency of 100kHz there is no such
    problem anymore.

    This reverts commit 78b81f4666fbb22a20b1e63e5baf197ad2e90e88.

    Cc: # 3.16+
    Signed-off-by: Fabio Estevam
    Signed-off-by: Shawn Guo

    Fabio Estevam
     
  • Fix a typo error, the "emi" names refer to the eim clocks.

    The change fixes typo in EIM and EIM_SLOW pre-output dividers and
    selectors clock names. Notably EIM_SLOW clock itself is named correctly.

    Signed-off-by: Steve Longerbeam
    [vladimir_zapolskiy@mentor.com: ported to v3.17]
    Signed-off-by: Vladimir Zapolskiy
    Cc: Sascha Hauer
    Signed-off-by: Shawn Guo

    Steve Longerbeam
     
  • same story...

    Signed-off-by: Al Viro

    Al Viro
     
  • no sense having it a pointer - all instances have it pointing to
    local variable in the same stack frame

    Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • just use it to serialize the assignment

    Signed-off-by: Al Viro

    Al Viro
     
  • Pull MIPS fixes from Ralf Baechle:
    "This is the first round of fixes and tying up loose ends for MIPS.

    - plenty of fixes for build errors in specific obscure configurations
    - remove redundant code on the Lantiq platform
    - removal of a useless SEAD I2C driver that was causing a build issue
    - fix an earlier TLB exeption handler fix to also work on Octeon.
    - fix ISA level dependencies in FPU emulator's instruction decoding.
    - don't hardcode kernel command line in Octeon software emulator.
    - fix an earlier fix for the Loondson 2 clock setting"

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
    MIPS: SEAD3: Fix I2C device registration.
    MIPS: SEAD3: Nuke PIC32 I2C driver.
    MIPS: ftrace: Fix a microMIPS build problem
    MIPS: MSP71xx: Fix build error
    MIPS: Malta: Do not build the malta-amon.c file if CMP is not enabled
    MIPS: Prevent compiler warning from cop2_{save,restore}
    MIPS: Kconfig: Add missing MIPS_CPS dependencies to PM and cpuidle
    MIPS: idle: Remove leftover __pastwait symbol and its references
    MIPS: Sibyte: Include the swarm subdir to the sb1250 LittleSur builds
    MIPS: ptrace.h: Add a missing include
    MIPS: ath79: Fix compilation error when CONFIG_PCI is disabled
    MIPS: MSP71xx: Remove compilation error when CONFIG_MIPS_MT is present
    MIPS: Octeon: Remove special case for simulator command line.
    MIPS: tlbex: Properly fix HUGE TLB Refill exception handler
    MIPS: loongson2_cpufreq: Fix CPU clock rate setting mismerge
    pci: pci-lantiq: remove duplicate check on resource
    MIPS: Lasat: Add missing CONFIG_PROC_FS dependency to PICVUE_PROC
    MIPS: cp1emu: Fix ISA restrictions for cop1x_op instructions

    Linus Torvalds
     
  • Pull arm64 fixes from Catalin Marinas:

    - enable 48-bit VA space now that KVM has been fixed, together with a
    couple of fixes for pgd allocation alignment and initial memblock
    current_limit. There is still a dependency on !ARM_SMMU which needs
    to be updated as it uses the page table manipulation macros of the
    host kernel
    - eBPF fixes following changes/conflicts during the merging window
    - Compat types affecting compat_elf_prpsinfo
    - Compilation error on UP builds
    - ASLR fix when /proc/sys/kernel/randomize_va_space == 0
    - DT definitions for CLCD support on ARMv8 model platform

    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
    arm64: Fix memblock current_limit with 64K pages and 48-bit VA
    arm64: ASLR: Don't randomise text when randomise_va_space == 0
    arm64: vexpress: Add CLCD support to the ARMv8 model platform
    arm64: Fix compilation error on UP builds
    Documentation/arm64/memory.txt: fix typo
    net: bpf: arm64: minor fix of type in jited
    arm64: bpf: add 'load 64-bit immediate' instruction
    arm64: bpf: add 'shift by register' instructions
    net: bpf: arm64: address randomize and write protect JIT code
    arm64: mm: Correct fixmap pagetable types
    arm64: compat: fix compat types affecting struct compat_elf_prpsinfo
    arm64: Align less than PAGE_SIZE pgds naturally
    arm64: Allow 48-bits VA space without ARM_SMMU

    Linus Torvalds