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 <2023> 2024 | 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 <2023> 2024 |
<== 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:
to:
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
|