mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Avri Altman <avri.altman@wdc.com>,
	"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] scsi: ufs: core: Introduce a new host register lock
Date: Mon, 21 Oct 2024 11:35:42 -0700	[thread overview]
Message-ID: <85d2cb9b-75ba-4ab3-a50d-0f8161456fcb@acm.org> (raw)
In-Reply-To: <20241021120313.493371-2-avri.altman@wdc.com>

On 10/21/24 5:03 AM, Avri Altman wrote:
> Introduce a new host register read/write lock.  Use it to protect access
> to the task management doorbell register: UTMRLDBR.  This is not the
> UTRLDBR which is already protected by its own outstanding_lock.

Why is this necessary? I think it is allowed to submit host controller
reads and writes simultaneously from different threads. Only 
read/modify/writes have to be serialized.

Thanks,

Bart.


  reply	other threads:[~2024-10-21 18:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21 12:03 [PATCH 0/4] Untie the host lock entanglement - part 1 Avri Altman
2024-10-21 12:03 ` [PATCH 1/4] scsi: ufs: core: Introduce a new host register lock Avri Altman
2024-10-21 18:35   ` Bart Van Assche [this message]
2024-10-22  6:02     ` Avri Altman
2024-10-21 12:03 ` [PATCH 2/4] scsi: ufs: core: Use reg_lock to protect UTMRLCLR Avri Altman
2024-10-21 20:25   ` Bart Van Assche
2024-10-22  6:02     ` Avri Altman
2024-10-21 12:03 ` [PATCH 3/4] scsi: ufs: core: Use reg_lock to protect UTRLCLR Avri Altman
2024-10-21 20:26   ` Bart Van Assche
2024-10-22  6:03     ` Avri Altman
2024-10-21 12:03 ` [PATCH 4/4] scsi: ufs: core: Use reg_lock to protect HCE register Avri Altman
2024-10-21 20:02   ` Bart Van Assche
2024-10-22  6:01     ` Avri Altman

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=85d2cb9b-75ba-4ab3-a50d-0f8161456fcb@acm.org \
    --to=bvanassche@acm.org \
    --cc=avri.altman@wdc.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.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

all inboxes | Powered by JetHome®