Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v3 0/2] CONTRIBUTING: Add subscription info, patchwork link and lib guide
@ 2025-04-01 15:30 Kamil Konieczny
  2025-04-01 15:30 ` [PATCH i-g-t v3 1/2] CONTRIBUTING: Add subscription and patchwork info Kamil Konieczny
  2025-04-01 15:30 ` [PATCH i-g-t v3 2/2] CONTRIBUTING: Add guide about igt libraries Kamil Konieczny
  0 siblings, 2 replies; 4+ messages in thread
From: Kamil Konieczny @ 2025-04-01 15:30 UTC (permalink / raw)
  To: igt-dev
  Cc: Kamil Konieczny, Ashutosh Dixit, Bhanuprakash Modem,
	Juha-Pekka Heikkila, Juha-Pekka Heikkila, Katarzyna Piecielska,
	Karthik B S, Petri Latvala, Zbigniew Kempczyński

Add info about subscription for igt-dev mailing list and a link
to patchwork and lore.kernel.org where sended patches with test
status could be seen.
Also add some general guidelines about libraries.

v2: rewritten second patch about lib functions (Andrzej, Katarzyna
  and Zbigniew review)
v3: added link to lore.kernel.org in first patch and rewrite second
  with more generic statement for tools/ (Ashutosh)

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem@gmail.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: Juha-Pekka Heikkila <juha-pekka.heikkila@intel.com>
Cc: Katarzyna Piecielska <katarzyna.piecielska@intel.com>
Cc: Karthik B S <karthik.b.s@intel.com>
Cc: Petri Latvala <adrinael@adrinael.net>
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>

Kamil Konieczny (2):
  CONTRIBUTING: Add subscription and patchwork info
  CONTRIBUTING: Add guide about igt libraries

 CONTRIBUTING.md | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH i-g-t v3 1/2] CONTRIBUTING: Add subscription and patchwork info
  2025-04-01 15:30 [PATCH i-g-t v3 0/2] CONTRIBUTING: Add subscription info, patchwork link and lib guide Kamil Konieczny
@ 2025-04-01 15:30 ` Kamil Konieczny
  2025-04-01 15:30 ` [PATCH i-g-t v3 2/2] CONTRIBUTING: Add guide about igt libraries Kamil Konieczny
  1 sibling, 0 replies; 4+ messages in thread
From: Kamil Konieczny @ 2025-04-01 15:30 UTC (permalink / raw)
  To: igt-dev; +Cc: Kamil Konieczny, Zbigniew Kempczyński, Andrzej Hajda

Add guide and link to subscription into mailing list and link
for patchwork.

v3: Added https://lore.kernel.org/igt-dev/ (Ashutosh)

Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
---
 CONTRIBUTING.md | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 81057a2ad..2927e0ca1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -63,6 +63,15 @@ Sending Patches
 
   on its first invocation.
 
+- If you plan to contribute regularly, please subscribe to igt-dev mailinglist:
+  https://lists.freedesktop.org/mailman/listinfo/igt-dev
+  When you are not subscribed, please note that your contribution will take
+  more time to reach to mailing list. You could find out if it was delivered or
+  what is a testing status of your patches at page:
+  https://patchwork.freedesktop.org/project/igt/series/
+  and also on
+  https://lore.kernel.org/igt-dev/
+
 - Place relevant prefix in subject, for example when your change is in one
   testfile, use its name without '.c' nor '.h' suffix, like:
   tests/simple_test: short description
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH i-g-t v3 2/2] CONTRIBUTING: Add guide about igt libraries
  2025-04-01 15:30 [PATCH i-g-t v3 0/2] CONTRIBUTING: Add subscription info, patchwork link and lib guide Kamil Konieczny
  2025-04-01 15:30 ` [PATCH i-g-t v3 1/2] CONTRIBUTING: Add subscription and patchwork info Kamil Konieczny
@ 2025-04-01 15:30 ` Kamil Konieczny
  2025-04-01 16:01   ` Dixit, Ashutosh
  1 sibling, 1 reply; 4+ messages in thread
From: Kamil Konieczny @ 2025-04-01 15:30 UTC (permalink / raw)
  To: igt-dev
  Cc: Kamil Konieczny, Andrzej Hajda, Zbigniew Kempczyński,
	Katarzyna Piecielska

Add some general guide about adding new library function and
a few guides for their usage outside of tests.

Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Acked-by: Katarzyna Piecielska <katarzyna.piecielska@intel.com>
---
 CONTRIBUTING.md | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2927e0ca1..4ffd9a0a4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -38,6 +38,34 @@ The Code
 
 [igt-describe]: https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-Core.html#igt-describe
 
+IGT libraries
+-------------
+- Tests and benchmarks are the main usage of IGT libraries, so they
+  could use test specific macros/functions, for example igt_assert,
+  igt_require, igt_skip, igt_info or igt_debug.
+
+- New library function could be written when it will have at least two
+  different users, for example if it could be used by two or more tests.
+  In some cases single user can be accepted, when it is very likely it
+  will be used in future.
+
+- In a new library function():
+  if it uses some of the macros igt_assert/igt_require/igt_skip then
+  consider to write also __function() with the same functionality but
+  without them.
+
+- Libraries and igt_runner
+  Runner should not use lib functions. It is crucial for CI runs so using
+  libraries puts a risk of bringing changes meant for tests which in turn
+  could break runner.
+  Note: You will find places where igt_runner uses lib functions - this will
+  be on ToDo list to be fixed.
+
+- Libraries and tools/
+  Give some thought if you are planning to use IGT lib code in tools, some
+  IGT lib functions might not be appropriate in tools. For example, any
+  abnormal condition should be simply reported by printf or fprintf to
+  stdout/stderr and then tool should exit gracefully.
 
 Sending Patches
 ---------------
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH i-g-t v3 2/2] CONTRIBUTING: Add guide about igt libraries
  2025-04-01 15:30 ` [PATCH i-g-t v3 2/2] CONTRIBUTING: Add guide about igt libraries Kamil Konieczny
@ 2025-04-01 16:01   ` Dixit, Ashutosh
  0 siblings, 0 replies; 4+ messages in thread
From: Dixit, Ashutosh @ 2025-04-01 16:01 UTC (permalink / raw)
  To: Kamil Konieczny
  Cc: igt-dev, Andrzej Hajda, Zbigniew Kempczyński,
	Katarzyna Piecielska

On Tue, 01 Apr 2025 08:30:25 -0700, Kamil Konieczny wrote:
>
> Add some general guide about adding new library function and
> a few guides for their usage outside of tests.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

>
> Cc: Andrzej Hajda <andrzej.hajda@intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Acked-by: Katarzyna Piecielska <katarzyna.piecielska@intel.com>
> ---
>  CONTRIBUTING.md | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
>
> diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
> index 2927e0ca1..4ffd9a0a4 100644
> --- a/CONTRIBUTING.md
> +++ b/CONTRIBUTING.md
> @@ -38,6 +38,34 @@ The Code
>
>  [igt-describe]: https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-Core.html#igt-describe
>
> +IGT libraries
> +-------------
> +- Tests and benchmarks are the main usage of IGT libraries, so they
> +  could use test specific macros/functions, for example igt_assert,
> +  igt_require, igt_skip, igt_info or igt_debug.
> +
> +- New library function could be written when it will have at least two
> +  different users, for example if it could be used by two or more tests.
> +  In some cases single user can be accepted, when it is very likely it
> +  will be used in future.
> +
> +- In a new library function():
> +  if it uses some of the macros igt_assert/igt_require/igt_skip then
> +  consider to write also __function() with the same functionality but
> +  without them.
> +
> +- Libraries and igt_runner
> +  Runner should not use lib functions. It is crucial for CI runs so using
> +  libraries puts a risk of bringing changes meant for tests which in turn
> +  could break runner.
> +  Note: You will find places where igt_runner uses lib functions - this will
> +  be on ToDo list to be fixed.
> +
> +- Libraries and tools/
> +  Give some thought if you are planning to use IGT lib code in tools, some
> +  IGT lib functions might not be appropriate in tools. For example, any
> +  abnormal condition should be simply reported by printf or fprintf to
> +  stdout/stderr and then tool should exit gracefully.
>
>  Sending Patches
>  ---------------
> --
> 2.49.0
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-01 16:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 15:30 [PATCH i-g-t v3 0/2] CONTRIBUTING: Add subscription info, patchwork link and lib guide Kamil Konieczny
2025-04-01 15:30 ` [PATCH i-g-t v3 1/2] CONTRIBUTING: Add subscription and patchwork info Kamil Konieczny
2025-04-01 15:30 ` [PATCH i-g-t v3 2/2] CONTRIBUTING: Add guide about igt libraries Kamil Konieczny
2025-04-01 16:01   ` Dixit, Ashutosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox