From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Ranjan Kumar <ranjan.kumar@broadcom.com>
Cc: linux-scsi@vger.kernel.org, martin.petersen@oracle.com,
sathya.prakash@broadcom.com, chandrakanth.patil@broadcom.com,
dlemoal@kernel.org, david.laight.linux@gmail.com,
stable@vger.kernel.org, Mira Limbeck <m.limbeck@proxmox.com>,
Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH v4] mpt3sas: Limit NVMe request size to 2 MiB
Date: Mon, 20 Apr 2026 22:22:56 -0400 [thread overview]
Message-ID: <yq1se8poxvz.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <20260414110811.85156-1-ranjan.kumar@broadcom.com> (Ranjan Kumar's message of "Tue, 14 Apr 2026 16:38:11 +0530")
Ranjan,
> The HBA firmware reports NVMe MDTS values based on the underlying
> drive capability. However, because the driver allocates a fixed 4K
> buffer for the PRP list, accommodating at most 512 entries, the driver
> supports a maximum I/O transfer size of 2 MiB.
>
> Limit max_hw_sectors to the smaller of the reported MDTS and the 2 MiB
> driver limit to prevent issuing oversized I/O that may lead to a
> kernel oops.
Applied to 7.1/scsi-staging, thanks!
--
Martin K. Petersen
prev parent reply other threads:[~2026-04-21 2:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 11:08 [PATCH v4] mpt3sas: Limit NVMe request size to 2 MiB Ranjan Kumar
2026-04-15 17:43 ` Mira Limbeck
2026-04-21 2:22 ` Martin K. Petersen [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=yq1se8poxvz.fsf@ca-mkp.ca.oracle.com \
--to=martin.petersen@oracle.com \
--cc=chandrakanth.patil@broadcom.com \
--cc=david.laight.linux@gmail.com \
--cc=dlemoal@kernel.org \
--cc=kbusch@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=m.limbeck@proxmox.com \
--cc=ranjan.kumar@broadcom.com \
--cc=sathya.prakash@broadcom.com \
--cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox