All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Pedro Falcato <pfalcato@suse.de>
Cc: Damien Le Moal <dlemoal@kernel.org>,
	linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ata: libata-core: Add BRIDGE_OK quirk for QEMU drives
Date: Thu, 5 Mar 2026 08:54:39 +0100	[thread overview]
Message-ID: <aak2vxjO2aAtnuwD@ryzen> (raw)
In-Reply-To: <bkkhps3grvckjjvw6ncgygb3qxqrftlwnmixmv3ibe726kc35o@uih2pher4s6e>

On Wed, Mar 04, 2026 at 07:34:29PM +0000, Pedro Falcato wrote:
> On Wed, Mar 04, 2026 at 01:08:35PM +0100, Niklas Cassel wrote:
> > Hello Pedro,
> > 
> > On Wed, Mar 04, 2026 at 11:23:01AM +0000, Pedro Falcato wrote:
> > 
> > (snip)
> > 
> > > So, does this look better?
> > > 
> > > diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> > > index d61846f03edc..c57e35ccc092 100644
> > > --- a/drivers/ata/libata-core.c
> > > +++ b/drivers/ata/libata-core.c
> > > @@ -4231,6 +4231,7 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {
> > >         /* Devices that do not need bridging limits applied */
> > >         { "MTRON MSP-SATA*",            NULL,   ATA_QUIRK_BRIDGE_OK },
> > >         { "BUFFALO HD-QSU2/R5",         NULL,   ATA_QUIRK_BRIDGE_OK },
> > > +       { "QEMU HARDDISK",              "2.5+", ATA_QUIRK_BRIDGE_OK },
> > 
> > Yes, I would prefer that.
> > 
> > When booting a device that has quirks applied, we will get prints in dmesg
> > showing which quirks were applied.
> 
> Yeah, makes sense. Can you use this diff and add Cc: stable when applying,
> or do you want me to send a v2?

Please send a V2 without the text:
"QEMU shares IDENTIFY data between PATA/SATA drives"

I don't think this is 100% true, as we can see that the QEMU AHCI emulation
e.g. sets s->ncq_queues in ahci.c:
https://github.com/qemu/qemu/blob/v10.2.1/hw/ide/ahci.c#L632

So the identify data is already different for PATA/SATA drives IMO.


Kind regards,
Niklas

      reply	other threads:[~2026-03-05  7:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-03 18:33 [PATCH] ata: libata-core: Add BRIDGE_OK quirk for QEMU drives Pedro Falcato
2026-03-04  1:03 ` Damien Le Moal
2026-03-04  9:21 ` Niklas Cassel
2026-03-04 11:23   ` Pedro Falcato
2026-03-04 12:08     ` Niklas Cassel
2026-03-04 19:34       ` Pedro Falcato
2026-03-05  7:54         ` Niklas Cassel [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=aak2vxjO2aAtnuwD@ryzen \
    --to=cassel@kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pfalcato@suse.de \
    /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.