All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Trivial style fixes
@ 2025-03-14  2:12 Andi Shyti
  2025-03-14  2:12 ` [PATCH 1/4] drm/i915/gt: Fix typos in comments Andi Shyti
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Andi Shyti @ 2025-03-14  2:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Andi Shyti, Andi Shyti

Hi

Browsing through my endless list of branches I found a few with
random cleanups that I fix while rading the code. They tend to be
forgotten over the time and never sent. This time I decided to
send them. And I have plenty more :-)

Andi

Andi Shyti (4):
  drm/i915/gt: Fix typos in comments
  drm/i915/gt: Fix SPDX license format
  drm/i915/gt: Remove trailing blank lines
  drm/i915/gt: Use proper sleeping functions for timeouts shorter than
    20ms

 drivers/gpu/drm/i915/gt/intel_gtt.c     | 1 -
 drivers/gpu/drm/i915/gt/intel_lrc.c     | 1 -
 drivers/gpu/drm/i915/gt/intel_migrate.c | 2 +-
 drivers/gpu/drm/i915/gt/intel_mocs.c    | 1 -
 drivers/gpu/drm/i915/gt/intel_reset.c   | 2 +-
 drivers/gpu/drm/i915/gt/intel_wopcm.h   | 3 +--
 drivers/gpu/drm/i915/gt/selftest_rc6.c  | 3 ++-
 drivers/gpu/drm/i915/gt/selftest_tlb.c  | 2 +-
 8 files changed, 6 insertions(+), 9 deletions(-)

-- 
2.47.2


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

* [PATCH 1/4] drm/i915/gt: Fix typos in comments
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
@ 2025-03-14  2:12 ` Andi Shyti
  2025-03-14 13:37   ` Sebastian Brzezinka
  2025-03-14  2:12 ` [PATCH 2/4] drm/i915/gt: Fix SPDX license format Andi Shyti
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 16+ messages in thread
From: Andi Shyti @ 2025-03-14  2:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Andi Shyti, Andi Shyti

upto -> up to
acknowledgement -> acknowledgment

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
---
 drivers/gpu/drm/i915/gt/intel_migrate.c | 2 +-
 drivers/gpu/drm/i915/gt/intel_reset.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_migrate.c b/drivers/gpu/drm/i915/gt/intel_migrate.c
index aff5aca591e6..86927e0c76e2 100644
--- a/drivers/gpu/drm/i915/gt/intel_migrate.c
+++ b/drivers/gpu/drm/i915/gt/intel_migrate.c
@@ -643,7 +643,7 @@ calculate_chunk_sz(struct drm_i915_private *i915, bool src_is_lmem,
 {
 	if (ccs_bytes_to_cpy && !src_is_lmem)
 		/*
-		 * When CHUNK_SZ is passed all the pages upto CHUNK_SZ
+		 * When CHUNK_SZ is passed all the pages up to CHUNK_SZ
 		 * will be taken for the blt. in Flat-ccs supported
 		 * platform Smem obj will have more pages than required
 		 * for main memory hence limit it to the required size
diff --git a/drivers/gpu/drm/i915/gt/intel_reset.c b/drivers/gpu/drm/i915/gt/intel_reset.c
index dbdcfe130ad4..82e8df40f5b1 100644
--- a/drivers/gpu/drm/i915/gt/intel_reset.c
+++ b/drivers/gpu/drm/i915/gt/intel_reset.c
@@ -162,7 +162,7 @@ static int i915_do_reset(struct intel_gt *gt,
 	struct pci_dev *pdev = to_pci_dev(gt->i915->drm.dev);
 	int err;
 
-	/* Assert reset for at least 50 usec, and wait for acknowledgement. */
+	/* Assert reset for at least 50 usec, and wait for acknowledgment */
 	pci_write_config_byte(pdev, I915_GDRST, GRDOM_RESET_ENABLE);
 	udelay(50);
 	err = _wait_for_atomic(i915_in_reset(pdev), 50000, 0);
-- 
2.47.2


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

* [PATCH 2/4] drm/i915/gt: Fix SPDX license format
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
  2025-03-14  2:12 ` [PATCH 1/4] drm/i915/gt: Fix typos in comments Andi Shyti
@ 2025-03-14  2:12 ` Andi Shyti
  2025-03-18 10:55   ` Krzysztof Karas
  2025-03-14  2:12 ` [PATCH 3/4] drm/i915/gt: Remove trailing blank lines Andi Shyti
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 16+ messages in thread
From: Andi Shyti @ 2025-03-14  2:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Andi Shyti, Andi Shyti

Header files need to declare the SPDX under /* ... */ style
comments at the beginning of the file.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
---
 drivers/gpu/drm/i915/gt/intel_wopcm.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_wopcm.h b/drivers/gpu/drm/i915/gt/intel_wopcm.h
index 17d6aa86008a..d2038b6de5e7 100644
--- a/drivers/gpu/drm/i915/gt/intel_wopcm.h
+++ b/drivers/gpu/drm/i915/gt/intel_wopcm.h
@@ -1,6 +1,5 @@
+/* SPDX-License-Identifier: MIT */
 /*
- * SPDX-License-Identifier: MIT
- *
  * Copyright © 2017-2018 Intel Corporation
  */
 
-- 
2.47.2


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

* [PATCH 3/4] drm/i915/gt: Remove trailing blank lines
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
  2025-03-14  2:12 ` [PATCH 1/4] drm/i915/gt: Fix typos in comments Andi Shyti
  2025-03-14  2:12 ` [PATCH 2/4] drm/i915/gt: Fix SPDX license format Andi Shyti
@ 2025-03-14  2:12 ` Andi Shyti
  2025-03-20  6:59   ` Gote, Nitin R
  2025-03-14  2:12 ` [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms Andi Shyti
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 16+ messages in thread
From: Andi Shyti @ 2025-03-14  2:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Andi Shyti, Andi Shyti

Remove useless blank lines before and after the brackets.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
---
 drivers/gpu/drm/i915/gt/intel_gtt.c  | 1 -
 drivers/gpu/drm/i915/gt/intel_lrc.c  | 1 -
 drivers/gpu/drm/i915/gt/intel_mocs.c | 1 -
 3 files changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_gtt.c b/drivers/gpu/drm/i915/gt/intel_gtt.c
index 30b128b1fde7..afbc5c769308 100644
--- a/drivers/gpu/drm/i915/gt/intel_gtt.c
+++ b/drivers/gpu/drm/i915/gt/intel_gtt.c
@@ -176,7 +176,6 @@ static void clear_vm_list(struct list_head *list)
 			i915_vma_destroy_locked(vma);
 			i915_gem_object_put(obj);
 		}
-
 	}
 }
 
diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
index 51847a846002..c481b56fa67d 100644
--- a/drivers/gpu/drm/i915/gt/intel_lrc.c
+++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
@@ -751,7 +751,6 @@ static int lrc_ring_indirect_offset(const struct intel_engine_cs *engine)
 
 static int lrc_ring_cmd_buf_cctl(const struct intel_engine_cs *engine)
 {
-
 	if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 55))
 		/*
 		 * Note that the CSFE context has a dummy slot for CMD_BUF_CCTL
diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c b/drivers/gpu/drm/i915/gt/intel_mocs.c
index cf41d325712e..5dd8121f4b15 100644
--- a/drivers/gpu/drm/i915/gt/intel_mocs.c
+++ b/drivers/gpu/drm/i915/gt/intel_mocs.c
@@ -314,7 +314,6 @@ static const struct drm_i915_mocs_entry icl_mocs_table[] = {
 };
 
 static const struct drm_i915_mocs_entry dg1_mocs_table[] = {
-
 	/* UC */
 	MOCS_ENTRY(1, 0, L3_1_UC),
 	/* WB - L3 */
-- 
2.47.2


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

* [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
                   ` (2 preceding siblings ...)
  2025-03-14  2:12 ` [PATCH 3/4] drm/i915/gt: Remove trailing blank lines Andi Shyti
@ 2025-03-14  2:12 ` Andi Shyti
  2025-03-20  6:54   ` Gote, Nitin R
  2025-03-14  4:05 ` ✗ Fi.CI.CHECKPATCH: warning for Trivial style fixes Patchwork
                   ` (3 subsequent siblings)
  7 siblings, 1 reply; 16+ messages in thread
From: Andi Shyti @ 2025-03-14  2:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Andi Shyti, Andi Shyti

msleep is very unprecise for timeouts shorter than 20
milliseconds and most probably will sleep longer. Use
uslee_range() instead.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
---
 drivers/gpu/drm/i915/gt/selftest_rc6.c | 3 ++-
 drivers/gpu/drm/i915/gt/selftest_tlb.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/selftest_rc6.c b/drivers/gpu/drm/i915/gt/selftest_rc6.c
index 908483ab0bc8..99de5d85a096 100644
--- a/drivers/gpu/drm/i915/gt/selftest_rc6.c
+++ b/drivers/gpu/drm/i915/gt/selftest_rc6.c
@@ -60,7 +60,8 @@ int live_rc6_manual(void *arg)
 
 	/* Force RC6 off for starters */
 	__intel_rc6_disable(rc6);
-	msleep(1); /* wakeup is not immediate, takes about 100us on icl */
+	/* wakeup is not immediate, takes about 100us on icl */
+	usleep_range(1000, 2000);
 
 	res[0] = rc6_residency(rc6);
 
diff --git a/drivers/gpu/drm/i915/gt/selftest_tlb.c b/drivers/gpu/drm/i915/gt/selftest_tlb.c
index 3941f2d6fa47..69ed946a39e5 100644
--- a/drivers/gpu/drm/i915/gt/selftest_tlb.c
+++ b/drivers/gpu/drm/i915/gt/selftest_tlb.c
@@ -143,7 +143,7 @@ pte_tlbinv(struct intel_context *ce,
 	if (ce->engine->class == OTHER_CLASS)
 		msleep(200);
 	else
-		msleep(10);
+		usleep_range(10000, 20000);
 
 	if (va == vb) {
 		if (!i915_request_completed(rq)) {
-- 
2.47.2


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

* ✗ Fi.CI.CHECKPATCH: warning for Trivial style fixes
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
                   ` (3 preceding siblings ...)
  2025-03-14  2:12 ` [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms Andi Shyti
@ 2025-03-14  4:05 ` Patchwork
  2025-03-14  4:05 ` ✗ Fi.CI.SPARSE: " Patchwork
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 16+ messages in thread
From: Patchwork @ 2025-03-14  4:05 UTC (permalink / raw)
  To: Andi Shyti; +Cc: intel-gfx

== Series Details ==

Series: Trivial style fixes
URL   : https://patchwork.freedesktop.org/series/146278/
State : warning

== Summary ==

Error: dim checkpatch failed
6f2c9455289e drm/i915/gt: Fix typos in comments
-:6: WARNING:TYPO_SPELLING: 'upto' may be misspelled - perhaps 'up to'?
#6: 
upto -> up to
^^^^

-:7: WARNING:TYPO_SPELLING: 'acknowledgement' may be misspelled - perhaps 'acknowledgment'?
#7: 
acknowledgement -> acknowledgment
^^^^^^^^^^^^^^^

total: 0 errors, 2 warnings, 0 checks, 16 lines checked
485bc8f3e0be drm/i915/gt: Fix SPDX license format
d9992d83cb54 drm/i915/gt: Remove trailing blank lines
958dca2127ae drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms
-:7: WARNING:TYPO_SPELLING: 'unprecise' may be misspelled - perhaps 'imprecise'?
#7: 
msleep is very unprecise for timeouts shorter than 20
               ^^^^^^^^^

total: 0 errors, 1 warnings, 0 checks, 17 lines checked



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

* ✗ Fi.CI.SPARSE: warning for Trivial style fixes
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
                   ` (4 preceding siblings ...)
  2025-03-14  4:05 ` ✗ Fi.CI.CHECKPATCH: warning for Trivial style fixes Patchwork
@ 2025-03-14  4:05 ` Patchwork
  2025-03-14 12:10 ` [PATCH 0/4] " Sebastian Brzezinka
  2025-03-18 11:04 ` Krzysztof Karas
  7 siblings, 0 replies; 16+ messages in thread
From: Patchwork @ 2025-03-14  4:05 UTC (permalink / raw)
  To: Andi Shyti; +Cc: intel-gfx

== Series Details ==

Series: Trivial style fixes
URL   : https://patchwork.freedesktop.org/series/146278/
State : warning

== Summary ==

Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.



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

* Re: [PATCH 0/4] Trivial style fixes
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
                   ` (5 preceding siblings ...)
  2025-03-14  4:05 ` ✗ Fi.CI.SPARSE: " Patchwork
@ 2025-03-14 12:10 ` Sebastian Brzezinka
  2025-03-18 11:04 ` Krzysztof Karas
  7 siblings, 0 replies; 16+ messages in thread
From: Sebastian Brzezinka @ 2025-03-14 12:10 UTC (permalink / raw)
  To: Andi Shyti, intel-gfx; +Cc: Andi Shyti

Hi Andi

On Fri Mar 14, 2025 at 2:12 AM UTC, Andi Shyti wrote:
> Hi
>
> Browsing through my endless list of branches I found a few with
> random cleanups that I fix while rading the code. They tend to be
s/rading/reading

The whole series looks good in my opinion.

Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>

-- 
Best regards,
Sebastian


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

* Re: [PATCH 1/4] drm/i915/gt: Fix typos in comments
  2025-03-14  2:12 ` [PATCH 1/4] drm/i915/gt: Fix typos in comments Andi Shyti
@ 2025-03-14 13:37   ` Sebastian Brzezinka
  2025-03-14 13:41     ` Andi Shyti
  0 siblings, 1 reply; 16+ messages in thread
From: Sebastian Brzezinka @ 2025-03-14 13:37 UTC (permalink / raw)
  To: Andi Shyti, intel-gfx; +Cc: Andi Shyti

Hi

On Fri Mar 14, 2025 at 2:12 AM UTC, Andi Shyti wrote:
> upto -> up to
> acknowledgement -> acknowledgment
Both spellings are correct.

-- 
Best regards,
Sebastian


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

* Re: [PATCH 1/4] drm/i915/gt: Fix typos in comments
  2025-03-14 13:37   ` Sebastian Brzezinka
@ 2025-03-14 13:41     ` Andi Shyti
  0 siblings, 0 replies; 16+ messages in thread
From: Andi Shyti @ 2025-03-14 13:41 UTC (permalink / raw)
  To: Sebastian Brzezinka; +Cc: Andi Shyti, intel-gfx, Andi Shyti

Hi Sebastian,

On Fri, Mar 14, 2025 at 01:37:44PM +0000, Sebastian Brzezinka wrote:
> On Fri Mar 14, 2025 at 2:12 AM UTC, Andi Shyti wrote:
> > upto -> up to
> > acknowledgement -> acknowledgment
> Both spellings are correct.

thanks a lot for checking this, you are right! The former is UK
english and we don't change it. I will drop this patch as it's
not worth sending a patch for such a small change.

Thanks for looking into it and for your review.
Andi

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

* Re: [PATCH 2/4] drm/i915/gt: Fix SPDX license format
  2025-03-14  2:12 ` [PATCH 2/4] drm/i915/gt: Fix SPDX license format Andi Shyti
@ 2025-03-18 10:55   ` Krzysztof Karas
  2025-03-19  0:34     ` Andi Shyti
  0 siblings, 1 reply; 16+ messages in thread
From: Krzysztof Karas @ 2025-03-18 10:55 UTC (permalink / raw)
  To: Andi Shyti; +Cc: intel-gfx, Andi Shyti

Hi Andi

> Header files need to declare the SPDX under /* ... */ style
All files modified in this patch series start with:
// SPDX-License-Identifier: MIT
rather than:
/* SPDX-License-Identifier: MIT */

As a note:
:~/linux/drm-tip/drivers/gpu/drm/i915$ rg "// SPDX-License-Identifier: " | wc -l
242
:~/linux/drm-tip/drivers/gpu/drm/i915$ rg "/* SPDX-License-Identifier: " | wc -l
696

are those styles interchangable or is one preferred over the
other? I am just curious seeing both are being used.

Best Regards,
Krzysztof

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

* Re: [PATCH 0/4] Trivial style fixes
  2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
                   ` (6 preceding siblings ...)
  2025-03-14 12:10 ` [PATCH 0/4] " Sebastian Brzezinka
@ 2025-03-18 11:04 ` Krzysztof Karas
  7 siblings, 0 replies; 16+ messages in thread
From: Krzysztof Karas @ 2025-03-18 11:04 UTC (permalink / raw)
  To: Andi Shyti; +Cc: intel-gfx

Hi Andi,

> Hi
> 
> Browsing through my endless list of branches I found a few with
> random cleanups that I fix while rading the code. They tend to be
> forgotten over the time and never sent. This time I decided to
> send them.

The patches look good:
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
on the whole series.

> And I have plenty more :-)
Can't wait! :)

Best Regards,
Krzysztof

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

* Re: [PATCH 2/4] drm/i915/gt: Fix SPDX license format
  2025-03-18 10:55   ` Krzysztof Karas
@ 2025-03-19  0:34     ` Andi Shyti
  2025-03-20  7:38       ` Gote, Nitin R
  0 siblings, 1 reply; 16+ messages in thread
From: Andi Shyti @ 2025-03-19  0:34 UTC (permalink / raw)
  To: Krzysztof Karas; +Cc: Andi Shyti, intel-gfx, Andi Shyti

On Tue, Mar 18, 2025 at 10:55:03AM +0000, Krzysztof Karas wrote:
> > Header files need to declare the SPDX under /* ... */ style
> All files modified in this patch series start with:
> // SPDX-License-Identifier: MIT
> rather than:
> /* SPDX-License-Identifier: MIT */
> 
> As a note:
> :~/linux/drm-tip/drivers/gpu/drm/i915$ rg "// SPDX-License-Identifier: " | wc -l
> 242
> :~/linux/drm-tip/drivers/gpu/drm/i915$ rg "/* SPDX-License-Identifier: " | wc -l
> 696
> 
> are those styles interchangable or is one preferred over the
> other? I am just curious seeing both are being used.

It's an ugly mess that for some reason people have accepted from
the beginning. The SPDX license has a different format for .c and
.h file :/

Andi

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

* RE: [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms
  2025-03-14  2:12 ` [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms Andi Shyti
@ 2025-03-20  6:54   ` Gote, Nitin R
  0 siblings, 0 replies; 16+ messages in thread
From: Gote, Nitin R @ 2025-03-20  6:54 UTC (permalink / raw)
  To: Andi Shyti, intel-gfx; +Cc: Andi Shyti

Hi Andi,

> Subject: [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts
> shorter than 20ms
> 
> msleep is very unprecise for timeouts shorter than 20 milliseconds and most
> probably will sleep longer. Use
> uslee_range() instead.

Typo:
%s/uslee_range()/usleep_range()

With typo fix, the patch looks good to me.
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>

> 
> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/gt/selftest_rc6.c | 3 ++-
> drivers/gpu/drm/i915/gt/selftest_tlb.c | 2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/selftest_rc6.c
> b/drivers/gpu/drm/i915/gt/selftest_rc6.c
> index 908483ab0bc8..99de5d85a096 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_rc6.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_rc6.c
> @@ -60,7 +60,8 @@ int live_rc6_manual(void *arg)
> 
>  	/* Force RC6 off for starters */
>  	__intel_rc6_disable(rc6);
> -	msleep(1); /* wakeup is not immediate, takes about 100us on icl */
> +	/* wakeup is not immediate, takes about 100us on icl */
> +	usleep_range(1000, 2000);
> 
>  	res[0] = rc6_residency(rc6);
> 
> diff --git a/drivers/gpu/drm/i915/gt/selftest_tlb.c
> b/drivers/gpu/drm/i915/gt/selftest_tlb.c
> index 3941f2d6fa47..69ed946a39e5 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_tlb.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_tlb.c
> @@ -143,7 +143,7 @@ pte_tlbinv(struct intel_context *ce,
>  	if (ce->engine->class == OTHER_CLASS)
>  		msleep(200);
>  	else
> -		msleep(10);
> +		usleep_range(10000, 20000);
> 
>  	if (va == vb) {
>  		if (!i915_request_completed(rq)) {
> --
> 2.47.2


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

* RE: [PATCH 3/4] drm/i915/gt: Remove trailing blank lines
  2025-03-14  2:12 ` [PATCH 3/4] drm/i915/gt: Remove trailing blank lines Andi Shyti
@ 2025-03-20  6:59   ` Gote, Nitin R
  0 siblings, 0 replies; 16+ messages in thread
From: Gote, Nitin R @ 2025-03-20  6:59 UTC (permalink / raw)
  To: Andi Shyti, intel-gfx; +Cc: Andi Shyti

Hi Andi,

> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Andi Shyti
> Sent: Friday, March 14, 2025 7:42 AM
> To: intel-gfx <intel-gfx@lists.freedesktop.org>
> Cc: Andi Shyti <andi.shyti@linux.intel.com>; Andi Shyti <andi.shyti@kernel.org>
> Subject: [PATCH 3/4] drm/i915/gt: Remove trailing blank lines
> 
> Remove useless blank lines before and after the brackets.
> 
> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/gt/intel_gtt.c  | 1 -  drivers/gpu/drm/i915/gt/intel_lrc.c  |
> 1 -  drivers/gpu/drm/i915/gt/intel_mocs.c | 1 -
>  3 files changed, 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/intel_gtt.c
> b/drivers/gpu/drm/i915/gt/intel_gtt.c
> index 30b128b1fde7..afbc5c769308 100644
> --- a/drivers/gpu/drm/i915/gt/intel_gtt.c
> +++ b/drivers/gpu/drm/i915/gt/intel_gtt.c
> @@ -176,7 +176,6 @@ static void clear_vm_list(struct list_head *list)
>  			i915_vma_destroy_locked(vma);
>  			i915_gem_object_put(obj);
>  		}
> -
>  	}
>  }
> 
> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c
> b/drivers/gpu/drm/i915/gt/intel_lrc.c
> index 51847a846002..c481b56fa67d 100644
> --- a/drivers/gpu/drm/i915/gt/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
> @@ -751,7 +751,6 @@ static int lrc_ring_indirect_offset(const struct
> intel_engine_cs *engine)
> 
>  static int lrc_ring_cmd_buf_cctl(const struct intel_engine_cs *engine)  {
> -
>  	if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 55))
>  		/*
>  		 * Note that the CSFE context has a dummy slot for
> CMD_BUF_CCTL diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c
> b/drivers/gpu/drm/i915/gt/intel_mocs.c
> index cf41d325712e..5dd8121f4b15 100644
> --- a/drivers/gpu/drm/i915/gt/intel_mocs.c
> +++ b/drivers/gpu/drm/i915/gt/intel_mocs.c
> @@ -314,7 +314,6 @@ static const struct drm_i915_mocs_entry
> icl_mocs_table[] = {  };
> 
>  static const struct drm_i915_mocs_entry dg1_mocs_table[] = {
> -
>  	/* UC */
>  	MOCS_ENTRY(1, 0, L3_1_UC),
>  	/* WB - L3 */
> --
> 2.47.2

The patch looks good to me.
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>

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

* RE: [PATCH 2/4] drm/i915/gt: Fix SPDX license format
  2025-03-19  0:34     ` Andi Shyti
@ 2025-03-20  7:38       ` Gote, Nitin R
  0 siblings, 0 replies; 16+ messages in thread
From: Gote, Nitin R @ 2025-03-20  7:38 UTC (permalink / raw)
  To: Andi Shyti, Karas, Krzysztof; +Cc: intel-gfx, Andi Shyti

HI Andi,

> On Tue, Mar 18, 2025 at 10:55:03AM +0000, Krzysztof Karas wrote:
> > > Header files need to declare the SPDX under /* ... */ style
> > All files modified in this patch series start with:
> > // SPDX-License-Identifier: MIT
> > rather than:
> > /* SPDX-License-Identifier: MIT */
> >
> > As a note:
> > :~/linux/drm-tip/drivers/gpu/drm/i915$ rg "// SPDX-License-Identifier:
> > " | wc -l
> > 242
> > :~/linux/drm-tip/drivers/gpu/drm/i915$ rg "/* SPDX-License-Identifier:
> > " | wc -l
> > 696
> >
> > are those styles interchangable or is one preferred over the other? I
> > am just curious seeing both are being used.
> 
> It's an ugly mess that for some reason people have accepted from the beginning.
> The SPDX license has a different format for .c and .h file :/
> 
> Andi

A similar change is required in selftests/mock_timeline.h header also. 

As per https://docs.kernel.org/process/license-rules.html, 
for ASM files also required this style:     /* SPDX-License-Identifier: <SPDX License Expression> */

There are two asm files hsw.asm and ivb.asm under  i915/gt/shaders/clear_kernel.
It will be better if we update the license style in asm files as well.

Regards,
Nitin

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

end of thread, other threads:[~2025-03-20  7:39 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14  2:12 [PATCH 0/4] Trivial style fixes Andi Shyti
2025-03-14  2:12 ` [PATCH 1/4] drm/i915/gt: Fix typos in comments Andi Shyti
2025-03-14 13:37   ` Sebastian Brzezinka
2025-03-14 13:41     ` Andi Shyti
2025-03-14  2:12 ` [PATCH 2/4] drm/i915/gt: Fix SPDX license format Andi Shyti
2025-03-18 10:55   ` Krzysztof Karas
2025-03-19  0:34     ` Andi Shyti
2025-03-20  7:38       ` Gote, Nitin R
2025-03-14  2:12 ` [PATCH 3/4] drm/i915/gt: Remove trailing blank lines Andi Shyti
2025-03-20  6:59   ` Gote, Nitin R
2025-03-14  2:12 ` [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms Andi Shyti
2025-03-20  6:54   ` Gote, Nitin R
2025-03-14  4:05 ` ✗ Fi.CI.CHECKPATCH: warning for Trivial style fixes Patchwork
2025-03-14  4:05 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-03-14 12:10 ` [PATCH 0/4] " Sebastian Brzezinka
2025-03-18 11:04 ` Krzysztof Karas

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.