[Xenomai-git] Jan Kiszka : native: Improve documentation of rt_task_join and rt_task_delete
Module: xenomai-jki Branch: for-2.5.x Commit: 0ee37e99197a587e76aa9dc25fb229ed61932d76 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=0ee37e99197a587e76aa9dc25fb229ed61932d76 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 16:22:55 2010 +0200 native: Improve documentation of rt_task_join and rt_task_delete Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/native/task.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ksrc/skins/native/task.c b/ksrc/skins/native/task.c index 6d2472e..31c700f 100644 --- a/ksrc/skins/native/task.c +++ b/ksrc/skins/native/task.c @@ -588,6 +588,10 @@ int rt_task_resume(RT_TASK *task) * * Rescheduling: always if @a task is NULL, and possible if the * deleted task is currently running into a safe section. + * + * @note A task that was successfully joined via rt_task_join() must not be + * explicitly deleted afterwards. However, invoking rt_task_join() remains + * mandatory for every joinable task even after calling rt_task_delete(). */ int rt_task_delete(RT_TASK *task) @@ -2407,8 +2411,10 @@ int rt_task_reply(int flowid, RT_TASK_MCB *mcb_s) * @brief Wait on the termination of a real-time task. * * This user-space only service blocks the caller in non-real-time context - * until @a task has terminated. Note that the specified task must have - * been created with the T_JOINABLE mode flag set. + * until @a task has terminated. All real-time kernel resources are released + * after successful completion of this service. Note that the specified task + * must have been created by the same process that wants to join it, and the + * T_JOINABLE mode flag must have been set on creation. * * @param task The address of a task descriptor to join. * @@ -2419,11 +2425,17 @@ int rt_task_reply(int flowid, RT_TASK_MCB *mcb_s) * * - -EDEADLK is returned if @a task refers to the caller. * + * - -ESRCH is returned if @a task no longer exists or refers to task created + * by a different process. + * * This service can be called from: * * - User-space task. * * Rescheduling: always unless the task was already terminated. + * + * @note After successful completion of this service it is neither required + * nor valid to additionally invoke rt_task_delete() on the same task. */ /** ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : Fix symbolic status output of root threads
Module: xenomai-jki Branch: for-2.5.x Commit: a0d3fcdc9115ab00d06cf7a8cdcda4cbc7d211b5 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=a0d3fcdc9115ab00d06cf7a8cdcda4cbc7d211b5 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 14:51:55 2010 +0200 Fix symbolic status output of root threads Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/thread.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/thread.c b/ksrc/nucleus/thread.c index 73163f2..ac38144 100644 --- a/ksrc/nucleus/thread.c +++ b/ksrc/nucleus/thread.c @@ -219,6 +219,10 @@ char *xnthread_format_status(xnflags_t status, char *buf, int size) case XNROOT: c = 'R'; /* Always mark root as runnable. */ break; + case XNREADY: + if (status XNROOT) + continue; /* Already reported on XNROOT. */ + break; case XNDELAY: /* * Only report genuine delays here, not timed ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of Series 5/ 3400 Intel chipset to SMI workaround
Module: xenomai-jki Branch: for-2.5.x Commit: 5607d53e4666fcf8e6a542d98a91cfa37b3942a5 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5607d53e4666fcf8e6a542d98a91cfa37b3942a5 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 01:51:08 2010 +0200 x86: Add PCI ID of Series 5/3400 Intel chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 4dfb7be..3c540aa 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -16,6 +16,9 @@ #ifndef PCI_DEVICE_ID_INTEL_ICH10_1 #define PCI_DEVICE_ID_INTEL_ICH10_1 0x3a16 #endif +#ifndef PCI_DEVICE_ID_INTEL_PCH_LPC_MIN +#define PCI_DEVICE_ID_INTEL_PCH_LPC_MIN 0x3b00 +#endif /* RTCAN */ #ifndef PCI_VENDOR_ID_ESDGMBH diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 93b5585..67822e6 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -50,6 +50,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10_1)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PCH_LPC_MIN+7)}, {0,}, }; ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Stefan Kisdaroczi : RTDM device profiles: Document open_rt, socket_rt and close_rt deprecation
Module: xenomai-jki Branch: for-2.5.x Commit: 0f814e77c315b571d57b6bf4353d2db3765b9686 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=0f814e77c315b571d57b6bf4353d2db3765b9686 Author: Stefan Kisdaroczi ki...@hispeed.ch Date: Wed May 19 11:31:00 2010 +0200 RTDM device profiles: Document open_rt, socket_rt and close_rt deprecation Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/rtdm/rtcan.h |4 ++-- include/rtdm/rtserial.h |4 ++-- include/rtdm/rttesting.h |4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/rtdm/rtcan.h b/include/rtdm/rtcan.h index 43399e2..34a2044 100644 --- a/include/rtdm/rtcan.h +++ b/include/rtdm/rtcan.h @@ -59,7 +59,7 @@ * @par Supported Operations * @n * @b Socket @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * @n * Specific return values: * - -EPROTONOSUPPORT (Protocol is not supported by the driver. @@ -72,7 +72,7 @@ * Blocking calls to any of the @ref Send or @ref Recv Receive functions * will be unblocked when the socket is closed and return with an error. @n * @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * @n * Specific return values: none @n * @n diff --git a/include/rtdm/rtserial.h b/include/rtdm/rtserial.h index 48712b2..00dc536 100644 --- a/include/rtdm/rtserial.h +++ b/include/rtdm/rtserial.h @@ -42,11 +42,11 @@ * * @par Supported Operations * @b Open @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b Close @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b IOCTL @n diff --git a/include/rtdm/rttesting.h b/include/rtdm/rttesting.h index e936630..a3a7ae9 100644 --- a/include/rtdm/rttesting.h +++ b/include/rtdm/rttesting.h @@ -43,11 +43,11 @@ * * @par Supported Operations * @b Open @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b Close @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b IOCTL @n ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of Intel ICH9M-E chipset to SMI workaround
Module: xenomai-jki Branch: for-2.5.x Commit: c66d15aa524b574a13571863d424bca094ca3a88 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=c66d15aa524b574a13571863d424bca094ca3a88 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 13:49:56 2010 +0200 x86: Add PCI ID of Intel ICH9M-E chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 0020757..df4a6d4 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -16,6 +16,9 @@ #ifndef PCI_DEVICE_ID_INTEL_ICH8_4 #define PCI_DEVICE_ID_INTEL_ICH8_4 0x2815 #endif +#ifndef PCI_DEVICE_ID_INTEL_ICH9_1 +#define PCI_DEVICE_ID_INTEL_ICH9_1 0x2917 +#endif #ifndef PCI_DEVICE_ID_INTEL_ICH10_1 #define PCI_DEVICE_ID_INTEL_ICH10_1 0x3a16 #endif diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 0b0ae04..cb2c6e3 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -50,6 +50,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PCH_LPC_MIN+7)}, {0,}, ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : Fix symbolic status output of root threads
Module: xenomai-jki Branch: for-upstream Commit: 30c1ce613213b23b7ad0583c265bda960db90b6c URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=30c1ce613213b23b7ad0583c265bda960db90b6c Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 14:51:55 2010 +0200 Fix symbolic status output of root threads Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/thread.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/thread.c b/ksrc/nucleus/thread.c index 73163f2..ac38144 100644 --- a/ksrc/nucleus/thread.c +++ b/ksrc/nucleus/thread.c @@ -219,6 +219,10 @@ char *xnthread_format_status(xnflags_t status, char *buf, int size) case XNROOT: c = 'R'; /* Always mark root as runnable. */ break; + case XNREADY: + if (status XNROOT) + continue; /* Already reported on XNROOT. */ + break; case XNDELAY: /* * Only report genuine delays here, not timed ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : Create watchdog as non-blockable timer
Module: xenomai-jki Branch: for-upstream Commit: e6ce00a1cff546af6a065d1fe82312326f929e61 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=e6ce00a1cff546af6a065d1fe82312326f929e61 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 14:53:00 2010 +0200 Create watchdog as non-blockable timer Otherwise traced Xenomai applications may prevent the watchdog from signaling/killing runaway RT threads, and the system may enter an unrecoverable state. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/sched.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ksrc/nucleus/sched.c b/ksrc/nucleus/sched.c index 5242d9f..04a344e 100644 --- a/ksrc/nucleus/sched.c +++ b/ksrc/nucleus/sched.c @@ -175,7 +175,8 @@ void xnsched_init(struct xnsched *sched, int cpu) xnthread_name(sched-rootcb)); #ifdef CONFIG_XENO_OPT_WATCHDOG - xntimer_init(sched-wdtimer, nktbase, xnsched_watchdog_handler); + xntimer_init_noblock(sched-wdtimer, nktbase, +xnsched_watchdog_handler); xntimer_set_name(sched-wdtimer, [watchdog]); xntimer_set_priority(sched-wdtimer, XNTIMER_LOPRIO); xntimer_set_sched(sched-wdtimer, sched); ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : native: Improve documentation of rt_task_join and rt_task_delete
Module: xenomai-jki Branch: for-upstream Commit: 5db795064815a7856aa04851780272c013d37cdb URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5db795064815a7856aa04851780272c013d37cdb Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 16:22:55 2010 +0200 native: Improve documentation of rt_task_join and rt_task_delete Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/native/task.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ksrc/skins/native/task.c b/ksrc/skins/native/task.c index 6d2472e..31c700f 100644 --- a/ksrc/skins/native/task.c +++ b/ksrc/skins/native/task.c @@ -588,6 +588,10 @@ int rt_task_resume(RT_TASK *task) * * Rescheduling: always if @a task is NULL, and possible if the * deleted task is currently running into a safe section. + * + * @note A task that was successfully joined via rt_task_join() must not be + * explicitly deleted afterwards. However, invoking rt_task_join() remains + * mandatory for every joinable task even after calling rt_task_delete(). */ int rt_task_delete(RT_TASK *task) @@ -2407,8 +2411,10 @@ int rt_task_reply(int flowid, RT_TASK_MCB *mcb_s) * @brief Wait on the termination of a real-time task. * * This user-space only service blocks the caller in non-real-time context - * until @a task has terminated. Note that the specified task must have - * been created with the T_JOINABLE mode flag set. + * until @a task has terminated. All real-time kernel resources are released + * after successful completion of this service. Note that the specified task + * must have been created by the same process that wants to join it, and the + * T_JOINABLE mode flag must have been set on creation. * * @param task The address of a task descriptor to join. * @@ -2419,11 +2425,17 @@ int rt_task_reply(int flowid, RT_TASK_MCB *mcb_s) * * - -EDEADLK is returned if @a task refers to the caller. * + * - -ESRCH is returned if @a task no longer exists or refers to task created + * by a different process. + * * This service can be called from: * * - User-space task. * * Rescheduling: always unless the task was already terminated. + * + * @note After successful completion of this service it is neither required + * nor valid to additionally invoke rt_task_delete() on the same task. */ /** ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : Export rthal_apc_pending/virq to modules
Module: xenomai-jki Branch: for-upstream Commit: 163b66c92b5f7f80233e04a6ab863d7fb0b51c14 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=163b66c92b5f7f80233e04a6ab863d7fb0b51c14 Author: Jan Kiszka jan.kis...@siemens.com Date: Thu Sep 2 14:35:30 2010 +0200 Export rthal_apc_pending/virq to modules Required since modifying services were inlined. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/arch/generic/hal.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ksrc/arch/generic/hal.c b/ksrc/arch/generic/hal.c index 9ac52dc..e36baf0 100644 --- a/ksrc/arch/generic/hal.c +++ b/ksrc/arch/generic/hal.c @@ -88,8 +88,10 @@ EXPORT_SYMBOL_GPL(rthal_apc_table); volatile int rthal_sync_op; unsigned long rthal_apc_pending[RTHAL_NR_CPUS]; +EXPORT_SYMBOL_GPL(rthal_apc_pending); unsigned int rthal_apc_virq; +EXPORT_SYMBOL_GPL(rthal_apc_virq); unsigned long rthal_critical_enter(void (*synch) (void)) { ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of Series 5/ 3400 Intel chipset to SMI workaround
Module: xenomai-jki Branch: for-upstream Commit: b494fbaeede4bd63725f38328d3cbd54776fc33b URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=b494fbaeede4bd63725f38328d3cbd54776fc33b Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 01:51:08 2010 +0200 x86: Add PCI ID of Series 5/3400 Intel chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 4dfb7be..3c540aa 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -16,6 +16,9 @@ #ifndef PCI_DEVICE_ID_INTEL_ICH10_1 #define PCI_DEVICE_ID_INTEL_ICH10_1 0x3a16 #endif +#ifndef PCI_DEVICE_ID_INTEL_PCH_LPC_MIN +#define PCI_DEVICE_ID_INTEL_PCH_LPC_MIN 0x3b00 +#endif /* RTCAN */ #ifndef PCI_VENDOR_ID_ESDGMBH diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 93b5585..67822e6 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -50,6 +50,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10_1)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PCH_LPC_MIN+7)}, {0,}, }; ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of 631xESB/632xESB/ 3100 Intel chipset to SMI workaround
Module: xenomai-jki Branch: for-upstream Commit: 23a12e180085de1805b6ca8d1bef7e5affc86c16 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=23a12e180085de1805b6ca8d1bef7e5affc86c16 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 12:49:35 2010 +0200 x86: Add PCI ID of 631xESB/632xESB/3100 Intel chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 3c540aa..0020757 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -4,6 +4,9 @@ #include linux/pci_ids.h /* SMI */ +#ifndef PCI_DEVICE_ID_INTEL_82801EB_0 +#define PCI_DEVICE_ID_INTEL_82801EB_0 0x24d0 +#endif #ifndef PCI_DEVICE_ID_INTEL_ICH7_0 #define PCI_DEVICE_ID_INTEL_ICH7_0 0x27b8 #endif diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 67822e6..0b0ae04 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -46,6 +46,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_2)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB2_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of Intel ICH9M-E chipset to SMI workaround
Module: xenomai-jki Branch: for-upstream Commit: 39fdb2a12c486e9c6e20fbbccd3dbc91572cbe0e URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=39fdb2a12c486e9c6e20fbbccd3dbc91572cbe0e Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 13:49:56 2010 +0200 x86: Add PCI ID of Intel ICH9M-E chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 0020757..df4a6d4 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -16,6 +16,9 @@ #ifndef PCI_DEVICE_ID_INTEL_ICH8_4 #define PCI_DEVICE_ID_INTEL_ICH8_4 0x2815 #endif +#ifndef PCI_DEVICE_ID_INTEL_ICH9_1 +#define PCI_DEVICE_ID_INTEL_ICH9_1 0x2917 +#endif #ifndef PCI_DEVICE_ID_INTEL_ICH10_1 #define PCI_DEVICE_ID_INTEL_ICH10_1 0x3a16 #endif diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 0b0ae04..cb2c6e3 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -50,6 +50,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PCH_LPC_MIN+7)}, {0,}, ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : arm: add calibrated scheduling latencies
Module: xenomai-2.5 Branch: master Commit: d086ad3b726c8df622fa8cb74e2a5f03974b7fdf URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=d086ad3b726c8df622fa8cb74e2a5f03974b7fdf Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Sat Oct 2 14:11:07 2010 +0200 arm: add calibrated scheduling latencies --- include/asm-arm/calibration.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/asm-arm/calibration.h b/include/asm-arm/calibration.h index d1a19b7..7d8907c 100644 --- a/include/asm-arm/calibration.h +++ b/include/asm-arm/calibration.h @@ -32,8 +32,16 @@ static inline unsigned long xnarch_get_sched_latency (void) #if CONFIG_XENO_OPT_TIMING_SCHEDLAT != 0 return CONFIG_XENO_OPT_TIMING_SCHEDLAT; #else +#if defined(CONFIG_ARCH_AT91RM9200) + return 8500; +#elif defined(CONFIG_ARCH_AT91SAM9263) + return 18000; +#elif defined(CONFIG_ARCH_OMAP3) + return 5000; +#else return 9500;/* XXX sane ? */ #endif +#endif } #endif /* !_XENO_ASM_ARM_CALIBRATION_H */ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : nucleus: Fix symbolic status output of root threads
Module: xenomai-2.5 Branch: master Commit: 0aea7ddfcb9a8c79bbd16cb09540085e75c3e742 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=0aea7ddfcb9a8c79bbd16cb09540085e75c3e742 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 14:51:55 2010 +0200 nucleus: Fix symbolic status output of root threads Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/thread.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/thread.c b/ksrc/nucleus/thread.c index 73163f2..ac38144 100644 --- a/ksrc/nucleus/thread.c +++ b/ksrc/nucleus/thread.c @@ -219,6 +219,10 @@ char *xnthread_format_status(xnflags_t status, char *buf, int size) case XNROOT: c = 'R'; /* Always mark root as runnable. */ break; + case XNREADY: + if (status XNROOT) + continue; /* Already reported on XNROOT. */ + break; case XNDELAY: /* * Only report genuine delays here, not timed ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : nucleus: Create watchdog as non-blockable timer
Module: xenomai-2.5 Branch: master Commit: 25fce06b0d9e2e824207eaa52fe0e9e3614578db URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=25fce06b0d9e2e824207eaa52fe0e9e3614578db Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 14:53:00 2010 +0200 nucleus: Create watchdog as non-blockable timer Otherwise traced Xenomai applications may prevent the watchdog from signaling/killing runaway RT threads, and the system may enter an unrecoverable state. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/sched.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ksrc/nucleus/sched.c b/ksrc/nucleus/sched.c index fc3af64..d3e0788 100644 --- a/ksrc/nucleus/sched.c +++ b/ksrc/nucleus/sched.c @@ -175,7 +175,8 @@ void xnsched_init(struct xnsched *sched, int cpu) xnthread_name(sched-rootcb)); #ifdef CONFIG_XENO_OPT_WATCHDOG - xntimer_init(sched-wdtimer, nktbase, xnsched_watchdog_handler); + xntimer_init_noblock(sched-wdtimer, nktbase, +xnsched_watchdog_handler); xntimer_set_name(sched-wdtimer, [watchdog]); xntimer_set_priority(sched-wdtimer, XNTIMER_LOPRIO); xntimer_set_sched(sched-wdtimer, sched); ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Stefan Kisdaroczi : RTDM device profiles: Document open_rt, socket_rt and close_rt deprecation
Module: xenomai-2.5 Branch: master Commit: b3b375716249d44800b86d816be8672a11ce4658 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=b3b375716249d44800b86d816be8672a11ce4658 Author: Stefan Kisdaroczi ki...@hispeed.ch Date: Wed May 19 11:31:00 2010 +0200 RTDM device profiles: Document open_rt, socket_rt and close_rt deprecation Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/rtdm/rtcan.h |4 ++-- include/rtdm/rtserial.h |4 ++-- include/rtdm/rttesting.h |4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/rtdm/rtcan.h b/include/rtdm/rtcan.h index 43399e2..34a2044 100644 --- a/include/rtdm/rtcan.h +++ b/include/rtdm/rtcan.h @@ -59,7 +59,7 @@ * @par Supported Operations * @n * @b Socket @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * @n * Specific return values: * - -EPROTONOSUPPORT (Protocol is not supported by the driver. @@ -72,7 +72,7 @@ * Blocking calls to any of the @ref Send or @ref Recv Receive functions * will be unblocked when the socket is closed and return with an error. @n * @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * @n * Specific return values: none @n * @n diff --git a/include/rtdm/rtserial.h b/include/rtdm/rtserial.h index 48712b2..00dc536 100644 --- a/include/rtdm/rtserial.h +++ b/include/rtdm/rtserial.h @@ -42,11 +42,11 @@ * * @par Supported Operations * @b Open @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b Close @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b IOCTL @n diff --git a/include/rtdm/rttesting.h b/include/rtdm/rttesting.h index e936630..a3a7ae9 100644 --- a/include/rtdm/rttesting.h +++ b/include/rtdm/rttesting.h @@ -43,11 +43,11 @@ * * @par Supported Operations * @b Open @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b Close @n - * Environments: non-RT (RT optional)@n + * Environments: non-RT (RT optional, deprecated)@n * Specific return values: none @n * @n * @b IOCTL @n ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : native: Improve documentation of rt_task_join and rt_task_delete
Module: xenomai-2.5 Branch: master Commit: cb6ddf444e8a21cd4b9c3ffd2b7dbfc123294138 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=cb6ddf444e8a21cd4b9c3ffd2b7dbfc123294138 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Aug 20 16:22:55 2010 +0200 native: Improve documentation of rt_task_join and rt_task_delete Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/native/task.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ksrc/skins/native/task.c b/ksrc/skins/native/task.c index 6d2472e..31c700f 100644 --- a/ksrc/skins/native/task.c +++ b/ksrc/skins/native/task.c @@ -588,6 +588,10 @@ int rt_task_resume(RT_TASK *task) * * Rescheduling: always if @a task is NULL, and possible if the * deleted task is currently running into a safe section. + * + * @note A task that was successfully joined via rt_task_join() must not be + * explicitly deleted afterwards. However, invoking rt_task_join() remains + * mandatory for every joinable task even after calling rt_task_delete(). */ int rt_task_delete(RT_TASK *task) @@ -2407,8 +2411,10 @@ int rt_task_reply(int flowid, RT_TASK_MCB *mcb_s) * @brief Wait on the termination of a real-time task. * * This user-space only service blocks the caller in non-real-time context - * until @a task has terminated. Note that the specified task must have - * been created with the T_JOINABLE mode flag set. + * until @a task has terminated. All real-time kernel resources are released + * after successful completion of this service. Note that the specified task + * must have been created by the same process that wants to join it, and the + * T_JOINABLE mode flag must have been set on creation. * * @param task The address of a task descriptor to join. * @@ -2419,11 +2425,17 @@ int rt_task_reply(int flowid, RT_TASK_MCB *mcb_s) * * - -EDEADLK is returned if @a task refers to the caller. * + * - -ESRCH is returned if @a task no longer exists or refers to task created + * by a different process. + * * This service can be called from: * * - User-space task. * * Rescheduling: always unless the task was already terminated. + * + * @note After successful completion of this service it is neither required + * nor valid to additionally invoke rt_task_delete() on the same task. */ /** ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of Intel ICH9M-E chipset to SMI workaround
Module: xenomai-2.5 Branch: master Commit: 3334cadac3912f2eb5e01414c3193f64959bab4d URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=3334cadac3912f2eb5e01414c3193f64959bab4d Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 13:49:56 2010 +0200 x86: Add PCI ID of Intel ICH9M-E chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 0020757..df4a6d4 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -16,6 +16,9 @@ #ifndef PCI_DEVICE_ID_INTEL_ICH8_4 #define PCI_DEVICE_ID_INTEL_ICH8_4 0x2815 #endif +#ifndef PCI_DEVICE_ID_INTEL_ICH9_1 +#define PCI_DEVICE_ID_INTEL_ICH9_1 0x2917 +#endif #ifndef PCI_DEVICE_ID_INTEL_ICH10_1 #define PCI_DEVICE_ID_INTEL_ICH10_1 0x3a16 #endif diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 0b0ae04..cb2c6e3 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -50,6 +50,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PCH_LPC_MIN+7)}, {0,}, ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Jan Kiszka : x86: Add PCI ID of 631xESB/632xESB/ 3100 Intel chipset to SMI workaround
Module: xenomai-2.5 Branch: master Commit: a7e818a026bf7e5db7a0949b37b8852c0b62a48e URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=a7e818a026bf7e5db7a0949b37b8852c0b62a48e Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 1 12:49:35 2010 +0200 x86: Add PCI ID of 631xESB/632xESB/3100 Intel chipset to SMI workaround Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/pci_ids.h |3 +++ ksrc/arch/x86/smi.c |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pci_ids.h b/include/asm-generic/pci_ids.h index 3c540aa..0020757 100644 --- a/include/asm-generic/pci_ids.h +++ b/include/asm-generic/pci_ids.h @@ -4,6 +4,9 @@ #include linux/pci_ids.h /* SMI */ +#ifndef PCI_DEVICE_ID_INTEL_82801EB_0 +#define PCI_DEVICE_ID_INTEL_82801EB_0 0x24d0 +#endif #ifndef PCI_DEVICE_ID_INTEL_ICH7_0 #define PCI_DEVICE_ID_INTEL_ICH7_0 0x27b8 #endif diff --git a/ksrc/arch/x86/smi.c b/ksrc/arch/x86/smi.c index 67822e6..0b0ae04 100644 --- a/ksrc/arch/x86/smi.c +++ b/ksrc/arch/x86/smi.c @@ -46,6 +46,7 @@ static struct pci_device_id rthal_smi_pci_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_2)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB2_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4)}, ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git