1. 18 1月, 2022 2 次提交
  2. 14 1月, 2022 1 次提交
  3. 12 1月, 2022 3 次提交
    • J
      drm/i915/guc: Improve GuC loading status check/error reports · afd088ac
      John Harrison 提交于
      If the GuC fails to load, it is useful to know what firmware file /
      version was attempted. So move the version info report to before the
      load attempt rather than only after a successful load.
      
      If the GuC does fail to load, then make the error messages visible
      rather than being 'debug' prints that do not appears in dmesg output
      by default.
      
      When waiting for the GuC to load, it used to be necessary to check for
      two different states - READY and (LAPIC_DONE | MIA_CORE). Apparently
      the second signified init complete on RC6 exit. However, in more
      recent GuC versions the RC6 exit sequence now finishes with status
      READY as well. So the test can be simplified.
      
      Also, add an enum giving all the current status codes that GuC loading
      can report as a reference without having to pull and search through
      the GuC source files.
      Signed-off-by: NJohn Harrison <John.C.Harrison@Intel.com>
      Reviewed-by: NMatthew Brost <matthew.brost@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220107000622.292081-4-John.C.Harrison@Intel.com
      afd088ac
    • J
      drm/i915/guc: Update to GuC version 69.0.3 · 77b6f79d
      John Harrison 提交于
      Update to the latest GuC release.
      
      The latest GuC firmware introduces a number of interface changes:
      
      GuC may return NO_RESPONSE_RETRY message for requests sent over CTB.
      Add support for this reply and try resending the request again as a
      new CTB message.
      
      A KLV (key-length-value) mechanism is now used for passing
      configuration data such as CTB management.
      
      With the new KLV scheme, the old CTB management actions are no longer
      used and are removed.
      
      Register capture on hang is now supported by GuC. Full i915 support
      for this will be added by a later patch. A minimum support of
      providing capture memory and register lists is required though, so add
      that in.
      
      The device id of the current platform needs to be provided at init time.
      
      The 'poll CS' w/a (Wa_22012773006) was blanket enabled by previous
      versions of GuC. It must now be explicitly requested by the KMD. So,
      add in the code to turn it on when relevant.
      
      The GuC log entry format has changed. This requires adding a new field
      to the log header structure to mark the wrap point at the end of the
      buffer (as the buffer size is no longer a multiple of the log entry
      size).
      
      New CTB notification messages are now sent for some things that were
      previously only sent via MMIO notifications.
      
      Of these, the crash dump notification was not really being handled by
      i915. It called the log flush code but that only flushed the regular
      debug log and then only if relay logging was enabled. So just report
      an error message instead.
      
      The 'exception' notification was just being ignored completely. So add
      an error message for that as well.
      
      Note that in either the crash dump or the exception case, the GuC is
      basically dead. The KMD will detect this via the heartbeat and trigger
      both an error log (which will include the crash dump as part of the
      GuC log) and a GT reset. So no other processing is really required.
      Signed-off-by: NJohn Harrison <John.C.Harrison@Intel.com>
      Signed-off-by: NMichal Wajdeczko <michal.wajdeczko@intel.com>
      Reviewed-by: NMatthew Brost <matthew.brost@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220107000622.292081-3-John.C.Harrison@Intel.com
      77b6f79d
    • J
      drm/i915/guc: Temporarily bump the GuC load timeout · 53c8283b
      John Harrison 提交于
      There is a known (but exceedingly unlikely) race condition where the
      asynchronous frequency management code could reduce the GT clock while
      a GuC reload is in progress (during a full GT reset). A fix is in
      progress but there are complex locking issues to be resolved. In the
      meantime bump the timeout to 200ms. Even at slowest clock, this
      should be sufficient. And in the working case, a larger timeout makes
      no difference.
      Signed-off-by: NJohn Harrison <John.C.Harrison@Intel.com>
      Reviewed-by: NMatthew Brost <matthew.brost@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220107000622.292081-2-John.C.Harrison@Intel.com
      53c8283b
  4. 11 1月, 2022 6 次提交
  5. 10 1月, 2022 11 次提交
  6. 08 1月, 2022 1 次提交
    • J
      drm/i915/pxp: Hold RPM wakelock during PXP unbind · 57ded5fc
      Juston Li 提交于
      Similar to commit b8d84368 ("drm/i915/gt: Hold RPM wakelock during
      PXP suspend") but to fix the same warning for unbind during shutdown:
      
      ------------[ cut here ]------------
      RPM wakelock ref not held during HW access
      WARNING: CPU: 0 PID: 4139 at drivers/gpu/drm/i915/intel_runtime_pm.h:115
      gen12_fwtable_write32+0x1b7/0
      Modules linked in: 8021q ccm rfcomm cmac algif_hash algif_skcipher
      af_alg uinput snd_hda_codec_hdmi vf industrialio iwl7000_mac80211
      cros_ec_sensorhub lzo_rle lzo_compress zram iwlwifi cfg80211 joydev
      CPU: 0 PID: 4139 Comm: halt Tainted: G     U  W
      5.10.84 #13 344e11e079c4a03940d949e537eab645f6
      RIP: 0010:gen12_fwtable_write32+0x1b7/0x200
      Code: 48 c7 c7 fc b3 b5 89 31 c0 e8 2c f3 ad ff 0f 0b e9 04 ff ff ff c6
      05 71 e9 1d 01 01 48 c7 c7 d67
      RSP: 0018:ffffa09ec0bb3bb0 EFLAGS: 00010246
      RAX: 12dde97bbd260300 RBX: 00000000000320f0 RCX: ffffffff89e60ea0
      RDX: 0000000000000000 RSI: 00000000ffffdfff RDI: ffffffff89e60e70
      RBP: ffffa09ec0bb3bd8 R08: 0000000000000000 R09: ffffa09ec0bb3950
      R10: 00000000ffffdfff R11: ffffffff89e91160 R12: 0000000000000000
      R13: 0000000028121969 R14: ffff9515c32f0990 R15: 0000000040000000
      FS:  0000790dcf225740(0000) GS:ffff951737800000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 000058b25efae147 CR3: 0000000133ea6001 CR4: 0000000000770ef0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff07f0 DR7: 0000000000000400
      PKRU: 55555554
      Call Trace:
       intel_pxp_fini_hw+0x2f/0x39
       i915_pxp_tee_component_unbind+0x1c/0x42
       component_unbind+0x32/0x48
       component_unbind_all+0x80/0x9d
       take_down_master+0x24/0x36
       component_master_del+0x56/0x70
       mei_pxp_remove+0x2c/0x68
       mei_cl_device_remove+0x35/0x68
       device_release_driver_internal+0x100/0x1a1
       mei_cl_bus_remove_device+0x21/0x79
       mei_cl_bus_remove_devices+0x3b/0x51
       mei_stop+0x3b/0xae
       mei_me_shutdown+0x23/0x58
       device_shutdown+0x144/0x1d3
       kernel_power_off+0x13/0x4c
       __se_sys_reboot+0x1d4/0x1e9
       do_syscall_64+0x43/0x55
       entry_SYSCALL_64_after_hwframe+0x44/0xa9
      RIP: 0033:0x790dcf316273
      Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00
      00 89 fa be 69 19 12 28 bf ad8
      RSP: 002b:00007ffca0df9198 EFLAGS: 00000202 ORIG_RAX: 00000000000000a9
      RAX: ffffffffffffffda RBX: 000000004321fedc RCX: 0000790dcf316273
      RDX: 000000004321fedc RSI: 0000000028121969 RDI: 00000000fee1dead
      RBP: 00007ffca0df9200 R08: 0000000000000007 R09: 0000563ce8cd8970
      R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffca0df9308
      R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000003
      ---[ end trace 2f501b01b348f114 ]---
      ACPI: Preparing to enter system sleep state S5
      reboot: Power down
      
      Changes since v1:
       - Rebase to latest drm-tip
      
      Fixes: 0cfab4cb ("drm/i915/pxp: Enable PXP power management")
      Suggested-by: NLee Shawn C <shawn.c.lee@intel.com>
      Signed-off-by: NJuston Li <juston.li@intel.com>
      Reviewed-by: NDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Signed-off-by: NJohn Harrison <John.C.Harrison@Intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220106200236.489656-2-juston.li@intel.com
      57ded5fc
  7. 06 1月, 2022 6 次提交
  8. 05 1月, 2022 1 次提交
  9. 27 12月, 2021 1 次提交
  10. 24 12月, 2021 5 次提交
  11. 23 12月, 2021 1 次提交
  12. 22 12月, 2021 2 次提交