parport does not work in diection "in"

More
07 Oct 2011 16:58 #13761 by jmelson
ArcEye wrote:


Thirdly, this C program was written by Jeff or Jon or possibly Chris, whilst it should not be necessary to force the card into EPP mode to get it to work in input mode, I seem to recall that only after I had compiled and used the program, did I get the card to work.

//cause standard PCI parallel port card to go to EPP mode

That code is effectively equivalent to my pcisetup program, which is on my web site.
It is not the version written by me, however. But, it assumes the ECR register is at
base address + 0x402, which we have pretty well established is not the case for
your board. I think we need to make up a new version of this program which
allows you to type in the ECR address directly, and maybe gives some diagnostic
results afterward.

Finally, try moving the card to another slot, preferably swapping it with another card.
The computer allocates the port addresses and interrupts dynamically and sometimes something as simple as this works.
I can't figure out why your addresses are all so close to each other, I have always had at least a 0x200 separation between port addresses in the cards I have tried in the past.

That may help, especially if it causes the parport board to be enumerated before/after some
other PCI card. If there is no other PCI card in the system, it is less likely to help.

Jon

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

More
08 Oct 2011 01:16 - 08 Oct 2011 01:25 #13773 by grandixximo
Maybe i should have told you guys before, my PC it's not a normal PC, it's a Mini-ITX, i have only one PCI, maybe that is why the address are so near??

The 0x378 parport does not work as "in" even if set as bi-directional or EPP in the bios

after running parpot-pc.ko

on lspci-v i get

04:00.0 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 1870
I/O ports at 1000
I/O ports at 1460
I/O ports at 1468
I/O ports at 14d0
I/O ports at 90b00000
Kernel modules: parport_pc

04:00.1 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 1010
I/O ports at 1020
I/O ports at 1470
I/O ports at 1478
I/O ports at <ignored>
I/O ports at 1030
Kernel modules: parport_pc

04:00.2 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 1040
I/O ports at 1050
I/O ports at 1480
I/O ports at 1488
I/O ports at 1060
I/O ports at 90b00010
Kernel modules: parport_pc

04:00.3 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 1070
I/O ports at 1080
I/O ports at 1490
I/O ports at 1498
I/O ports at <ignored>
I/O ports at 1090
Kernel modules: parport_pc

04:00.4 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 10a0
I/O ports at 10b0
I/O ports at 14a0
I/O ports at 14a8
I/O ports at 10c0
I/O ports at 90b00020
Kernel modules: parport_pc

04:00.5 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 10d0
I/O ports at 10e0
I/O ports at 14b0
I/O ports at 14b8
I/O ports at <ignored>
I/O ports at 10f0
Kernel modules: parport_pc

04:00.6 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 1400
I/O ports at 1410
I/O ports at 14c0
I/O ports at 14c8
I/O ports at 1420
I/O ports at 90b00030
Kernel modules: parport_pc

04:00.7 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic Device 0020
Flags: medium devsel
I/O ports at 1430
I/O ports at 1440
I/O ports at 14e0
I/O ports at 14e8
I/O ports at <ignored>
I/O ports at 1450
Kernel modules: parport_pc


and nothing works no more
Last edit: 08 Oct 2011 01:25 by grandixximo.

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

More
08 Oct 2011 05:02 #13777 by jmelson
grandixximo wrote:

Maybe i should have told you guys before, my PC it's not a normal PC, it's a Mini-ITX, i have only one PCI, maybe that is why the address are so near??

The 0x378 parport does not work as "in" even if set as bi-directional or EPP in the bios

after running parpot-pc.ko

on lspci-v i get

04:00.0 Class 9815: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
. . . .


and nothing works no more

AIeeeeee, WAYY too many parallel ports, I lost count. One of the terrible curses of the PC architecture
is the very limited I/O space and the insanely limited number of interrupt vectors. I remember the days
of the PDP-11, where you had the entire memory space available for I/O devices, and room for
almost 1000 interrupt vectors, when you needed to do special systems with a lot of I/O.

Do you REALLY have that many ports, or has the BIOS gone crazy? You say only one PCI
port, so the BIOS was confused, or else the memory area where it writes this info
must have gotten scrambled by the parport-pc (or other) module. That is just a region in
very low memory where it leaves a snapshot of the PnP configuration before booting the
OS.

Jon

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

More
08 Oct 2011 06:21 - 08 Oct 2011 06:22 #13778 by grandixximo
i wrote this as suggested that it may help

/sbin/insmod /lib/modules/CORRECT_KERNEL_HERE-rtai/kernel/drivers/parport/parport_pc.ko

and then i got that strange many ports in lspci -vv

but everything returned to normal once i restarted the PC.

normal meaning i cannot use port 378 nor 1030 as IN...

I cannot possibly have that many parport physically on my PC, as you say there are not enough I/O :)
Last edit: 08 Oct 2011 06:22 by grandixximo.

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

More
08 Oct 2011 23:55 #13787 by andypugh
grandixximo wrote:

I cannot possibly have that many parport physically on my PC, as you say there are not enough I/O :)


lspci doesn't show motherboard parallel ports normally. Sometimes
cat /proc/ioports
tells you more.

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

More
29 Nov 2011 18:33 #15193 by RayJr
Have you come to any resolution on the port direction issues?


Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein

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

Time to create page: 0.138 seconds
Powered by Kunena Forum