All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Dmytro Prokopchuk1 <dmytro_prokopchuk1@epam.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Cc: "Doug Goldstein" <cardoe@cardoe.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Julien Grall" <julien@xen.org>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Nicola Vetrini" <nicola.vetrini@bugseng.com>
Subject: Re: [PATCH] misra: add deviation of Rule 2.1 for BUG() macro
Date: Wed, 27 Aug 2025 08:43:57 +0200	[thread overview]
Message-ID: <ab709d2a-ea06-452a-a3f7-a93065b39835@suse.com> (raw)
In-Reply-To: <d9e9deaa-fa3e-4f4a-aa70-772af4bc1371@epam.com>

On 26.08.2025 20:07, Dmytro Prokopchuk1 wrote:
> The situation with functions gicv3_do_LPI(), 
> gicv3_its_setup_collection() and config CONFIG_HAS_ITS is little bit 
> different.
> The compiler can do DCE in case when config CONFIG_HAS_ITS is "y", and 
> Misra R2.1 violation related to these functions also can be resolved.
> Actually, no changes in source code need for that.
> But Eclair detects these violations because config CONFIG_HAS_ITS is 
> "n", and source code is really compiled with inline stub functions (with 
> BUG() macro).
> This is because config CONFIG_HAS_ITS is "experimental/unsupported"
> 
>      config HAS_ITS
>              bool "GICv3 ITS MSI controller support (UNSUPPORTED)" if 
>   UNSUPPORTED
>          depends on GICV3 && !NEW_VGIC && !ARM_32
> 
> and to enable it need to set additional config: "CONFIG_UNSUPPORTED=y".
> 
> I tried to test it (added "CONFIG_UNSUPPORTED=y" into 
> automation/gitlab-ci/analyze.yaml file). You can see my CI pipeline:
> https://eclair-analysis-logs.xenproject.org/fs/var/local/eclair/xen-project.ecdf/xen-project/people/dimaprkp4k/xen/ECLAIR_normal/rule_2.1_gicv3_its_host_has_its_v2/ARM64/11144854092/PROJECT.ecd;/by_service.html#service&kind
> 
> Unfortunately, I observed +6 new violations with that additional config 
> "CONFIG_UNSUPPORTED=y".
> 
> I don't know how and why these EXTRA_XEN_CONFIG were selected in the 
> file 'automation/gitlab-ci/analyze.yaml'. And are we able to add new 
> configs here ?....

This has been a repeated source for discussion. The present selection,
afaict, is pretty arbitrary. However, in your considerations on how to
address an issue, imo you should not look at the present config. Whatever
the solution would better fit all possible settings.

Jan


      parent reply	other threads:[~2025-08-27  6:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-24 14:56 [PATCH] misra: add deviation of Rule 2.1 for BUG() macro Dmytro Prokopchuk1
2025-08-24 15:29 ` Nicola Vetrini
2025-08-25  9:56   ` Dmytro Prokopchuk1
2025-08-25 10:07 ` Jan Beulich
2025-08-25 10:26   ` Dmytro Prokopchuk1
2025-08-26 18:07   ` Dmytro Prokopchuk1
2025-08-26 19:15     ` Nicola Vetrini
2025-08-26 23:51       ` Stefano Stabellini
2025-08-27  6:45         ` Dmytro Prokopchuk1
2025-08-27  6:43     ` Jan Beulich [this message]

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=ab709d2a-ea06-452a-a3f7-a93065b39835@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=cardoe@cardoe.com \
    --cc=dmytro_prokopchuk1@epam.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=nicola.vetrini@bugseng.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.