18
18
#include "xe_observation.h"
19
19
#include "xe_sched_job.h"
20
20
21
+ #if IS_ENABLED (CONFIG_DRM_XE_DEBUG )
22
+ #define DEFAULT_GUC_LOG_LEVEL 3
23
+ #else
24
+ #define DEFAULT_GUC_LOG_LEVEL 1
25
+ #endif
26
+
21
27
struct xe_modparam xe_modparam = {
22
28
.probe_display = true,
23
- .guc_log_level = IS_ENABLED ( CONFIG_DRM_XE_DEBUG ) ? 3 : 1 ,
29
+ .guc_log_level = DEFAULT_GUC_LOG_LEVEL ,
24
30
.force_probe = CONFIG_DRM_XE_FORCE_PROBE ,
25
31
.wedged_mode = 1 ,
26
32
.svm_notifier_size = 512 ,
@@ -40,7 +46,8 @@ module_param_named(vram_bar_size, xe_modparam.force_vram_bar_size, int, 0600);
40
46
MODULE_PARM_DESC (vram_bar_size , "Set the vram bar size (in MiB) - <0=disable-resize, 0=max-needed-size[default], >0=force-size" );
41
47
42
48
module_param_named (guc_log_level , xe_modparam .guc_log_level , int , 0600 );
43
- MODULE_PARM_DESC (guc_log_level , "GuC firmware logging level (0=disable, 1..5=enable with verbosity min..max)" );
49
+ MODULE_PARM_DESC (guc_log_level , "GuC firmware logging level (0=disable, 1=normal, 2..5=verbose-levels "
50
+ "[default=" __stringify (DEFAULT_GUC_LOG_LEVEL ) "])" );
44
51
45
52
module_param_named_unsafe (guc_firmware_path , xe_modparam .guc_firmware_path , charp , 0400 );
46
53
MODULE_PARM_DESC (guc_firmware_path ,
0 commit comments