Message-ID: Content-Type: multipart/alternative; boundary="_ba7a600b-e2ea-43f2-b0e0-ae08fd48455c_" From: krishna m Date: Mon, 21 Mar 2011 18:18:52 +0530 In-Reply-To: <4D81C6AD.8050803@domain.hid> References: <4D80BA8B.7050803@domain.hid>,<4D81C6AD.8050803@domain.hid> MIME-Version: 1.0 Subject: Re: [Xenomai-core] MSI support in Xenomai List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jan.kiszka@domain.hid, gilles.chanteperdrix@xenomai.org, jan.kiszka@domain.hid Cc: xenomai@xenomai.org --_ba7a600b-e2ea-43f2-b0e0-ae08fd48455c_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Thu=2C 17 Mar 2011 09:30:37 +0100 > From: jan.kiszka@domain.hid > To: gilles.chanteperdrix@xenomai.org krishnamurthyjs@domain.hid > CC: xenomai@xenomai.org > Subject: Re: MSI support in Xenomai >=20 > On 2011-03-16 14:26=2C Gilles Chanteperdrix wrote: > > krishna m wrote: > >> Hi All=2C I wanted to know if the latest Xenomai [Version > >> xenomai-2.5.6] supports MSI interrupts. I am using the adeos Patch > >> [version adeos-ipipe-2.6.37-x86-2.9-00] and corresponding Linux > >> kernel [version: linux-2.6.37]. I have read in the Xenomai FAQ that > >> MSI is not supported by the ipipe patch just wanted to know if the > >> latest Xenomai and Ipipe supports MSI. > >=20 > > No. >=20 > Strictly spoken=2C but it works in practice. See >=20 > http://thread.gmane.org/gmane.linux.real-time.xenomai.users/12135 >=20 > Jan >=20 > --=20 > Siemens AG=2C Corporate Technology=2C CT T DE IT 1 > Corporate Competence Center Embedded Linux =20 Hi Jan=2C Thanks for the reply. I got the following info from you post and i had few = questions related to this post: =20 >> - MSI[-X] usage for RTDM (ie. RT) drivers is basically fine as long as y= ou avoid enabling/disabling from RT context (also used for quite a while he= re=2C no known issues under this restriction) =20 my question is are you mentioninig here that i must not be doing pci_enable= _msi() and pci_disable_msi() inside the RTDM driver ? if not then where sho= uld these calls be done ?=20 =20 Right now i have ported my standerd linux driver for the PCIe card to RTDM = drvier. This driver uses MSI. I am not enabeling or disabling MSI or IRQ an= y where in the driver while processing [i.e. in ISR or read/write]. I am en= abeling MSI in the PCI Probe and disabeling it in the PCI remove functions.= The problem i am facing is as soon as i get the First MSI interrupt the ke= rnel oops and i get the following dump:Mar 21 21:08:34 barch kernel: BUG: u= nable to handle kernel paging request at 7f45402d Mar 21 21:08:34 barch kernel: Oops: 0000 [#1] PREEMPT SMP=20 =20 [note: The normal linux driver works with out any problem].=20 =20 Please let me know your thoughts. Also is there an example PCIe RTDM driver= using MSI that i can refer to understand more about this topic ? =20 thanks=2C krishna=20 = --_ba7a600b-e2ea-43f2-b0e0-ae08fd48455c_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >=3B Date: Thu=2C 17 Mar 2011 09:30:37 +0100
>=3B From: jan.kiszka@domain.hid= iemens.com
>=3B To: gilles.chanteperdrix@xenomai.org krishnamurthyj= s@domain.hid
>=3B CC: xenomai@xenomai.org
>=3B Subject: Re: MSI= support in Xenomai
>=3B
>=3B On 2011-03-16 14:26=2C Gilles Chan= teperdrix wrote:
>=3B >=3B krishna m wrote:
>=3B >=3B>=3B H= i All=2C I wanted to know if the latest Xenomai [Version
>=3B >=3B&g= t=3B xenomai-2.5.6] supports MSI interrupts. I am using the adeos Patch
= >=3B >=3B>=3B [version adeos-ipipe-2.6.37-x86-2.9-00] and correspondi= ng Linux
>=3B >=3B>=3B kernel [version: linux-2.6.37]. I have read= in the Xenomai FAQ that
>=3B >=3B>=3B MSI is not supported by the= ipipe patch just wanted to know if the
>=3B >=3B>=3B latest Xenom= ai and Ipipe supports MSI.
>=3B >=3B
>=3B >=3B No.
>=3B=
>=3B Strictly spoken=2C but it works in practice. See
>=3B
= >=3B http://thread.gmane.org/gmane.linux.real-time.xenomai.users/12135>=3B
>=3B Jan
>=3B
>=3B --
>=3B Siemens AG=2C Cor= porate Technology=2C CT T DE IT 1
>=3B Corporate Competence Center Emb= edded Linux
 =3B
Hi Jan=2C

Thanks for the reply. I got the following info from you post and i had few = questions related to this post:
 =3B


>=3B>=3B - MSI[-X] usage for RTDM (ie. RT) drivers is basically fine as= long as you avoid enabling/disabling from RT context (also used for quite = a while here=2C no known issues under this restriction)
 =3B
my question is are you mentioninig here that i must not be doing pci_enable= _msi() and pci_disable_msi() inside the RTDM driver ? if not then where sho= uld these calls be done ?
 =3B
Right now i have ported my standerd linux driver for the PCIe card to RTDM = drvier. This driver uses =3BMSI. =3BI am not enabeling or disabling= MSI or IRQ any where in the driver while processing [i.e. in ISR or read/w= rite]. I am enabeling MSI in the PCI Probe and disabeling it in the PCI rem= ove functions. The problem i am facing is as soon as i get the First MSI in= terrupt the kernel oops and i get the following dump:
Mar 21 21:08:34 barch kernel: BUG: unable to handle kernel paging =
request at 7f45402d
Mar 21 21:08:34 barch kernel: Oops: 0000 [#1] PREEMPT SMP=20
 =3B
 =3B[note: The normal linux driver works with out any problem].
 =3B
Please let me know your thoughts. Also is there an example PCIe RTDM driver= using MSI that i can refer to understand more about this topic ?
 =3B
thanks=2C
krishna



= --_ba7a600b-e2ea-43f2-b0e0-ae08fd48455c_--