/* * While we're using plain log level in i915, GuC controls are much more... * "elaborate"? We have a couple of bits for verbosity, separate bit for actual * log enabling, and separate bit for default logging - which "conveniently" * ignores the enable bit.
*/ #define GUC_LOG_LEVEL_DISABLED 0 #define GUC_LOG_LEVEL_NON_VERBOSE 1 #define GUC_LOG_LEVEL_IS_ENABLED(x) ((x) > GUC_LOG_LEVEL_DISABLED) #define GUC_LOG_LEVEL_IS_VERBOSE(x) ((x) > GUC_LOG_LEVEL_NON_VERBOSE) #define GUC_LOG_LEVEL_TO_VERBOSITY(x) ({ \
typeof(x) _x = (x); \
GUC_LOG_LEVEL_IS_VERBOSE(_x) ? _x - 2 : 0; \
}) #define GUC_VERBOSITY_TO_LOG_LEVEL(x) ((x) + 2) #define GUC_LOG_LEVEL_MAX GUC_VERBOSITY_TO_LOG_LEVEL(GUC_LOG_VERBOSITY_MAX)
/* Allocation settings */ struct {
s32 bytes; /* Size in bytes */
s32 units; /* GuC API units - 1MB or 4KB */
s32 count; /* Number of API units */
u32 flag; /* GuC API units flag */
} sizes[GUC_LOG_SECTIONS_LIMIT]; bool sizes_initialised;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.