EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: mrfioc2/devlib2 PCI device resource file error
From: Steve Kinder - STFC UKRI via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk <tech-talk at aps.anl.gov>
Date: Tue, 11 Jul 2023 11:20:31 +0000
I am moving from use of:
  • PSI mrfioc2 3-0-5 and devlib2 2-10
to:
  • PSI mrfioc2 3-1-0 and devlib2 2-11
On starting the IOC I now get an extra error, as in the permission denied below:

mrmEvrSetupPCI("EVR-01", 0, 0x81, 0, 0)
Checking if card EVR-01 is already in use
Probing for PCI device (domain=0, bus=129, device=0, function=0
Device EVR-01  81:0.0
Using IRQ 37
Failed to open resource file for PCI device 0000:81:00.0: Permission denied
Setting magic LE number!
Firmware version register: 0x17060207
Firmware version: 0x00020706
Minimal supported firmware version for Event receiver PCIe with delay compensation support is 0x20706
Found EVR-01:SFP0 SFP transceiver
Initialized EVR-01:Sequencer
Out FP:0 FPUNIV:16 RB:0 IFP:0 GPIO:0
Initialized EVR-01 data buffer type: 230
Initialized EVR-01 data buffer type: 300

Having investigated the mrfioc2/devlib2 code a little this message seems to come from open_res() in the 2-11 devlib2 code pciApp/os/Linux/devLibPCIOSD.c. There is a print at line 389 that didn't exist in the 2-10 version. I believe this failure to open /sys/bus/pci/devices/0000:81:00.0/resource0 was always happening but I was unaware. Should I be concerned about this and change the permissions on this file at boot or just ignore it?

Thanks

Steve


Navigate by Date:
Prev: Re: Question on Accessing Data in Custom PV Structures Timo Korhonen via Tech-talk
Next: Re: Question on Accessing Data in Custom PV Structures Maren Purves via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: =?gb18030?b?u9i4tKO6UkU6IEEgcXVlc3Rpb24gb24gbW9kYnVz?= =?gb18030?b?QW1iZXI=?= via Tech-talk
Next: Suspended thread Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 13 Jul 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·