LKML Archive on
help / color / mirror / Atom feed
From: Kunihiko Hayashi <>
To: "Pali Rohár" <>
Cc: Marc Zyngier <>,,
Subject: Re: pcie-uniphier: race condition in masking/unmasking interrupts
Date: Thu, 19 Aug 2021 19:01:39 +0900	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20210818113820.fzjeouy6tohbzuad@pali>

Hi Pali,

On 2021/08/18 20:38, Pali Rohár wrote:
> Hello!
> Marc pointed during review of pci-aardvark patches one issue which I see
> that is available also in the current pcie-uniphier.c driver.
> When masking or unmasking interrupts there is read-modify-write sequence
> for PCL_RCV_INTX_MASK_SHIFT register without any locking:
> So when trying to mask/unmask two interrupts at the same time there is
> race condition as updating that PCL_RCV_INTX_MASK_SHIFT register is not
> atomic.
> Could you look at it?
Thank you for pointing out.
I'll update the mask/unmask/ack operations to avoid race condition.

Thank you,

Best Regards
Kunihiko Hayashi

      reply	other threads:[~2021-08-19 10:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18 11:38 Pali Rohár
2021-08-19 10:01 ` Kunihiko Hayashi [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \
    --subject='Re: pcie-uniphier: race condition in masking/unmasking interrupts' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).