1. 21 Nov, 2017 2 commits
    • Xiangliang.Yu's avatar
      drm/amdgpu: fix kernel hang when starting VNC server · d5a480b4
      Xiangliang.Yu authored
      After starting VNC server or running CTS test, kernel will hang and
      can see below call trace:
      
      [961816] INFO: task khugepaged:42 blocked for more than 120 seconds.
      [968581]       Tainted: G           OE   4.13.0 #1
      [973495] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables
                this message.
      [980962] khugepaged      D    0    42      2 0x00000000
      [980967] Call Trace:
      [980977]  __schedule+0x28d/0x890
      [980982]  schedule+0x36/0x80
      [980986]  rwsem_down_read_failed+0x139/0x1c0
      [980991]  ? update_curr+0x100/0x1c0
      [981004]  call_rwsem_down_read_failed+0x18/0x30
      [981007]  down_read+0x20/0x40
      [981012]  khugepaged_scan_mm_slot+0x78/0x1ac0
      [981018]  ? __switch_to+0x23e/0x4a0
      [981022]  ? finish_task_switch+0x79/0x240
      [981026]  khugepaged+0x146/0x480
      [981031]  ? remove_wait_queue+0x60/0x60
      [981035]  kthread+0x109/0x140
      [981037]  ? khugepaged_scan_mm_slot+0x1ac0/0x1ac0
      [981039]  ? kthread_park+0x60/0x60
      [981044]  ret_from_fork+0x25/0x30
      
      After checking code and found 'commit b72cf4fc ("drm/amdgpu: move
      taking mmap_sem into get_user_pages v2")' forget to drop one case of
      up_read.
      Signed-off-by: default avatarXiangliang.Yu <Xiangliang.Yu@amd.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d5a480b4
    • Alex Deucher's avatar
      drm/amdgpu: don't skip attributes when powerplay is enabled · 135f9711
      Alex Deucher authored
      The function checks non-powerplay structures so regressed when
      the pp_enabled check was removed.  This should ideally be
      implemented similarly for powerplay.
      
      Fixes: 6d07fe7b ("drm/amdgpu: delete pp_enable in adev")
      Tested-by: default avatarDieter Nützel <Dieter@nuetzel-hh.de>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      135f9711
  2. 20 Nov, 2017 1 commit
  3. 17 Nov, 2017 2 commits
  4. 16 Nov, 2017 3 commits
  5. 15 Nov, 2017 1 commit
  6. 14 Nov, 2017 2 commits
  7. 13 Nov, 2017 5 commits
  8. 09 Nov, 2017 5 commits
  9. 08 Nov, 2017 4 commits
  10. 07 Nov, 2017 5 commits
  11. 06 Nov, 2017 2 commits
  12. 04 Nov, 2017 2 commits
  13. 03 Nov, 2017 4 commits
    • Akshu Agrawal's avatar
      drm/amd/amdgpu: Enabling ACP clock in hw_init (v2) · 37c5f2c9
      Akshu Agrawal authored
      Enabling of ACP in hw_init does away with requirement of order
      of probe on designware_i2s and acp dma driver. designware_i2s
      reads i2s registers and this use to fail if acp dma driver was not probed
      prior to it.
      
      BUG=:b:62103837
      TEST=modprobe snd-soc-acp-pcm
      modprobe snd-soc-acp-rt5645-mach
      aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: acprt5650 [acprt5650], device 0: RT5645_AIF1 rt5645-aif1-0 []
        Subdevices: 1/1
          Subdevice #0: subdevice #0
      
      v2: use proper device in dev_err to fix warnings (Alex)
      Signed-off-by: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
      Reviewed-on: https://chromium-review.googlesource.com/670207Reviewed-by: default avatarJason Clinton <jclinton@chromium.org>
      Reviewed-on: https://chromium-review.googlesource.com/676628Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      37c5f2c9
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2017-10-23' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · 36a5fdf7
      Dave Airlie authored
      This time really the last i915 batch for v4.15:
      
      - PSR state tracking in crtc state (Ville)
      - Fix eviction when the GGTT is idle but full (Chris)
      - BDW DP aux channel timeout fix (James)
      - LSPCON detection fixes (Shashank)
      - Use for_each_pipe to iterate over pipes (Mika Kahola)
      - Replace *_reference/unreference() or *_ref/unref with _get/put() (Harsha)
      - Refactoring and preparation for DDI encoder type cleanup (Ville)
      - Broadwell DDI FDI buf translation fix (Chris)
      - Read CSB and CSB write pointer from HWSP in GVT-g VM if available (Weinan)
      - GuC/HuC firmware loader refactoring (Michal)
      - Make shrinking more effective and not stall so much (Chris)
      - Cannonlake PLL fixes (Rodrigo)
      - DP MST connector error propagation fixes (James)
      - Convert timers to use timer_setup (Kees Cook)
      - Skylake plane enable/disable unification (Juha-Pekka)
      - Fix to actually free driver internal objects when requested (Chris)
      - DDI buf trans refactoring (Ville)
      - Skip waking the device to service pwrite (Chris)
      - Improve DSI VBT backlight parsing abstraction (Madhav)
      - Cannonlake VBT DDC pin mapping fix (Rodrigo)
      
      * tag 'drm-intel-next-2017-10-23' of git://anongit.freedesktop.org/drm/drm-intel: (87 commits)
        drm/i915: Update DRIVER_DATE to 20171023
        drm/i915/cnl: Map VBT DDC Pin to BSpec DDC Pin.
        drm/i915: Let's use more enum intel_dpll_id pll_id.
        drm/i915: Use existing DSI backlight ports info
        drm/i915: Parse DSI backlight/cabc ports.
        drm/i915: Skip waking the device to service pwrite
        drm/i915/crt: split compute_config hook by platforms
        drm/i915: remove g4x lowfreq_avail and has_pipe_cxsr
        drm/i915: Drop the redundant hdmi prefix/suffix from a lot of variables
        drm/i915: Unify error handling for missing DDI buf trans tables
        drm/i915: Centralize the SKL DDI A/E vs. B/C/D buf trans handling
        drm/i915: Kill off the BXT buf_trans default_index
        drm/i915: Pass encoder type to cnl_ddi_vswing_sequence() explicitly
        drm/i915: Integrate BXT into intel_ddi_dp_voltage_max()
        drm/i915: Pass the level to intel_prepare_hdmi_ddi_buffers()
        drm/i915: Pass the encoder type explicitly to skl_set_iboost()
        drm/i915: Extract intel_ddi_get_buf_trans_hdmi()
        drm/i915: Relocate intel_ddi_get_buf_trans_*() functions
        drm/i915: Flush the idle-worker for debugfs/i915_drop_caches
        drm/i915: adjust get_crtc_fence_y_offset() to use base.y instead of crtc.y
        ...
      36a5fdf7
    • Boris BREZILLON's avatar
      drm/vc4: Fix wrong printk format in vc4_bo_stats_debugfs() · e073db5c
      Boris BREZILLON authored
      vc4->purgeable.size and vc4->purgeable.purged_size are size_t fields
      and should be printed with a %zd specifier.
      
      Fixes: b9f19259 ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
      Reviewed-by: default avatarEric Anholt <eric@anholt.net>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171101095731.14878-1-boris.brezillon@free-electrons.com
      (cherry picked from commit 50f365cd)
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      e073db5c
    • Arnd Bergmann's avatar
      drm/amdgpu/virt: don't dereference undefined 'module' struct · e477e940
      Arnd Bergmann authored
      Accessing the THIS_MODULE directly is only possible when modules
      are enabled, otherwise we get a build failure:
      
      drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c: In function 'amdgpu_virt_init_data_exchange':
      drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:331:20: error: dereferencing pointer to incomplete type 'struct module'
      
      Further, THIS_MODULE is NULL when the driver is built-in, so the
      code would likely cause a NULL pointer dereference.
      
      This adds an #ifdef check to avoid the compile-time error, plus
      a NULL pointer check before dereferencing THIS_MODULE. It might
      be better to find a way to avoid using the module version
      altogether.
      
      Fixes: 2dc8f81e ("drm/amdgpu: SR-IOV data exchange between PF&VF")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Reviewed-By: default avatarXiangliang Yu <Xiangliang.Yu@amd.com>
      e477e940
  14. 02 Nov, 2017 2 commits