[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210203165701.GB2182779@dhcp-10-100-145-180.wdc.com>
Date: Wed, 3 Feb 2021 08:57:01 -0800
From: Keith Busch <kbusch@...nel.org>
To: Filippo Sironi <sironi@...zon.de>
Cc: Christoph Hellwig <hch@....de>, serebrin@...zon.com,
dwmw@...zon.co.uk, axboe@...com, sagi@...mberg.me,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvme: Add 48-bit DMA address quirk
On Wed, Feb 03, 2021 at 12:22:31PM +0100, Filippo Sironi wrote:
>
> On 2/3/21 12:15 PM, Christoph Hellwig wrote:
> >
> > On Wed, Feb 03, 2021 at 12:12:31PM +0100, Filippo Sironi wrote:
> > > I don't disagree on the first part of your sentence, this is a big
> > > oversight.
> >
> > But it is not what your commit log suggests.
>
> I can definitely rephrase the commit.
>
> > > On the other hand, those controllers are out there and are in use by a lot
> > > of customers. We can keep relying on luck, hoping that customers don't run
> > > into troubles or we can merge a few lines of code :)
> >
> > Your patch does not just quirk a few controllers out there, but all
> > current and future controllers with an Amazon vendor ID. We could
> > probably talk about quirking an existing vendor ID or two as long as
> > this doesn't happen for future hardware.
>
> I know that the hardware team is working on this but I don't know the
> timelines and there are a few upcoming controllers - of which I don't know
> the device ids yet - that have the same issue.
>
> To avoid issues, it is easier to apply the quirk to all Amazon NVMe
> controllers for now till the new lines of controllers with the fix comes
> out. At that point, we'll be able to restrict the application to the known
> bad controllers.
Just set the quirk for the known device id's and append more as needed
(which should hopefully never happen). Sure, your future broken devices
may not work with the first kernel that introduced the quirk, but this
is how the quirks should be documented in the code.
Powered by blists - more mailing lists