Skip to content
Snippets Groups Projects
  1. Mar 17, 2022
  2. Mar 14, 2022
    • Nicolas Dufresne's avatar
      media: mtk-vcodec: Do no rely on refresh_frame_flags · ffa70856
      Nicolas Dufresne authored
      Stop using refresh_frame_flags and rely on the udpate API that now
      provides reference_frame_ts[] array with all the active frames, and
      ref_frame_idx[] is the index to the references used by this frame.
      ffa70856
    • Nicolas Dufresne's avatar
      media: uapi: Fix AV1 reference lists · 24a8aa52
      Nicolas Dufresne authored
      We need both all the references and the per frame references. This is
      because unlike VP9, show_existing_frame that are key frame will refresh
      the frame slots, which prevents the driver from keeping track since
      these frame are not signalled to the driver.
      
      Instead mimic other API (like VA and DXVA) and provide a complete list
      of active references. The driver can then cleanup any data it was
      storing for references that are no longer in use, saving previous
      memory.
      24a8aa52
  3. Mar 11, 2022
    • Tinghan Shen's avatar
      remoteproc: mediatek: fix side effect of mt8195 sram power on · b1596012
      Tinghan Shen authored
      
      The definition of L1TCM_SRAM_PDN bits on mt8195 is different to mt8192.
      
      L1TCM_SRAM_PDN bits[3:0] control the power of mt8195 L1TCM SRAM.
      
      L1TCM_SRAM_PDN bits[7:4] control the access path to EMI for SCP.
      These bits have to be powered on to allow EMI access for SCP.
      
      Bits[7:4] also affect audio DSP because audio DSP and SCP are
      placed on the same hardware bus. If SCP cannot access EMI, audio DSP is
      blocked too.
      
      L1TCM_SRAM_PDN bits[31:8] are not used.
      
      This fix removes modification of bits[7:4] when power on/off mt8195 SCP
      L1TCM. It's because the modification introduces a short period of time
      blocking audio DSP to access EMI. This was not a problem until we have
      to load both SCP module and audio DSP module. audio DSP needs to access
      EMI because it has source/data on DRAM. Audio DSP will have unexpected
      behavior when it accesses EMI and the SCP driver blocks the EMI path at
      the same time.
      
      Signed-off-by: default avatarTinghan Shen <tinghan.shen@mediatek.com>
      b1596012
    • AngeloGioacchino Del Regno's avatar
      media: platform: mtk-mdp: Fix mdp_ipi_comm structure alignment · cda22660
      AngeloGioacchino Del Regno authored
      
      The mdp_ipi_comm structure defines a command that is either
      PROCESS (start processing) or DEINIT (destroy instance); we
      are using this one to send PROCESS or DEINIT commands from Linux
      to an MDP instance through a VPU write but, while the first wants
      us to stay 4-bytes aligned, the VPU instead requires an 8-bytes
      data alignment.
      
      Keeping in mind that these commands are executed immediately
      after sending them (hence not chained with others before the
      VPU/MDP "actually" start executing), it is fine to simply add
      a padding of 4 bytes to this structure: this keeps the same
      performance as before, as we're still stack-allocating it,
      while avoiding hackery inside of mtk-vpu to ensure alignment
      bringing a definitely bigger performance impact.
      
      Fixes: c8eb2d7e ("[media] media: Add Mediatek MDP Driver")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      cda22660
  4. Mar 09, 2022
  5. Mar 08, 2022
  6. Mar 07, 2022
  7. Mar 04, 2022
  8. Mar 03, 2022
  9. Feb 28, 2022
Loading