[RESEND] cxl: Force psl data-cache flush during device shutdown
Andrew Donnellan
andrew.donnellan at au1.ibm.com
Wed Jan 4 17:43:58 AEDT 2017
On 04/01/17 17:18, Vaibhav Jain wrote:
> 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 <vaibhav at linux.vnet.ibm.com>
Should this be cc: stable? (it does depend on aaa2245ed836 which only
came in during 4.9)
Looks good.
Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> ---
> Resend: Fixed the author ident.
> ---
> drivers/misc/cxl/pci.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
> index 80a87ab..73432e7 100644
> --- a/drivers/misc/cxl/pci.c
> +++ b/drivers/misc/cxl/pci.c
> @@ -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);
>
--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com IBM Australia Limited
More information about the Linuxppc-dev
mailing list