Received: by 10.223.164.202 with SMTP id h10csp220516wrb; Mon, 13 Nov 2017 05:29:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMbl3/FfkagezitpHM2qBImIpJVm2/NSWipYKJf1+W/k9vUnlpD6dggl13rHq+b+zA0qLRK8 X-Received: by 10.101.65.75 with SMTP id x11mr8513807pgp.388.1510579776623; Mon, 13 Nov 2017 05:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579776; cv=none; d=google.com; s=arc-20160816; b=kSZdYImTt215xgDD/wuEk+vOA7yp0TDZfMgJtgedFS4qcGf+2mFD+RT3cmJOtzg3Hr +7t95JQEJYnZ4g8QjM2GzXBMyR7mJyUTQMQME/CyuvsYzA/zGGBiZ2rDezC8F+BWJ8ZI j6AvdOJfexECRnI/meK4OrC9JEN00SKFxVeTQrtU345wrfkjFnEDJqqadiIh49FHe3EP cwYXOEXf4B4IFcgCVzE84WAwgx0uwaly9y9H78bhWSZPBV5oZVZssFN0PHH9Ok34kQ5E Z6cd/t4K8+Ky/keMKM7lEK4h8di1pNQsScIZ2wSbfca+YCbzel4Zorg41xGcQoQx+2hP F8pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=XgepOd/Xukv16nMDmcDPvzcUVgOkABoN50GgmSWzESg=; b=G3v9ASX+Rk/fNVss+P89UqjG/oS5A3CYaIXs4jhm5x1fPl/OkU8puJSsGk2OR3W5Aq vnwAIB1OHTxq9Qp43v75s3hrqELESIWMG1v/y+u7yuBZ+hfx+Euo6hlvBWkJEI103nV8 JgAclgzdWdFhQW5UdfKYKyMHAKFLmt3wjMkq7EmthWcHG2dYzMHRnba4I/3Mr25pdJTS kOGLaKMg0RA+jdKlDNaHkJJuRTJxNoy96K2ReUol1BNqkI1M7+66GKrow/1N9VlzKNL3 EUJMH9toXuLBXE/pAyCRkVVAtAQHB7WnRX1LFEmUE9MLy07nX+6GSbC2+QclC7dgho2d DKaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si14178575plf.786.2017.11.13.05.29.23; Mon, 13 Nov 2017 05:29:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754115AbdKMM7r (ORCPT + 95 others); Mon, 13 Nov 2017 07:59:47 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:49802 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754060AbdKMM7l (ORCPT ); Mon, 13 Nov 2017 07:59:41 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 92527AA6; Mon, 13 Nov 2017 12:59:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vaibhav Jain , Andrew Donnellan , Frederic Barrat , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 16/87] cxl: Force psl data-cache flush during device shutdown Date: Mon, 13 Nov 2017 13:55:33 +0100 Message-Id: <20171113125616.741119416@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vaibhav Jain [ Upstream commit d7b1946c7925a270062b2e0718aa57b42ba619c0 ] 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 Reviewed-by: Andrew Donnellan Acked-by: Frederic Barrat Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/misc/cxl/pci.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -1620,6 +1620,9 @@ static void cxl_pci_remove_adapter(struc 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); From 1584120410798561913@xxx Wed Nov 15 08:35:49 +0000 2017 X-GM-THRID: 1584120410798561913 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread