Commit 04ad71bd authored by David Galiffi's avatar David Galiffi Committed by Alex Deucher

drm/amd/display: Use uint64_t logger_mask instead of uint32_t

[WHY]
enum dc_log_type has more than 32 entries. User cannot set larger entries,
like LOG_DSC. Logs from LOG_GAMMA_DEBUG where being printed even though
flag was not enabled, because dal_logger_should_log check erroneously
passed.

[HOW]
Change struct dal_logger.mask and struct dc_init_data.mask to uint64_t.
Signed-off-by: default avatarDavid Galiffi <David.Galiffi@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c788739b
...@@ -566,7 +566,8 @@ struct dc_init_data { ...@@ -566,7 +566,8 @@ struct dc_init_data {
struct dc_reg_helper_state *dmub_offload; struct dc_reg_helper_state *dmub_offload;
struct dc_config flags; struct dc_config flags;
uint32_t log_mask; uint64_t log_mask;
/** /**
* gpu_info FW provided soc bounding box struct or 0 if not * gpu_info FW provided soc bounding box struct or 0 if not
* available in FW * available in FW
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment