Forum Topic - PCI Express: Page 4 of 5 (102 Items)
   
Re: PCI Express  
Hugh,

Hugh Brown wrote:
> Armin,
>
> In your previous e-mail, the device doesn't have a capability 5 as it 
> doesn't support MSI.

OK ... I have to check this with the manufacturer of the board.

> The capabilities structure is a linked list, so you cannot miss a 
> capability.
>
> When the local APIC is enabled it gives you 8 more IRQ interrupts and 
> we number these from 16 to 23, so the interrupt that you see below is 
> not an MSI interrupt, but a normal IRQ. We number MSI/X interrupts 
> from 0x100 upwards, but the PCI interrupt line register only contains 
> 8 bits, so you will see the interrupt line register set to 0x00 for 
> interrupt 0x100 and to 0x01 for interrupt 0x101 etc. The correct 
> interrupt is sent to the driver in the interrupt attach structure as 
> this value is 32-bits.

Many thanks for the clarification.

Regards

--Armin

>
> Hugh.
>
> -- 
> Hugh Brown
> QNX Software Systems Limited
> 1001 Farrar Rd.,
> Ottawa. ON. K2K 0B3.
> Telephone: 613-591-0931
>
>
>
> From: Armin Steinhoff <community-noreply@qnx.com 
> <mailto:community-noreply@qnx.com>>;
> Reply-To: "general-community@community.qnx.com 
> <mailto:general-community@community.qnx.com>;" 
> <general-community@community.qnx.com 
> <mailto:general-community@community.qnx.com>>;
> Date: Wednesday, 4 July, 2012 6:56 PM
> To: "general-community@community.qnx.com 
> <mailto:general-community@community.qnx.com>;" 
> <general-community@community.qnx.com 
> <mailto:general-community@community.qnx.com>>;
> Cc: Info System - IS Notifications <is-notifications@qnx.com 
> <mailto:is-notifications@qnx.com>>, Info System - IS Notifications 
> <is-notifications@qnx.com <mailto:is-notifications@qnx.com>>, Info 
> System - IS Notifications <is-notifications@qnx.com 
> <mailto:is-notifications@qnx.com>>, Info System - IS Notifications 
> <is-notifications@qnx.com <mailto:is-notifications@qnx.com>>;
> Subject: Re: PCI Express
>
> Hugh,
>
> I have hier the same PCI Express board placed in an other slot. There 
> are not the MSI capabilitie set,
> but a MSI interrupt of 18 has been assigned. The crazy point is: the 
> board is working in default mode with that IRQ!
>
> 09:04.0 Unassigned class [ff00]: PLX Technology, Inc. Device 86e1 (rev ac)
>     Subsystem: SOFTING GmBH Device 002b
>     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-
>     Latency: 32, Cache Line Size: 64 bytes
>     Interrupt: pin A routed to *IRQ 18*
>     Region 0: Memory at 55480000 (32-bit, non-prefetchable)
>     Region 1: I/O ports at 3000
>     Region 2: Memory at 55400000 (32-bit, non-prefetchable)
>     Capabilities: [40] Power Management version 0 *<<<<=== no MSI caps !*
>         Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>         Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>     Capabilities: [48] CompactPCI hot-swap <?> *<<<=== wrong!*
>     Capabilities: [4c] Vital Product Data
>         Not readable
> 00: b5 10 e1 86 17 00 b0 02 ac 00 00 ff 10 20 00 00 <<< dump of the 
> config space
> 10: 00 00 48 55 01 30 00 00 00 00 40 55 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 a0 14 2b 00
> 30: 00 00 00 00 40 00 00 00 00 00 00 00 *12* 01 00 00
>
> Regards
>
> --Armin
>
>
>
> Hugh Brown wrote:
>> If you run 'pci -v' you will see all of the capabilities for all of 
>> the...
View Full Message
Attachment: HTML sf-attachment-mime2838 13.99 KB
RE: PCI Express  
In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
PCI_USE_MSIX.

Thanks & Regards
 Srilakshmi
 

-----Original Message-----
From: Hugh Brown [mailto:community-noreply@qnx.com] 
Sent: Wednesday, July 04, 2012 8:59 PM
To: general-community@community.qnx.com
Subject: Re: PCI Express

Armin,

These functions are part of the pci_attach_device() function call. In the
flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
which interrupt type you want to use. If you use these flags and the
device doesn't support MSI or MSIX, the PCI server will default to IRQ
interrupts.

Hugh.

-- 
Hugh Brown
QNX Software Systems Limited
1001 Farrar Rd.,
Ottawa. ON. K2K 0B3.
Telephone: 613-591-0931







On 12-07-04 11:42 AM, "Armin Steinhoff" <community-noreply@qnx.com> wrote:

>Hugh,
>
>I'm missing PCI related calls like pci_enable_msi or pci_disable_msi
>a.s.o.
>
>With such calls it would be possible to initialize the PCIe devices for
>MSI operation.
>(Please see the attached HOWTO ...)
>
>Do we have a chance to get such routines in acceptable time frame ??
>
>Regards
>
>--Armin
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post94028
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com





_______________________________________________

General
http://community.qnx.com/sf/go/post94029
To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12

Re: PCI Express  
Hi,

you have to use QNX 6.5.0 SP1

--Armin


srilakshmi wrote:
> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
> PCI_USE_MSIX.
>
> Thanks & Regards
>   Srilakshmi
>   
>
> -----Original Message-----
> From: Hugh Brown [mailto:community-noreply@qnx.com]
> Sent: Wednesday, July 04, 2012 8:59 PM
> To: general-community@community.qnx.com
> Subject: Re: PCI Express
>
> Armin,
>
> These functions are part of the pci_attach_device() function call. In the
> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
> which interrupt type you want to use. If you use these flags and the
> device doesn't support MSI or MSIX, the PCI server will default to IRQ
> interrupts.
>
> Hugh.
>


RE: PCI Express  
I don't know SP1
Would you give me the information regarding SP1?

Thanks & Regards
 Srilakshmi

-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 12:45 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


Hi,

you have to use QNX 6.5.0 SP1

--Armin


srilakshmi wrote:
> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
> PCI_USE_MSIX.
>
> Thanks & Regards
>   Srilakshmi
>   
>
> -----Original Message-----
> From: Hugh Brown [mailto:community-noreply@qnx.com]
> Sent: Wednesday, July 04, 2012 8:59 PM
> To: general-community@community.qnx.com
> Subject: Re: PCI Express
>
> Armin,
>
> These functions are part of the pci_attach_device() function call. In the
> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
> which interrupt type you want to use. If you use these flags and the
> device doesn't support MSI or MSIX, the PCI server will default to IRQ
> interrupts.
>
> Hugh.
>






_______________________________________________

General
http://community.qnx.com/sf/go/post94042
To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12

RE: PCI Express  
We are using QNX 6.5.0

Thanks & Regards
 Srilakshmi

-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 12:45 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


Hi,

you have to use QNX 6.5.0 SP1

--Armin


srilakshmi wrote:
> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
> PCI_USE_MSIX.
>
> Thanks & Regards
>   Srilakshmi
>   
>
> -----Original Message-----
> From: Hugh Brown [mailto:community-noreply@qnx.com]
> Sent: Wednesday, July 04, 2012 8:59 PM
> To: general-community@community.qnx.com
> Subject: Re: PCI Express
>
> Armin,
>
> These functions are part of the pci_attach_device() function call. In the
> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
> which interrupt type you want to use. If you use these flags and the
> device doesn't support MSI or MSIX, the PCI server will default to IRQ
> interrupts.
>
> Hugh.
>






_______________________________________________

General
http://community.qnx.com/sf/go/post94042
To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12

Re: PCI Express  
SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues. 
You can download it from the QNX homepage.
Or ask your distributor for the related CDs ..

--Armin

srilakshmi wrote:
> We are using QNX 6.5.0
>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 12:45 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Hi,
>
> you have to use QNX 6.5.0 SP1
>
> --Armin
>
>
> srilakshmi wrote:
>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>> PCI_USE_MSIX.
>>
>> Thanks & Regards
>>    Srilakshmi
>>    
>>
>> -----Original Message-----
>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>> Sent: Wednesday, July 04, 2012 8:59 PM
>> To: general-community@community.qnx.com
>> Subject: Re: PCI Express
>>
>> Armin,
>>
>> These functions are part of the pci_attach_device() function call. In the
>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>> which interrupt type you want to use. If you use these flags and the
>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>> interrupts.
>>
>> Hugh.
>>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94042
> To cancel your subscription to this discussion, please e-mail
> general-community-unsubscribe@community.qnx.com
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94044
> To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com
>


RE: PCI Express  
Do you send me any sample code for generating MSI in QNX(to Master FPGA)?

Thanks & Regards
  Srilakshmi
-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 3:00 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues. 
You can download it from the QNX homepage.
Or ask your distributor for the related CDs ..

--Armin

srilakshmi wrote:
> We are using QNX 6.5.0
>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 12:45 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Hi,
>
> you have to use QNX 6.5.0 SP1
>
> --Armin
>
>
> srilakshmi wrote:
>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>> PCI_USE_MSIX.
>>
>> Thanks & Regards
>>    Srilakshmi
>>    
>>
>> -----Original Message-----
>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>> Sent: Wednesday, July 04, 2012 8:59 PM
>> To: general-community@community.qnx.com
>> Subject: Re: PCI Express
>>
>> Armin,
>>
>> These functions are part of the pci_attach_device() function call. In the
>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>> which interrupt type you want to use. If you use these flags and the
>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>> interrupts.
>>
>> Hugh.
>>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94042
> To cancel your subscription to this discussion, please e-mail
> general-community-unsubscribe@community.qnx.com
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94044
> To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com
>






_______________________________________________

General
http://community.qnx.com/sf/go/post94046
To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12

Re: PCI Express  
You don't generate an MSI to the FPGA, the FPGA will generate interrupts
to the processor.



On 12-07-05 8:29 AM, "srilakshmi" <community-noreply@qnx.com> wrote:

>Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>
>Thanks & Regards
>  Srilakshmi
>-----Original Message-----
>From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>Sent: Thursday, July 05, 2012 3:00 PM
>To: general-community@community.qnx.com
>Cc: srilakshmi; srilakshmi
>Subject: Re: PCI Express
>
>
>SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
>You can download it from the QNX homepage.
>Or ask your distributor for the related CDs ..
>
>--Armin
>
>srilakshmi wrote:
>> We are using QNX 6.5.0
>>
>> Thanks & Regards
>>   Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 12:45 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Hi,
>>
>> you have to use QNX 6.5.0 SP1
>>
>> --Armin
>>
>>
>> srilakshmi wrote:
>>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>>> PCI_USE_MSIX.
>>>
>>> Thanks & Regards
>>>    Srilakshmi
>>>    
>>>
>>> -----Original Message-----
>>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>>> Sent: Wednesday, July 04, 2012 8:59 PM
>>> To: general-community@community.qnx.com
>>> Subject: Re: PCI Express
>>>
>>> Armin,
>>>
>>> These functions are part of the pci_attach_device() function call. In
>>>the
>>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>>> which interrupt type you want to use. If you use these flags and the
>>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>>> interrupts.
>>>
>>> Hugh.
>>>
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post94042
>> To cancel your subscription to this discussion, please e-mail
>> general-community-unsubscribe@community.qnx.com
>>
>> -----
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date:
>>07/04/12
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post94044
>> To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com
>>
>
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post94046
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com
>
>-----
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post94060
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

RE: PCI Express  
Yes, you are correct FPGA will generate interrupt to the processor.
Before and after generating FPGA interrupt to the processor I need to send
some message to FPGA.

Thanks & Regards
 Srilakshmi

-----Original Message-----
From: Hugh Brown [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 6:03 PM
To: general-community@community.qnx.com
Subject: Re: PCI Express

You don't generate an MSI to the FPGA, the FPGA will generate interrupts
to the processor.



On 12-07-05 8:29 AM, "srilakshmi" <community-noreply@qnx.com> wrote:

>Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>
>Thanks & Regards
>  Srilakshmi
>-----Original Message-----
>From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>Sent: Thursday, July 05, 2012 3:00 PM
>To: general-community@community.qnx.com
>Cc: srilakshmi; srilakshmi
>Subject: Re: PCI Express
>
>
>SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
>You can download it from the QNX homepage.
>Or ask your distributor for the related CDs ..
>
>--Armin
>
>srilakshmi wrote:
>> We are using QNX 6.5.0
>>
>> Thanks & Regards
>>   Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 12:45 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Hi,
>>
>> you have to use QNX 6.5.0 SP1
>>
>> --Armin
>>
>>
>> srilakshmi wrote:
>>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>>> PCI_USE_MSIX.
>>>
>>> Thanks & Regards
>>>    Srilakshmi
>>>    
>>>
>>> -----Original Message-----
>>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>>> Sent: Wednesday, July 04, 2012 8:59 PM
>>> To: general-community@community.qnx.com
>>> Subject: Re: PCI Express
>>>
>>> Armin,
>>>
>>> These functions are part of the pci_attach_device() function call. In
>>>the
>>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>>> which interrupt type you want to use. If you use these flags and the
>>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>>> interrupts.
>>>
>>> Hugh.
>>>
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post94042
>> To cancel your subscription to this discussion, please e-mail
>> general-community-unsubscribe@community.qnx.com
>>
>> -----
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date:
>>07/04/12
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post94044
>> To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com
>>
>
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post94046
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com
>
>-----
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date:...
Re: PCI Express  
srilakshmi wrote:
> Yes, you are correct FPGA will generate interrupt to the processor.
> Before and after generating FPGA interrupt to the processor I need to send
> some message to FPGA.

What messages are sent over the PCIe lane is deeply embedded in the 
hardware and you and the OS have no access the PCIe message protocol.
You have to map the assigned shared memories of your PCIe board into 
your memory space.
The FPGA reads/and writes to these shared memory segments ... so you 
have to know from which position which data the FPGA reads and where the 
FPGA is placing its response into the shared memory.
But this can only be answered from your "guy behind the chip scope" ...

--Armin

BTW I'm doing also some developments with FPGAs ...


>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Hugh Brown [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 6:03 PM
> To: general-community@community.qnx.com
> Subject: Re: PCI Express
>
> You don't generate an MSI to the FPGA, the FPGA will generate interrupts
> to the processor.
>
>
>
> On 12-07-05 8:29 AM, "srilakshmi" <community-noreply@qnx.com> wrote:
>
>> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>>
>> Thanks & Regards
>>   Srilakshmi
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 3:00 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
>> You can download it from the QNX homepage.
>> Or ask your distributor for the related CDs ..
>>
>> --Armin
>>
>> srilakshmi wrote:
>>> We are using QNX 6.5.0
>>>
>>> Thanks & Regards
>>>    Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 12:45 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> Hi,
>>>
>>> you have to use QNX 6.5.0 SP1
>>>
>>> --Armin
>>>
>>>
>>> srilakshmi wrote:
>>>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>>>> PCI_USE_MSIX.
>>>>
>>>> Thanks & Regards
>>>>     Srilakshmi
>>>>     
>>>>
>>>> -----Original Message-----
>>>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>>>> Sent: Wednesday, July 04, 2012 8:59 PM
>>>> To: general-community@community.qnx.com
>>>> Subject: Re: PCI Express
>>>>
>>>> Armin,
>>>>
>>>> These functions are part of the pci_attach_device() function call. In
>>>> the
>>>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>>>> which interrupt type you want to use. If you use these flags and the
>>>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>>>> interrupts.
>>>>
>>>> Hugh.
>>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post94042
>>> To cancel your subscription to this discussion, please e-mail
>>> general-community-unsubscribe@community.qnx.com
>>>
>>>...
View Full Message
RE: PCI Express  
I think you are being asked to do something that seems  to be way beyond your capabilities.
Good luck.
 
-----Message d'origine-----
De : srilakshmi [mailto:community-noreply@qnx.com] 
Envoyé : Thursday, July 05, 2012 8:30 AM
À : general-community@community.qnx.com
Objet : RE: PCI Express

Do you send me any sample code for generating MSI in QNX(to Master FPGA)?

Thanks & Regards
  Srilakshmi
-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 3:00 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues. 
You can download it from the QNX homepage.
Or ask your distributor for the related CDs ..

--Armin

srilakshmi wrote:
> We are using QNX 6.5.0
>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 12:45 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Hi,
>
> you have to use QNX 6.5.0 SP1
>
> --Armin
>
>
> srilakshmi wrote:
>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>> PCI_USE_MSIX.
>>
>> Thanks & Regards
>>    Srilakshmi
>>    
>>
>> -----Original Message-----
>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>> Sent: Wednesday, July 04, 2012 8:59 PM
>> To: general-community@community.qnx.com
>> Subject: Re: PCI Express
>>
>> Armin,
>>
>> These functions are part of the pci_attach_device() function call. In the
>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>> which interrupt type you want to use. If you use these flags and the
>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>> interrupts.
>>
>> Hugh.
>>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94042
> To cancel your subscription to this discussion, please e-mail
> general-community-unsubscribe@community.qnx.com
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94044
> To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com
>






_______________________________________________

General
http://community.qnx.com/sf/go/post94046
To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12





_______________________________________________

General
http://community.qnx.com/sf/go/post94060
To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com

RE: PCI Express  
Yes, I don't have proper knowledge on what I am asking.
But I need to do all these things.
Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
The code is for
I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I sent
 05060708 message FPGA disables the interrupt.
Would you please help me...

Thanks & Regards
 Srilakshmi

-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 6:06 PM
To: general-community@community.qnx.com
Subject: RE: PCI Express


I think you are being asked to do something that seems  to be way beyond your capabilities.
Good luck.
 
-----Message d'origine-----
De : srilakshmi [mailto:community-noreply@qnx.com] 
Envoyé : Thursday, July 05, 2012 8:30 AM
À : general-community@community.qnx.com
Objet : RE: PCI Express

Do you send me any sample code for generating MSI in QNX(to Master FPGA)?

Thanks & Regards
  Srilakshmi
-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 3:00 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues. 
You can download it from the QNX homepage.
Or ask your distributor for the related CDs ..

--Armin

srilakshmi wrote:
> We are using QNX 6.5.0
>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 12:45 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Hi,
>
> you have to use QNX 6.5.0 SP1
>
> --Armin
>
>
> srilakshmi wrote:
>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>> PCI_USE_MSIX.
>>
>> Thanks & Regards
>>    Srilakshmi
>>    
>>
>> -----Original Message-----
>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>> Sent: Wednesday, July 04, 2012 8:59 PM
>> To: general-community@community.qnx.com
>> Subject: Re: PCI Express
>>
>> Armin,
>>
>> These functions are part of the pci_attach_device() function call. In the
>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>> which interrupt type you want to use. If you use these flags and the
>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>> interrupts.
>>
>> Hugh.
>>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94042
> To cancel your subscription to this discussion, please e-mail
> general-community-unsubscribe@community.qnx.com
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post94044
> To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com
>






_______________________________________________

General
http://community.qnx.com/sf/go/post94046
To cancel your subscription to this discussion, please e-mail
general-community-unsubscribe@community.qnx.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12





_______________________________________________

General
http://community.qnx.com/sf/go/post94060
To...
View Full Message
Re: PCI Express  
Attachment ??

srilakshmi wrote:
> Yes, I don't have proper knowledge on what I am asking.
> But I need to do all these things.
> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
> The code is for
> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I 
sent 05060708 message FPGA disables the interrupt.
> Would you please help me...
>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Mario Charest [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 6:06 PM
> To: general-community@community.qnx.com
> Subject: RE: PCI Express
>
>
> I think you are being asked to do something that seems  to be way beyond your capabilities.
> Good luck.
>   
> -----Message d'origine-----
> De : srilakshmi [mailto:community-noreply@qnx.com]
> Envoyé : Thursday, July 05, 2012 8:30 AM
> À : general-community@community.qnx.com
> Objet : RE: PCI Express
>
> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>
> Thanks & Regards
>    Srilakshmi
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 3:00 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
> You can download it from the QNX homepage.
> Or ask your distributor for the related CDs ..
>
> --Armin
>
> srilakshmi wrote:
>> We are using QNX 6.5.0
>>
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 12:45 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Hi,
>>
>> you have to use QNX 6.5.0 SP1
>>
>> --Armin
>>
>>
>> srilakshmi wrote:
>>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>>> PCI_USE_MSIX.
>>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>     
>>>
>>> -----Original Message-----
>>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>>> Sent: Wednesday, July 04, 2012 8:59 PM
>>> To: general-community@community.qnx.com
>>> Subject: Re: PCI Express
>>>
>>> Armin,
>>>
>>> These functions are part of the pci_attach_device() function call. In the
>>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>>> which interrupt type you want to use. If you use these flags and the
>>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>>> interrupts.
>>>
>>> Hugh.
>>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post94042
>> To cancel your subscription to this discussion, please e-mail
>> general-community-unsubscribe@community.qnx.com
>>
>> -----
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2012.0.2177 / Virus Database: 2437/5111 - Release Date: 07/04/12
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post94044
>> To cancel your subscription to this discussion, please e-mail
>...
View Full Message
RE: PCI Express  
Yes, I don't have proper knowledge on what I am asking.
But I need to do all these things.
Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
The code is for
I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then again 
when I sent 05060708 message FPGA disables the interrupt.
Would you please help me...
Address location is BAR0[mem] fd7ff000h

 Thanks & Regards
   Srilakshmi

-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Thursday, July 05, 2012 7:01 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


Attachment ??

srilakshmi wrote:
> Yes, I don't have proper knowledge on what I am asking.
> But I need to do all these things.
> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
> The code is for
> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I 
sent 05060708 message FPGA disables the interrupt.
> Would you please help me...
>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Mario Charest [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 6:06 PM
> To: general-community@community.qnx.com
> Subject: RE: PCI Express
>
>
> I think you are being asked to do something that seems  to be way beyond your capabilities.
> Good luck.
>   
> -----Message d'origine-----
> De : srilakshmi [mailto:community-noreply@qnx.com]
> Envoyé : Thursday, July 05, 2012 8:30 AM
> À : general-community@community.qnx.com
> Objet : RE: PCI Express
>
> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>
> Thanks & Regards
>    Srilakshmi
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 3:00 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
> You can download it from the QNX homepage.
> Or ask your distributor for the related CDs ..
>
> --Armin
>
> srilakshmi wrote:
>> We are using QNX 6.5.0
>>
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 12:45 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Hi,
>>
>> you have to use QNX 6.5.0 SP1
>>
>> --Armin
>>
>>
>> srilakshmi wrote:
>>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI or
>>> PCI_USE_MSIX.
>>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>     
>>>
>>> -----Original Message-----
>>> From: Hugh Brown [mailto:community-noreply@qnx.com]
>>> Sent: Wednesday, July 04, 2012 8:59 PM
>>> To: general-community@community.qnx.com
>>> Subject: Re: PCI Express
>>>
>>> Armin,
>>>
>>> These functions are part of the pci_attach_device() function call. In the
>>> flags section you either add PCI_USE_MSI or PCI_USE_MSIX depending on
>>> which interrupt type you want to use. If you use these flags and the
>>> device doesn't support MSI or MSIX, the PCI server will default to IRQ
>>> interrupts.
>>>
>>>...
View Full Message
Attachment: Text pci_intr.c 4.62 KB
Re: PCI Express  
Just a question about the interrupt number used in

id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);

is this the same IRQ as reported by pinfo->irq ? Normaly you have to use 
the interrupt number reported by pci_attach_device.
But there is still a bug in pci_attach_device because it returns for 
unknown reasons wrong IRQ numbers.

Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv

--Armin



srilakshmi wrote:
> Yes, I don't have proper knowledge on what I am asking.
> But I need to do all these things.
> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
> The code is for
> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then again 
when I sent 05060708 message FPGA disables the interrupt.
> Would you please help me...
> Address location is BAR0[mem] fd7ff000h
>
>   Thanks & Regards
>     Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 7:01 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Attachment ??
>
> srilakshmi wrote:
>> Yes, I don't have proper knowledge on what I am asking.
>> But I need to do all these things.
>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>> The code is for
>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I 
sent 05060708 message FPGA disables the interrupt.
>> Would you please help me...
>>
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Mario Charest [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 6:06 PM
>> To: general-community@community.qnx.com
>> Subject: RE: PCI Express
>>
>>
>> I think you are being asked to do something that seems  to be way beyond your capabilities.
>> Good luck.
>>    
>> -----Message d'origine-----
>> De : srilakshmi [mailto:community-noreply@qnx.com]
>> Envoyé : Thursday, July 05, 2012 8:30 AM
>> À : general-community@community.qnx.com
>> Objet : RE: PCI Express
>>
>> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>>
>> Thanks & Regards
>>     Srilakshmi
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 3:00 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
>> You can download it from the QNX homepage.
>> Or ask your distributor for the related CDs ..
>>
>> --Armin
>>
>> srilakshmi wrote:
>>> We are using QNX 6.5.0
>>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 12:45 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> Hi,
>>>
>>> you have to use QNX 6.5.0 SP1
>>>
>>> --Armin
>>>
>>>
>>> srilakshmi wrote:
>>>> In QNX 6.5.0 pci_attach_device() don't have flags like PCI_USE_MSI...
View Full Message
RE: PCI Express  
Yes 10 is the no. reported by pinfo->irq.

Thanks & Regards
 Srilakshmi

-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Friday, July 06, 2012 12:03 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


Just a question about the interrupt number used in

id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);

is this the same IRQ as reported by pinfo->irq ? Normaly you have to use 
the interrupt number reported by pci_attach_device.
But there is still a bug in pci_attach_device because it returns for 
unknown reasons wrong IRQ numbers.

Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv

--Armin



srilakshmi wrote:
> Yes, I don't have proper knowledge on what I am asking.
> But I need to do all these things.
> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
> The code is for
> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then again 
when I sent 05060708 message FPGA disables the interrupt.
> Would you please help me...
> Address location is BAR0[mem] fd7ff000h
>
>   Thanks & Regards
>     Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Thursday, July 05, 2012 7:01 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Attachment ??
>
> srilakshmi wrote:
>> Yes, I don't have proper knowledge on what I am asking.
>> But I need to do all these things.
>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>> The code is for
>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I 
sent 05060708 message FPGA disables the interrupt.
>> Would you please help me...
>>
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Mario Charest [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 6:06 PM
>> To: general-community@community.qnx.com
>> Subject: RE: PCI Express
>>
>>
>> I think you are being asked to do something that seems  to be way beyond your capabilities.
>> Good luck.
>>    
>> -----Message d'origine-----
>> De : srilakshmi [mailto:community-noreply@qnx.com]
>> Envoyé : Thursday, July 05, 2012 8:30 AM
>> À : general-community@community.qnx.com
>> Objet : RE: PCI Express
>>
>> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>>
>> Thanks & Regards
>>     Srilakshmi
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 3:00 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
>> You can download it from the QNX homepage.
>> Or ask your distributor for the related CDs ..
>>
>> --Armin
>>
>> srilakshmi wrote:
>>> We are using QNX 6.5.0
>>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 12:45 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI...
View Full Message
Re: PCI Express  
srilakshmi wrote:
> Yes 10 is the no. reported by pinfo->irq.

... end this is the same number reported by pci -vvv ??

--Armin

>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 12:03 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Just a question about the interrupt number used in
>
> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>
> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
> the interrupt number reported by pci_attach_device.
> But there is still a bug in pci_attach_device because it returns for
> unknown reasons wrong IRQ numbers.
>
> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>
> --Armin
>
>
>
> srilakshmi wrote:
>> Yes, I don't have proper knowledge on what I am asking.
>> But I need to do all these things.
>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>> The code is for
>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then again
 when I sent 05060708 message FPGA disables the interrupt.
>> Would you please help me...
>> Address location is BAR0[mem] fd7ff000h
>>
>>    Thanks & Regards
>>      Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 7:01 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Attachment ??
>>
>> srilakshmi wrote:
>>> Yes, I don't have proper knowledge on what I am asking.
>>> But I need to do all these things.
>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>> The code is for
>>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I 
sent 05060708 message FPGA disables the interrupt.
>>> Would you please help me...
>>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Mario Charest [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 6:06 PM
>>> To: general-community@community.qnx.com
>>> Subject: RE: PCI Express
>>>
>>>
>>> I think you are being asked to do something that seems  to be way beyond your capabilities.
>>> Good luck.
>>>     
>>> -----Message d'origine-----
>>> De : srilakshmi [mailto:community-noreply@qnx.com]
>>> Envoyé : Thursday, July 05, 2012 8:30 AM
>>> À : general-community@community.qnx.com
>>> Objet : RE: PCI Express
>>>
>>> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>>>
>>> Thanks & Regards
>>>      Srilakshmi
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 3:00 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> SP1 is the "Service Pack 1 of QNX 6.5.0" ... it fixes several issues.
>>> You can download it from the QNX homepage.
>>> Or ask your distributor for the related CDs...
View Full Message
RE: PCI Express  
Yes same no. reported by pci -vvv command also
Thanks & Regards
 Srilakshmi

-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Friday, July 06, 2012 4:14 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express

srilakshmi wrote:
> Yes 10 is the no. reported by pinfo->irq.

... end this is the same number reported by pci -vvv ??

--Armin

>
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 12:03 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> Just a question about the interrupt number used in
>
> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>
> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
> the interrupt number reported by pci_attach_device.
> But there is still a bug in pci_attach_device because it returns for
> unknown reasons wrong IRQ numbers.
>
> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>
> --Armin
>
>
>
> srilakshmi wrote:
>> Yes, I don't have proper knowledge on what I am asking.
>> But I need to do all these things.
>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>> The code is for
>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then again
 when I sent 05060708 message FPGA disables the interrupt.
>> Would you please help me...
>> Address location is BAR0[mem] fd7ff000h
>>
>>    Thanks & Regards
>>      Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Thursday, July 05, 2012 7:01 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Attachment ??
>>
>> srilakshmi wrote:
>>> Yes, I don't have proper knowledge on what I am asking.
>>> But I need to do all these things.
>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>> The code is for
>>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I 
sent 05060708 message FPGA disables the interrupt.
>>> Would you please help me...
>>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Mario Charest [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 6:06 PM
>>> To: general-community@community.qnx.com
>>> Subject: RE: PCI Express
>>>
>>>
>>> I think you are being asked to do something that seems  to be way beyond your capabilities.
>>> Good luck.
>>>     
>>> -----Message d'origine-----
>>> De : srilakshmi [mailto:community-noreply@qnx.com]
>>> Envoyé : Thursday, July 05, 2012 8:30 AM
>>> À : general-community@community.qnx.com
>>> Objet : RE: PCI Express
>>>
>>> Do you send me any sample code for generating MSI in QNX(to Master FPGA)?
>>>
>>> Thanks & Regards
>>>      Srilakshmi
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 3:00 PM
>>> To:...
View Full Message
Re: PCI Express  
OK ... then it should work!

--Armin

srilakshmi wrote:
> Yes same no. reported by pci -vvv command also
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 4:14 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
> srilakshmi wrote:
>> Yes 10 is the no. reported by pinfo->irq.
> ... end this is the same number reported by pci -vvv ??
>
> --Armin
>
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 12:03 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Just a question about the interrupt number used in
>>
>> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>>
>> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
>> the interrupt number reported by pci_attach_device.
>> But there is still a bug in pci_attach_device because it returns for
>> unknown reasons wrong IRQ numbers.
>>
>> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>>
>> --Armin
>>
>>
>>
>> srilakshmi wrote:
>>> Yes, I don't have proper knowledge on what I am asking.
>>> But I need to do all these things.
>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>> The code is for
>>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then 
again when I sent 05060708 message FPGA disables the interrupt.
>>> Would you please help me...
>>> Address location is BAR0[mem] fd7ff000h
>>>
>>>     Thanks & Regards
>>>       Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 7:01 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> Attachment ??
>>>
>>> srilakshmi wrote:
>>>> Yes, I don't have proper knowledge on what I am asking.
>>>> But I need to do all these things.
>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>>> The code is for
>>>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I
 sent 05060708 message FPGA disables the interrupt.
>>>> Would you please help me...
>>>>
>>>> Thanks & Regards
>>>>      Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Mario Charest [mailto:community-noreply@qnx.com]
>>>> Sent: Thursday, July 05, 2012 6:06 PM
>>>> To: general-community@community.qnx.com
>>>> Subject: RE: PCI Express
>>>>
>>>>
>>>> I think you are being asked to do something that seems  to be way beyond your capabilities.
>>>> Good luck.
>>>>      
>>>> -----Message d'origine-----
>>>> De : srilakshmi [mailto:community-noreply@qnx.com]
>>>> Envoyé : Thursday, July 05, 2012 8:30 AM
>>>> À :...
View Full Message
RE: PCI Express  
But its not working..
You please help me

Thanks & Regards
  Srilakshmi

-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Friday, July 06, 2012 6:15 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express


OK ... then it should work!

--Armin

srilakshmi wrote:
> Yes same no. reported by pci -vvv command also
> Thanks & Regards
>   Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 4:14 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
> srilakshmi wrote:
>> Yes 10 is the no. reported by pinfo->irq.
> ... end this is the same number reported by pci -vvv ??
>
> --Armin
>
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 12:03 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> Just a question about the interrupt number used in
>>
>> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>>
>> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
>> the interrupt number reported by pci_attach_device.
>> But there is still a bug in pci_attach_device because it returns for
>> unknown reasons wrong IRQ numbers.
>>
>> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>>
>> --Armin
>>
>>
>>
>> srilakshmi wrote:
>>> Yes, I don't have proper knowledge on what I am asking.
>>> But I need to do all these things.
>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>> The code is for
>>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then 
again when I sent 05060708 message FPGA disables the interrupt.
>>> Would you please help me...
>>> Address location is BAR0[mem] fd7ff000h
>>>
>>>     Thanks & Regards
>>>       Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Thursday, July 05, 2012 7:01 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> Attachment ??
>>>
>>> srilakshmi wrote:
>>>> Yes, I don't have proper knowledge on what I am asking.
>>>> But I need to do all these things.
>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>>> The code is for
>>>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again when I
 sent 05060708 message FPGA disables the interrupt.
>>>> Would you please help me...
>>>>
>>>> Thanks & Regards
>>>>      Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Mario Charest [mailto:community-noreply@qnx.com]
>>>> Sent: Thursday, July 05, 2012 6:06 PM
>>>> To: general-community@community.qnx.com
>>>> Subject: RE: PCI Express
>>>>
>>>>
>>>> I think you are being asked to do something that seems  to be way beyond your...
View Full Message
Re: PCI Express  
Would it not make more sense to do the write action

pdw = base_ptr[0];
*pdw = 0x01020304;

after start of the interrupt thread ??

And you are writing in the main prog then to the right place and the 
right pattern ?

--Armin


srilakshmi wrote:
> But its not working..
> You please help me
>
> Thanks & Regards
>    Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 6:15 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> OK ... then it should work!
>
> --Armin
>
> srilakshmi wrote:
>> Yes same no. reported by pci -vvv command also
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 4:14 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>> srilakshmi wrote:
>>> Yes 10 is the no. reported by pinfo->irq.
>> ... end this is the same number reported by pci -vvv ??
>>
>> --Armin
>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Friday, July 06, 2012 12:03 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> Just a question about the interrupt number used in
>>>
>>> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>>>
>>> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
>>> the interrupt number reported by pci_attach_device.
>>> But there is still a bug in pci_attach_device because it returns for
>>> unknown reasons wrong IRQ numbers.
>>>
>>> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>>>
>>> --Armin
>>>
>>>
>>>
>>> srilakshmi wrote:
>>>> Yes, I don't have proper knowledge on what I am asking.
>>>> But I need to do all these things.
>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>>> The code is for
>>>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then 
again when I sent 05060708 message FPGA disables the interrupt.
>>>> Would you please help me...
>>>> Address location is BAR0[mem] fd7ff000h
>>>>
>>>>      Thanks & Regards
>>>>        Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>>> Sent: Thursday, July 05, 2012 7:01 PM
>>>> To: general-community@community.qnx.com
>>>> Cc: srilakshmi; srilakshmi
>>>> Subject: Re: PCI Express
>>>>
>>>>
>>>> Attachment ??
>>>>
>>>> srilakshmi wrote:
>>>>> Yes, I don't have proper knowledge on what I am asking.
>>>>> But I need to do all these things.
>>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>>>> The code is for
>>>>> I need to write 01020304 message Master FPGA then FPGA generates interrupt and do some operations then again...
View Full Message
RE: PCI Express  
Now I have completed some part of my task.
Now I need to send bulk of data with packet for this may be I need to use DMA transactions.
Would u pls help me?

Thanks & Regards
  Srilakshmi


-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Friday, July 06, 2012 7:09 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express

Would it not make more sense to do the write action

pdw = base_ptr[0];
*pdw = 0x01020304;

after start of the interrupt thread ??

And you are writing in the main prog then to the right place and the 
right pattern ?

--Armin


srilakshmi wrote:
> But its not working..
> You please help me
>
> Thanks & Regards
>    Srilakshmi
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 6:15 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
>
> OK ... then it should work!
>
> --Armin
>
> srilakshmi wrote:
>> Yes same no. reported by pci -vvv command also
>> Thanks & Regards
>>    Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 4:14 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>> srilakshmi wrote:
>>> Yes 10 is the no. reported by pinfo->irq.
>> ... end this is the same number reported by pci -vvv ??
>>
>> --Armin
>>
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Friday, July 06, 2012 12:03 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> Just a question about the interrupt number used in
>>>
>>> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>>>
>>> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
>>> the interrupt number reported by pci_attach_device.
>>> But there is still a bug in pci_attach_device because it returns for
>>> unknown reasons wrong IRQ numbers.
>>>
>>> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>>>
>>> --Armin
>>>
>>>
>>>
>>> srilakshmi wrote:
>>>> Yes, I don't have proper knowledge on what I am asking.
>>>> But I need to do all these things.
>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>>> The code is for
>>>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then 
again when I sent 05060708 message FPGA disables the interrupt.
>>>> Would you please help me...
>>>> Address location is BAR0[mem] fd7ff000h
>>>>
>>>>      Thanks & Regards
>>>>        Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>>> Sent: Thursday, July 05, 2012 7:01 PM
>>>> To: general-community@community.qnx.com
>>>> Cc: srilakshmi; srilakshmi
>>>> Subject: Re: PCI Express
>>>>
>>>>
>>>> Attachment ??
>>>>
>>>> srilakshmi wrote:
>>>>> Yes, I don't have...
View Full Message
Re: PCI Express  
srilakshmi wrote:
> Now I have completed some part of my task.

What does it mean? The FPGA is able to create interrupts ?

--Armin


> Now I need to send bulk of data with packet for this may be I need to use DMA transactions.
> Would u pls help me?
>
> Thanks & Regards
>    Srilakshmi
>
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 7:09 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
> Would it not make more sense to do the write action
>
> pdw = base_ptr[0];
> *pdw = 0x01020304;
>
> after start of the interrupt thread ??
>
> And you are writing in the main prog then to the right place and the
> right pattern ?
>
> --Armin
>
>
> srilakshmi wrote:
>> But its not working..
>> You please help me
>>
>> Thanks & Regards
>>     Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 6:15 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> OK ... then it should work!
>>
>> --Armin
>>
>> srilakshmi wrote:
>>> Yes same no. reported by pci -vvv command also
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Friday, July 06, 2012 4:14 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>> srilakshmi wrote:
>>>> Yes 10 is the no. reported by pinfo->irq.
>>> ... end this is the same number reported by pci -vvv ??
>>>
>>> --Armin
>>>
>>>> Thanks & Regards
>>>>      Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>>> Sent: Friday, July 06, 2012 12:03 PM
>>>> To: general-community@community.qnx.com
>>>> Cc: srilakshmi; srilakshmi
>>>> Subject: Re: PCI Express
>>>>
>>>>
>>>> Just a question about the interrupt number used in
>>>>
>>>> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>>>>
>>>> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
>>>> the interrupt number reported by pci_attach_device.
>>>> But there is still a bug in pci_attach_device because it returns for
>>>> unknown reasons wrong IRQ numbers.
>>>>
>>>> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>>>>
>>>> --Armin
>>>>
>>>>
>>>>
>>>> srilakshmi wrote:
>>>>> Yes, I don't have proper knowledge on what I am asking.
>>>>> But I need to do all these things.
>>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device function.
>>>>> The code is for
>>>>> I need to send(write) 01020304 message to Master FPGA then FPGA generates interrupt and do some operations then 
again when I sent 05060708 message FPGA disables the interrupt.
>>>>> Would you please help me...
>>>>> Address location is BAR0[mem] fd7ff000h
>>>>>
>>>>>       Thanks &...
View Full Message
RE: PCI Express  
Yes when I send data like 01020304 FPGA creates Interrupts again when I send 05060708 disables the Interrupts.
 Now I need to send bulk of data(1024bytes) with single packet.

Thanks & Regards
 Srilakshmi


-----Original Message-----
From: Armin Steinhoff [mailto:community-noreply@qnx.com] 
Sent: Tuesday, July 10, 2012 5:58 PM
To: general-community@community.qnx.com
Cc: srilakshmi; srilakshmi
Subject: Re: PCI Express

srilakshmi wrote:
> Now I have completed some part of my task.

What does it mean? The FPGA is able to create interrupts ?

--Armin


> Now I need to send bulk of data with packet for this may be I need to use DMA transactions.
> Would u pls help me?
>
> Thanks & Regards
>    Srilakshmi
>
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Friday, July 06, 2012 7:09 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
> Would it not make more sense to do the write action
>
> pdw = base_ptr[0];
> *pdw = 0x01020304;
>
> after start of the interrupt thread ??
>
> And you are writing in the main prog then to the right place and the
> right pattern ?
>
> --Armin
>
>
> srilakshmi wrote:
>> But its not working..
>> You please help me
>>
>> Thanks & Regards
>>     Srilakshmi
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 6:15 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>>
>> OK ... then it should work!
>>
>> --Armin
>>
>> srilakshmi wrote:
>>> Yes same no. reported by pci -vvv command also
>>> Thanks & Regards
>>>     Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Friday, July 06, 2012 4:14 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>> srilakshmi wrote:
>>>> Yes 10 is the no. reported by pinfo->irq.
>>> ... end this is the same number reported by pci -vvv ??
>>>
>>> --Armin
>>>
>>>> Thanks & Regards
>>>>      Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>>> Sent: Friday, July 06, 2012 12:03 PM
>>>> To: general-community@community.qnx.com
>>>> Cc: srilakshmi; srilakshmi
>>>> Subject: Re: PCI Express
>>>>
>>>>
>>>> Just a question about the interrupt number used in
>>>>
>>>> id=InterruptAttach(10,intr_handler,0,0,_NTO_INTR_FLAGS_PROCESS);
>>>>
>>>> is this the same IRQ as reported by pinfo->irq ? Normaly you have to use
>>>> the interrupt number reported by pci_attach_device.
>>>> But there is still a bug in pci_attach_device because it returns for
>>>> unknown reasons wrong IRQ numbers.
>>>>
>>>> Please check if pinfo->irq is the IRQ reported by pci -vv or lspci -vv
>>>>
>>>> --Armin
>>>>
>>>>
>>>>
>>>> srilakshmi wrote:
>>>>> Yes, I don't have proper knowledge on what I am asking.
>>>>> But I need to do all these things.
>>>>> Through the attachment I am sending some code in that code some problem is their its not executing from 
pci_attach_device...
View Full Message
Re: PCI Express  
srilakshmi wrote:
> Yes when I send data like 01020304 FPGA creates Interrupts again when I send 05060708 disables the Interrupts.
>   Now I need to send bulk of data(1024bytes) with single packet.

OK ... sounds great !

If the PCIe chip has a DMA interface you need at first a DMA buffer.
The proc below allocates one.

// allocate DMA memory
void *dma_malloc(uint32_t len, off_t * paddr)
{
void * vaddr;

vaddr = mmap( 0, len, PROT_READ|PROT_WRITE, 
MAP_PHYS|MAP_ANON|MAP_PRIVATE, NOFD, 0 );
if(vaddr == NULL)
return(NULL);
if(mem_offset( vaddr, NOFD, 1, paddr, NULL ))
return(NULL);
return(vaddr);
}

The physical address of the buffer is located in paddr ... you have to 
use it for feeding your DMA interface.
The returned address is the address of the DMA buffer located in your 
address space.

If DMA isn't supported you have to map different base address registers 
which are referencing plain data memory segments of the board.

--Armin





>
> Thanks & Regards
>   Srilakshmi
>
>
> -----Original Message-----
> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
> Sent: Tuesday, July 10, 2012 5:58 PM
> To: general-community@community.qnx.com
> Cc: srilakshmi; srilakshmi
> Subject: Re: PCI Express
>
> srilakshmi wrote:
>> Now I have completed some part of my task.
> What does it mean? The FPGA is able to create interrupts ?
>
> --Armin
>
>
>> Now I need to send bulk of data with packet for this may be I need to use DMA transactions.
>> Would u pls help me?
>>
>> Thanks & Regards
>>     Srilakshmi
>>
>>
>> -----Original Message-----
>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>> Sent: Friday, July 06, 2012 7:09 PM
>> To: general-community@community.qnx.com
>> Cc: srilakshmi; srilakshmi
>> Subject: Re: PCI Express
>>
>> Would it not make more sense to do the write action
>>
>> pdw = base_ptr[0];
>> *pdw = 0x01020304;
>>
>> after start of the interrupt thread ??
>>
>> And you are writing in the main prog then to the right place and the
>> right pattern ?
>>
>> --Armin
>>
>>
>> srilakshmi wrote:
>>> But its not working..
>>> You please help me
>>>
>>> Thanks & Regards
>>>      Srilakshmi
>>>
>>> -----Original Message-----
>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>> Sent: Friday, July 06, 2012 6:15 PM
>>> To: general-community@community.qnx.com
>>> Cc: srilakshmi; srilakshmi
>>> Subject: Re: PCI Express
>>>
>>>
>>> OK ... then it should work!
>>>
>>> --Armin
>>>
>>> srilakshmi wrote:
>>>> Yes same no. reported by pci -vvv command also
>>>> Thanks & Regards
>>>>      Srilakshmi
>>>>
>>>> -----Original Message-----
>>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>>> Sent: Friday, July 06, 2012 4:14 PM
>>>> To: general-community@community.qnx.com
>>>> Cc: srilakshmi; srilakshmi
>>>> Subject: Re: PCI Express
>>>>
>>>> srilakshmi wrote:
>>>>> Yes 10 is the no. reported by pinfo->irq.
>>>> ... end this is the same number reported by pci -vvv ??
>>>>
>>>> --Armin
>>>>
>>>>> Thanks & Regards
>>>>>       Srilakshmi
>>>>>
>>>>> -----Original Message-----
>>>>> From: Armin Steinhoff [mailto:community-noreply@qnx.com]
>>>>> Sent: Friday, July 06, 2012 12:03...
View Full Message