1. 02 9月, 2021 12 次提交
  2. 01 9月, 2021 3 次提交
  3. 31 8月, 2021 1 次提交
  4. 27 8月, 2021 4 次提交
  5. 25 8月, 2021 2 次提交
  6. 19 8月, 2021 1 次提交
  7. 17 8月, 2021 2 次提交
  8. 12 8月, 2021 1 次提交
  9. 10 8月, 2021 8 次提交
  10. 07 8月, 2021 1 次提交
  11. 06 8月, 2021 5 次提交
    • A
      drm/amd/display: 3.2.147 · ffb1a145
      Aric Cyr 提交于
      Acked-by: NAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: NAric Cyr <aric.cyr@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      ffb1a145
    • R
      drm/amd/display: Add DC_FP helper to check FPU state · 0ea7ee82
      Rodrigo Siqueira 提交于
      To fully isolate FPU operations in a single place, we must avoid
      situations where compilers spill FP values to registers due to FP enable
      in a specific C file. Note that even if we isolate all FPU functions in
      a single file and call its interface from other files, the compiler
      might enable the use of FPU before we call DC_FP_START. Nevertheless, it
      is the programmer's responsibility to invoke DC_FP_START/END in the
      correct place. To highlight situations where developers forgot to use
      the FP protection before calling the DC FPU interface functions, we
      introduce a helper that checks if the function is invoked under FP
      protection. If not, it will trigger a kernel warning.
      
      Changes cince V3:
      - Rebase
      
      Changes cince V2 (Christian):
      - Do not use this_cpu_* between get/put_cpu_ptr().
      - In the kernel documentation, better describe restrictions.
      - Make dc_assert_fp_enabled trigger the ASSERT message.
      
      Changes since V1:
      - Remove fp_enable variables
      - Rename dc_is_fp_enabled to dc_assert_fp_enabled
      - Replace wrong variable type
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Anson Jacob <Anson.Jacob@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Hersen Wu <hersenxs.wu@amd.com>
      Cc: Aric Cyr <aric.cyr@amd.com>
      Cc: Jun Lei <jun.lei@amd.com>
      Cc: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
      Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>
      Reported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      0ea7ee82
    • R
      drm/amd/display: Add control mechanism for FPU utilization · 2d8471dc
      Rodrigo Siqueira 提交于
      DC invokes DC_FPU_START/END in multiple parts of the code; this can
      create a situation where we invoke this FPU operation in a nested way or
      exit too early. For avoiding this situation, this commit adds a
      mechanism where dc_fpu_begin/end manages the access to
      kernel_fpu_begin/end.
      
      Change since V3:
      - Rebase
      
      Change since V2:
      - Christian: Do not use this_cpu_* between get/put_cpu_ptr().
      
      Change since V1:
      - Use a better variable names
      - Use get_cpu_ptr and put_cpu_ptr to better balance preemption enable
      and disable
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Anson Jacob <Anson.Jacob@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Hersen Wu <hersenxs.wu@amd.com>
      Cc: Aric Cyr <aric.cyr@amd.com>
      Cc: Jun Lei <jun.lei@amd.com>
      Cc: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
      Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>
      Reported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      2d8471dc
    • R
      drm/amd/display: Add control mechanism for FPU · 96ee6373
      Rodrigo Siqueira 提交于
      DC invokes DC_FPU_START/END in multiple parts of the code; this can
      create a situation where we invoke this FPU operation in a nested way or
      exit too early. For avoiding this situation, this commit adds a
      mechanism where dc_fpu_begin/end manages the access to
      kernel_fpu_begin/end.
      
      Change since V3:
      - Christian: Move PPC64 code to dc_fpu_begin/end.
      
      Change since V2:
      - Christian: Do not use this_cpu_* between get/put_cpu_ptr().
      
      Change since V1:
      - Use a better variable names
      - Use get_cpu_ptr and put_cpu_ptr to better balance preemption enable
      and disable
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Anson Jacob <Anson.Jacob@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Hersen Wu <hersenxs.wu@amd.com>
      Cc: Aric Cyr <aric.cyr@amd.com>
      Cc: Jun Lei <jun.lei@amd.com>
      Cc: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
      Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>
      Signed-off-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      96ee6373
    • R
      drm/amd/display: Move specific DCN2x code that uses FPU to DML · c8b3538d
      Rodrigo Siqueira 提交于
      The display core files rely on FPU, which requires to be compiled with
      special flags. Ideally, we don't want these FPU operations spread around
      the DC code; nevertheless, it happens in the current source. This commit
      introduces a new directory inside DML for centralizing shared DCN
      functions that require FPU and have been used outside DML. For
      illustrating this process of transferring FPU functions to the DML
      folder, this commit moves one of the functions
      dcn20_populate_dml_writeback_from_context) that require FPU access to a
      single shared file. Notice that this is the first part of the work, and
      it does not fix the FPU issue yet; we still need other patches for
      achieving the complete FPU isolation.
      
      Changes since V3:
      - Jun: Instead of creating a new directory to keep the FPU code, let's
      make the DML folder the only part that requires FPU access. Drop
      fpu_operation folder.
      - Christian: Fix function code style.
      
      Changes since V2:
      - Christian: Remove unnecessary wrapper.
      - lkp: Add missing prototype.
      - Only compile the FPU operations if the DCN option is enabled.
      
      Change since V1:
      - Update documentation and rebase.
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Anson Jacob <Anson.Jacob@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Hersen Wu <hersenxs.wu@amd.com>
      Cc: Aric Cyr <aric.cyr@amd.com>
      Cc: Jun Lei <jun.lei@amd.com>
      Cc: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
      Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>
      Reported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      c8b3538d