Return-Path: Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) (using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 97A751A01EC for ; Tue, 8 Mar 2016 05:33:23 +1100 (AEDT) Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Mar 2016 11:33:21 -0700 Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 14BDE19D803E for ; Mon, 7 Mar 2016 11:21:13 -0700 (MST) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u27IXHIc34668594 for ; Mon, 7 Mar 2016 11:33:17 -0700 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u27IXEGA004816 for ; Mon, 7 Mar 2016 11:33:16 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [PATCH 2/7] cxlflash: Unmap problem state area before detaching master context From: "Matthew R. Ochs" In-Reply-To: <1457128520-53056-2-git-send-email-ukrishn@linux.vnet.ibm.com> Date: Mon, 7 Mar 2016 12:33:10 -0600 Cc: linux-scsi@vger.kernel.org, James Bottomley , "Martin K. Petersen" , "Manoj N. Kumar" , linuxppc-dev@lists.ozlabs.org, Brian King , Ian Munsie , Andrew Donnellan , Frederic Barrat , Christophe Lombard Message-Id: References: <1457128424-53017-1-git-send-email-ukrishn@linux.vnet.ibm.com> <1457128520-53056-1-git-send-email-ukrishn@linux.vnet.ibm.com> <1457128520-53056-2-git-send-email-ukrishn@linux.vnet.ibm.com> To: Uma Krishnan List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > On Mar 4, 2016, at 3:55 PM, Uma Krishnan = wrote: >=20 > When operating in the PowerVM environment, the cxlflash module can > receive an error from the hypervisor indicating that there are > existing mappings in the page table for the process MMIO space. >=20 > This issue exists because term_afu() currently invokes term_mc() > before stop_afu(), allowing for the master context to be detached > first and the problem state area to be unmapped second. >=20 > To resolve this issue, stop_afu() should be called before term_mc(). >=20 > Signed-off-by: Uma Krishnan Acked-by: Matthew R. Ochs