intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
	Matthew Auld <matthew.auld@intel.com>
Cc: intel-xe@lists.freedesktop.org,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	ryszard.knop@intel.com
Subject: Re: [PATCH] drm/xe: Sort again the info flags
Date: Wed, 20 Nov 2024 14:16:17 +0200	[thread overview]
Message-ID: <87wmgy14oe.fsf@intel.com> (raw)
In-Reply-To: <pma4bikew4wnxhs2nczdzbbpz2yt77pvoy5xdxq23sg5cw4e3n@aypm5hztxb2v>

On Tue, 19 Nov 2024, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Tue, Nov 19, 2024 at 10:51:58AM +0000, Matthew Auld wrote:
>>On 18/11/2024 22:33, Lucas De Marchi wrote:
>>>Those flags are supposed to be kept sorted alphabetically. Unfortunately
>>>it's a constant battle as new flags are added to the end or at random
>>>places. Sort it again.
>>>
>>>v2: Include the other non-has_* 1-bit flags in the sort
>>>
>>>Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> # v1
>>>Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
>>>---
>>>  drivers/gpu/drm/xe/xe_device_types.h | 32 ++++++++++++++++------------
>>>  1 file changed, 18 insertions(+), 14 deletions(-)
>>>
>>>diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
>>>index 8592f1b02db11..8b2b12daa49dd 100644
>>>--- a/drivers/gpu/drm/xe/xe_device_types.h
>>>+++ b/drivers/gpu/drm/xe/xe_device_types.h
>>>@@ -294,14 +294,21 @@ struct xe_device {
>>>  		/** @info.va_bits: Maximum bits of a virtual address */
>>>  		u8 va_bits;
>>
>>Should we not document somewhere here that the below should be kept sorted?
>
> yes, probably. Also... we have the CI Hooks we should make better use of
> too. First check if the patch series changed drivers/gpu/drm/xe/xe_device_types.h
> at all and if it did, check that these flags are sorted. We should be
> able to add some quick and dirty checks so we don't have to keep
> changing it. Just need to make sure the output on what was
> the error is helpful, otherwise people will just ignore it.
>
> Ryszard / Jani  any thought on that idea?

Some random thoughts:

We need more transparency on all of CI. I still have no clue of all the
things that get run, where it's all hosted, how I could contribute
changes to it. I'm guessing maybe it's all out there somewhere, but I
find it difficult to figure out. A check like this would need to be
discoverable.

Something like this should be locally runnable. I know it's been hard to
get people to run even checkpatch or sparse, but it's just dumb noise to
get the first indication something's wrong in a CI result. And if you
don't block further runs based on this, it just burns resources.

On that last point, I think we should aim for reliable pass/fail, with
fast fail halting further resource intensive stuff. E.g. checkpatch is
not like this, we can't block on checkpatch failures, and due to this
the results tend to be ignored and we merge stuff with checkpatch
failures. Ditto with detailed checks like this, if it doesn't block
merging, it's bound to get ignored at times. (Side note, maybe we should
look into a limited checkpatch config that we could fail fast on?)

BR,
Jani.


-- 
Jani Nikula, Intel

  reply	other threads:[~2024-11-20 12:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18 22:33 [PATCH] drm/xe: Sort again the info flags Lucas De Marchi
2024-11-18 23:05 ` ✓ CI.Patch_applied: success for " Patchwork
2024-11-18 23:05 ` ✓ CI.checkpatch: " Patchwork
2024-11-18 23:06 ` ✓ CI.KUnit: " Patchwork
2024-11-18 23:14 ` [PATCH] " Cavitt, Jonathan
2024-11-18 23:24 ` ✓ CI.Build: success for " Patchwork
2024-11-18 23:26 ` ✓ CI.Hooks: " Patchwork
2024-11-18 23:28 ` ✓ CI.checksparse: " Patchwork
2024-11-18 23:50 ` ✓ CI.BAT: " Patchwork
2024-11-19 10:51 ` [PATCH] " Matthew Auld
2024-11-19 17:08   ` Lucas De Marchi
2024-11-20 12:16     ` Jani Nikula [this message]
2024-11-20 14:16       ` Lucas De Marchi
2024-11-21 10:53         ` Jani Nikula
2024-11-21 16:54           ` Lucas De Marchi
2024-11-25 15:36             ` Jani Nikula
2024-11-19 11:04 ` ✗ CI.FULL: failure for " 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=87wmgy14oe.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=matthew.auld@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=ryszard.knop@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;
as well as URLs for NNTP newsgroup(s).