-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fat_fs: Add support for the "win" variable alignment in FATFS struct #41096
fat_fs: Add support for the "win" variable alignment in FATFS struct #41096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change requires west manifest update that should be part of the PR.
Hi Ermel, Thanks for reviewing my PR, should I go and update the west manifest? If yes, can point me the documentation on what should I update on the west manifest. Thanks. Regards, |
This change applies only when certain changes to FAT FS are applied (zephyrproject-rtos/fatfs#9), so what you need is to have commit that would propose the change to the FAT FS for by providing modified west.yml that would refer to the PR you want to introduce and then the commit that adds Zephyr changes on top. This is my PR #36302, as an example, that has been introducing new version of FAT FS into Zephyr; there are two commits: the first one introduces new version of FAT FS by changing its manifest sha and the other commit adds some supporting code. This is very similar to your case here. |
Hi Ermel, Ah, okay got it. So for the PR in (zephyrproject-rtos/fatfs#9) I still need to retain right? Regards, |
Yes, you need both PRs because this PR, the one we are talking under, is actually attempting to introduce, into Zephyr, changes that you have done to the other module via the zephyrproject-rtos/fatfs#9. |
Hi Ermel, I found that there is no reviewer in the pull request zephyrproject-rtos/fatfs#9 . I cant find any button to add the reviewer, can you help to review my code at the PR as well? Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ngboonkhai You should add reference to the fatfs module PR in west.yaml patch.
Something like in https://github.com/zephyrproject-rtos/zephyr/pull/41262/files
Hi nvlsianpu, Thanks for remind, Ermel has told me that I need to update the west.yaml as well, was waiting for the PR at zephyrproject-rtos/fatfs#9. After that I will force push the PR here with the hash with the updated west.yaml. Wonder if you can help me the PR at zephyrproject-rtos/fatfs#9 ? Regards, |
@ngboonkhai contribution process expects that you should first have PR like this one with |
582c279
to
4efd23c
Compare
Can you modify the west.yml to pull in the FAT FS PR? Otherwise the sanity here is run with FAT FS that does not support the option you are adding.
The FAT FS PR will not be merged till this PR is able to run with it included through west. Btw. I did test builds of this change, after checking out all needed repos by hand (because west is not done...) and here is example of memory impact, for your information. with window set to 1 (default):
and with window set to 512:
|
Hi @de-nordic , Thanks for helping to run the compilation manually. I don't quite understand on this part, if the PR in the fatfs not merge in yet, how do I get the revision id? Regards, |
You use the /pull/9/head as the sha:
This allows sanity, and interested reviewers, to get your complete solution and test it. |
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Hi @de-nordic , Okay, done added. But after the review process, I need to force push again with the revision id that merged in into the fatfs? Regards, |
f4dde44
to
3cd5c1d
Compare
Ah okay |
Okay, noted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change order of commits: west change goes in first.
In west commit remove pull/9/head
from commit title and body, because the same data will be within source anyway, instead mention what the update actually brings in, as a rationale for the update; look at commit 284fbf0, as an example, where you will see that the commit message describes what the west update brings in with module.
3cd5c1d
to
d9552bc
Compare
Hi Ermel, Alright, done force push with the the above request Regards, |
@ngboonkhai you can left behind west update now - it was bumped up by #41885 |
Hi @nvlsianpu, Meaning i need to rebase my repo to the latest and force push? Regards, |
yes |
d9552bc
to
2f1e8f2
Compare
@nvlsianpu how do I rerun the twister without force push? the twister failed, due to I update the zephyr mainline first before update the fatfs repo, and now I need to rerun the twister. |
2f1e8f2
to
cd407f0
Compare
@ngboonkhai I have merged the FAT FS module, please update revision in west.yaml |
Update west.yaml to the commit consist of the new config option CONFIG_FATFS_WINDOW_ALIGNMENT to align the win variable with specific alignment Signed-off-by: Boon Khai Ng <[email protected]>
cd407f0
to
2241782
Compare
This is to support Sypnosys Designware SDMMC controller read and write operation where the buffer address is needed to be 16bytes and 512bytes aligned. Adding macro FS_FATFS_WINDOW_ALIGNMENT to align the "win" variable address in FATFS struct. Signed-off-by: Boon Khai Ng <[email protected]>
2241782
to
772189a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. Thanks!
Please help me to merge the changes. Thanks. |
Unfortunately you have to wait till code-freeze ends for the 3.0 release (https://github.com/zephyrproject-rtos/zephyr/wiki/Program-Management#actual-and-planned-milestone-dates), then we will be poking at people to merge it. |
This is to support Sypnosys Designware SDMMC controller read and write
operation where the buffer address is needed to be 16bytes and 512bytes
aligned. Adding macro FS_FATFS_WINDOW_ALIGNMENT to align the "win" variable
address in FATFS struct.
Signed-off-by: Boon Khai Ng [email protected]