Commit Graph

2708 Commits

Author SHA1 Message Date
Bjarne von Horn
3870a66c8f Fix rtdm rtai redefinition error 2024-02-16 14:06:23 +01:00
Bjarne von Horn
e8213ea7e8 allow non-standard RTAI include dir 2024-02-16 14:05:58 +01:00
Florian Pose
251bb4a147 Changed AL state change timeout. Maybe a fix for #32. 2024-02-08 12:43:17 +01:00
Florian Pose
5f8d97edcf Assigned ioctl calls to RT, nRT or both; documented that in header. 2024-02-08 12:05:29 +01:00
Florian Pose
677b8442e3 Minor: Use slave pointer. 2024-02-08 12:04:47 +01:00
Florian Pose
caea048cc9 Merge branch 'prefetch-domain-pointer' into 'devel-1.6'
Prefetch domain pointer / made domain argument const

See merge request etherlab.org/ethercat!118
2024-02-08 08:54:17 +00:00
Bjarne von Horn
d0f4aed39b Make ecrt_master_reset available in RT context
It takes the master_sem, so calling it from RT context is not an option.
The reset is done by a workqueue now, which is triggered in a NMI-safe way.

Fixes #103
2024-02-08 08:59:29 +01:00
Bjarne von Horn
1226b9d745 build with kernel 3.4 in CI 2024-02-07 18:22:25 +01:00
Florian Pose
2f4c06afc1 Moved application time ioctl for RT-only; changed some permissions. 2024-02-07 17:08:52 +01:00
Florian Pose
67b3756976 Removed header addition. 2024-02-07 16:18:05 +01:00
Florian Pose
ec407273f4 Changed email address. 2024-02-07 16:17:22 +01:00
Florian Pose
0c9813862f Minor: Broke long lines. 2024-02-07 16:11:02 +01:00
Florian Pose
a5df1c38d1 Moved fetching domain offset to ecrt_master_activate(). 2024-02-07 15:27:47 +01:00
Florian Pose
4bab54a336 Removed some unused variables. 2024-02-07 15:26:37 +01:00
Bjarne von Horn
6092d13098 further ccat fixes for leap 15.5 2024-02-07 15:24:21 +01:00
Bjarne von Horn
c064eb7446 fix -Wcomment in igc 2024-02-07 15:21:04 +01:00
Bjarne von Horn
9f8570f3cd further igc fixes for leap 15.5 2024-02-07 15:19:55 +01:00
Bjarne von Horn
a5fc2b0f26 remove unused variables. 2024-02-07 15:03:39 +01:00
Bjarne von Horn
fb3c725953 add missing include for igc on suse 15.5 2024-02-07 15:00:19 +01:00
Bjarne von Horn
e553a9999e Merge branch 'igc_6.1' into devel-1.6 2024-02-07 14:49:37 +01:00
Bjarne von Horn
26ffb1d265 Merge branch 'genet_5.10' into devel-1.6 2024-02-07 14:48:05 +01:00
Bjarne von Horn
6f17f8d73b fix igc resource leaks 2024-02-07 12:20:53 +01:00
Bjarne von Horn
777acd8517 verify igc resource allocation and releasing 2024-02-07 12:20:47 +01:00
Bjarne von Horn
bd94f4bb88 [e1000] cancel watchdog task in ecdev mode on removal 2024-02-07 12:16:49 +01:00
Bjarne von Horn
81bbf7dbc4 [e1000] fix scheduling watchdog task. 2024-02-07 12:13:15 +01:00
Bjarne von Horn
0d1cd09043 [e1000] add missing forward declaration 2024-02-07 12:03:57 +01:00
Bjarne von Horn
105ee25afb add igc 5.14.21 with suse ifdefs 2024-02-06 14:02:11 +01:00
Bjarne von Horn
6170ac2331 Add igc 6.1.38 2024-02-06 13:23:13 +01:00
Bjarne von Horn
49fae0c6dc Fix igc link detection with xenomai 2024-02-06 12:50:21 +01:00
Bjarne von Horn
19b8f672c7 Disable memory allocation in {soe,sdo}_request_write
Because it's not compatible with Xenomai and other atomic contexts.
The memory is preallocated when creating the request in before.
1.6-alpha
2024-02-05 16:05:57 +01:00
Bjarne von Horn
501903aec7 [igc] fix copy pasta typo 2024-02-05 15:17:41 +01:00
Bjarne von Horn
c76399b8db more eth_hw_addr_set ifdefs for suse's kernel 2024-02-05 14:25:48 +01:00
Bjarne von Horn
1485d78d6a Add bcmgenet 5.14.21 2024-02-05 12:09:35 +01:00
Florian Pose
d89191cd9e strcpy explanations. 2024-02-05 12:07:34 +01:00
Bjarne von Horn
69a8ff515a add genet update script 2024-02-05 11:52:43 +01:00
Bjarne von Horn
5ea3c93d06 Add genet 5.10.110 2024-02-05 11:52:43 +01:00
Florian Pose
ec54baeef6 Removed nunecessary srcdir again; added libethercat.map to EXTRA_DIST. 2024-02-05 11:06:01 +01:00
Florian Pose
7683717998 Added srcdir for mapfile dependencies. 2024-02-05 10:59:25 +01:00
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