From: Niklas Cassel <cassel@kernel.org>
To: Philip Pemberton <lists@philpem.me.uk>
Cc: linux-ide@vger.kernel.org
Subject: Re: Zip 100 ATAPI not working, "qc timeout" and "failed to clear UNIT ATTENTION"
Date: Fri, 17 Jan 2025 14:37:19 +0100 [thread overview]
Message-ID: <Z4pdD1Z2mJnF7N3O@ryzen> (raw)
In-Reply-To: <e1b79ece-b4b2-42e5-b259-290820324b5e@philpem.me.uk>
Hello Philip,
On Thu, Jan 09, 2025 at 03:31:05PM +0000, Philip Pemberton wrote:
> (Repeating myself here, ata4 / ata_port=4 is the DVD drive; ata_port=3 is
> the Zip drive)
>
> There's quite a lot on the ATA buses, so if it helps --
> ata1: Samsung 860 SSD
> ata2: WD 500GB mechanical hard drive
> ata3: Spare port / Zip drive
> ata4: DVD writer
> ata5: Not used
> ata6: Not used
>
> There are a couple of SATA disks and a SAS tape drive on an LSI SAS card but
> they seem to go through the "scsi" and "mpt2sas" driver route.
>
>
> > Note that for ATAPI, it also looks like your SATA driver needs special support.
> > See e.g. libahci.c which does a bunch of extra stuff if it is an ATAPI device,
> > e.g.:
> > https://github.com/torvalds/linux/blob/v6.13-rc6/drivers/ata/libahci.c#L1699-L1702
> > https://github.com/torvalds/linux/blob/v6.13-rc6/drivers/ata/libahci.c#L1638-L1643
> >
> > Same for the libata-sff driver:
> > https://github.com/torvalds/linux/blob/v6.13-rc6/drivers/ata/libata-sff.c#L2672-L2684
> > https://github.com/torvalds/linux/blob/v6.13-rc6/drivers/ata/libata-sff.c#L295-L297
> > https://github.com/torvalds/linux/blob/v6.13-rc6/drivers/ata/libata-sff.c#L687-L715
> >
> >
> > Which SATA driver are you using?
>
> It looks like it's "ahci" or "libahci".
>
>
> > Are you saying that it does come up and work eventually?
> >
> > When we see the "disable device" print, it is usually a sign that we have
> > given up, and thus remove the device.
>
> No, it tries to connect three times, then gives up and disables the device.
Unfortunately, so far I do not think that we have enough information to
do much about this issue.
We know that the "SATA-to-PATA adatper + Zip drive" combo worked on some
other PC (that might have used another SATA HBA) with an ancient kernel.
I think my first recommendation would be to try to build an ancient kernel
on your current PC, and see if the same "SATA-to-PATA adatper + Zip drive"
combo then works. If it does work, then I think the best bet is to use
PCI passthrough and do an git bisection (which can be automated).
Or, do the opposite, see if the latest kernel with other PC still handles
the Zip drive properly, if it doesn't, then perhaps the best thing is to
to the bisection on this other PC.
You could look at this guide for inspiration:
https://github.com/floatious/qemu-bisect-doc
Kind regards,
Niklas
next prev parent reply other threads:[~2025-01-17 13:37 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 12:52 Zip 100 ATAPI not working, "qc timeout" and "failed to clear UNIT ATTENTION" Philip Pemberton
2025-01-08 13:42 ` Niklas Cassel
2025-01-08 13:45 ` Niklas Cassel
2025-01-09 11:36 ` Philip Pemberton
2025-01-08 14:05 ` Niklas Cassel
2025-01-09 7:17 ` Hannes Reinecke
2025-01-09 11:33 ` Philip Pemberton
2025-01-09 13:22 ` Niklas Cassel
2025-01-09 15:06 ` Philip Pemberton
2025-01-09 11:35 ` Philip Pemberton
[not found] ` <e1985151-c206-4be1-91c1-92eac16f6236@philpem.me.uk>
2025-01-09 12:22 ` Niklas Cassel
2025-01-09 15:31 ` Philip Pemberton
2025-01-17 13:37 ` Niklas Cassel [this message]
2025-01-23 13:19 ` Philip Pemberton
2025-01-23 16:19 ` Philip Pemberton
2025-01-24 10:03 ` Niklas Cassel
2025-02-18 3:05 ` Philip Pemberton
2025-02-19 15:48 ` Niklas Cassel
2025-02-19 16:02 ` Niklas Cassel
2025-02-19 20:04 ` Philip Pemberton
2025-02-21 1:57 ` Niklas Cassel
2025-02-21 17:08 ` Philip Pemberton
2025-02-21 17:24 ` Niklas Cassel
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=Z4pdD1Z2mJnF7N3O@ryzen \
--to=cassel@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=lists@philpem.me.uk \
/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