All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kyungmin Park <kyungmin.park@samsung.com>
To: linux-omap-open-source@linux.omap.com
Subject: Realtime patch on OMAP2
Date: Thu, 21 Dec 2006 02:06:30 +0000 (GMT)	[thread overview]
Message-ID: <20731908.192991166666790293.JavaMail.weblogic@ep_ml29> (raw)

[-- Attachment #1: Type: text/plain, Size: 2402 bytes --]

Hi,

With Dirk Behme's mail, I try he realtime preemption patch on OMAP2

linux-2.6.19.tar.bz2 (clean Linus one, not our OMAP tree)
patch-2.6.19-rt15
patch-2.6.19-rt15-fixes.diff

arm-hrt-kconfig-patch.txt
arm-no-hz-patch.txt
arm_omap_clocksource_patch.txt
arm_omap_clockevents_patch.txt

But it's not enough on OMAP2

First, ARMv6 support
- I add the cmpxchg in include/asm-arm/atomic.h

#ifndef CONFIG_SMP
/*
 * Atomic compare and exchange.
 */
#define __HAVE_ARCH_CMPXCHG     1

extern unsigned long wrong_size_cmpxchg(volatile void *ptr);

static inline unsigned long __cmpxchg(volatile void *ptr,
                                    unsigned long old,
                                    unsigned long new, int size)
{
        volatile unsigned long *p = ptr;

        if (size == 4) {
                unsigned long oldval, res;

                do {
                        __asm__ __volatile__("@ atomic_cmpxchg\n"
                        "ldrex  %1, [%2]\n"
                        "mov    %0, #0\n"
                        "teq    %1, %3\n"
                        "strexeq %0, %4, [%2]\n"
                        : "=&r" (res), "=&r" (oldval)
                        : "r" (p), "Ir" (old), "r" (new)
                        : "cc");
                } while (res);

                return oldval;
        } else
                return wrong_size_cmpxchg(ptr);
}

#define cmpxchg(ptr,o,n)                                                \
({                                                                      \
     __typeof__(*(ptr)) _o_ = (o);                                      \
     __typeof__(*(ptr)) _n_ = (n);                                      \
     (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_,          \
                                 (unsigned long)_n_, sizeof(*(ptr)));   \
})

#endif

Second, smc91x timeout problem
- I found a patch in kernel-mailing list [1].
  but I'm not sure it's correct patch. but after the patch. it's working.

And it's another issue with ethernet irq flag value
In clean Linus kernel has IRQF_TRIGGER_RISING. but in OMAP tree has IRQF_TRIGGER_HIGH on apollon.
As previous mentions. IRQF_TRIGGER_HIGH is not working.

Anyway, it's more stable than before.

Thank you,
Kyungmin Park

--

[1] http://marc.theaimsgroup.com/?l=linux-kernel&m=116576871105029&w=2

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2006-12-21  2:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-21  2:06 Kyungmin Park [this message]
2006-12-21  9:46 ` Realtime patch on OMAP2 Dirk Behme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20731908.192991166666790293.JavaMail.weblogic@ep_ml29 \
    --to=kyungmin.park@samsung.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.