lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aCr6bm7xyBXiF8-G@ryzen>
Date: Mon, 19 May 2025 11:31:26 +0200
From: Niklas Cassel <cassel@...nel.org>
To: Joj Loj3 <jojloj3@...il.com>
Cc: dlemoal@...nel.org, linux-ide@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [BUG] pata_jmicron - JMB368-based IDE to PCIe adapters capped at
 extremely slow speeds

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ