From: Niklas Cassel <cassel@kernel.org>
To: Joj Loj3 <jojloj3@gmail.com>
Cc: dlemoal@kernel.org, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] pata_jmicron - JMB368-based IDE to PCIe adapters capped at extremely slow speeds
Date: Mon, 19 May 2025 11:31:26 +0200 [thread overview]
Message-ID: <aCr6bm7xyBXiF8-G@ryzen> (raw)
In-Reply-To: <CAOnE0bQBVS2hz9Mbv+HFLSYUiuTcJJ=A6UqVrhP8Sgf_muMaCg@mail.gmail.com>
Hello Joj Loj3,
On Sat, May 17, 2025 at 02:18:33PM -0400, Joj Loj3 wrote:
> Apologies for the previous email, which was not formatted as
> plaintext. I have fixed this for this email.
>
> Dear Maintainers,
>
> Tested on several kernels, including the latest master at time of
> testing ( 6.15.0-0.rc5.250509g9c69f8884904.47.fc43.x86_64 ),
> JMB368-based IDE to PCIe adapters are capped at extremely slow speeds,
> regardless of whether the device attached is capable of much higher
> ones. This issue exists OOTB on Windows as well, but is fixed via
> installing the proper drivers, see
> http://forum.redump.org/topic/59287/fix-for-pex2ide-jmicron-36x-based-pci-adapters-on-windows-1011/
> for more information. I have tested Windows on the same machine and
> confirmed that the issue is fixed once I have installed the proper
> drivers.
>
> Please let me know what additional info is necessary. This is my first
> time submitting a kernel bug, and I'm not sure what extra information
> might be needed.
I'm not sure what you want us to do with the information that you have
provided.
The performance with pata_jmicron is bad, on multiple kernel versions.
(Which is the oldest kernel version you tested?)
The fact that the default Windows driver has the same problem does not
help us that much, unless you can figure out what the "good" driver is
doing that the bad one is not.
You seem to have an ATAPI device using UDMA/66:
[ 3.315037] ata7.00: ATAPI: PLEXTOR DVDR PX-716A, 1.11, max UDMA/66
There have been some reports for other PATA drivers (e.g. pata_via) to
force PIO for ATAPI devices:
https://lore.kernel.org/linux-ide/20250519085508.1398701-1-tasos@tasossah.com/T/#u
Have you tried forcing other transfer modes?
e.g. by adding 'libata.dma=0' on the kernel command line.
Kind regards,
Niklas
>
> Relevant output from dmesg:
> [ 3.155555] scsi host6: pata_jmicron
> [ 3.159374] scsi host7: pata_jmicron
> [ 3.159457] ata7: PATA max UDMA/100 cmd 0xd010 ctl 0xd020 bmdma
> 0xd000 irq 28 lpm-pol 0
> [ 3.159461] ata8: PATA max UDMA/100 cmd 0xd018 ctl 0xd024 bmdma
> 0xd008 irq 28 lpm-pol 0
> [ 3.204963] FDC 0 is a post-1991 82077
> [ 3.229154] usb-storage 1-3:1.0: USB Mass Storage device detected
> [ 3.230081] scsi host8: usb-storage 1-3:1.0
> [ 3.230253] usbcore: registered new interface driver usb-storage
> [ 3.234360] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM95754) rev
> 5784100] (PCI Express) MAC address 2c:27:d7:2d:99:f4
> [ 3.234367] tg3 0000:01:00.0 eth0: attached PHY is 5784
> (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
> [ 3.234370] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0]
> MIirq[0] ASF[0] TSOcap[1]
> [ 3.234373] tg3 0000:01:00.0 eth0: dma_rwctrl[76180000] dma_mask[64-bit]
> [ 3.315037] ata7.00: ATAPI: PLEXTOR DVDR PX-716A, 1.11, max UDMA/66
> [ 3.319542] scsi 6:0:0:0: CD-ROM PLEXTOR DVDR PX-716A
> 1.11 PQ: 0 ANSI: 5
> [ 3.362459] sr 6:0:0:0: [sr1] scsi3-mmc drive: 40x/40x writer cd/rw
> xa/form2 cdda tray
> [ 3.389254] sr 6:0:0:0: Attached scsi CD-ROM sr1
> [ 3.389402] sr 6:0:0:0: Attached scsi generic sg2 type 5
prev parent reply other threads:[~2025-05-19 9:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-17 18:18 [BUG] pata_jmicron - JMB368-based IDE to PCIe adapters capped at extremely slow speeds Joj Loj3
2025-05-19 9:31 ` 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=aCr6bm7xyBXiF8-G@ryzen \
--to=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=jojloj3@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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