Commit Graph

2665 Commits

Author SHA1 Message Date
Bjarne von Horn a1a0edb9c4 Fix e1000 link detection with xenomai 2024-02-05 10:08:55 +01:00
Bjarne von Horn 34c56eae7d Fix igc link detection with xenomai 2024-02-05 10:08:55 +01:00
Bjarne von Horn 35ff319856 Fix igb link detection with xenomai 2024-02-05 10:08:55 +01:00
Bjarne von Horn bdd7d1f8f7 Fix r8169 link detection with Xenomai
```
[  741.073012] IRQ pipeline: some code running in oob context 'Xenomai'
[  741.073013]               called an in-band only routine
[  741.073013] CPU: 1 PID: 22419 Comm: my_task Tainted: G           O      5.10.179-lp154.3-0510xenomai3 #1
[  741.073014] Hardware name: ICP / iEi IMBA-9454ISA/IMBA-9454ISA(E168), BIOS 080014  02/20/2009
[  741.073015] IRQ stage: Xenomai
[  741.073015] Call Trace:
[  741.073015]  dump_stack+0x86/0xa6
[  741.073016]  check_inband_stage+0x8c/0xa0
[  741.073017]  inband_irq_save+0xe/0x30
[  741.073017]  try_to_grab_pending+0x1e/0x180
[  741.073018]  mod_delayed_work_on+0x42/0xa0
[  741.073018]  phy_trigger_machine+0x23/0x30
[  741.073019]  phy_mac_interrupt+0xe/0x20
[  741.073019]  ec_poll+0x105/0x110 [ec_r8169]
[  741.073020]  ec_device_poll+0x24/0x30 [ec_master]
[  741.073020]  ecrt_master_receive+0x21/0x160 [ec_master]
[  741.073021]  ec_ioctl_rtdm_rt+0x430/0x4c0 [ec_master]
[  741.073021]  ? rtdm_fd_get+0x11d/0x210
[  741.073022]  ec_rtdm_ioctl_rt_handler+0x26/0x40 [ec_master]
[  741.073022]  rtdm_fd_ioctl+0xdc/0x240
[  741.073023]  ? xnlock_dbg_release+0x21/0xf0
[  741.073023]  CoBaLt_ioctl+0xe/0x20
[  741.073024]  handle_head_syscall+0x10f/0x4d0
[  741.073025]  ? CoBaLt_fcntl+0x20/0x20
[  741.073025]  ? handle_pipelined_syscall+0x39/0x40
[  741.073026]  handle_oob_syscall+0x13/0x20
[  741.073026]  pipeline_syscall+0x8c/0x130
[  741.073027]  syscall_enter_from_user_mode+0x26/0x90
[  741.073027]  do_syscall_64+0x13/0x60
[  741.073028]  entry_SYSCALL_64_after_hwframe+0x61/0xc6
[  741.073029] RIP: 0033:0x7fac8da13c8f
[  741.073029] Code: Unable to access opcode bytes at RIP 0x7fac8da13c65.
[  741.073030] RSP: 002b:00007fac8e864c90 EFLAGS: 00000206 ORIG_RAX: 0000000010000050
[  741.073031] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fac8da13c8f
[  741.073032] RDX: 0000000000000000 RSI: 000000000000a426 RDI: 0000000000000003
[  741.073032] RBP: 000000000000a426 R08: 00007fac8e865700 R09: 0000000000000000
[  741.073033] R10: 0000000000000113 R11: 0000000000000206 R12: 0000000000000000
[  741.073033] R13: 0000000000000000 R14: 0000000000000000 R15: 00007fac8e864e80
```
2024-02-05 10:08:55 +01:00
Bjarne von Horn 0c1e2bc397 fix r8169 modname 2024-02-05 10:08:55 +01:00
Bjarne von Horn aa89735e55 do ioctl multiplexing in ioctl.c 2024-02-05 10:08:55 +01:00
Bjarne von Horn bf790debb6 Split ioctl switch statements into rt, nrt and common 2024-02-05 10:08:55 +01:00
Bjarne von Horn 1e7b4816c1 Add rtai modules to KBUILD_EXTRA_SYMBOLS 2024-02-05 10:04:35 +01:00
Bjarne von Horn df7145a1c3 Add Xenomai{2,3} and RTAI to CI 2024-02-05 10:04:14 +01:00
Bjarne von Horn 385f2ba64e Use rtdm_safe_copy_{from,to}_user 2024-02-05 10:04:14 +01:00
Bjarne von Horn ca60769996 introduce ec_copy_{from,to}_user macros with ctx argument in ioctl 2024-02-05 10:02:28 +01:00
Bjarne von Horn 95209d2858 Move ec_rtdm_context into common header 2024-02-05 09:58:05 +01:00
Bjarne von Horn 0a41222ee6 prepare uniting ec_rtdm_context 2024-02-05 09:58:04 +01:00
Bjarne von Horn 656526f03c remove EC_RTDM_OPS_HAS_MMAP again 2024-02-05 09:58:04 +01:00
Bjarne von Horn 1c9f9bfe7d use RTDM CFLAGS for non-standard include dir 2024-02-05 09:58:04 +01:00
Bjarne von Horn bc1f0e8f41 Add --with-xenomai-config option 2024-02-05 09:58:04 +01:00
Bjarne von Horn db0d120e2e Fix Xenomai Posix setschedparam 2024-02-05 09:58:04 +01:00
Bjarne von Horn 64adc0ce16 Port examples to Xenomai3 2024-02-05 09:58:04 +01:00
Bjarne von Horn 3ba71d5702 use sig_atomic_t for run flag in examples
Otherwise the loop may run forever.
2024-02-05 09:58:04 +01:00
Bjarne von Horn 1dae91d8c3 Use mmap handler in Xenomai3 2024-02-05 09:58:04 +01:00
Bjarne von Horn e76109c854 Use xeno_config for xenomai version detection 2024-02-05 09:58:04 +01:00
Joonyoung Shim 023d989ee3 Support Xenomai version 3
From 9567f460411d9a832c24b3ef65252f6f4f902fef Mon Sep 17 00:00:00 2001
Xenomai version 3 has different RTDM interface with version 2 and has
Alchemy interface instead of native API. This supports RTDM of Xenomai
version 3 and to use Alchemy interface.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
2024-02-05 09:58:04 +01:00
Bjarne von Horn a297dd7fae add symbol version check target 2024-02-02 11:53:31 +01:00
Bjarne von Horn 71f8041248 Add symbol map file.
Fixes #88
2024-02-02 11:53:31 +01:00
Bjarne von Horn 5fd05393bb Add missing EC_PUBLIC_API declarations 2024-02-02 11:53:31 +01:00
Florian Pose 4ce4d08b7b Made some more pointer arguments const in API. 2024-02-02 10:56:09 +01:00
Florian Pose 0829b3f802 Minor: Broke long lines. 2024-02-02 10:18:34 +01:00
Florian Pose df354272a8 Minor: Fixed indentation. 2024-02-02 10:15:47 +01:00
Bjarne von Horn 984cb49633 Add missing EC_PUBLIC_API declarations 2024-02-02 10:04:44 +01:00
Bjarne von Horn 8bf902b02a update conditions in CI 2024-02-02 09:53:47 +01:00
Bjarne von Horn 6b95e42844 add release pipeline with dist tarballs
Fixes #9
2024-02-02 09:53:42 +01:00
Bjarne von Horn 13cef2b981 Add const to pointers to pdo and pdo_entry infos
Fixes #85
2024-02-02 08:48:39 +01:00
Florian Pose eb05547c77 Version bump to 1.6.0. 2024-02-01 18:20:45 +01:00
Florian Pose 6200ecca77 Limited line length to 78. 2024-02-01 17:44:20 +01:00
Florian Pose df3954d8ec Fixed line lengths; and ID keywords of merged sources. 2024-02-01 16:38:06 +01:00
Bjarne von Horn ac50849bcc Add e1000e for 5.4, 5.10, 5.14 and 6.1 2024-02-01 16:17:21 +01:00
Bjarne von Horn 0836726b77 Add 8139too for 5.15.115 2024-02-01 16:06:14 +01:00
Bjarne von Horn 9a0a683f3c Add 8139too for 5.14.21 2024-02-01 16:05:06 +01:00
Florian Pose 585070576c Merge branch 'ethercat-backport_setip' into 'devel-1.6'
Backport Set IP command from master

See merge request etherlab.org/ethercat!112
2024-02-01 14:35:32 +00:00
Florian Pose 5e0d49755d Merge branch 'devel-1.6' into ethercat-backport_setip 2024-02-01 15:30:05 +01:00
Florian Pose 4f32561ce9 Merge branch 'devel-1.6' into ethercat-backport_setip 2024-02-01 15:27:17 +01:00
Florian Pose cbc1c22eaa Merge branch 'prepare-1.6' into 'devel-1.6'
Prepare release 1.6

See merge request etherlab.org/ethercat!113
2024-02-01 14:22:15 +00:00
Florian Pose ee55c20e28 Fixed mail address; limited lines to 78 characters; removed $Id$. 2024-02-01 15:15:41 +01:00
Bjarne von Horn 7727ac725d Use spinlocks in ec_mini.ko examples
down() must not be used in softirq context:
```
[  613.686994] BUG: sleeping function called from invalid context at ../kernel/locking/semaphore.c:58
[  613.687003] in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 29, name: ktimers/1
[  613.687007] preempt_count: 0, expected: 0
[  613.687009] RCU nest depth: 3, expected: 0
[  613.687013] CPU: 1 PID: 29 Comm: ktimers/1 Tainted: G        W  OE      6.1.38-lp154.12-0601rt #1 1ef8e7f7e45a6388beff51e7b17265074b1375d6
[  613.687020] Hardware name: ICP / iEi IMBA-9454ISA/IMBA-9454ISA(E168), BIOS 080014  02/20/2009
[  613.687023] Call Trace:
[  613.687029]  <TASK>
[  613.687034]  dump_stack_lvl+0x44/0x5c
[  613.687046]  __might_resched+0x171/0x1c0
[  613.687055]  ? check_slave_config_states+0x100/0x100 [ec_mini 7f93b9d1541d0037eab9400e73ee29f252250780]
[  613.687070]  down+0x1e/0x70
[  613.687076]  cyclic_task+0x11/0xdc [ec_mini 7f93b9d1541d0037eab9400e73ee29f252250780]
[  613.687088]  call_timer_fn+0x29/0x190
[  613.687096]  run_timer_softirq+0x4d5/0x570
[  613.687104]  ? __schedule+0x32b/0x1330
[  613.687110]  __do_softirq+0xd5/0x2ec
[  613.687117]  ? smpboot_thread_fn+0x23/0x300
[  613.687127]  run_timersd+0x60/0xb0
[  613.687130]  smpboot_thread_fn+0x24c/0x300
[  613.687133]  ? smpboot_unregister_percpu_thread+0x70/0x70
[  613.687135]  kthread+0x129/0x140
[  613.687138]  ? kthread_complete_and_exit+0x20/0x20
[  613.687141]  ret_from_fork+0x22/0x30
[  613.687146]  </TASK>
```
2024-02-01 14:09:00 +01:00
Florian Pose 512bac72e2 Merge branch 'devel-1.6' into prepare-1.6 2024-02-01 13:26:12 +01:00
Florian Pose be41b79f3f Merge branch 'devel-1.6' into prepare-1.6 2024-02-01 13:09:45 +01:00
Florian Pose 038f732543 Increase ioctl() version magic to 35. 2024-02-01 13:05:55 +01:00
Florian Pose 762bb01ff9 Merge branch 'devel-1.6' into ethercat-backport_setip 2024-02-01 12:41:38 +01:00
Florian Pose 2fdea4dd53 Merge branch '79-query-scan-progress-via-api-2' into 'devel-1.6'
Resolve "Query scan progress via API"

See merge request etherlab.org/ethercat!110
2024-02-01 10:27:07 +00:00
Bjarne von Horn 75686518c7 Remove whitespace. 2024-02-01 09:20:25 +01:00