drm/amd/display: Loading NV10/14 Bounding Box Data Directly from Code
Subsystems (3)
PATCH v2 1/1 drm/amd/display: Loading NV10/14 Bounding Box Data Directly from Code
[Why]
NV10/14 has released. Its time to get NV10/14 bounding box directly from code.
[How]
Retrieve NV10/14 bounding box data directly from code. Retrieve NV12 bounding box data from firmware.
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +3 -4
@@ -83,8 +83,6 @@#include "amdgpu_socbb.h" -/* NV12 SOC BB is currently in FW, mark SW bounding box invalid. */ -#define SOC_BOUNDING_BOX_VALID false#define DC_LOGGER_INIT (logger)struct _vcs_dpi_ip_params_st dcn2_0_ip = {
@@ -3271,12 +3269,13 @@ static bool init_soc_bounding_box(struct dc *dc,DC_LOGGER_INIT (dc->ctx->logger); -if (!bb && !SOC_BOUNDING_BOX_VALID ) { +/* TODO: upstream NV12 bounding box when its launched */ +if (!bb &&ASICREV_IS_NAVI12_P (dc->ctx->asic_id.hw_internal_rev)) {DC_LOG_ERROR ("%s: not valid soc bounding box/n" , __func__);return false; } -if (bb && !SOC_BOUNDING_BOX_VALID ) { +if (bb &&ASICREV_IS_NAVI12_P (dc->ctx->asic_id.hw_internal_rev)) {int i; dcn2_0_nv12_soc.sr_exit_time_us =
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
-----Original Message-----
From: Liu, Zhan <[email protected]>
Sent: Tuesday, December 3, 2019 12:49 PM
To: [email protected]; Wu, Hersen <[email protected]>; Kazlauskas, Nicholas <[email protected]>
Cc: Liu, Zhan <[email protected]>
Subject: [PATCH v2] drm/amd/display: Loading NV10/14 Bounding Box Data Directly from Code
[Why]
NV10/14 has released. Its time to get NV10/14 bounding box directly from code.
[How]
Retrieve NV10/14 bounding box data directly from code. Retrieve NV12 bounding box data from firmware.
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +0 -1
@@ -83,8 +83,6 @@#include "amdgpu_socbb.h" -/* NV12 SOC BB is currently in FW, mark SW bounding box invalid. */ -#define SOC_BOUNDING_BOX_VALID false #define DC_LOGGER_INIT(logger) struct _vcs_dpi_ip_params_st dcn2_0_ip = { @@ -3271,12 +3269,13 @@ static bool init_soc_bounding_box(struct dc *dc,
DC_LOGGER_INIT(dc->ctx->logger);
- if (!bb && !SOC_BOUNDING_BOX_VALID) {
+ /* TODO: upstream NV12 bounding box when its launched */
+ if (!bb && ASICREV_IS_NAVI12_P(dc->ctx->asic_id.hw_internal_rev)) {
DC_LOG_ERROR("%s: not valid soc bounding box/n", __func__); return false;
}
- if (bb && !SOC_BOUNDING_BOX_VALID) {
+ if (bb && ASICREV_IS_NAVI12_P(dc->ctx->asic_id.hw_internal_rev)) {
int i;
dcn2_0_nv12_soc.sr_exit_time_us =
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx