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-next>] [day] [month] [year] [list]
Message-ID: <CAOnE0bQBVS2hz9Mbv+HFLSYUiuTcJJ=A6UqVrhP8Sgf_muMaCg@mail.gmail.com>
Date: Sat, 17 May 2025 14:18:33 -0400
From: Joj Loj3 <jojloj3@...il.com>
To: dlemoal@...nel.org, cassel@...nel.org
Cc: linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [BUG] pata_jmicron - JMB368-based IDE to PCIe adapters capped at
 extremely slow speeds

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.

Cheers,
Bestest

Specific adapter purchased:
https://www.amazon.com/dp/B000YAX13Y

Quote of the above forum post, if necessary:
A handful of dumpers have been having issues specifically with the
StarTech board you can grab on Amazon for a bit over $20 - this has a
JMB368 controller, but it "should" apply to any given PEX2IDE adapter.
Specifically - the adapter seems to be very compatible with any given
IDE optical drive you throw at it, but the read/write speeds are
"very" poor, similar to PIO4 mode speeds or as if the drive is
perpetually stuck in a 2x CD-ROM read speed average regardless of
parameters used.

Additionally, I had minor stability issues on my setup using a 12th
gen Intel CPU/motherboard that also seem to be caused by how this card
operates in Windows by default when dumping discs - this also seems to
fix those issues if you've had any issues on that end.

The "fix" is just manually replacing the generic "Standard Dual
Channel IDE Controller" you'll have appear in device manager with an
official driver from 2009 (1.17.49.4) - extract the files from the
linked cab archive (direct from Microsoft Update Catalog, it's
signed/legit etc.) to any given dir and manually update the driver by
pathing to the folder with the cat/inf/sys files.

https://www.catalog.update.microsoft.com/Search.aspx?q=jmb36x

The entire set of drivers can be found here - since MS doesn't denote
what version or x86/x64 variation as is, here are the relevant x64 and
x86 drivers:

x64: www.catalog.update.microsoft.com/ScopedViewInline.aspx?updateid=65fceaa7-e6b6-4aac-8846-37b4ca469c5d
x86: www.catalog.update.microsoft.com/ScopedViewInline.aspx?updateid=9ca80e2c-4391-4e75-8353-af41ef10a5c5

The newer drivers seemingly either fail to install (Device already has
best available drivers installed) or simply fails outright. This
specific revision for whatever reason replaces the generic one without
issue and works as expected. If you want to poke at the later
versions, be my guest!


Output of uname -r on latest kernel:

$ uname -r
6.15.0-0.rc5.250509g9c69f8884904.47.fc43.x86_64

Output from lspci -v:
03:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
(prog-if 85 [PCI native mode-only controller, supports bus mastering])
    Subsystem: JMicron Technology Corp. JMB368 IDE controller
    Physical Slot: 1
    Flags: bus master, fast devsel, latency 0, IRQ 28
    I/O ports at d010 [size=8]
    I/O ports at d020 [size=4]
    I/O ports at d018 [size=8]
    I/O ports at d024 [size=4]
    I/O ports at d000 [size=16]
    Expansion ROM at ee100000 [virtual] [disabled] [size=64K]
    Capabilities: [68] Power Management version 2
    Capabilities: [50] Express Legacy Endpoint, IntMsgNum 1
    Capabilities: [70] MSI: Enable- Count=1/1 Maskable- 64bit-
    Kernel driver in use: pata_jmicron
    Kernel modules: pata_jmicron, pata_acpi, ata_generic

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