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  <20142015  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re:Re: Failed to install ISR
From: 류수 <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Thu, 16 Jan 2014 17:17:58 +0900
Hi,

I checked with printf("%u \n", INUM_TO_IVEC(VXPCIINTOFFSET+irq)) and it returns 80.  
I'd like to show you some part of  target.ref of mv6100.

`Interrupt Number' | `Interrupt Source' | `Vector Definition' | `Interrupt Definition' | `Interrupt Handler'

70 | MV64360 WDNMI# Interrupt | GPP _IC_INT_NUM_6 |  | 
71 | BCM5421S PHY Interrupts | GPP_IC_INT_NUM_7 |  | 
72 | PCI Bus 1 PMC Slot 0 Agent Grant | GPP_IC_INT_NUM_8 |  | 
73 | PCI Bus 1 PMC Slot 0 Agent Request | GPP_IC_INT_NUM_9 |  | 
74 | PCI Bus 1 PMC Slot 1 Agent Grant | GPP_IC_INT_NUM_10 |  | 
75 | PCI Bus 1 PMC Slot 1 Agent Request | GPP_IC_INT_NUM_11 |  | 
76 | PCI Bus 1 PMC Slot 0 Grant | GPP_IC_INT_NUM_12 |  | 
77 | PCI Bus 1 PMC Slot 0 Request | GPP_IC_INT_NUM_13 |  | 
78 | PCI Bus 1 PMC Slot 1 Grant | GPP_IC_INT_NUM_14 |  | 
79 | PCI Bus 1 PMC Slot 1 Request | GPP_IC_INT_NUM_15 |  | 
80 | PCI Bus 1 Interrupts PCI-PMC0 INTA# (devices 4 & 5), PMC1 INTC# (devices 6 & 7) | GPP_IC_INT_NUM_16 | PCI_PMC0_INTA,PCI_PMC1_INTC
81 | PCI Bus 1 Interrupts PCI-PMC0 INTB# (devices 4 & 5), PMC1 I NTD# (devices 6 & 7) | GPP_IC_INT_NUM_17 | PCI_PMC0_INTB,PCI_PMC1_INTD
82 | PCI Bus 1 Interrupts PCI-PMC0 INTC# (devices 4 & 5), PMC1 INTA# (devices 6 & 7) | GPP_IC_INT_NUM_18 | PCI_PMC0_INTC,PCI_PMC1_INTA
83 | PCI Bus 1 Interrupts PCI-PMC0 INTD# (devices 4 & 5), PMC1 INTB# (devices 6 & 7) | GPP_IC_INT_NUM_19 | PCI_PMC0_INTD,PCI_PMC1_INTB
84 | PCI Bus 0 Interrupt PCI-VME INT0, Tempe LINT0# (device 5), PMCSpan INT 2# | GPP_IC_INT_NUM_20 | TEMPE_INT_LVL,PCI_VME_LINT0,PCI_BR_INT2 | sysTempeVmeIntr
85 | PCI Bus 0 Interrupt PCI-VME INT1, Tempe LINT1# (device 5), PMCSpan INT 3# | GPP_IC_INT_NUM_21 | PCI_VME_LINT1,PCI_BR_INT3
86 | PCI Bus 0 Interrupt PCI-VME INT2, Tempe LINT2# (device 5), PMCSpan INT 0# | GPP_IC_INT_NUM_22 | PCI_VME_LINT2,PCI_BR_INT0
87 | PCI Bus 0 Interrupt PCI-VME INT3, Tempe LINT3# (device 5), PMCSpan INT 1# | GPP_IC_INT_NUM_23 | PCI_VME_LINT3,PCI_BR_INT1

So I think it the interrupt number is consistent but I am not sure that it has enough space. 
also I have no idea how to check it.

 

------------ 원본 메일 내용 ------------
보낸 사람 : "Michael Davidsaver"<[email protected]>
받는 사람 : "류수" <[email protected]>
참      조 : [email protected]
메일 제목 : Re: Failed to install ISR
보낸 날짜 : Wed, 15 Jan 2014 21:50:25 -0500

Could you add some debug code to vxworksDevPCIConnectInterrupt() to
determine what number is actually passed to INUM_TO_IVEC() in
CallPciIntConnect()? Also, can you say if a PCI interrupt translation
table is provided for your BSP, and if so, is it is large enough to
include interrupt 80?

http://epics.hg.sourceforge.net/hgweb/epics/devlib2/file/8fabcca118fe/pciApp/os/vxWorks/devLibPCIOSD.c#l145

On 01/15/14 21:02, 류수 wrote:
> I changed devlib2 to the development version but it still give me same
> message.
>
>
>
>
> ------------ 원본 메일 내용 ------------
> *보낸 사람 :* "Michael Davidsaver"<[email protected]>
> *받는 사람 :* "류수" <[email protected]>
> *참 조 :* [email protected]
> *메일 제목 :* Re: Failed to install ISR
> *보낸 날짜 :* Wed, 15 Jan 2014 19:23:14 -0500
>
> On 01/15/2014 06:48 PM, 류수 wrote:
>>
>> I am using devlib2-2.4 and mrfioc2-2.0.1
>>
>
> Can you try with the development version of devlib2? There have
> been some changes since 2.4 which might be relevant to your problem.
>
> $ hg clone http://epics.hg.sourceforge.net/hgweb/epics/devlib2/
>
>
>>
>> ------------ 원본 메일 내용 ------------
>> *보낸 사람 :* "Michael Davidsaver"<[email protected]>
>> *받는 사람 :* [email protected]
>> *메일 제목 :* Re: Failed to install ISR
>> *보낸 날짜 :* Wed, 15 Jan 2014 10:47:56 -0500
>>
>> What versions of mrfioc2 and devlib2 are you using?
>>
>>
>> On 01/15/2014 10:25 AM, 류수 wrote:
>>> Hi,
>>>
>>> I am in trouble to initialize PMC-EVR using mrfioc2.
>>> The PMC-EVR is attached to MV6100 which runs vxWorks 6.9.
>>> The message says that "Failed to install ISR" so it seems
>>> that driver can't connect interrupt handler
>>> to the PCI interrupt, but I don't know how to fix.
>>> Would you help me out ?
>>>
>>> Regards,
>>> Soo
>>>
>>>
>>> cd "epics/modules/mrfioc2"
>>> value = 0 = 0x0
>>> ld < bin/vxWorks-ppc604/mrf.munch
>>> value = 38203712 = 0x246f140 = '@'
>>> dbLoadDatabase("dbd/mrf.dbd")
>>> value = 0 = 0x0
>>> mrf_registerRecordDeviceDriver(pdbbase)
>>> value = 0 = 0x0
>>> dbLoadRecords("db/iocAdminVxWorks.db", "IOC=mrftest")
>>> Can't register 'system' command -- no command interpreter
>>> available.
>>> value = 0 = 0x0
>>>
>>> mrmEvrSetupPCI("PMC1",2,4,0)
>>> Device PMC1 2:4.0
>>> Using IRQ 80
>>> PMC Out FP:3 FPUNIV:0 RB:0 IFP:1
>>> Failed to install ISR
>>> PMC1 shuting down... complete
>>> value = 0 = 0x0
>>> dbLoadRecords("db/evr-pmc-230.db","SYS=PMC, D=PMC:1,
>>> EVR=PMC1")FWVersion 0x1100000
>>> 6
>>> Found version 6
>>> Wvalue = 0 = 0x0
>>>
>>>
>>>
>>
>


Navigate by Date:
Prev: Re: Failed to install ISR Johnson, Andrew N.
Next: Sequencer Installation error Ganesh Jangir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Failed to install ISR Johnson, Andrew N.
Next: garbage in zero length arrays Mezger Anton Christian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·