ACPI: ACPICA / OSL: Avoid unmapping ACPI memory inside of the AML interpreter
Get series with b4
b4 am 1666722.UopIai5n7p@kreacherVersions newest first · linked by author and title
- v4 Latest2 patches 7 repliesIn review
- v34 patches 4 repliesSuperseded
- v24 patches 5 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 5 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ACPI: OSL: Implement deferred unmapping of ACPI memorydrivers/ | +77 | 0 replies | |
| 2/2 | ACPICA: Preserve memory opregion mappingsdrivers/ drivers/ include/ | +64 | 7 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Xiang Li |
|---|---|
| 1/2 | |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/2] ACPI: ACPICA / OSL: Avoid unmapping ACPI memory inside of the AML interpreter
Hi All,
Quoted 19 lines · CEST Rafael J. Wysocki
Hi All,
Quoted 10 lines · CEST Rafael J. Wysocki
Hi All,
This series is to address the problem with RCU synchronization occurring, possibly relatively often, inside of
acpi_ex_system_memory_space_handler(), when the namespace and interpreter mutexes are held.Like I said before, I had decided to change the approach used in the previous iteration of this series and to allow the unmap operations carried out by
acpi_ex_system_memory_space_handler()to be deferred in the first place, which is done in patches [1-2/4].In the meantime I realized that calling
syncrhonize_rcu_expedited()under the "tables" mutex within ACPICA is not quite a good idea too and that there is no reason for any users ofacpi_os_unmap_memory()in the tree to use the "sync" variant of unmapping.
Quoted 7 lines
So, unless I'm missing something,
acpi_os_unmap_memory()can be changed to always defer the final unmapping and the only ACPICA change needed to support that is the addition of theacpi_os_release_unused_mappings()call to get rid of the unused mappings when leaving the interpreter (module the extra call in the debug code for consistency).So patches [1-2/4] have been changed accordingly.
And this still can be improved by using queue_rcu_work() to queue up the unused mappings for removal in which case ACPICA need not be modified at all for the deferred unmapping to work.
Accordingly, patches [1-2/4] from the v3 (and earlier) are now replaced by one patch, the [1/2].
Quoted 6 lines
Quoted 3 lines
However, it turns out that the "fast-path" mapping is still useful on top of the above to reduce the number of ioremap-iounmap cycles for the same address range and so it is introduced by patches [3-4/4].
Patches [3-4/4] still do what they did, but they have been simplified a bit after rebasing on top of the new [1-2/4].
Moreover, the ACPICA part of the old patches [3-4/4] can be reworked to always preserve memory mappings created by the memory opregion handler without the need to take additional references to memory mappings at the OS level, so patch [4/4] from the v3 (and earlier) is not needed now.
Again, for details, please refer to the patch changelogs, but I'm kind of inclined to make these changes regardless, because they both are clear improvements to me.
As before:
Quoted 8 lines
Quoted 6 lines
The series is available from the git branch at
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git\
acpica-oslfor easier testing.
Also the series have been tested locally.
Cheers,
Rafael
_______________________________________________
Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]