2 x Parallel Controller - equal IRQ

More
12 Jun 2023 16:44 #273402 by Jensner
hi all,

after i worked over a year with my Milling machine with linuxCNC, no i will do an Upgrade and like to install a laser-Module.
A year ago, when i installed my Computer (DELL Optiplex 790) i installed 2 of SUNIX Co., Ltd. Multiport serial controller.
Together with my StepMax4 Box i always used only one of this controller and every works fine.

Now i have to use both of this controller cards and it woun`t work.
I tested some things (I do not have much knowlede about Ubuntu)
If i do the "lspci -v" i get the following information:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
    Subsystem: Dell 2nd Generation Core Processor Family DRAM Controller
    Flags: bus master, fast devsel, latency 0
    Capabilities: <access denied>
    Kernel driver in use: snb_uncore

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    I/O behind bridge: 00004000-00004fff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Dell 2nd Generation Core Processor Family Integrated Graphics Controller
    Flags: bus master, fast devsel, latency 0, IRQ 26
    Memory at e0c00000 (64-bit, non-prefetchable) [size=4M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 5000 [size=64]
    [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
    Subsystem: Dell 6 Series/C200 Series Chipset Family MEI Controller
    Flags: bus master, fast devsel, latency 0, IRQ 27
    Memory at e1ab0000 (64-bit, non-prefetchable) [size=16]
    Capabilities: <access denied>
    Kernel driver in use: mei_me
    Kernel modules: mei_me

00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
    Subsystem: Dell 82579LM Gigabit Network Connection (Lewisville)
    Flags: bus master, fast devsel, latency 0, IRQ 24
    Memory at e1a00000 (32-bit, non-prefetchable) [size=128K]
    Memory at e1a80000 (32-bit, non-prefetchable) [size=4K]
    I/O ports at 5080 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: e1000e
    Kernel modules: e1000e

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI])
    Subsystem: Dell 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
    Flags: bus master, medium devsel, latency 0, IRQ 16
    Memory at e1a70000 (32-bit, non-prefetchable) [size=1K]
    Capabilities: <access denied>
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
    Subsystem: Dell 6 Series/C200 Series Chipset Family High Definition Audio Controller
    Flags: bus master, fast devsel, latency 0, IRQ 28
    Memory at e1a60000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 18
    Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
    I/O behind bridge: 00003000-00003fff
    Memory behind bridge: e1000000-e19fffff
    Prefetchable memory behind bridge: 00000000e0000000-00000000e09fffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
    I/O behind bridge: 00002000-00002fff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI])
    Subsystem: Dell 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
    Flags: bus master, medium devsel, latency 0, IRQ 17
    Memory at e1a50000 (32-bit, non-prefetchable) [size=1K]
    Capabilities: <access denied>
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) (prog-if 01 [Subtractive decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
    Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation Q65 Express Chipset Family LPC Controller (rev 04)
    Subsystem: Dell Q65 Express Chipset LPC Controller
    Flags: bus master, medium devsel, latency 0
    Capabilities: <access denied>
    Kernel driver in use: lpc_ich
    Kernel modules: lpc_ich

00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 04) (prog-if 01 [AHCI 1.0])
    Subsystem: Dell 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 25
    I/O ports at 50d0 [size=8]
    I/O ports at 50c0 [size=4]
    I/O ports at 50b0 [size=8]
    I/O ports at 50a0 [size=4]
    I/O ports at 5060 [size=32]
    Memory at e1a40000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: <access denied>
    Kernel driver in use: ahci
    Kernel modules: ahci

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
    Subsystem: Dell 6 Series/C200 Series Chipset Family SMBus Controller
    Flags: medium devsel, IRQ 18
    Memory at e1a30000 (64-bit, non-prefetchable) [size=256]
    I/O ports at 5040 [size=32]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801

01:00.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
    Subsystem: SUNIX Co., Ltd. Multiport serial controller
    Flags: bus master, fast devsel, latency 0, IRQ 11
    I/O ports at 4030 [size=8]
    I/O ports at 4020 [size=8]
    I/O ports at 4000 [size=32]
    Capabilities: <access denied>

04:00.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
    Subsystem: SUNIX Co., Ltd. Multiport serial controller
    Flags: bus master, fast devsel, latency 0, IRQ 11
    I/O ports at 2030 [size=8]
    I/O ports at 2020 [size=8]
    I/O ports at 2000 [size=32]
    Capabilities: <access denied>

So at the end these 2 Parallel controller uses the same IRQ.

If i test "halrun -I -f ptest.hal" (after I  updates the i/o Port-Information)
I can, for example switch an relais, but if i try to work with both at the same time, it woun`t work.

If I update the ptest.hal to work with both i get an error:
No parport registered at 0x2030. This is not always an error. Continuing.
No parport registered at 0xffff. This is not always an error. Continuing.
the error about 0x2030 i get allways, but it will work.
But i dont know what is about 0xffff..

Ist there an option to change the IRQ manualy?

Many thanks and best regards
Jens

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 17:16 #273404 by PCW
LinuxCNC does not use parallel port interrupts so that does not matter.

Do you have both parallel port addresses (0x2030 and 0x4030) specified in your hal file?
The following user(s) said Thank You: Jensner

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 17:19 #273405 by Jensner
Yes, i did.
But "0x2030 and 1x4030"
I hope this was correct...?

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 17:23 #273406 by PCW
No, its 0x2030,and 0x4030

(0x14030 would be interpreted as the hex number 14030 and then bound by the driver to 0xFFFF as that's the largest I/O port address possible on a PC)
The following user(s) said Thank You: Jensner

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 17:29 - 12 Jun 2023 17:30 #273407 by Jensner
Ahh... thats the first error..
Therefor the error 0xFFFF...
And how do i address the ports at the second card in the .hal?
Last edit: 12 Jun 2023 17:30 by Jensner.

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 17:44 #273408 by PCW
parport.1.xxxxx

man hal_parport
The following user(s) said Thank You: Jensner

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 18:25 #273410 by Jensner
OK, so i address card 1 with parport.0.... and card 2 with parport.1....
Therefore i thought, i had to write this (array) 0 and 1 on top.

Do you have an idea why, except this, i get an error message on starting LinuxCNC.
"No parport registered at 0x2030" (like allways before, but it works anyway)
Same now with 0x4030

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 18:29 #273411 by PCW
The message means there is no Linux driver for that parallel port

(This is not normally required as LinuxCNC directly accesses the hardware)
The following user(s) said Thank You: Jensner

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 18:50 #273412 by Jensner
Lerned a lot this evening ;o)
Many thanks to you.
By the way my config works fine now and the second card now switches correctly the Relays for the Lasermodul and the air pumps.

In Order to protect my Parallelport-Card I bought a little MOSFET PWM-Board. If this will arrive, i will complete my additional Laser-Setup and see how it works..

Many thanks to you.
Wish you a good evening.
Best regards Jens
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
12 Jun 2023 19:01 #273413 by PCW
Glad it's up and running.
The following user(s) said Thank You: Jensner

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.119 seconds
Powered by Kunena Forum