View Issue Details

IDProjectCategoryView StatusLast Update
0001198channel: elrepo/el8--elrepo--request-for-enhancement--public2024-08-09 22:57
Reporteroden Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0001198: RFE: Provide the kmod-moxa-mxupcie module
DescriptionDriver is missing.

Package here: https://nux.se/repo/elrepo/kmod-moxa-mxupcie-4.1-1.el8.elrepo.src.rpm



Steps To ReproduceInstall the packages.
load the module.

# dmesg | grep mxupcie
[ 6.395305] mxupcie: loading out-of-tree module taints kernel.
[ 6.395351] mxupcie: module verification failed: signature and/or required key missing - tainting kernel
[ 6.395920] mxupcie: MOXA Smartio/Industio family driver version 4.1
[ 6.395939] mxupcie: Found MOXA CP-114EL series board(BusNo=1,DevNo=0)
[ 6.396045] mxupcie: ttyMUE0 - ttyMUE3
[ 6.396046] mxupcie: max. baud rate = 921600 bps.
[ 601.291421] mxupcie: mxupcie_write start
[ 601.291423] mxupcie: mxupcie_write fin
[ 601.291423] mxupcie: mxupcie_write start
[ 601.291424] mxupcie: mxupcie_write fin
[ 601.291499] mxupcie: mx_interrupt: irq = 30
[ 601.291546] mxupcie: mx_interrupt irq = 30 fin
[ 601.296675] mxupcie: mx_interrupt: irq = 30
[ 601.296723] mxupcie: mx_interrupt irq = 30 fin
[ 1982.704153] mxupcie: mx_interrupt: irq = 30
[ 1982.704158] mxupcie: mx_interrupt irq = 30 fin
[ 1982.704280] mxupcie: Unregister MOXA Smartio/Industio family serial driver
[ 3669.697013] mxupcie: MOXA Smartio/Industio family driver version 4.1
[ 3669.697032] mxupcie: Found MOXA CP-114EL series board(BusNo=1,DevNo=0)
[ 3669.697066] mxupcie: ttyMUE0 - ttyMUE3
[ 3669.697067] mxupcie: max. baud rate = 921600 bps.

# /usr/bin/msdiag

 == MOXA Smartio/Industio Family Multiport Board Status Utility(1.5) ==
- PCI -
        No PCI device found.

- PCIe -
        PCIe tty device major number= 31.
        PCIe callout device major number= 34.

        Board 1 : CP-114EL series (BusNo=1, DevNo=0)
                Port 1: 0xffffa69dc0c8f000, max. baud rate = 921600 bps.
                Port 2: 0xffffa69dc0c8f200, max. baud rate = 921600 bps.
                Port 3: 0xffffa69dc0c8f400, max. baud rate = 921600 bps.
                Port 4: 0xffffa69dc0c8fe00, max. baud rate = 921600 bps.

# ls /dev/ttyMUE*
/dev/ttyMUE0 /dev/ttyMUE1 /dev/ttyMUE2 /dev/ttyMUE3 /dev/ttyMUE32

# usr/bin/muestty -g /dev/ttyMUE0
muestty: /dev/ttyMUE0 is set to RS-232 mode.
muestty: /dev/ttyMUE0 none terminal resistor.

etc.
Additional InformationSource code is a bit hard to find at moxa, I used:

https://www.moxa.com/en/products/industrial-edge-connectivity/multiport-serial-boards/pcie-upci-pci-serial-cards/cp-114el-series

TagsNo tags attached.

Activities

toracat

2022-02-10 12:48

administrator   ~0008192

Acknowledged. I confirm the source code was released under GPLv2.

toracat

2022-02-10 21:28

administrator   ~0008193

The following packages have been released to the elrepo repository:

src:
kmod-moxa-mxupcie-4.1-2.el8.elrepo.src.rpm

x86_64:
kmod-moxa-mxupcie-4.1-2.el8.elrepo.x86_64.rpm
kmod-moxa-mxupcie-tools-4.1-2.el8.elrepo.x86_64.rpm

Minor adjustments were made to the spec file to match the current template file which includes a bug fix. The packages were built with the secureboot key and signed for publication.

Thank you for the contribution.

toracat

2022-07-14 18:27

administrator   ~0008475

Quoting a note from @oden on our IRC:

kmod-moxa-mxupcie isn't needed in RHEL 9 as the driver was added and enabled per default in RHEL 9. There's a RFE for the RHEL 8 kernel to enable it there. It was a mess. The driver was added upstream in the v4.x kernel but changed name in the v5.x kernel. So, RHEL 8 has the driver but not built. RHEL 9 has the driver built and enabled.

oden

2022-11-08 08:18

reporter   ~0008726

Needed to reopen in order to comment here.

It seems the package is obsolete in RHEL 8 as well. Initial tests shows the devices are recognized, but you need to add "8250.nr_uarts=XX" (XX = 2(?) + actual number of ports in the moxa card) when booting it (in /etc/default/grub)

* Wed Jul 20 2022 Jarod Wilson <jarod@redhat.com> [4.18.0-411.el8]
[...]
- serial: 8250_pci: rewrite pericom_do_set_divisor() (Myron Stowe) [2096364]
- serial: 8250_pci: Fix ACCES entries in pci_serial_quirks array (Myron Stowe) [2096364]
- serial: 8250_pci: Merge 8250_moxa to 8250_pci (Myron Stowe) [2096364]
- serial: 8250: Use dev_get_drvdata where possible (Myron Stowe) [2096364]
- serial: 8250: pericom_do_set_divisor can be static (Myron Stowe) [2096364]
- serial: 8250: Add support for higher baud rates to Pericom chips (Myron Stowe) [2096364]
- serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup() (Myron Stowe) [2096364]
- serial: 8250_pci: Fix number of ports for ACCES serial cards (Myron Stowe) [2096364]
- serial: 8250_pci: Replace custom code with pci_match_id() (Myron Stowe) [2096364]
[...]

The Intel patch that broke the kernel in 2020 is also fixed with this RHEL 8 kernel. (needed "pci=noioapicquirk") See:

https://access.redhat.com/solutions/6155782
https://lore.kernel.org/lkml/b2da25c8-121a-b241-c028-68e49bab0081@tik.uni-stuttgart.de/

Cheers.

Issue History

Date Modified Username Field Change
2022-02-10 07:54 oden New Issue
2022-02-10 07:54 oden Status new => assigned
2022-02-10 07:54 oden Assigned To => toracat
2022-02-10 12:48 toracat Note Added: 0008192
2022-02-10 21:28 toracat Note Added: 0008193
2022-02-15 17:41 toracat Status assigned => resolved
2022-02-15 17:41 toracat Resolution open => fixed
2022-07-14 18:27 toracat Note Added: 0008475
2022-11-08 08:18 oden Status resolved => assigned
2022-11-08 08:18 oden Resolution fixed => reopened
2022-11-08 08:18 oden Note Added: 0008726
2024-08-09 22:57 toracat Status assigned => closed
2024-08-09 22:57 toracat Resolution reopened => no change required