Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/imx-enet: Add support for ethernet in imxrt1064-evk #96

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

julianuziemblo
Copy link

@julianuziemblo julianuziemblo commented Aug 26, 2024

Description

Add Ethernet support for iMX RT106x, merging the code with existing driver for iMX RT6UL/6ULL in drivers/imx-enet.c
Some tests for armv7a7-imx6ull-evk may not be passing without phoenix-rtos/phoenix-rtos-project#1134

Motivation and Context

https://jira.phoenix-rtos.com/browse/RTOS-507

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: armv7a7-imx6ull-evk, armv7m7-imxrt106x-evk, armv7a7-imx6ull-dataro.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

drivers/enet.c Outdated Show resolved Hide resolved
drivers/enet.c Outdated Show resolved Hide resolved
drivers/enet.c Outdated Show resolved Hide resolved
drivers/enet.h Outdated Show resolved Hide resolved
drivers/enet.h Outdated Show resolved Hide resolved
drivers/enet.h Outdated Show resolved Hide resolved
drivers/enet.h Outdated Show resolved Hide resolved
drivers/enet.h Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 3185e73 to a582983 Compare August 26, 2024 12:09
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 3 times, most recently from b8059e4 to 2af33ab Compare September 3, 2024 12:58
drivers/imx-enet.h Outdated Show resolved Hide resolved
drivers/imx-enet.h Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 2af33ab to f5e973e Compare September 3, 2024 13:01
drivers/imx-enet.h Outdated Show resolved Hide resolved
@phoenix-rtos phoenix-rtos deleted a comment from github-actions bot Sep 3, 2024
Copy link
Member

@nalajcie nalajcie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review as current commit structure prevents efficient code review (the browser crashed with the amount of changes/comments in single commit :)).

Short summary:

  • fix commit message titles (see git history for examples), at least prefix them with module name (also include in commit message bodies what / why was changed), add missing JIRA ID
  • clearly split the changes into separate atomic commits (eg. changing type name is not bringing new functionality and should be a separate change)
  • fix coding style (according to our coding convention / MISRA as described in some comments)
  • please test the code after changes on imx6ull-evk and DTR project (from CI I see that something is broken there), check also if the performance is not degraded

_targets/Makefile.armv7a7-imx6ull Show resolved Hide resolved
drivers/bdring.h Show resolved Hide resolved
drivers/bdring.h Outdated Show resolved Hide resolved
drivers/ephy.c Outdated Show resolved Hide resolved
drivers/pktmem.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Show resolved Hide resolved
drivers/ephy.c Outdated Show resolved Hide resolved
drivers/ephy.c Outdated Show resolved Hide resolved
drivers/ephy.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from f5e973e to 7dbbd7e Compare September 4, 2024 08:03
Copy link

github-actions bot commented Sep 4, 2024

Unit Test Results

7 787 tests  +62   7 067 ✅ +57   44m 6s ⏱️ + 6m 57s
  461 suites +16     718 💤 + 3 
    1 files   ± 0       2 ❌ + 2 

For more details on these failures, see this check.

Results for commit 5eb5717. ± Comparison against base commit b0964a1.

This pull request removes 1 and adds 63 tests. Note that renamed tests count towards both.
phoenix-rtos-tests/proc/test_thread_rand ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/proc/test_thread_rand.threads_rand.test_1
flash ‑ sparcv8leon3-generic-qemu:flash
phoenix-rtos-tests/libc/unix-socket ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_async
phoenix-rtos-tests/libc/unix-socket ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_errnos
phoenix-rtos-tests/libc/unix-socket ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_liveness
phoenix-rtos-tests/libc/unix-socket ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.recv_msg_peek
phoenix-rtos-tests/libc/unix-socket ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_async
phoenix-rtos-tests/libc/unix-socket ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_errnos
phoenix-rtos-tests/libc/unix-socket ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_liveness
phoenix-rtos-tests/libc/unix-socket ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.recv_msg_peek
phoenix-rtos-tests/libc/unix-socket ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/libc/unix-socket.test_unix_socket.accept_connect_async
…

♻️ This comment has been updated with latest results.

drivers/bdring.c Outdated Show resolved Hide resolved
drivers/imx-enet-regs.h Outdated Show resolved Hide resolved
drivers/imx-enet-regs.h Outdated Show resolved Hide resolved
drivers/imx-enet-regs.h Outdated Show resolved Hide resolved
drivers/imx-enet-regs.h Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 2 times, most recently from e11d5db to 067dc1b Compare September 6, 2024 15:10
drivers/imx-enet.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 3 times, most recently from 8c41250 to fc32052 Compare September 10, 2024 10:19
@nalajcie nalajcie marked this pull request as draft September 13, 2024 11:23
@nalajcie
Copy link
Member

converting to draft until it will be ready for next review

drivers/pktmem.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 2 times, most recently from 23199d4 to 949cbf1 Compare September 16, 2024 08:29
drivers/pktmem.c Outdated Show resolved Hide resolved
drivers/pktmem.c Outdated Show resolved Hide resolved
drivers/pktmem.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 5 times, most recently from 2345b0e to c27bbc8 Compare October 10, 2024 10:03
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from c27bbc8 to c90ea6b Compare October 16, 2024 10:59
drivers/ephy.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from c90ea6b to 6b1f87c Compare October 16, 2024 11:01
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
drivers/imx-enet.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 6b1f87c to d8acbf1 Compare October 16, 2024 11:17
drivers/imxrt106x-gpio.c Outdated Show resolved Hide resolved
drivers/imxrt106x-gpio.c Outdated Show resolved Hide resolved
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from d8acbf1 to 1242ca1 Compare October 16, 2024 11:19
@julianuziemblo julianuziemblo marked this pull request as ready for review October 16, 2024 11:34
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 1242ca1 to d0a36a5 Compare October 16, 2024 11:59
change code style to match coding conventions

JIRA: RTOS-507
refactor printfs with repeated format pattern into ephy_printf

JIRA: RTOS-507
first step to add separate implementation files for imx6ull and imxrt106x gpio

JIRA: RTOS-507
remove active value inversion in gpio_wait because the value is already being inverted in gpio_get

JIRA: RTOS-507
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from d0a36a5 to 6da7579 Compare October 21, 2024 10:19
fix 7b90e8e:
- add _Atomic specifier to volatile vars used as atomics
- change operations on the vars to atomic_*

JIRA: RTOS-507
fix packet buffer handling for targets with page size less than packet buffer size

JIRA: RTOS-507
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 6da7579 to 5eb5717 Compare October 21, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants