Skip to content

drivers: mss_ethernet_mac: various compilation fixes#6

Open
fcuzzocrea wants to merge 2 commits into
polarfire-soc:mainfrom
fcuzzocrea:fix_mss_mac_compilation
Open

drivers: mss_ethernet_mac: various compilation fixes#6
fcuzzocrea wants to merge 2 commits into
polarfire-soc:mainfrom
fcuzzocrea:fix_mss_mac_compilation

Conversation

@fcuzzocrea

Copy link
Copy Markdown

No description provided.

@fcuzzocrea fcuzzocrea force-pushed the fix_mss_mac_compilation branch from 2e778b4 to c1bccb5 Compare March 14, 2022 08:39
@fcuzzocrea fcuzzocrea changed the title platfor: mss_mac: various compilation fixes drivers: mss_ethernet_mac: various compilation fixes Mar 14, 2022
@nitindeshpande

Copy link
Copy Markdown
Collaborator

Thanks for the PR.
As mentioned in issue#5, the compilation errors due to folder structure change have been fixed. There has been a delay in publishing the change. We are hoping to get this out by next week.

@petermcs-01

Copy link
Copy Markdown
Contributor

On the critical nesting point, I'd note that the portENTER/EXIT functions are not supposed to be called from ISR. I can't find the reference that caused me to put the updates to the nesting level in at the moment and I'm not 100% sure they are needed...
It may relate to the use of xSemaphoreGiveFromISR() in the LwIP mac device driver.

@fcuzzocrea

fcuzzocrea commented Mar 25, 2022

Copy link
Copy Markdown
Author

@petermcs-01 I think you are right. I just successfully tried an external loop-back configuration in phy-less mode between mac0 and mac1, and the portENTER/EXIT functions we making the sofware go kaput when the bridge between mac0 and mac1 was in place. Removed the functions, and it worked.

Do you have any recommendation on how to implement a proper fix for this, or we just nuke it from the driver ?

Thanks!

@petermcs-01

Copy link
Copy Markdown
Contributor

All the testing I've done to date over the last 4 years has been with the original adjustment of the nesting count and I'd be inclined to leave that in the driver for now until someone has tested the code properly with it removed....

@fcuzzocrea

Copy link
Copy Markdown
Author

Alright! Which kinds of tests needs to be performed? I can help with that.

So far, the only configuration I tried is null phy loopback connection between mac0 and mac1. I wasn't able to perform the same kind of test on the ICICLE kit with an ethernet crossed cable because for some reason, rx code always fails.

Also, how can I export the nesting count variable from FreeRTOS to be available to the driver?

Thanks

@fcuzzocrea

Copy link
Copy Markdown
Author

I saw that the #include were fixed with the 2022.08 update, but what about the direct update of the uxCriticalNesting variable in the driver?

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.

3 participants