Re: [comedi] Comedi Driver with LPCIe-7250 problem
Ian Abbott <[email protected]> Thu, 29 May 2025 13:45:05 +0100
| Newsgroups | gmane.linux.comedi |
|---|---|
| Organization | MEV Ltd. |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------YNCeQbqn2eP88JILJEDJIwqC Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable On 2025-05-29 12:08, Gus Cerda wrote: > This is the information requested: > > */41:00.0 1100: 144a:7250 (rev 01) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Subsystem: 144a:7000 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: fast devsel, IRQ 242, IOMMU group 56 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Memory at 92002000 (32-bit, non-prefetchable)= [size=3D256] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Memory at 92001000 (32-bit, non-prefetchable)= [size=3D256] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Memory at 92000000 (32-bit, non-prefetchable)= [size=3D256] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Capabilities: <access denied> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Kernel driver in use: adl_pci7250 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Kernel modules: adl_pci7250/* OK, one change is that all three PCI BARs (0, 1, and 2) are using memory=20 mapped I/O, but the driver is assuming that BAR 2 (the one that=20 contained the DIO registers) uses port I/O. There might be other changes=20 to the register layout. Looking at the Windows driver .INF file, I can see that this new card's=20 details where added during the last 10 years, and is tied specifically=20 to the LPCIe-7250. That .INF file shows that previous iterations of the=20 PCI-7250 family used the following IDs: 10b5:9050 subsystem 9999:7250 (very early, using PLX's vendor and device=20 ID and a dubious looking subvendor ID 0x9999) 144a:7250 subsystem 9999:7250 (newer, using ADLINK's vendor ID, but=20 still using a dodgy subvendor ID) 144a:7250 subsystem 144a:7250 (probably the newest, before the=20 redesigned LPCIe-7250) The Comedi driver will need changing to support the redesigned=20 LPCIe-7250, once we've figured out the register layout. Ian > > El jueves, 29 de mayo de 2025 a las 12:10:36 UTC+2, Ian Abbott escribi=C3= =B3: > > On 2025-05-29 10:49, Ian Abbott wrote: >> On 2025-05-29 08:03, Gus Cerda wrote: >>> It seems something has changed. >>> >> It looks like they have replaced the two PLX PCIe/PCI/local bus >> chips and the internal card logic with a Lattice FPGA doing >> everything. >> >> They might have changed the register layout. If they have changed >> the register layout but kept the same PCI vendor and PCI device >> ID, they should at least have changed the PCI subvendor ID or PCI >> subdevice ID, or possibly the PCI revision code, or PCI class >> code, or possibly changed the PCI BAR regions. In other words, >> they would need some way for their driver to differentiate it >> from the original board so can account for any changes to the >> register layout. > > Speaking of which, it would be useful to dump the PCI config for > this device: > > *$* lspci -v -n -d 0x144a:7250 > > > I don't currently have an older device to compare it to though! > > --=20 > -=3D( Ian Abbott<[email protected]> || MEV Ltd. is a company )=3D- > -=3D( registered in England & Wales. Regd. number: 02862268. )=3D- > -=3D( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=3D- > -=3D( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. ||www.mev.co.uk <http:/= /www.mev.co.uk> )=3D- > > --=20 > You received this message because you are subscribed to the Google=20 > Groups "Comedi: Linux Control and Measurement Device Interface" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to [email protected]. > To view this discussion visit=20 > https://groups.google.com/d/msgid/comedi_list/575b57b0-afc9-4d5e-b48c-e2d= f411770e7n%40googlegroups.com=20 > <https://groups.google.com/d/msgid/comedi_list/575b57b0-afc9-4d5e-b48c-e2= df411770e7n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>. --=20 -=3D( Ian Abbott<[email protected]> || MEV Ltd. is a company )=3D- -=3D( registered in England & Wales. Regd. number: 02862268. )=3D- -=3D( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=3D- -=3D( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. ||www.mev.co.uk )=3D- --=20 You received this message because you are subscribed to the Google Groups "= Comedi: Linux Control and Measurement Device Interface" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/comedi_list= /7ef6e3f0-519a-484f-9af6-2646eb409013%40mev.co.uk. --------------YNCeQbqn2eP88JILJEDJIwqC Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html> <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8= "> </head> <body> <div class=3D"moz-cite-prefix">On 2025-05-29 12:08, Gus Cerda wrote:<br= > </div> <blockquote type=3D"cite" cite=3D"mid:[email protected]"> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF= -8"> This is the information requested: <div><br> </div> <div><b><i>41:00.0 1100: 144a:7250 (rev 01)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Subsystem: 144a:7000<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: fast devsel, IRQ 242, IOMMU = group 56<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Memory at 92002000 (32-bit, non-pre= fetchable) [size=3D256]<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Memory at 92001000 (32-bit, non-pre= fetchable) [size=3D256]<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Memory at 92000000 (32-bit, non-pre= fetchable) [size=3D256]<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Capabilities: <access denied>= <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Kernel driver in use: adl_pci7250<b= r> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Kernel modules: adl_pci7250</i></b>= <br> </div> </blockquote> <br> OK, one change is that all three PCI BARs (0, 1, and 2) are using memory mapped I/O, but the driver is assuming that BAR 2 (the one that contained the DIO registers) uses port I/O. There might be other changes to the register layout.<br> <br> Looking at the Windows driver .INF file, I can see that this new card's details where added during the last 10 years, and is tied specifically to the LPCIe-7250. That .INF file shows that previous iterations of the PCI-7250 family used the following IDs:<br> <br> 10b5:9050 subsystem 9999:7250 (very early, using PLX's vendor and device ID and a dubious looking subvendor ID 0x9999)<br> 144a:7250 subsystem 9999:7250 (newer, using ADLINK's vendor ID, but still using a dodgy subvendor ID)<br> 144a:7250 subsystem 144a:7250 (probably the newest, before the redesigned LPCIe-7250)<br> <br> The Comedi driver will need changing to support the redesigned LPCIe-7250, once we've figured out the register layout.<br> <br> Ian<br> <br> <blockquote type=3D"cite" cite=3D"mid:[email protected]"> <div><br> </div> <div class=3D"gmail_quote"> <div dir=3D"auto" class=3D"gmail_attr">El jueves, 29 de mayo de 202= 5 a las 12:10:36 UTC+2, Ian Abbott escribi=C3=B3:<br> </div> <blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); pa= dding-left: 1ex;"> <div> <div>On 2025-05-29 10:49, Ian Abbott wrote:<br> </div> </div> <div> <blockquote type=3D"cite"> <div>On 2025-05-29 08:03, Gus Cerda wrote:<br> </div> <blockquote type=3D"cite"> It seems something has changed.<br= > <div><br> </div> </blockquote> </blockquote> </div> <div> <blockquote type=3D"cite"> It looks like they have replaced the two PLX PCIe/PCI/local bus chips and the internal card logic with a Lattice FPGA doing everything.<br> <br> They might have changed the register layout. If they have changed the register layout but kept the same PCI vendor and PCI device ID, they should at least have changed the PCI subvendor ID or PCI subdevice ID, or possibly the PCI revision code, or PCI class code, or possibly changed the PCI BAR regions. In other words, they would need some way for their driver to differentiate it from the original board so can account for any changes to the register layout.<br> </blockquote> </div> <div> <br> Speaking of which, it would be useful to dump the PCI config for this device:<br> <br> <pre><b>$</b> lspci -v -n -d 0x144a:7250</pre> <br> I don't currently have an older device to compare it to though!</div> <div><br> <pre cols=3D"72">--=20 -=3D( Ian Abbott <a href=3D"" data-email-masked=3D"" rel=3D"nofollow" moz-do-not-send=3D"true"><[email protected]></a> || MEV Lt= d. is a company )=3D- -=3D( registered in England & Wales. Regd. number: 02862268. )=3D- -=3D( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=3D- -=3D( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || <a href=3D"http://www.mev.co.uk" target=3D"_blank" rel=3D"nofollow= " data-saferedirecturl=3D"https://www.google.com/url?hl=3Des&q=3Dhttp://w= ww.mev.co.uk&source=3Dgmail&ust=3D1748602850061000&usg=3DAOvVaw= 3yA08C1FjqZjLhwXmrMmMy" moz-do-not-send=3D"true">www.mev.co.uk</a> )=3D-</pre> </div> </blockquote> </div> -- <br> You received this message because you are subscribed to the Google Groups "Comedi: Linux Control and Measurement Device Interface" group.<br> To unsubscribe from this group and stop receiving emails from it, send an email to <a href=3D"mailto:[email protected]" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">comedi_lis= [email protected]</a>.<br> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/comedi_list/575b57b0-afc9-4d5e-b4= 8c-e2df411770e7n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfoo= ter" moz-do-not-send=3D"true">https://groups.google.com/d/msgid/comedi_l= ist/575b57b0-afc9-4d5e-b48c-e2df411770e7n%40googlegroups.com</a>.<br> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 -=3D( Ian Abbott <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:abbotti@= mev.co.uk"><[email protected]></a> || MEV Ltd. is a company )=3D- -=3D( registered in England & Wales. Regd. number: 02862268. )=3D- -=3D( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=3D- -=3D( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || <a class=3D"moz-txt-link-a= bbreviated" href=3D"http://www.mev.co.uk">www.mev.co.uk</a> )=3D-</pre> </body> </html> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Comedi: Linux Control and Measurement Device Interface" group.<br= /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">comedi_= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= comedi_list/7ef6e3f0-519a-484f-9af6-2646eb409013%40mev.co.uk?utm_medium=3De= mail&utm_source=3Dfooter">https://groups.google.com/d/msgid/comedi_list/7ef= 6e3f0-519a-484f-9af6-2646eb409013%40mev.co.uk</a>.<br /> --------------YNCeQbqn2eP88JILJEDJIwqC--