1. 16 5月, 2017 1 次提交
  2. 11 5月, 2017 2 次提交
  3. 10 5月, 2017 1 次提交
    • V
      drm/i915: Two stage watermarks for g4x · 04548cba
      Ville Syrjälä 提交于
      Implement proper two stage watermark programming for g4x. As with
      other pre-SKL platforms, the watermark registers aren't double
      buffered on g4x. Hence we must sequence the watermark update
      carefully around plane updates.
      
      The code is quite heavily modelled on the VLV/CHV code, with some
      fairly significant differences due to the different hardware
      architecture:
      * g4x doesn't use inverted watermark values
      * CxSR actually affects the watermarks since it controls memory self
        refresh in addition to the max FIFO mode
      * A further HPLL SR mode is possible with higher memory wakeup
        latency
      * g4x has FBC2 and so it also has FBC watermarks
      * max FIFO mode for primary plane only (cursor is allowed, sprite is not)
      * g4x has no manual FIFO repartitioning
      * some TLB miss related workarounds are needed for the watermarks
      
      Actually the hardware is quite similar to ILK+ in many ways. The
      most visible differences are in the actual watermakr register
      layout. ILK revamped that part quite heavily whereas g4x is still
      using the layout inherited from earlier platforms.
      
      Note that we didn't previously enable the HPLL SR on g4x. So in order
      to not introduce too many functional changes in this patch I've not
      actually enabled it here either, even though the code is now fully
      ready for it. We'll enable it separately later on.
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170421181432.15216-13-ville.syrjala@linux.intel.comReviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      04548cba
  4. 09 5月, 2017 1 次提交
  5. 08 5月, 2017 1 次提交
  6. 10 4月, 2017 1 次提交
  7. 31 3月, 2017 1 次提交
  8. 28 3月, 2017 1 次提交
  9. 27 3月, 2017 1 次提交
  10. 23 3月, 2017 4 次提交
  11. 21 3月, 2017 1 次提交
  12. 17 3月, 2017 3 次提交
  13. 16 3月, 2017 1 次提交
  14. 14 3月, 2017 1 次提交
    • D
      drm/i915: annote drop_caches debugfs interface with lockdep · 05df49e7
      Daniel Vetter 提交于
      The trouble we have is that we can't really test all the shrinker
      recursion stuff exhaustively in BAT because any kind of thrashing
      stress test just takes too long.
      
      But that leaves a really big gap open, since shrinker recursions are
      one of the most annoying bugs. Now lockdep already has support for
      checking allocation deadlocks:
      
      - Direct reclaim paths are marked up with
        lockdep_set_current_reclaim_state() and
        lockdep_clear_current_reclaim_state().
      
      - Any allocation paths are marked with lockdep_trace_alloc().
      
      If we simply mark up our debugfs with the reclaim annotations, any
      code and locks taken in there will automatically complete the picture
      with any allocation paths we already have, as long as we have a simple
      testcase in BAT which throws out a few objects using this interface.
      Not stress test or thrashing needed at all.
      
      v2: Need to EXPORT_SYMBOL_GPL to make it compile as a module.
      
      v3: Fixup rebase fail (spotted by Chris).
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: linux-kernel@vger.kernel.org
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170312205340.16202-1-daniel.vetter@ffwll.chSigned-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      05df49e7
  15. 13 3月, 2017 1 次提交
    • C
      drm/i915: Extend rpm wakelock for debugfs/i915_drpc_info · cf632bd6
      Chris Wilson 提交于
      i915_drpc_info missed covering a few register read with the runtime pm
      wakelock. Be simple and cover the entire function with a single wakelock
      so that new additions are not similarly missed in future.
      
        WARNING: CPU: 2 PID: 1334 at drivers/gpu/drm/i915/intel_drv.h:1743 gen6_read32+0x192/0x1e0 [i915]
        RPM wakelock ref not held during HW access
        Modules linked in: rpcsec_gss_krb5 nfsv4 dns_resolver netconsole nfsd auth_rpcgss ipmi_watchdog ipmi_poweroff ipmi_devintf ipmi_msghandler overlay btrfs xor raid6_pq dm_mod sg sd_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ata_generic pata_acpi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_intel kvm_intel snd_hda_codec kvm eeepc_wmi irqbypass snd_hda_core crct10dif_pclmul crc32_pclmul crc32c_intel asus_wmi sparse_keymap ghash_clmulni_intel snd_hwdep i915 rfkill ppdev pcbc aesni_intel ata_piix crypto_simd glue_helper snd_pcm pata_via cryptd pcspkr snd_timer drm_kms_helper syscopyarea snd sysfillrect libata sysimgblt fb_sys_fops soundcore shpchp drm wmi parport_pc parport tpm_infineon video
        CPU: 2 PID: 1334 Comm: php5 Not tainted 4.10.0-rc8-01615-g1f58c8e7 #1
        Hardware name: System manufacturer System Product Name/P8H67-M PRO, BIOS 1002 04/01/2011
        Call Trace:
         dump_stack+0x63/0x8a
         __warn+0xcb/0xf0
         warn_slowpath_fmt+0x4f/0x60
         ? seq_vprintf+0x35/0x50
         gen6_read32+0x192/0x1e0 [i915]
         i915_drpc_info+0x55d/0x990 [i915]
         seq_read+0xf2/0x3b0
         full_proxy_read+0x51/0x80
         __vfs_read+0x28/0x130
         ? security_file_permission+0x9b/0xc0
         ? rw_verify_area+0x4e/0xb0
         vfs_read+0xa8/0x170
         SyS_read+0x46/0xa0
         entry_SYSCALL_64_fastpath+0x1a/0xa9
        RIP: 0033:0x7fd97bf175a0
        RSP: 002b:00007ffdf730db68 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
        RAX: ffffffffffffffda RBX: 00007fd978028738 RCX: 00007fd97bf175a0
        RDX: 0000000000002000 RSI: 00007fd97740e0d8 RDI: 0000000000000005
        RBP: 0000000000000001 R08: 0000000000e97840 R09: 00007fd977ef8d58
        R10: 0000000000000027 R11: 0000000000000246 R12: 00007fd977ef8d58
        R13: 0000000000000000 R14: 0000000000eb4640 R15: 0000000000000000
      Reported-by: Nkernel test robot <xiaolong.ye@intel.com>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170313095617.29010-1-chris@chris-wilson.co.ukReviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
      cf632bd6
  16. 12 3月, 2017 1 次提交
  17. 10 3月, 2017 2 次提交
  18. 09 3月, 2017 1 次提交
  19. 08 3月, 2017 1 次提交
  20. 04 3月, 2017 1 次提交
  21. 03 3月, 2017 2 次提交
  22. 02 3月, 2017 1 次提交
  23. 01 3月, 2017 1 次提交
  24. 23 2月, 2017 1 次提交
  25. 22 2月, 2017 1 次提交
  26. 20 2月, 2017 2 次提交
  27. 16 2月, 2017 1 次提交
  28. 15 2月, 2017 2 次提交
  29. 11 2月, 2017 1 次提交
    • L
      drm/i915/debugfs: Add i915_hpd_storm_ctl · 317eaa95
      Lyude 提交于
      This adds a file in i915's debugfs directory that allows userspace to
      manually control HPD storm detection. This is mainly for hotplugging
      tests, where we might want to test HPD storm functionality or disable
      storm detection to speed up hotplugging tests without breaking anything.
      
      Changes since v1:
      - Make HPD storm interval configurable
      - Misc code cleanup
      Signed-off-by: NLyude <lyude@redhat.com>
      Acked-by: NJani Nikula <jani.nikula@linux.intel.com>
      Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>
      317eaa95
  30. 10 2月, 2017 1 次提交
    • C
      drm/i915/byt: Take powerwell for reading PIPESTAT in debugfs · 4f4631af
      Chris Wilson 提交于
      [12493.693827] WARNING: CPU: 1 PID: 14860 at drivers/gpu/drm/i915/intel_uncore.c:795 __unclaimed_reg_debug+0x5d/0x80 [i915]
      [12493.693868] Unclaimed read from register 0x1f0024
      [12493.693905] Modules linked in: vgem i915 drm_kms_helper drm intel_gtt i2c_algo_bit syscopyarea sysfillrect sysimgblt fb_sys_fops prime_numbers intel_powerclamp crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel cryptd lpc_ich i2c_i801 mfd_core video i2c_designware_platform i2c_designware_core i2c_core button autofs4 sd_mod ahci libahci libata scsi_mod [last unloaded: i915]
      [12493.694039] CPU: 1 PID: 14860 Comm: intel-gpu-overl Tainted: G     U          4.10.0-rc7+ #11
      [12493.694079] Hardware name: GIGABYTE GB-BXBT-1900/MZBAYAB-00, BIOS F8 03/02/2016
      [12493.694121] Call Trace:
      [12493.694169]  dump_stack+0x67/0x9d
      [12493.694235]  __warn+0x117/0x140
      [12493.694288]  warn_slowpath_fmt+0x4f/0x60
      [12493.694344]  ? do_raw_spin_lock+0x116/0x180
      [12493.694533]  ? check_for_unclaimed_mmio+0x98/0xe0 [i915]
      [12493.694727]  __unclaimed_reg_debug+0x5d/0x80 [i915]
      [12493.694923]  fwtable_read32+0x2c5/0x330 [i915]
      [12493.695108]  i915_interrupt_info+0xd52/0xf80 [i915]
      [12493.695302]  ? gen6_write16+0x310/0x310 [i915]
      [12493.695357]  seq_read+0x187/0x710
      [12493.695412]  full_proxy_read+0x75/0xc0
      [12493.695472]  __vfs_read+0x5a/0x220
      [12493.695524]  ? kmem_cache_free+0x6c/0x260
      [12493.695577]  ? putname+0x97/0xa0
      [12493.695629]  ? putname+0x97/0xa0
      [12493.695682]  ? rcu_read_lock_sched_held+0xb8/0xd0
      [12493.695735]  ? rw_verify_area+0x65/0x140
      [12493.695787]  vfs_read+0xd1/0x1f0
      [12493.695840]  SyS_read+0x62/0xc0
      [12493.695893]  entry_SYSCALL_64_fastpath+0x1c/0xb1
      [12493.695943] RIP: 0033:0x7f82dca99ba0
      [12493.695985] RSP: 002b:00007ffc0bdfd4f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
      [12493.696031] RAX: ffffffffffffffda RBX: 00007ffc0be005a0 RCX: 00007f82dca99ba0
      [12493.696073] RDX: 0000000000001fff RSI: 00007ffc0bdfd500 RDI: 000000000000001a
      [12493.696115] RBP: ffffffff810fb639 R08: 302f6972642f6775 R09: 00007f82dca0999a
      [12493.696157] R10: 00007f82dcd62760 R11: 0000000000000246 R12: ffff880069a17f98
      [12493.696199] R13: 00007ffc0bdfd428 R14: 0000000000000003 R15: 00007ffc0bdfd428
      [12493.696250]  ? trace_hardirqs_off_caller+0xd9/0x130
      [12493.696300] ---[ end trace 52ccf4d39793cc59 ]---
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99761Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170210133632.16946-1-chris@chris-wilson.co.ukReviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
      4f4631af