All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
	Intel graphics driver community testing & development
	<intel-gfx@lists.freedesktop.org>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>,
	Direct Rendering Infrastructure - Development
	<dri-devel@lists.freedesktop.org>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/guc: Remove log size module parameters
Date: Fri, 26 Aug 2022 10:41:23 +0300	[thread overview]
Message-ID: <87mtbrh2os.fsf@intel.com> (raw)
In-Reply-To: <20220826072438.147598-1-joonas.lahtinen@linux.intel.com>

On Fri, 26 Aug 2022, Joonas Lahtinen <joonas.lahtinen@linux.intel.com> wrote:
> Remove the module parameters for configuring GuC log size.
>
> We should instead rely on tuning the defaults to be usable for
> reporting bugs.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

>
> Fixes: 8ad0152afb1b ("drm/i915/guc: Make GuC log sizes runtime configurable")
> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> Cc: John Harrison <John.C.Harrison@Intel.com>
> Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
> ---
>  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  7 +++----
>  drivers/gpu/drm/i915/i915_params.c         | 12 ------------
>  drivers/gpu/drm/i915/i915_params.h         |  3 ---
>  3 files changed, 3 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
> index 3a2243b4ac9f..909e5079657b 100644
> --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
> +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
> @@ -79,9 +79,9 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
>  		}
>  	};
>  	s32 params[GUC_LOG_SECTIONS_LIMIT] = {
> -		i915->params.guc_log_size_crash,
> -		i915->params.guc_log_size_debug,
> -		i915->params.guc_log_size_capture,
> +		GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
> +		GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
> +		GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
>  	};
>  	int i;
>  
> @@ -90,7 +90,6 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
>  
>  	/* If debug size > 1MB then bump default crash size to keep the same units */
>  	if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
> -	    (i915->params.guc_log_size_crash == -1) &&
>  	    GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
>  		log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
>  
> diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c
> index 06ca5b822111..6fc475a5db61 100644
> --- a/drivers/gpu/drm/i915/i915_params.c
> +++ b/drivers/gpu/drm/i915/i915_params.c
> @@ -171,18 +171,6 @@ i915_param_named(guc_log_level, int, 0400,
>  	"GuC firmware logging level. Requires GuC to be loaded. "
>  	"(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
>  
> -i915_param_named(guc_log_size_crash, int, 0400,
> -	"GuC firmware logging buffer size for crash dumps (in MB)"
> -	"(-1=auto [default], NB: max = 4, other restrictions apply)");
> -
> -i915_param_named(guc_log_size_debug, int, 0400,
> -	"GuC firmware logging buffer size for debug logs (in MB)"
> -	"(-1=auto [default], NB: max = 16, other restrictions apply)");
> -
> -i915_param_named(guc_log_size_capture, int, 0400,
> -	"GuC error capture register dump buffer size (in MB)"
> -	"(-1=auto [default], NB: max = 4, other restrictions apply)");
> -
>  i915_param_named_unsafe(guc_firmware_path, charp, 0400,
>  	"GuC firmware path to use instead of the default one");
>  
> diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h
> index f684d1ab8707..2733cb6cfe09 100644
> --- a/drivers/gpu/drm/i915/i915_params.h
> +++ b/drivers/gpu/drm/i915/i915_params.h
> @@ -61,9 +61,6 @@ struct drm_printer;
>  	param(int, invert_brightness, 0, 0600) \
>  	param(int, enable_guc, -1, 0400) \
>  	param(int, guc_log_level, -1, 0400) \
> -	param(int, guc_log_size_crash, -1, 0400) \
> -	param(int, guc_log_size_debug, -1, 0400) \
> -	param(int, guc_log_size_capture, -1, 0400) \
>  	param(char *, guc_firmware_path, NULL, 0400) \
>  	param(char *, huc_firmware_path, NULL, 0400) \
>  	param(char *, dmc_firmware_path, NULL, 0400) \

-- 
Jani Nikula, Intel Open Source Graphics Center

WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
	Intel graphics driver community testing & development
	<intel-gfx@lists.freedesktop.org>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>,
	Alan Previn <alan.previn.teres.alexis@intel.com>,
	Direct Rendering Infrastructure - Development
	<dri-devel@lists.freedesktop.org>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	John Harrison <John.C.Harrison@Intel.com>
Subject: Re: [PATCH] drm/i915/guc: Remove log size module parameters
Date: Fri, 26 Aug 2022 10:41:23 +0300	[thread overview]
Message-ID: <87mtbrh2os.fsf@intel.com> (raw)
In-Reply-To: <20220826072438.147598-1-joonas.lahtinen@linux.intel.com>

On Fri, 26 Aug 2022, Joonas Lahtinen <joonas.lahtinen@linux.intel.com> wrote:
> Remove the module parameters for configuring GuC log size.
>
> We should instead rely on tuning the defaults to be usable for
> reporting bugs.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

>
> Fixes: 8ad0152afb1b ("drm/i915/guc: Make GuC log sizes runtime configurable")
> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> Cc: John Harrison <John.C.Harrison@Intel.com>
> Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
> ---
>  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  7 +++----
>  drivers/gpu/drm/i915/i915_params.c         | 12 ------------
>  drivers/gpu/drm/i915/i915_params.h         |  3 ---
>  3 files changed, 3 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
> index 3a2243b4ac9f..909e5079657b 100644
> --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
> +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
> @@ -79,9 +79,9 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
>  		}
>  	};
>  	s32 params[GUC_LOG_SECTIONS_LIMIT] = {
> -		i915->params.guc_log_size_crash,
> -		i915->params.guc_log_size_debug,
> -		i915->params.guc_log_size_capture,
> +		GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
> +		GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
> +		GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
>  	};
>  	int i;
>  
> @@ -90,7 +90,6 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
>  
>  	/* If debug size > 1MB then bump default crash size to keep the same units */
>  	if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
> -	    (i915->params.guc_log_size_crash == -1) &&
>  	    GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
>  		log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
>  
> diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c
> index 06ca5b822111..6fc475a5db61 100644
> --- a/drivers/gpu/drm/i915/i915_params.c
> +++ b/drivers/gpu/drm/i915/i915_params.c
> @@ -171,18 +171,6 @@ i915_param_named(guc_log_level, int, 0400,
>  	"GuC firmware logging level. Requires GuC to be loaded. "
>  	"(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
>  
> -i915_param_named(guc_log_size_crash, int, 0400,
> -	"GuC firmware logging buffer size for crash dumps (in MB)"
> -	"(-1=auto [default], NB: max = 4, other restrictions apply)");
> -
> -i915_param_named(guc_log_size_debug, int, 0400,
> -	"GuC firmware logging buffer size for debug logs (in MB)"
> -	"(-1=auto [default], NB: max = 16, other restrictions apply)");
> -
> -i915_param_named(guc_log_size_capture, int, 0400,
> -	"GuC error capture register dump buffer size (in MB)"
> -	"(-1=auto [default], NB: max = 4, other restrictions apply)");
> -
>  i915_param_named_unsafe(guc_firmware_path, charp, 0400,
>  	"GuC firmware path to use instead of the default one");
>  
> diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h
> index f684d1ab8707..2733cb6cfe09 100644
> --- a/drivers/gpu/drm/i915/i915_params.h
> +++ b/drivers/gpu/drm/i915/i915_params.h
> @@ -61,9 +61,6 @@ struct drm_printer;
>  	param(int, invert_brightness, 0, 0600) \
>  	param(int, enable_guc, -1, 0400) \
>  	param(int, guc_log_level, -1, 0400) \
> -	param(int, guc_log_size_crash, -1, 0400) \
> -	param(int, guc_log_size_debug, -1, 0400) \
> -	param(int, guc_log_size_capture, -1, 0400) \
>  	param(char *, guc_firmware_path, NULL, 0400) \
>  	param(char *, huc_firmware_path, NULL, 0400) \
>  	param(char *, dmc_firmware_path, NULL, 0400) \

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2022-08-26  7:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  7:24 [Intel-gfx] [PATCH] drm/i915/guc: Remove log size module parameters Joonas Lahtinen
2022-08-26  7:24 ` Joonas Lahtinen
2022-08-26  7:41 ` Jani Nikula [this message]
2022-08-26  7:41   ` Jani Nikula
2022-08-26  7:52 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for " Patchwork
2022-08-26  8:06 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtbrh2os.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=alan.previn.teres.alexis@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.