Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Mar 9, 2018

  1. Merge tag 'pci-v4.16-fixes-3' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/helgaas/pci
    
    Pull PCI fixes from Bjorn Helgaas:
    
     - fix sparc build issue when OF_IRQ not enabled (Guenter Roeck)
    
     - fix enumeration of devices below switches on DesignWare-based
       controllers (Koen Vandeputte)
    
    * tag 'pci-v4.16-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
      PCI: dwc: Fix enumeration end when reaching root subordinate
      PCI: Move of_irq_parse_and_map_pci() declaration under OF_IRQ
    torvalds committed Mar 9, 2018
  2. Merge tag 'fbdev-v4.16-rc5' of git://github.com/bzolnier/linux

    Pull fbdev fix from Bartlomiej Zolnierkiewicz:
     "Just a single fix to close a kernel data leak in FBIOGETCMAP_SPARC
      ioctl"
    
    * tag 'fbdev-v4.16-rc5' of git://github.com/bzolnier/linux:
      fbdev: Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in sbusfb_ioctl_helper().
    torvalds committed Mar 9, 2018
  3. Merge tag 'drm-fixes-for-v4.16-rc5' of git://people.freedesktop.org/~…

    …airlied/linux
    
    Pull drm fixes from Dave Airlie:
     "There are a small set of sun4i and i915 fixes, and many more amdgpu
      fixes:
    
      sun4i:
       - divide by zero fix
       - clock and LVDS fixes
    
      i915:
       - fix for perf
       - race fix
    
      amdgpu:
       - a bit more than we are normally comfortable with at this point,
         however it does fix a lot of display issues with the new DC code
         which result in black screens in various configurations along with
         some run of the mill gpu configuration fixes.
    
         I'm happy enough that the fixes are limited to the DC code and
         should fix a bunch of issues on the new raven ridge APUs that we
         are seeing shipped now"
    
    * tag 'drm-fixes-for-v4.16-rc5' of git://people.freedesktop.org/~airlied/linux: (42 commits)
      drm/amd/display: validate plane format on primary plane
      drm/amdgpu:Always save uvd vcpu_bo in VM Mode
      drm/amdgpu:Correct max uvd handles
      drm/amd/display: early return if not in vga mode in disable_vga
      drm/amd/display: Fix takover from VGA mode
      drm/amd/display: Fix memleaks when atomic check fails.
      drm/amd/display: Return success when enabling interrupt
      drm/amd/display: Use crtc enable/disable_vblank hooks
      drm/amd/display: update infoframe after dig fe is turned on
      drm/amd/display: fix boot-up on vega10
      drm/amd/display: fix cursor related Pstate hang
      drm/amd/display: Set irq state only on existing crtcs
      drm/amd/display: Fixed non-native modes not lighting up
      drm/amd/display: Call update_stream_signal directly from amdgpu_dm
      drm/amd/display: Make create_stream_for_sink more consistent
      drm/amd/display: Don't block dual-link DVI modes
      drm/amd/display: Don't allow dual-link DVI on all ASICs.
      drm/amd/display: Pass signal directly to enable_tmds_output
      drm/amd/display: Remove unnecessary fail labels in create_stream_for_sink
      drm/amd/display: Move MAX_TMDS_CLOCK define to header
      ...
    torvalds committed Mar 9, 2018
  4. Merge tag 'sound-4.16-rc5' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "Two type of fixes:
    
       - The usual stuff, a handful HD-audio quirks for various machines
    
       - Further hardening against ALSA sequencer ioctl/write races that are
         triggered by fuzzer"
    
    * tag 'sound-4.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
      ALSA: hda: add dock and led support for HP ProBook 640 G2
      ALSA: hda: add dock and led support for HP EliteBook 820 G3
      ALSA: hda/realtek - Make dock sound work on ThinkPad L570
      ALSA: seq: Remove superfluous snd_seq_queue_client_leave_cells() call
      ALSA: seq: More protection for concurrent write and ioctl races
      ALSA: seq: Don't allow resizing pool in use
      ALSA: hda/realtek - Fix dock line-out volume on Dell Precision 7520
      ALSA: hda/realtek: Limit mic boost on T480
      ALSA: hda/realtek - Add headset mode support for Dell laptop
      ALSA: hda/realtek - Add support headset mode for DELL WYSE
      ALSA: hda - Fix a wrong FIXUP for alc289 on Dell machines
    torvalds committed Mar 9, 2018
  5. Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/mszeredi/vfs
    
    Pull overlayfs fixes from Miklos Szeredi:
     "This fixes a corner case for NFS exporting (introduced in this cycle)
      as well as fixing miscellaneous bugs"
    
    * 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
      ovl: update Kconfig texts
      ovl: redirect_dir=nofollow should not follow redirect for opaque lower
      ovl: fix ptr_ret.cocci warnings
      ovl: check ERR_PTR() return value from ovl_lookup_real()
      ovl: check lower ancestry on encode of lower dir file handle
      ovl: hash non-dir by lower inode for fsnotify
    torvalds committed Mar 9, 2018
  6. Merge tag 'xfs-4.16-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/x…

    …fs-linux
    
    Pull xfs fixes from Darrick Wong:
    
     - Fix some iomap locking problems
    
     - Don't allocate cow blocks when we're zeroing file data
    
    * tag 'xfs-4.16-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
      xfs: don't block on the ilock for RWF_NOWAIT
      xfs: don't start out with the exclusive ilock for direct I/O
      xfs: don't allocate COW blocks for zeroing holes or unwritten extents
    torvalds committed Mar 9, 2018
  7. Merge tag 'powerpc-4.16-5' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/powerpc/linux
    
    Pull powerpc fixes from Michael Ellerman:
     "One notable fix to properly advertise our support for a new firmware
      feature, caused by two series conflicting semantically but not
      textually.
    
      There's a new ioctl for the new ocxl driver, which is not a fix, but
      needed to complete the userspace API and good to have before the
      driver is in a released kernel.
    
      Finally three minor selftest fixes, and a fix for intermittent build
      failures for some obscure platforms, caused by a missing make
      dependency.
    
      Thanks to: Alastair D'Silva, Bharata B Rao, Guenter Roeck"
    
    * tag 'powerpc-4.16-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      powerpc/pseries: Fix vector5 in ibm architecture vector table
      ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL
      ocxl: Add get_metadata IOCTL to share OCXL information to userspace
      selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable
      selftests/powerpc: Fix missing clean of pmu/lib.o
      powerpc/boot: Fix random libfdt related build errors
      selftests/powerpc: Skip tm-trap if transactional memory is not enabled
    torvalds committed Mar 9, 2018

Commits on Mar 8, 2018

  1. Merge branch 'drm-fixes-4.16' of git://people.freedesktop.org/~agd5f/…

    …linux into drm-fixes
    
    Fixes for 4.16.  A bit bigger than I would have liked, but most of that
    is DC fixes which Harry helped me pull together from the past few weeks.
    Highlights:
    - Fix DL DVI with DC
    - Various RV fixes for DC
    - Overlay fixes for DC
    - Fix HDMI2 handling on boards without HBR tables in the vbios
    - Fix crash with pass-through on SI on amdgpu
    - Fix RB harvesting on KV
    - Fix hibernation failures on UVD with certain cards
    
    * 'drm-fixes-4.16' of git://people.freedesktop.org/~agd5f/linux: (35 commits)
      drm/amd/display: validate plane format on primary plane
      drm/amdgpu:Always save uvd vcpu_bo in VM Mode
      drm/amdgpu:Correct max uvd handles
      drm/amd/display: early return if not in vga mode in disable_vga
      drm/amd/display: Fix takover from VGA mode
      drm/amd/display: Fix memleaks when atomic check fails.
      drm/amd/display: Return success when enabling interrupt
      drm/amd/display: Use crtc enable/disable_vblank hooks
      drm/amd/display: update infoframe after dig fe is turned on
      drm/amd/display: fix boot-up on vega10
      drm/amd/display: fix cursor related Pstate hang
      drm/amd/display: Set irq state only on existing crtcs
      drm/amd/display: Fixed non-native modes not lighting up
      drm/amd/display: Call update_stream_signal directly from amdgpu_dm
      drm/amd/display: Make create_stream_for_sink more consistent
      drm/amd/display: Don't block dual-link DVI modes
      drm/amd/display: Don't allow dual-link DVI on all ASICs.
      drm/amd/display: Pass signal directly to enable_tmds_output
      drm/amd/display: Remove unnecessary fail labels in create_stream_for_sink
      drm/amd/display: Move MAX_TMDS_CLOCK define to header
      ...
    airlied committed Mar 8, 2018
  2. Merge tag 'drm-misc-fixes-2018-03-07' of git://anongit.freedesktop.or…

    …g/drm/drm-misc into drm-fixes
    
    sun4i fixes on clk, division by zero and LVDS.
    
    * tag 'drm-misc-fixes-2018-03-07' of git://anongit.freedesktop.org/drm/drm-misc:
      drm/sun4i: crtc: Call drm_crtc_vblank_on / drm_crtc_vblank_off
      drm/sun4i: rgb: Fix potential division by zero
      drm/sun4i: tcon: Reduce the scope of the LVDS error a bit
      drm/sun4i: Release exclusive clock lock when disabling TCON
      drm/sun4i: Fix dclk_set_phase
    airlied committed Mar 8, 2018
  3. Merge tag 'drm-intel-fixes-2018-03-07' of git://anongit.freedesktop.o…

    …rg/drm/drm-intel into drm-fixes
    
    - 2 fixes: 1 for perf and 1 execlist submission race.
    
    * tag 'drm-intel-fixes-2018-03-07' of git://anongit.freedesktop.org/drm/drm-intel:
      drm/i915: Suspend submission tasklets around wedging
      drm/i915/perf: fix perf stream opening lock
    airlied committed Mar 8, 2018
  4. Merge tag 'mips_fixes_4.16_4' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/jhogan/mips
    
    Pull MIPS fixes from James Hogan:
     "A miscellaneous pile of MIPS fixes for 4.16:
    
       - move put_compat_sigset() to evade hardened usercopy warnings (4.16)
    
       - select ARCH_HAVE_PC_{SERIO,PARPORT} for Loongson64 platforms (4.16)
    
       - fix kzalloc() failure handling in ath25 (3.19) and Octeon (4.0)
    
       - fix disabling of IPIs during BMIPS suspend (3.19)"
    
    * tag 'mips_fixes_4.16_4' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips:
      MIPS: BMIPS: Do not mask IPIs during suspend
      MIPS: Loongson64: Select ARCH_MIGHT_HAVE_PC_SERIO
      MIPS: Loongson64: Select ARCH_MIGHT_HAVE_PC_PARPORT
      signals: Move put_compat_sigset to compat.h to silence hardened usercopy
      MIPS: OCTEON: irq: Check for null return on kzalloc allocation
      MIPS: ath25: Check for kzalloc allocation failure
    torvalds committed Mar 8, 2018
  5. Merge tag 'chrome-platform-4.16-rc4-fixes' of git://git.kernel.org/pu…

    …b/scm/linux/kernel/git/bleung/chrome-platform
    
    Pull chrome platform fix from Benson Leung:
     "Revert a problematic patch that constified something imporperly"
    
    * tag 'chrome-platform-4.16-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform:
      Revert "platform/chrome: chromeos_laptop: make chromeos_laptop const"
    torvalds committed Mar 8, 2018
  6. ALSA: hda: add dock and led support for HP ProBook 640 G2

    This patch adds missing initialisation for HP 2013 UltraSlim Dock
    Line-In/Out PINs and activates keyboard mute/micmute leds
    for HP ProBook 640 G2
    
    Signed-off-by: Dennis Wassenberg <dennis.wassenberg@secunet.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    dwassenberg authored and tiwai committed Mar 8, 2018
  7. ALSA: hda: add dock and led support for HP EliteBook 820 G3

    This patch adds missing initialisation for HP 2013 UltraSlim Dock
    Line-In/Out PINs and activates keyboard mute/micmute leds
    for HP EliteBook 820 G3
    
    Signed-off-by: Dennis Wassenberg <dennis.wassenberg@secunet.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    dwassenberg authored and tiwai committed Mar 8, 2018
  8. ALSA: hda/realtek - Make dock sound work on ThinkPad L570

    One version of Lenovo Thinkpad T570 did not use ALC298
    (like other Kaby Lake devices). Instead it uses ALC292.
    In order to make the Lenovo dock working with that codec
    the dock quirk for ALC292 will be used.
    
    Signed-off-by: Dennis Wassenberg <dennis.wassenberg@secunet.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    dwassenberg authored and tiwai committed Mar 8, 2018
  9. ALSA: seq: Remove superfluous snd_seq_queue_client_leave_cells() call

    With the previous two fixes for the write / ioctl races:
      ALSA: seq: Don't allow resizing pool in use
      ALSA: seq: More protection for concurrent write and ioctl races
    the cells aren't any longer in queues at the point calling
    snd_seq_pool_done() in snd_seq_ioctl_set_client_pool().  Hence the
    function call snd_seq_queue_client_leave_cells() can be dropped safely
    from there.
    
    Suggested-by: Nicolai Stange <nstange@suse.de>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Mar 8, 2018
  10. ALSA: seq: More protection for concurrent write and ioctl races

    This patch is an attempt for further hardening against races between
    the concurrent write and ioctls.  The previous fix d15d662
    ("ALSA: seq: Fix racy pool initializations") covered the race of the
    pool initialization at writer and the pool resize ioctl by the
    client->ioctl_mutex (CVE-2018-1000004).  However, basically this mutex
    should be applied more widely to the whole write operation for
    avoiding the unexpected pool operations by another thread.
    
    The only change outside snd_seq_write() is the additional mutex
    argument to helper functions, so that we can unlock / relock the given
    mutex temporarily during schedule() call for blocking write.
    
    Fixes: d15d662 ("ALSA: seq: Fix racy pool initializations")
    Reported-by: θŒƒιΎ™ι£ž <long7573@126.com>
    Reported-by: Nicolai Stange <nstange@suse.de>
    Reviewed-and-tested-by: Nicolai Stange <nstange@suse.de>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Mar 8, 2018
  11. ALSA: seq: Don't allow resizing pool in use

    This is a fix for a (sort of) fallout in the recent commit
    d15d662 ("ALSA: seq: Fix racy pool initializations") for
    CVE-2018-1000004.
    As the pool resize deletes the existing cells, it may lead to a race
    when another thread is writing concurrently, eventually resulting a
    UAF.
    
    A simple workaround is not to allow the pool resizing when the pool is
    in use.  It's an invalid behavior in anyway.
    
    Fixes: d15d662 ("ALSA: seq: Fix racy pool initializations")
    Reported-by: θŒƒιΎ™ι£ž <long7573@126.com>
    Reported-by: Nicolai Stange <nstange@suse.de>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Mar 8, 2018
  12. Revert "platform/chrome: chromeos_laptop: make chromeos_laptop const"

    This reverts commit a376cd9 because
    chromeos_laptop instances should not be marked as "const" (at this
    time), since i2c_peripheral is being modified (we change "state" and
    "tries") when we instantiate devices.
    
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: Benson Leung <bleung@chromium.org>
    dtor authored and bleungatchromium committed Mar 8, 2018
  13. Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/mst/vhost
    
    Pull virtio bugfix from Michael Tsirkin:
     "A bugfix for error handling in virtio"
    
    * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
      virtio_ring: fix num_free handling in error case
    torvalds committed Mar 8, 2018
  14. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    Pull input fixes from Dmitry Torokhov:
    
     - we are reverting patch that was switched touchpad on Lenovo T460P
       over to native RMI because on these boxes BIOS messes up with SMBus
       controller state. We might re-enable it later once SMBus issue is
       resolved
    
     - disabling interrupts in matrix_keypad driver was racy
    
     - mms114 now has SPDX header and matching MODULE_LICENSE
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Revert "Input: synaptics - Lenovo Thinkpad T460p devices should use RMI"
      Input: matrix_keypad - fix race when disabling interrupts
      Input: mms114 - add SPDX identifier
      Input: mms114 - fix license module information
    torvalds committed Mar 8, 2018

Commits on Mar 7, 2018

  1. Revert "Input: synaptics - Lenovo Thinkpad T460p devices should use RMI"

    This reverts commit 4828296 which
    caused the following issues:
    
    1. On T460p with BIOS version 2.22 touchpad and trackpoint stop working
    after suspend-resume cycle. Due to strange state of the device another
    suspend is impossible.
    
    The following dmesg errors can be observed:
    thinkpad_acpi: EC reports that Thermal Table has changed
    rmi4_smbus 7-002c: failed to get SMBus version number!
    rmi4_physical rmi4-00: rmi_driver_reset_handler: Failed to read current IRQ mask.
    rmi4_f01 rmi4-00.fn01: Failed to restore normal operation: -16.
    rmi4_f01 rmi4-00.fn01: Resume failed with code -16.
    rmi4_physical rmi4-00: Failed to suspend functions: -16
    rmi4_smbus 7-002c: Failed to resume device: -16
    PM: resume devices took 0.640 seconds
    rmi4_f03 rmi4-00.fn03: rmi_f03_pt_write: Failed to write to F03 TX register (-16).
    rmi4_physical rmi4-00: rmi_driver_clear_irq_bits: Failed to change enabled interrupts!
    rmi4_physical rmi4-00: rmi_driver_set_irq_bits: Failed to change enabled interrupts!
    psmouse: probe of serio3 failed with error -1
    
    2. On another T460p with BIOS version 2.15 two finger scrolling gesture
    on the touchpad stops working after suspend-resume cycle (about 75%
    reproducibility, when it still works, the scrolling gesture becomes
    laggy). Nothing suspicious appears in the dmesg.
    
    Analysis form Richard SchΓΌtz:
    
    "RMI is unreliable on the ThinkPad T460p because the device is affected
    by the firmware behavior addressed in a7ae819 ("i2c: i801: Allow
    ACPI SystemIO OpRegion to conflict with PCI BAR")."
    
    The affected devices often show:
    
    i801_smbus 0000:00:1f.4: BIOS is accessing SMBus registers
    i801_smbus 0000:00:1f.4: Driver SMBus register access inhibited
    
    Reported-by: Richard SchΓΌtz <rschuetz@uni-koblenz.de>
    Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Tested-by: Martin Peres <martin.peres@linux.intel.com>
    Tested-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Arkadiusz Hiler authored and dtor committed Mar 7, 2018
  2. drm/amd/display: validate plane format on primary plane

    In dce110, the plane configuration is such that plane 0
    or the primary plane should be rendered with only RGB data.
    
    This patch adds the validation to ensure that no video data
    is rendered on plane 0.
    
    Signed-off-by: Shirish S <shirish.s@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Shirish S authored and alexdeucher committed Mar 7, 2018
  3. drm/amdgpu:Always save uvd vcpu_bo in VM Mode

    When UVD is in VM mode, there is not uvd handle exchanged,
    uvd.handles are always 0. So vcpu_bo always need save,
    Otherwise amdgpu driver will fail during suspend/resume.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105021
    Signed-off-by: James Zhu <James.Zhu@amd.com>
    Reviewed-by: Leo Liu <leo.liu@amd.com>
    Reviewed-by: Christian KΓΆnig <christian.koenig@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    James Zhu authored and alexdeucher committed Mar 7, 2018
  4. drm/amdgpu:Correct max uvd handles

    Max uvd handles should use adev->uvd.max_handles instead of
    AMDGPU_MAX_UVD_HANDLES here.
    
    Signed-off-by: James Zhu <James.Zhu@amd.com>
    Reviewed-by: Leo Liu <leo.liu@amd.com>
    Reviewed-by: Christian KΓΆnig <christian.koenig@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    James Zhu authored and alexdeucher committed Mar 7, 2018
  5. drm/amd/display: early return if not in vga mode in disable_vga

    The work around for hw bug causes S3 resume failure. Don't execute
    disable vga logic if not in vga mode.
    
    Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Acked-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Eric Yang authored and alexdeucher committed Mar 7, 2018
  6. drm/amd/display: Fix takover from VGA mode

    HW Engineer's Notes:
     During switch from vga->extended, if we set the VGA_TEST_ENABLE and then
     hit the VGA_TEST_RENDER_START, then the DCHUBP timing gets updated correctly.
     Then vBIOS will have it poll for the VGA_TEST_RENDER_DONE and unset
     VGA_TEST_ENABLE, to leave it in the same state as before.
    
    Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Acked-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Bhawanpreet Lakha authored and alexdeucher committed Mar 7, 2018
  7. drm/amd/display: Fix memleaks when atomic check fails.

    While checking plane states for updates during atomic check, we create
    dc_plane_states in preparation. These dc states should be freed if
    something errors.
    
    Although the input transfer function is also freed by
    dc_plane_state_release(), we should free it (on error) under the same
    scope as where it is created.
    
    Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
    Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    leeonadoh authored and alexdeucher committed Mar 7, 2018
  8. drm/amd/display: Return success when enabling interrupt

    Signed-off-by: Harry Wentland <harry.wentland@amd.com>
    Reviewed-by: Roman Li <Roman.Li@amd.com>
    Acked-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Harry Wentland authored and alexdeucher committed Mar 7, 2018
  9. drm/amd/display: Use crtc enable/disable_vblank hooks

    Signed-off-by: Harry Wentland <harry.wentland@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Acked-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Harry Wentland authored and alexdeucher committed Mar 7, 2018
  10. drm/amd/display: update infoframe after dig fe is turned on

    Before dig fe is enabled, infoframe can't be programmed. So in
    suspend resume case our infoframe programmming was not going through.
    
    This change changes the sequence so that infoframe is programmed
    after.
    
    Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Acked-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Eric Yang authored and alexdeucher committed Mar 7, 2018
  11. drm/amd/display: fix boot-up on vega10

    Fixing null-deref on Vega10 due to regression after
    'fix cursor related Pstate hang' change.
    Added null checks in setting cursor position.
    
    Signed-off-by: Roman Li <Roman.Li@amd.com>
    Reviewed-by: Eric Yang <eric.yang2@amd.com>
    Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Roman Li authored and alexdeucher committed Mar 7, 2018
  12. drm/amd/display: fix cursor related Pstate hang

    Move cursor programming to inside the OTG_MASTER_UPDATE_LOCK
    
    If graphics plane go from 1 pipe to hsplit, the cursor updates
    after mpc programming and unlock. Which means there is a window
    of time where cursor is enabled on the wrong pipe if it's on
    the right side of the screen (i.e. case where cursor need to
    move from pipe 0 to pipe 3 post split). This will cause pstate hang.
    
    Solution is to program the cursor while still locked.
    
    Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Acked-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Eric Yang authored and alexdeucher committed Mar 7, 2018
  13. drm/amd/display: Set irq state only on existing crtcs

    Because AMDGPU_CRTC_IRQ_VLINE1 = 6, it expected 6 more crtcs to be
    programed with disabled irq state in amdgpu_irq_disable_all. That caused errors and accessed
    the wrong memory location.
    
    Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Mikita Lipski authored and alexdeucher committed Mar 7, 2018
  14. drm/amd/display: Fixed non-native modes not lighting up

    There is no need to call drm_mode_set_crtcinfo() again once
    crtc timing is decided. Otherwise non-native/unsupported timing
    might get overwritten.
    
    Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
    Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Jerry (Fangzhi) Zuo authored and alexdeucher committed Mar 7, 2018
Older