* [RESEND] cxl: Force psl data-cache flush during device shutdown
@ 2017-01-04 6:18 Vaibhav Jain
2017-01-04 6:43 ` Andrew Donnellan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Vaibhav Jain @ 2017-01-04 6:18 UTC (permalink / raw)
To: linuxppc-dev
Cc: Vaibhav Jain, frederic.barrat, Andrew Donnellan, Ian Munsie,
Christophe Lombard, Philippe Bergheaud, Gregory Kurz
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@linux.vnet.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);
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RESEND] cxl: Force psl data-cache flush during device shutdown
2017-01-04 6:18 [RESEND] cxl: Force psl data-cache flush during device shutdown Vaibhav Jain
@ 2017-01-04 6:43 ` Andrew Donnellan
2017-01-05 14:44 ` Frederic Barrat
2017-01-27 0:40 ` Michael Ellerman
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Donnellan @ 2017-01-04 6:43 UTC (permalink / raw)
To: Vaibhav Jain, linuxppc-dev
Cc: Philippe Bergheaud, frederic.barrat, Ian Munsie, Gregory Kurz,
Christophe Lombard
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@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@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@au1.ibm.com IBM Australia Limited
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND] cxl: Force psl data-cache flush during device shutdown
2017-01-04 6:18 [RESEND] cxl: Force psl data-cache flush during device shutdown Vaibhav Jain
2017-01-04 6:43 ` Andrew Donnellan
@ 2017-01-05 14:44 ` Frederic Barrat
2017-01-27 0:40 ` Michael Ellerman
2 siblings, 0 replies; 4+ messages in thread
From: Frederic Barrat @ 2017-01-05 14:44 UTC (permalink / raw)
To: Vaibhav Jain, linuxppc-dev
Cc: Philippe Bergheaud, frederic.barrat, Ian Munsie,
Andrew Donnellan, Gregory Kurz, Christophe Lombard
Le 04/01/2017 à 07:18, Vaibhav Jain a écrit :
> 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@linux.vnet.ibm.com>
> ---
Looks good to me, thanks!
Acked-by: Frederic Barrat <fbarrat@linux.vnet.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);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND] cxl: Force psl data-cache flush during device shutdown
2017-01-04 6:18 [RESEND] cxl: Force psl data-cache flush during device shutdown Vaibhav Jain
2017-01-04 6:43 ` Andrew Donnellan
2017-01-05 14:44 ` Frederic Barrat
@ 2017-01-27 0:40 ` Michael Ellerman
2 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-01-27 0:40 UTC (permalink / raw)
To: Vaibhav Jain, linuxppc-dev
Cc: Philippe Bergheaud, frederic.barrat, Vaibhav Jain, Ian Munsie,
Andrew Donnellan, Gregory Kurz, Christophe Lombard
On Wed, 2017-01-04 at 06:18:52 UTC, 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@linux.vnet.ibm.com>
> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
> Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/d7b1946c7925a270062b2e0718aa57
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-27 0:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 6:18 [RESEND] cxl: Force psl data-cache flush during device shutdown Vaibhav Jain
2017-01-04 6:43 ` Andrew Donnellan
2017-01-05 14:44 ` Frederic Barrat
2017-01-27 0:40 ` Michael Ellerman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.