From: "Terry Fryar" References: <56E1AEF6484D429588063ADA1D312704@domain.hid> <4F070D70.2060905@domain.hid> In-Reply-To: <4F070D70.2060905@domain.hid> Date: Fri, 6 Jan 2012 11:08:16 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] IRQ issue List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Gilles Chanteperdrix' Cc: xenomai@xenomai.org I guess using the rtdm_irq_request() hooks an ISR that ends up called in the xenomai context? So I need to use the normal irq_request() then...ok...sorry to be so dense, I am quite new to writing kernel modules! Thanks Gilles! -----Original Message----- From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org] Sent: Friday, January 06, 2012 9:04 AM To: Terry Fryar Cc: xenomai@xenomai.org Subject: Re: [Xenomai-help] IRQ issue On 01/06/2012 03:11 PM, Terry Fryar wrote: > Using Xen 2.6 with 2.6.38 kernel, have a kernel module with an ISR > registered using rtdm_irq_request() that schedules a work queue. This > queue thread makes an spi call. If the work queue you schedule is a linux work queue, that is not going to work, for the same reason as in the last e-mail: you can not call services interacting with Linux scheduler in xenomai context. So, if you need an spi driver for real-time drivers or applicaitons, you have to write one for the RTDM skin without using Linux services. There is no way around. > Not sure what this one means?? I see the "cpu_idle", and I vaguely > recall some issue with that....but I don't remember what this was? The cpu is idle most of the time, so, the idle function is the function the most likely to be interrupted by an interrupt. -- Gilles.