diff options
| author | Anshul Dalal <[email protected]> | 2025-10-17 18:45:26 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-22 12:05:52 -0600 |
| commit | 9ebdbbc43e5fb5841d85ec7ebcb1dbf07f4c87b0 (patch) | |
| tree | feafca258b17a09b8a5a232fe3ed4c42a4cd15a6 /include/linux/zstd_lib.h | |
| parent | 567a683e8ced54c3ffa53f62a4ed7e535268c6f2 (diff) | |
arm: armv8: invalidate dcache entries on dcache_enable
In dcache_enable, currently the dcache entries are only invalidated when
the MMU is not enabled. This causes issues when dcache_enable is called
with the MMU already configured, in such cases the existing dcache
entries are not flushed which might result in un-expected behavior.
This patch invalidates the cache entries on every call of dcache_enable
before enabling dcache (by setting CR_C). This makes dcache_enable
behave similar to icache_enable as well.
Reviewed-by: Dhruva Gole <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Anshul Dalal <[email protected]>
Tested-by: Wadim Egorov <[email protected]>
Diffstat (limited to 'include/linux/zstd_lib.h')
0 files changed, 0 insertions, 0 deletions
