1. 16 3月, 2022 2 次提交
  2. 03 2月, 2022 1 次提交
  3. 29 10月, 2021 1 次提交
  4. 07 10月, 2021 1 次提交
  5. 24 9月, 2021 2 次提交
    • A
      drm/amd/display: fix empty debug macros · c48977f0
      Arnd Bergmann 提交于
      Using an empty macro expansion as a conditional expression
      produces a W=1 warning:
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function 'dce_aux_transfer_with_retries':
      drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:775:156: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
        775 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER");
            |                                                                                                                                                            ^
      drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:783:155: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
        783 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK");
            |                                                                                                                                                           ^
      
      Expand it to "do { } while (0)" instead to make the expression
      more robust and avoid the warning.
      
      Fixes: 56aca230 ("drm/amd/display: Add AUX I2C tracing.")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      c48977f0
    • A
      drm/amd/display: fix empty debug macros · 7ac80532
      Arnd Bergmann 提交于
      Using an empty macro expansion as a conditional expression
      produces a W=1 warning:
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function 'dce_aux_transfer_with_retries':
      drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:775:156: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
        775 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER");
            |                                                                                                                                                            ^
      drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:783:155: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
        783 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK");
            |                                                                                                                                                           ^
      
      Expand it to "do { } while (0)" instead to make the expression
      more robust and avoid the warning.
      
      Fixes: 56aca230 ("drm/amd/display: Add AUX I2C tracing.")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      7ac80532
  6. 15 9月, 2021 1 次提交
  7. 10 8月, 2021 1 次提交
  8. 28 7月, 2021 1 次提交
  9. 19 6月, 2021 1 次提交
  10. 16 6月, 2021 3 次提交
  11. 11 5月, 2021 1 次提交
  12. 03 3月, 2021 1 次提交
    • M
      drm/amd/display: Support for DMUB AUX · 4f8e37db
      Meenakshikumar Somasundaram 提交于
      [WHY]
      To process AUX transactions with DMUB using inbox1 and outbox1 mail boxes.
      
      [HOW]
      1) Added inbox1 command DMUB_CMD__DP_AUX_ACCESS to issue AUX commands
         to DMUB in dc_process_dmub_aux_transfer_async(). DMUB processes AUX cmd
         with DCN and sends reply back in an outbox1 message triggering an
         outbox1 interrupt to driver.
      2) In existing driver implementation, AUX commands are processed
         synchronously by configuring DCN reg. But in DMUB AUX, driver sends an
         inbox1 message and waits for a conditional variable (CV) which will be
         signaled by outbox1 ISR.
      3) As the driver holds dal and dc locks while waiting for CV, the outbox1
         ISR is registered with noMutexWait set to true, which allows ISR to run
         and signal CV. This sets a constraint on ISR to not modify variables
         such as dc, dmub, etc.
      4) Created dmub_outbox.c with dmub_enable_outbox_notification() to enable
         outbox1 mailbox.
      5) New mailbox address ranges allocated for outbox1 of size DMUB_RB_SIZE.
         Created dmub functions for Outbox1: dmub_dcn20_setup_out_mailbox(),
         dmub_dcn20_get_outbox1_wptr() and dmub_dcn20_set_outbox1_rptr().
      6) Added functions dc_stat_get_dmub_notification() and
         dmub_srv_stat_get_notification() to retrieve Outbox1 message.
      7) Currently, DMUB doesn't opens DDC in AUX mode before issuing AUX
         transaction. A workaround is added in dce_aux_transfer_dmub_raw() to
         open in DDC in AUX mode for every AUX transaction.
      8) Added dc debug option enable_dmub_aux_for_legacy_ddc enable/disable
         DMUB AUX. This debug option is checked dce_aux_transfer_with_retries()
         to select the method to process AUX transactions.
      Tested-by: NDaniel Wheeler <daniel.wheeler@amd.com>
      Signed-off-by: NMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
      Reviewed-by: NJun Lei <Jun.Lei@amd.com>
      Acked-by: NRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      4f8e37db
  13. 14 1月, 2021 1 次提交
    • L
      drm/amd/display/dc/dce/dce_aux: Mark 'dce_aux_transfer_raw' as __maybe_unused · 7d11d258
      Lee Jones 提交于
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function ‘dce_aux_transfer_raw’:
       drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:579:7: warning: variable ‘bytes_replied’ set but not used [-Wunused-but-set-variable]
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      7d11d258
  14. 12 1月, 2021 1 次提交
  15. 27 10月, 2020 1 次提交
  16. 13 3月, 2020 1 次提交
  17. 12 2月, 2020 1 次提交
  18. 07 2月, 2020 1 次提交
  19. 10 12月, 2019 1 次提交
  20. 06 12月, 2019 3 次提交
  21. 14 11月, 2019 1 次提交
  22. 28 10月, 2019 1 次提交
  23. 26 10月, 2019 1 次提交
  24. 18 10月, 2019 2 次提交
  25. 11 10月, 2019 1 次提交
  26. 19 7月, 2019 1 次提交
  27. 11 6月, 2019 2 次提交
  28. 11 4月, 2019 1 次提交
  29. 21 3月, 2019 1 次提交
  30. 20 3月, 2019 3 次提交