RE: RT patch acceptance

From: Sven Dietrich (sdietrich_at_mvista.com)
Date: 05/25/05

  • Next message: Andrew Morton: "Re: RT patch acceptance"
    To: "'Esben Nielsen'" <simlo@phys.au.dk>, "'Christoph Hellwig'" <hch@infradead.org>
    Date:	Tue, 24 May 2005 19:04:56 -0700
    
    

    Esben Nielsen wrote:
    > On Tue, 24 May 2005, Christoph Hellwig wrote:
    >
    > > On Mon, May 23, 2005 at 04:14:26PM -0700, Daniel Walker wrote:
    > >
    > > Personally I think interrupt threads, spinlocks as sleeping mutexes
    > > and PI is something we should keep out of the kernel tree.
    >
    > A general threaded interrupt is not a good thing. Ingo made
    > this to see how far he can press it. But having serial
    > drivers running in interrupt is way overkill. Even network
    > drivers can (provided they use DMA) run in interrupt without
    > hurting the overall latencies. It all depends on the driver
    > and how it interfaces with the rest of the kernel, especially
    > what locks are shared and how long the lock are taken. If
    > they are small enough, interrupt context and thus raw
    > spinlocks are good enough. In general, I think each driver
    > ought to be configurable: Either it runs in interrupt context
    > or it runs in a thread. The locks have to be changed
    > accordingly from raw spinlocks to mutexes.
    >

    You can run interrupts in threads without any mutex.

    There is a /proc interface to switch between threads / mutex.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andrew Morton: "Re: RT patch acceptance"

    Relevant Pages

    • Re: Questions regarding Synchronisation in Windows (Spinlocks)
      ... Vista/Longhorn now only ship multiprocessor kernel. ... How are Spinlocks implemented in Windows for a UNIPROCESSOR ... But an interrupt occurs which has an IRQL> DPC Dispatch level OR the ... I reckon Semaphore, Event, Mutex etc are executive objects. ...
      (microsoft.public.win32.programmer.kernel)
    • Re: [PATCH 4/5] Centralise NO_IRQ definition
      ... > tiny part of the problem, and easily fixed in the drivers in the kernel. ... Drivers really are the bulk of the kernel. ... where an interrupt is _literally_ a cookie from the device, ... _pointers_ (and they'd point to the "irq descriptor"), but quite frankly, ...
      (Linux-Kernel)
    • Re: event <--> interrupt association.
      ... In CE6 it wouldn't be possible since you are isolated from the kernel. ... You are associating an event with interrupt when calling ... setting the interrupt event ). ... I can check that since I have the source code for the drivers in my ...
      (microsoft.public.windowsce.embedded)
    • Re: [PATCH] (2.6.20-rt3) PowerPC: convert spinlocks into raw
      ... In the realtime preemption mode, spinlocks are implemented via mutexes, and the kernel may be preempted if the lock it's trying to acquire is already taken by another process which shouldn't happen in the interrupt context. ... IIUC, the notion of the interrupt context" in the realtim mode is somewhat different form the usual as the interrupt handlers are executed in their own threads, and so, out of the interrupt context... ...
      (Linux-Kernel)
    • Re: RT patch acceptance
      ... > Personally I think interrupt threads, spinlocks as sleeping mutexes and PI ... A general threaded interrupt is not a good thing. ... But having serial drivers running in interrupt is ...
      (Linux-Kernel)

    Loading