1. 06 4月, 2022 1 次提交
  2. 17 1月, 2022 1 次提交
  3. 23 11月, 2021 1 次提交
  4. 18 11月, 2021 1 次提交
  5. 15 9月, 2021 2 次提交
  6. 29 7月, 2021 1 次提交
  7. 11 5月, 2021 1 次提交
  8. 29 4月, 2021 1 次提交
  9. 24 3月, 2021 1 次提交
  10. 10 2月, 2021 1 次提交
  11. 03 2月, 2021 1 次提交
  12. 27 10月, 2020 1 次提交
  13. 18 8月, 2020 2 次提交
  14. 22 7月, 2020 1 次提交
  15. 01 7月, 2020 1 次提交
    • R
      drm/amd/display: Rework dsc to isolate FPU operations · 1e5d05ec
      Rodrigo Siqueira 提交于
      When we want to use float point operation on Linux
      we need to use within special kernel protection
      (`kernel_fpu_{begin,end}()`.), otherwise the kernel
      can clobber userspace FPU register state. For detecting
      these issues we use a tool named objtool (with -Ffa
      flags) to highlight the FPU problems, all warnings can
      be summed up as follows:
      
      ./tools/objtool/objtool check -Ffa
      drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.o
      
      [..] dc/dsc/rc_calc.o: warning: objtool: get_qp_set()+0x2f8:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: dsc_roundf()+0x5:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: dsc_ceil()+0x5:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: get_ofs_set()+0x3eb:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: calc_rc_params()+0x3c:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/dc_dsc.o: warning: objtool:
      get_dsc_bandwidth_range.isra.0()+0x8d:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/dc_dsc.o: warning: objtool: setup_dsc_config()+0x2ef:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc_dpi.o: warning: objtool:copy_pps_fields()+0xbb:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc_dpi.o: warning: objtool:
      dscc_compute_dsc_parameters()+0x7b:
      FPU instruction outside of kernel_fpu_{begin,end}()
      
      This commit fixes the above issues by rework DSC as described:
      
      1. Isolate all FPU operations in a single file;
      2. Use FPU flags only in the file that handles FPU operations;
      3. Isolate all functions that require float point operation in static
         functions;
      4. Add a mid-layer function that does not use any float point operation,
         and that could be safely invoked in other parts of the code.
      5. Keep float point operation under DC_FP_{START/END} macro.
      
      CC: Christian König <christian.koenig@amd.com>
      CC: Alexander Deucher <Alexander.Deucher@amd.com>
      CC: Peter Zijlstra <peterz@infradead.org>
      CC: Tony Cheng <tony.cheng@amd.com>
      CC: Harry Wentland <hwentlan@amd.com>
      Signed-off-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: NMikita Lipski <Mikita.Lipski@amd.com>
      Acked-by: NQingqing Zhuo <qingqing.zhuo@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      1e5d05ec
  16. 12 6月, 2020 1 次提交
    • R
      drm/amd/display: Rework dsc to isolate FPU operations · 9ec051bf
      Rodrigo Siqueira 提交于
      When we want to use float point operation on Linux
      we need to use within special kernel protection
      (`kernel_fpu_{begin,end}()`.), otherwise the kernel
      can clobber userspace FPU register state. For detecting
      these issues we use a tool named objtool (with -Ffa
      flags) to highlight the FPU problems, all warnings can
      be summed up as follows:
      
      ./tools/objtool/objtool check -Ffa
      drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.o
      
      [..] dc/dsc/rc_calc.o: warning: objtool: get_qp_set()+0x2f8:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: dsc_roundf()+0x5:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: dsc_ceil()+0x5:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: get_ofs_set()+0x3eb:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc.o: warning: objtool: calc_rc_params()+0x3c:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/dc_dsc.o: warning: objtool:
      get_dsc_bandwidth_range.isra.0()+0x8d:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/dc_dsc.o: warning: objtool: setup_dsc_config()+0x2ef:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc_dpi.o: warning: objtool:copy_pps_fields()+0xbb:
      FPU instruction outside of kernel_fpu_{begin,end}()
      [..] dc/dsc/rc_calc_dpi.o: warning: objtool:
      dscc_compute_dsc_parameters()+0x7b:
      FPU instruction outside of kernel_fpu_{begin,end}()
      
      This commit fixes the above issues by rework DSC as described:
      
      1. Isolate all FPU operations in a single file;
      2. Use FPU flags only in the file that handles FPU operations;
      3. Isolate all functions that require float point operation in static
         functions;
      4. Add a mid-layer function that does not use any float point operation,
         and that could be safely invoked in other parts of the code.
      5. Keep float point operation under DC_FP_{START/END} macro.
      
      CC: Christian König <christian.koenig@amd.com>
      CC: Alexander Deucher <Alexander.Deucher@amd.com>
      CC: Peter Zijlstra <peterz@infradead.org>
      CC: Tony Cheng <tony.cheng@amd.com>
      CC: Harry Wentland <hwentlan@amd.com>
      Signed-off-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: NMikita Lipski <Mikita.Lipski@amd.com>
      Acked-by: NQingqing Zhuo <qingqing.zhuo@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      9ec051bf
  17. 01 5月, 2020 1 次提交
  18. 23 1月, 2020 1 次提交
  19. 19 12月, 2019 2 次提交
  20. 06 12月, 2019 2 次提交
  21. 19 11月, 2019 1 次提交
  22. 14 11月, 2019 1 次提交
    • B
      drm/amd/display: Drop CONFIG_DRM_AMD_DC_DCN2_0 and DSC_SUPPORTED · 1da37801
      Bhawanpreet Lakha 提交于
      [Why]
      
      DCN2 and DSC are stable enough to be build by default. So drop the flags.
      
      [How]
      
      Remove them using the unifdef tool. The following commands were executed
      in sequence:
      
      $ find -name '*.c' -exec unifdef -m -DCONFIG_DRM_AMD_DC_DSC_SUPPORT -DCONFIG_DRM_AMD_DC_DCN2_0 -UCONFIG_TRIM_DRM_AMD_DC_DCN2_0 '{}' ';'
      $ find -name '*.h' -exec unifdef -m -DCONFIG_DRM_AMD_DC_DSC_SUPPORT -DCONFIG_DRM_AMD_DC_DCN2_0 -UCONFIG_TRIM_DRM_AMD_DC_DCN2_0 '{}' ';'
      
      In addition:
      
      * Remove from kconfig, and replace any dependencies with DCN1_0.
      * Remove from any makefiles.
      * Fix and cleanup NV defninitions in dal_asic_id.h
      * Expand DCN1 ifdef to include DCN2 code in the following files:
          * clk_mgr/clk_mgr.c: dc_clk_mgr_create()
          * core/dc_resources.c: dc_create_resource_pool()
          * dce/dce_dmcu.c: dcn20_*lock_phy()
          * dce/dce_dmcu.c: dcn20_funcs
          * dce/dce_dmcu.c: dcn20_dmcu_create()
          * gpio/hw_factory.c: dal_hw_factory_init()
          * gpio/hw_translate.c: dal_hw_translate_init()
      Signed-off-by: NLeo Li <sunpeng.li@amd.com>
      Signed-off-by: NBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      1da37801
  23. 14 9月, 2019 2 次提交
  24. 15 8月, 2019 1 次提交
  25. 28 6月, 2019 1 次提交
  26. 22 6月, 2019 10 次提交