Slaves can fail to correctly read their SII information, leading to
zero or corrupted SII information. This leads to slaves that remain
in PREOP or SAFEOP.
This is caused by the cached external (slave) datagrams being cycled
through too quickly due to being marked as consumed when they are not.
Datagrams can then be lost or incorrectly shared between multiple slaves
as the ring returns a datagram that is still in use by a read SII call.
This may also occur if multiple services are contending for a slaves
mailbox.
I have not added checks into ec_master_get_external_datagram() to
check that a returned datagram is not currently in use.
Fixup for f943348d - caused deadlock.
Fixes the exit condition of the mailbox FSMs -- previously they returned
whether they were sending a datagram or not, and the parent assumed that
this meant they were done if they didn't want to send a datagram. Since
earlier patches can cause idle cycles now, this could cause unexpected
early exit, so they now return whether they're complete or not
explicitly.
Sdo directory now only fetched on request.
The time-consuming SDO directory fetch during slave scan can now be
skipped by setting the EC_SKIP_SDO_DICT in globals.h. The directory
will now instead be fethed the first time an ethercat sdos command
is executed with the ethercat tool.
Skip output statistics during re-scan.
No reason to write output statistics in syslog when issuing a slave
scanning where UNMATCHED datagrams are expected behavior.
When rescanning a slave (and thus discarding any prior pending FSMs),
explicitly clear the slave mailbox, to avoid getting confused by a
stale response.
Fix setting flag in vm_area_struct for Kernel 6.3
See merge request etherlab.org/ethercat!67
(cherry picked from commit 04f202a39c)
27db882d Fix setting flag in vm_area_struct for Kernel 6.3
In upstream commit c9874d3ffeaf (termios: start unifying non-UAPI
parts of asm/termios.h), the INIT_C_CC definition was moved to a new
header, termios_internal.h. So we must include that header to get that
macro, but conditionally, since the header does not exist in older
kernels.
Manually maintaining the table of contents relies on how HTML fragments
are generated, it is prone to errors (infact it is already out of sync)
and just plain boring.
Unfortunately there is no common agreement on all markdown flavours on
how the table of contents must be implemented. Here the `[[_TOC_]]` tag
has been used because it is supported by both GitLab and GitHub:
https://gitlab.com/gitlab-org/gitlab/-/issues/21901