Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Pranay Samala <pranay.samala@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: <karthik.b.s@intel.com>, <kunal1.joshi@intel.com>,
	<sameer.lattannavar@intel.com>
Subject: Re: [PATCH i-g-t 2/2] tests/kms_atomic_transition: Reducing debug loglevel dynamically
Date: Mon, 8 Jul 2024 16:31:59 +0530	[thread overview]
Message-ID: <ae3be4c4-c4db-4bcc-a4b4-60408d7b9805@intel.com> (raw)
In-Reply-To: <20240707150457.715471-3-pranay.samala@intel.com>

Hi Pranay,

Please follow [1] to write good commit subject/message.

[1]: https://cbea.ms/git-commit/

On 07-07-2024 08:34 pm, Pranay Samala wrote:
> This test is debug logs are too much and was killed
> due to exceeding disk usage limit on the less disk
> space machines.
> 
> So dynamically reducing the debug log level to
> enable on less disk space machines.
> 
> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
> ---
>   tests/kms_atomic_transition.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
> index 29dd8ac4e..b0339f57d 100644
> --- a/tests/kms_atomic_transition.c
> +++ b/tests/kms_atomic_transition.c
> @@ -41,6 +41,7 @@
>   #include <string.h>
>   #include <time.h>
>   #include <poll.h>
> +#include <igt_sysfs.h>

Please use "" to include defined header files.

#include "igt_sysfs.h"

>   
>   /**
>    * SUBTEST: plane-primary-toggle-with-vblank-wait
> @@ -1176,6 +1177,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
>   	igt_fixture {
>   		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
>   
> +		igt_set_debug_value(data.drm_fd, 13);

Why this magic number 13?

If drm debug level is already less than 13, then what is the 
expectation? If we still update the value with 13, then the purpose of 
this patch itself is not fulfilled.

> +
>   		kmstest_set_vt_graphics_mode();
>   
>   		igt_display_require(&data.display, data.drm_fd);
> @@ -1258,6 +1261,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
>   
>   	igt_fixture {
>   		igt_display_fini(&data.display);
> +		igt_debug_reset(data.drm_fd);

Do we need to call this helper explicitly, as igt_exit_handler will call 
this function on exit?

- Bhanu

>   		drm_close_driver(data.drm_fd);
>   	}
>   }

  reply	other threads:[~2024-07-08 11:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07 15:04 [PATCH i-g-t 0/2] Runtime alteration of debuglog level Pranay Samala
2024-07-07 15:04 ` [PATCH i-g-t 1/2] lib/igt_sysfs: Implement dynamic adjustment of debug log level Pranay Samala
2024-07-08 11:03   ` Modem, Bhanuprakash
2024-07-07 15:04 ` [PATCH i-g-t 2/2] tests/kms_atomic_transition: Reducing debug loglevel dynamically Pranay Samala
2024-07-08 11:01   ` Modem, Bhanuprakash [this message]
2024-07-07 15:38 ` ✓ CI.xeBAT: success for Runtime alteration of debuglog level Patchwork
2024-07-07 15:40 ` ✓ Fi.CI.BAT: " Patchwork
2024-07-07 16:39 ` ✓ CI.xeFULL: " Patchwork
2024-07-07 16:46 ` ✗ Fi.CI.IGT: 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=ae3be4c4-c4db-4bcc-a4b4-60408d7b9805@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=karthik.b.s@intel.com \
    --cc=kunal1.joshi@intel.com \
    --cc=pranay.samala@intel.com \
    --cc=sameer.lattannavar@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox