1. 21 4月, 2020 12 次提交
  2. 20 4月, 2020 5 次提交
  3. 18 4月, 2020 19 次提交
  4. 17 4月, 2020 4 次提交
    • C
      drm/i915/selftests: Take the engine wakeref around __rps_up_interrupt · a50717db
      Chris Wilson 提交于
      Since we are touching the device to read the registers, we are required
      to ensure the device is awake at the time. Currently, we believe
      ourselves to be inside the active request [thus an active engine
      wakeref], but since that may be retired in the background, we can
      spontaneously lose the wakeref and the ability to probe the HW.
      
      <4> [379.686703] RPM wakelock ref not held during HW access
      <4> [379.686805] WARNING: CPU: 7 PID: 4869 at ./drivers/gpu/drm/i915/intel_runtime_pm.h:115 gen12_fwtable_read32+0x233/0x300 [i915]
      <4> [379.686808] Modules linked in: i915(+) vgem snd_hda_codec_hdmi mei_hdcp x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul ax88179_178a usbnet mii ghash_clmulni_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm e1000e mei_me ptp mei pps_core intel_lpss_pci prime_numbers [last unloaded: i915]
      <4> [379.686827] CPU: 7 PID: 4869 Comm: i915_selftest Tainted: G     U            5.7.0-rc1-CI-CI_DRM_8313+ #1
      <4> [379.686830] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLSFWI1.R00.2457.A13.1912190237 12/19/2019
      <4> [379.686883] RIP: 0010:gen12_fwtable_read32+0x233/0x300 [i915]
      <4> [379.686887] Code: d8 ea e0 0f 0b e9 19 fe ff ff 80 3d ad 12 2d 00 00 0f 85 17 fe ff ff 48 c7 c7 b0 32 3e a0 c6 05 99 12 2d 00 01 e8 2d d8 ea e0 <0f> 0b e9 fd fd ff ff 8b 05 c4 75 56 e2 85 c0 0f 85 84 00 00 00 48
      <4> [379.686889] RSP: 0018:ffffc90000727970 EFLAGS: 00010286
      <4> [379.686892] RAX: 0000000000000000 RBX: ffff88848cc20ee8 RCX: 0000000000000001
      <4> [379.686894] RDX: 0000000080000001 RSI: ffff88843b1f0900 RDI: 00000000ffffffff
      <4> [379.686896] RBP: 0000000000000000 R08: ffff88843b1f0900 R09: 0000000000000000
      <4> [379.686898] R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000a058
      <4> [379.686900] R13: 0000000000000001 R14: ffff88848cc2bf30 R15: 00000000ffffffea
      <4> [379.686902] FS:  00007f7d63f5e300(0000) GS:ffff8884a0180000(0000) knlGS:0000000000000000
      <4> [379.686904] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      <4> [379.686907] CR2: 000055e5c30f4988 CR3: 000000042e190002 CR4: 0000000000760ee0
      <4> [379.686910] PKRU: 55555554
      <4> [379.686911] Call Trace:
      <4> [379.686986]  live_rps_interrupt+0xb14/0xc10 [i915]
      <4> [379.687051]  ? intel_rps_unpark+0xb0/0xb0 [i915]
      <4> [379.687057]  ? __trace_bprintk+0x57/0x80
      <4> [379.687143]  __i915_subtests+0xb8/0x210 [i915]
      <4> [379.687222]  ? __i915_live_teardown+0x50/0x50 [i915]
      <4> [379.687291]  ? __intel_gt_live_setup+0x30/0x30 [i915]
      <4> [379.687361]  __run_selftests+0x112/0x170 [i915]
      <4> [379.687431]  i915_live_selftests+0x2c/0x60 [i915]
      <4> [379.687491]  i915_pci_probe+0x93/0x1b0 [i915]
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NAndi Shyti <andi.shyti@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200417093928.17822-2-chris@chris-wilson.co.uk
      a50717db
    • C
      drm/i915/selftests: Delay spinner before waiting for an interrupt · 9d7e560f
      Chris Wilson 提交于
      It seems that although (perhaps because of the memory stall?) the
      spinner has signaled that it has started, it still takes some time to
      spin up to 100% utilisation of the HW. Since the test depends on the
      full utilisation of the HW to trigger the RPS interrupt, wait a little
      bit and flush the interrupt status to be sure that the event we see if
      from the spinner.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NAndi Shyti <andi.shyti@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200417093928.17822-1-chris@chris-wilson.co.uk
      9d7e560f
    • C
      drm/i915/gt: Scrub execlists state on resume · 23122a4d
      Chris Wilson 提交于
      Before we resume, we reset the HW so we restart from a known good state.
      However, as a part of the reset process, we drain our pending CS event
      queue -- and if we are resuming that does not correspond to internal
      state. On setup, we are scrubbing the CS pointers, but alas only on
      setup.
      
      Apply the sanitization not just to setup, but to all resumes.
      Reported-by: NVenkata Ramana Nayana <venkata.ramana.nayana@intel.com>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Venkata Ramana Nayana <venkata.ramana.nayana@intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
      Reviewed-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200416114117.3460-1-chris@chris-wilson.co.uk
      23122a4d
    • U
      drm/i915/display: Enable DP Display Audio WA · 48b8b04c
      Uma Shankar 提交于
      For certain DP VDSC bpp settings, hblank asserts before hblank_early,
      leading to a bad audio state. Driver need to program "hblank early
      enable" and "samples per line" parameters in AUDIO_CONFIG_BE
      register.
      
      This is Display Audio WA #1406928334 for 4k+VDSC usecase
      applicable on DP encoders. Implemented the same.
      
      v2: Fixed build failures on 32bit machine.
      
      v3: Dropped u64, added helpers for sample room calculation,
          other general comments as per Jani Nikula's feedback.
          Also fixed connector type check (spotted by Anshuman)
      
      v4: Addressed Jani Nikula and Kai's review comments.
      
      v5: Addressed Anshuman's review comment and used crtc_* variable
          to get timings.
      
      v6: Dropped a redundant initialization.
      Reviewed-by: NAnshuman Gupta <anshuman.gupta@intel.com>
      Signed-off-by: NUma Shankar <uma.shankar@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200416105419.9664-1-uma.shankar@intel.com
      48b8b04c