mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cxl: Force psl data-cache flush during device shutdown
This change adds a force psl data cache flush during device shutdown callback. This should reduce a possibility of psl holding a dirty cache line while the CAPP is being reinitialized, which may result in a UE [load/store] machine check error. Signed-off-by: Vaibhav Jain <[email protected]> Reviewed-by: Andrew Donnellan <[email protected]> Acked-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
0e17166d37
commit
d7b1946c79
1 changed files with 3 additions and 0 deletions
|
|
@ -1610,6 +1610,9 @@ static void cxl_pci_remove_adapter(struct cxl *adapter)
|
|||
cxl_sysfs_adapter_remove(adapter);
|
||||
cxl_debugfs_adapter_remove(adapter);
|
||||
|
||||
/* Flush adapter datacache as its about to be removed */
|
||||
cxl_data_cache_flush(adapter);
|
||||
|
||||
cxl_deconfigure_adapter(adapter);
|
||||
|
||||
device_unregister(&adapter->dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue