how to make pci/pcie parallell cards working
| Newsgroups | gmane.linux.parport |
|---|---|
| Message-ID | <[email protected]> |
I have two pci/pcie parport cards I would like to get operational.
Do anyone know how to get any of the two cards mentioned in the
attached file parports_pci.log up an running ?
///
If I do:
# modprobe parport_pc io=0xad00,0x8d00 irq=17,3
I get this in the logs:
May 20 16:23:58 angelit user.info kernel: [ 7202.060012] parport0: PC-style at 0xad00, irq 17 [PCSPP,TRISTATE,EPP]
May 20 16:23:58 angelit user.err kernel: [ 7202.060020] genirq: Flags mismatch irq 17. 00000000 (parport0) vs. 00000080 (ehci_hcd:usb1)
May 20 16:23:58 angelit user.warn kernel: [ 7202.060021] parport0: irq 17 in use, resorting to polled operation
May 20 16:23:58 angelit user.info kernel: [ 7202.150743] parport1: PC-style at 0x8d00, irq 3 [PCSPP]
But I still don't see the driver in lspci output (for Titan):
# lspci -ks 05:00.2; lspci -ks 07:06.1
05:00.2 Parallel controller: MosChip Semiconductor Technology Ltd. PCIe 9912 Multi-I/O Controller
Subsystem: Device a000:2000
Kernel modules: parport_serial
07:06.1 Parallel controller: Titan Electronics Inc VScom 010H 1 port parallel adaptor
Subsystem: Oxford Semiconductor Ltd Device 0000
and there is no write support for neither:
# echo -n 1 > /dev/parport0
bash: echo: write error: Invalid argument
# echo -n 1 > /dev/parport1
bash: echo: write error: Invalid argument
i.e. error 22 (EINVAL), as if there isn't any write routine
in the driver or no driver.
# lsmod | grep parport
parport_serial 7649 0
parport_pc 23632 1 parport_serial
parport 32129 2 parport_pc,ppdev
# lsl /dev/parport[01]
crw-rw---- 1 root users 99, 0 Jan 18 2016 /dev/parport0
crw-rw---- 1 root lp 99, 1 Jan 18 2016 /dev/parport1
Regards,
/Karl Hammar
_______________________________________________
Linux-parport mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-parport
parports_pci.log
(text/plain, 3 KB)
05:00.2 Parallel controller [0701]: MosChip Semiconductor Technology Ltd. PCIe 9912 Multi-I/O Controller [9710:9912] (prog-if 03 [IEEE1284]) Subsystem: Device [a000:2000] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin C routed to IRQ 17 Region 0: I/O ports at ad00 [size=8] Region 1: I/O ports at ac00 [size=8] Region 2: Memory at fd8fb000 (32-bit, non-prefetchable) [size=4K] Region 5: Memory at fd8fa000 (32-bit, non-prefetchable) [size=4K] Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 Capabilities: [78] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot+,D3cold+) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [80] Express (v1) Legacy Endpoint, MSI 00 DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <2us ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported- RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 512 bytes DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend- LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <64ns, L1 unlimited ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk- ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt- Capabilities: [100 v1] Advanced Error Reporting UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol- CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+ CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+ AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn- MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap- HeaderLog: 00000000 00000000 00000000 00000000 Kernel driver in use: parport_serial Kernel modules: parport_serial 07:06.1 0701: 14d2:a000 (prog-if 01 [BiDir]) Subsystem: 1415:0000 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 3 Region 0: I/O ports at 8d00 [size=8] Region 1: I/O ports at 8c00 [size=8] Region 2: I/O ports at 8b00 [size=32] Region 3: Memory at fd6fd000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 1 Flags: PMEClk- DSI- D1- D2+ AuxCurrent=0mA PME(D0+,D1-,D2+,D3hot+,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-