1. 09 3月, 2016 3 次提交
    • A
      drm/i915: Move shared dpll code to a new file · 7abd4b35
      Ander Conselvan de Oliveira 提交于
      Create the new file intel_dpll_mgr.c and move the shared dpll code to
      it. Follow up patches that reorganize pll handling will move more code
      there and tweak the interface.
      
      No functional changes.
      Signed-off-by: NAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1457451987-17466-2-git-send-email-ander.conselvan.de.oliveira@intel.com
      7abd4b35
    • M
      drm/i915: Only use sanitized values for ILK watermarks · 71f0a626
      Maarten Lankhorst 提交于
      The raw watermark values are needed when planes are not part of the state,
      but this introduced a regression and possibly an overflow when merging
      the watermarks because invalid values may end up used. Solve this by calculating
      raw watermarks for all levels, and only setting non-zero values when the level
      is valid.
      
      Fixes the SNB warning:
         WARNING: CPU: 1 PID: 25405 at drivers/gpu/drm/i915/intel_pm.c:2580 ilk_program_watermarks+0x7b2/0x9d0 [i915]()
         WARN_ON(wm_lp != 1)
         Modules linked in: i915 drm_kms_helper drm bluetooth fuse iTCO_wdt iTCO_vendor_support syscopyarea sysfillrect sysimgblt fb_sys_fops tpm_tis mei_me e1000e snd_hda_codec_hdmi pcspkr tpm mei i2c_i801 lpc_ich snd_hda_codec snd_hda_core
         CPU: 1 PID: 25405 Comm: kms_universal_p Tainted: G     U  W       4.5.0-rc6apollolake+ #462
         Hardware name:                  /DH67GD, BIOS BLH6710H.86A.0160.2012.1204.1156 12/04/2012
          0000000000000000 ffff88009d42b918 ffffffff8143cfab ffff88009d42b960
          ffffffffa0363580 ffff88009d42b950 ffffffff81082746 ffff8800b9a24928
          ffff88009d42ba00 ffff88009d4a0000 0000000000000000 ffff88009d42ba6c
         Call Trace:
          [<ffffffff8143cfab>] dump_stack+0x4d/0x72
          [<ffffffff81082746>] warn_slowpath_common+0x86/0xc0
          [<ffffffff810827cc>] warn_slowpath_fmt+0x4c/0x50
          [<ffffffffa0292862>] ilk_program_watermarks+0x7b2/0x9d0 [i915]
          [<ffffffffa0292cb7>] ilk_initial_watermarks+0x107/0x120 [i915]
          [<ffffffffa02feffa>] intel_pre_plane_update+0x12a/0x190 [i915]
          [<ffffffffa02ffb36>] intel_atomic_commit+0x546/0xd50 [i915]
          [<ffffffffa012c9e7>] drm_atomic_commit+0x37/0x60 [drm]
          [<ffffffffa0217361>] drm_atomic_helper_disable_plane+0xb1/0xf0 [drm_kms_helper]
          [<ffffffffa011cdb4>] __setplane_internal+0x184/0x280 [drm]
          [<ffffffffa012b57a>] ? drm_modeset_lock_all_ctx+0x9a/0xb0 [drm]
          [<ffffffffa012010f>] drm_mode_setplane+0x13f/0x1c0 [drm]
          [<ffffffffa0111b52>] drm_ioctl+0x142/0x590 [drm]
          [<ffffffffa011ffd0>] ? drm_plane_check_pixel_format+0x50/0x50 [drm]
          [<ffffffff811f2744>] ? mntput+0x24/0x40
          [<ffffffff811d28d4>] ? __fput+0x194/0x200
          [<ffffffffa012dec3>] drm_compat_ioctl+0x33/0x40 [drm]
          [<ffffffffa029e1c2>] i915_compat_ioctl+0x32/0x40 [i915]
          [<ffffffff81228d72>] compat_SyS_ioctl+0xc2/0x330
          [<ffffffff810021d5>] ? exit_to_usermode_loop+0x95/0xb0
          [<ffffffff81002d2e>] do_fast_syscall_32+0x9e/0x210
          [<ffffffff8197faf2>] entry_SYSENTER_compat+0x52/0x70
      
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Testcase: kms_universal_plane
      Fixes: d81f04c5 ("drm/i915: Allow preservation of watermarks, v2.")
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/56DEA1FC.8080703@linux.intel.comReviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      71f0a626
    • J
      drm/i915/bxt: add missing DSI power domain to power well 1 · acad889f
      Jani Nikula 提交于
      The DSI power domain was missing from BXT power well 1 definitions,
      failing to get the power well for DSI transcoders. As pipe A is in the
      same power well as DSI transcoders, the problem should only occur with
      pipes B and C.
      
      According to Ville, this is basically a nop since pw1 is under dmc
      control. But given that we still have this stuff defined here, it's
      clearly correct to include DSI here.
      
      Cc: Ramalingam C <ramalingam.c@intel.com>
      Cc: Deepak M <m.deepak@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1457463656-29357-1-git-send-email-jani.nikula@intel.com
      acad889f
  2. 07 3月, 2016 2 次提交
  3. 04 3月, 2016 13 次提交
  4. 03 3月, 2016 5 次提交
  5. 02 3月, 2016 6 次提交
  6. 01 3月, 2016 11 次提交