1. 31 1月, 2020 1 次提交
  2. 30 1月, 2020 1 次提交
  3. 29 1月, 2020 1 次提交
  4. 17 1月, 2020 1 次提交
  5. 16 1月, 2020 1 次提交
  6. 15 1月, 2020 1 次提交
  7. 09 1月, 2020 1 次提交
  8. 07 1月, 2020 1 次提交
  9. 01 1月, 2020 1 次提交
  10. 28 12月, 2019 2 次提交
  11. 23 12月, 2019 1 次提交
    • D
      drm/i915/tgl: Gen-12 render decompression · b3e57bcc
      Dhinakaran Pandiyan 提交于
      Gen-12 display decompression operates on Y-tiled compressed main surface.
      The CCS is linear and has 4 bits of metadata for each main surface cache
      line pair, a size ratio of 1:256. Gen-12 display decompression is
      incompatible with buffers compressed by earlier GPUs, so make use of a new
      modifier to identify gen-12 compression. Another notable change is that
      render decompression is supported on all planes except cursor and on all
      pipes. Start by adding render decompression support for [A,X]BGR888 pixel
      formats.
      
      v2: Fix checkpatch warnings (Lucas)
      v3:
      Rebase, disable color clear, styling changes and modify
      intel_tile_width_bytes and intel_tile_height to handle linear CCS
      v4:
      - Use format block descriptors and the i915 specific func to get the
        subsampling for each color plane.
      - Use helpers to convert between CCS and main planes.
      v5:
      - Fix subsampling returned by intel_fb_plane_get_subsampling() for
        the CCS plane of the first plane.
      v6:
      - Rebased on v2 of patch 4.
      v7:
      - Fix plane dimensions during FB check.
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Nanley G Chery <nanley.g.chery@intel.com>
      Cc: Jason Ekstrand <jason@jlekstrand.net>
      Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
      Signed-off-by: NDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Signed-off-by: NLucas De Marchi <lucas.demarchi@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> (v6)
      Link: https://patchwork.freedesktop.org/patch/msgid/20191221120543.22816-7-imre.deak@intel.com
      b3e57bcc
  12. 14 12月, 2019 1 次提交
  13. 11 12月, 2019 2 次提交
  14. 03 12月, 2019 1 次提交
  15. 29 11月, 2019 1 次提交
  16. 18 11月, 2019 1 次提交
  17. 16 11月, 2019 1 次提交
  18. 15 11月, 2019 1 次提交
  19. 14 11月, 2019 3 次提交
  20. 13 11月, 2019 1 次提交
  21. 06 11月, 2019 3 次提交
    • I
      drm/i915/gen8+: Add RC6 CTX corruption WA · 7e34f4e4
      Imre Deak 提交于
      In some circumstances the RC6 context can get corrupted. We can detect
      this and take the required action, that is disable RC6 and runtime PM.
      The HW recovers from the corrupted state after a system suspend/resume
      cycle, so detect the recovery and re-enable RC6 and runtime PM.
      
      v2: rebase (Mika)
      v3:
      - Move intel_suspend_gt_powersave() to the end of the GEM suspend
        sequence.
      - Add commit message.
      v4:
      - Rebased on intel_uncore_forcewake_put(i915->uncore, ...) API
        change.
      v5: rebased on gem/gt split (Mika)
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Signed-off-by: NMika Kuoppala <mika.kuoppala@linux.intel.com>
      7e34f4e4
    • U
      drm/i915: Lower RM timeout to avoid DSI hard hangs · 1d85a299
      Uma Shankar 提交于
      In BXT/APL, device 2 MMIO reads from MIPI controller requires its PLL
      to be turned ON. When MIPI PLL is turned off (MIPI Display is not
      active or connected), and someone (host or GT engine) tries to read
      MIPI registers, it causes hard hang. This is a hardware restriction
      or limitation.
      
      Driver by itself doesn't read MIPI registers when MIPI display is off.
      But any userspace application can submit unprivileged batch buffer for
      execution. In that batch buffer there can be mmio reads. And these
      reads are allowed even for unprivileged applications. If these
      register reads are for MIPI DSI controller and MIPI display is not
      active during that time, then the MMIO read operation causes system
      hard hang and only way to recover is hard reboot. A genuine
      process/application won't submit batch buffer like this and doesn't
      cause any issue. But on a compromised system, a malign userspace
      process/app can generate such batch buffer and can trigger system
      hard hang (denial of service attack).
      
      The fix is to lower the internal MMIO timeout value to an optimum
      value of 950us as recommended by hardware team. If the timeout is
      beyond 1ms (which will hit for any value we choose if MMIO READ on a
      DSI specific register is performed without PLL ON), it causes the
      system hang. But if the timeout value is lower than it will be below
      the threshold (even if timeout happens) and system will not get into
      a hung state. This will avoid a system hang without losing any
      programming or GT interrupts, taking the worst case of lowest CDCLK
      frequency and early DC5 abort into account.
      Signed-off-by: NUma Shankar <uma.shankar@intel.com>
      Reviewed-by: NJon Bloomfield <jon.bloomfield@intel.com>
      1d85a299
    • J
      drm/i915: Add gen9 BCS cmdparsing · 0f2f3975
      Jon Bloomfield 提交于
      For gen9 we enable cmdparsing on the BCS ring, specifically
      to catch inadvertent accesses to sensitive registers
      
      Unlike gen7/hsw, we use the parser only to block certain
      registers. We can rely on h/w to block restricted commands,
      so the command tables only provide enough info to allow the
      parser to delineate each command, and identify commands that
      access registers.
      
      Note: This patch deliberately ignores checkpatch issues in
      favour of matching the style of the surrounding code. We'll
      correct the entire file in one go in a later patch.
      
      v3: rebase (Mika)
      v4: Add RING_TIMESTAMP registers to whitelist (Jon)
      Signed-off-by: NJon Bloomfield <jon.bloomfield@intel.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Tyler Hicks <tyhicks@canonical.com>
      Signed-off-by: NMika Kuoppala <mika.kuoppala@linux.intel.com>
      Reviewed-by: NChris Wilson <chris.p.wilson@intel.com>
      0f2f3975
  22. 04 11月, 2019 3 次提交
  23. 30 10月, 2019 9 次提交
  24. 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