1. 21 12月, 2020 1 次提交
  2. 10 12月, 2020 2 次提交
  3. 01 9月, 2020 1 次提交
  4. 09 7月, 2020 1 次提交
  5. 02 6月, 2020 1 次提交
  6. 09 5月, 2020 1 次提交
  7. 01 5月, 2020 1 次提交
  8. 30 4月, 2020 1 次提交
    • C
      drm/i915/gt: Keep a no-frills swappable copy of the default context state · be1cb55a
      Chris Wilson 提交于
      We need to keep the default context state around to instantiate new
      contexts (aka golden rendercontext), and we also keep it pinned while
      the engine is active so that we can quickly reset a hanging context.
      However, the default contexts are large enough to merit keeping in
      swappable memory as opposed to kernel memory, so we store them inside
      shmemfs. Currently, we use the normal GEM objects to create the default
      context image, but we can throw away all but the shmemfs file.
      
      This greatly simplifies the tricky power management code which wants to
      run underneath the normal GT locking, and we definitely do not want to
      use any high level objects that may appear to recurse back into the GT.
      Though perhaps the primary advantage of the complex GEM object is that
      we aggressively cache the mapping, but here we are recreating the
      vm_area everytime time we unpark. At the worst, we add a lightweight
      cache, but first find a microbenchmark that is impacted.
      
      Having started to create some utility functions to make working with
      shmemfs objects easier, we can start putting them to wider use, where
      GEM objects are overkill, such as storing persistent error state.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Matthew Auld <matthew.auld@intel.com>
      Cc: Ramalingam C <ramalingam.c@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: NMatthew Auld <matthew.auld@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200429172429.6054-1-chris@chris-wilson.co.uk
      be1cb55a
  9. 27 4月, 2020 1 次提交
  10. 25 4月, 2020 1 次提交
  11. 18 4月, 2020 1 次提交
  12. 08 4月, 2020 1 次提交
  13. 27 3月, 2020 1 次提交
  14. 17 3月, 2020 2 次提交
  15. 06 3月, 2020 1 次提交
  16. 29 2月, 2020 1 次提交
    • C
      drm/i915/gt: Expose engine properties via sysfs · 4ec76dbe
      Chris Wilson 提交于
      Preliminary stub to add engines underneath /sys/class/drm/cardN/, so
      that we can expose properties on each engine to the sysadmin.
      
      To start with we have basic analogues of the i915_query ioctl so that we
      can pretty print engine discovery from the shell, and flesh out the
      directory structure. Later we will add writeable sysadmin properties such
      as per-engine timeout controls.
      
      An example tree of the engine properties on Braswell:
          /sys/class/drm/card0
          └── engine
              ├── bcs0
              │   ├── capabilities
              │   ├── class
              │   ├── instance
              │   ├── known_capabilities
              │   └── name
              ├── rcs0
              │   ├── capabilities
              │   ├── class
              │   ├── instance
              │   ├── known_capabilities
              │   └── name
              ├── vcs0
              │   ├── capabilities
              │   ├── class
              │   ├── instance
              │   ├── known_capabilities
              │   └── name
              └── vecs0
                  ├── capabilities
                  ├── class
                  ├── instance
                  ├── known_capabilities
                  └── name
      
      v2: Include stringified capabilities
      v3: Include all known capabilities for futureproofing.
      v4: Combine the two caps loops into one
      
      v5: Hide underneath Kconfig.unstable for wider discussion
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Acked-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Tested-by: NSteve Carbonari <steven.carbonari@intel.com>
      Reviewed-by: NSteve Carbonari <steven.carbonari@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200228131716.3243616-1-chris@chris-wilson.co.uk
      4ec76dbe
  17. 27 2月, 2020 1 次提交
  18. 26 2月, 2020 2 次提交
  19. 24 2月, 2020 1 次提交
  20. 17 2月, 2020 1 次提交
  21. 14 2月, 2020 2 次提交
  22. 04 2月, 2020 1 次提交
  23. 31 1月, 2020 1 次提交
  24. 15 1月, 2020 1 次提交
  25. 08 1月, 2020 1 次提交
  26. 03 1月, 2020 2 次提交
  27. 02 1月, 2020 1 次提交
  28. 22 12月, 2019 1 次提交
  29. 08 11月, 2019 1 次提交
  30. 29 10月, 2019 1 次提交
    • L
      drm/i915/tgl: Add perf support on TGL · 00a7f0d7
      Lionel Landwerlin 提交于
      The design of the OA unit has been split into several units. We now
      have a global unit (OAG) and a render specific unit (OAR). This leads
      to some changes on how we program things. Some details :
      
      OAR:
        - has its own set of counter registers, they are per-context
          saved/restored
        - counters are not written to the circular OA buffer
        - a snapshot of the counters can be acquired with
          MI_RECORD_PERF_COUNT, or a single counter can be read with
          MI_STORE_REGISTER_MEM.
      
      OAG:
        - has global counters that increment across context switches
        - counters are written into the circular OA buffer (if requested)
      
      v2: Fix checkpatch warnings on code style (Lucas)
      v3: (Umesh)
        - Update register from which tail, status and head are read
        - Update logic to sample context reports
        - Update whitelist mux and b counter regs
      v4: Fix a bug when updating context image for new contexts (Umesh)
      v5: Squash patch enabling save/restore of counters into context image
      
          We want this so we can preempt performance queries and keep the
          system responsive even when long running queries are ongoing. We
          avoid doing it for all contexts.
      
          - use LRI to modify context control (Chris)
          - use MASKED_FIELD to program just the masked bits (Chris)
          - disable save/restore of counters on cleanup (Chris)
      v6: Do not use implicit parameters (Chris)
      
      BSpec: 28727, 30021
      Signed-off-by: NLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Signed-off-by: NUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Signed-off-by: NLucas De Marchi <lucas.demarchi@intel.com>
      Acked-by: NChris Wilson <chris.p.wilson@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191025193746.47155-2-umesh.nerlige.ramappa@intel.com
      00a7f0d7
  31. 27 10月, 2019 1 次提交
  32. 26 10月, 2019 1 次提交
  33. 24 10月, 2019 2 次提交
  34. 22 10月, 2019 1 次提交