Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp276145pxb; Wed, 4 Nov 2020 22:43:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxopGFzYNfabuez0j+PkTZKJvu+QQejtPyEAmvlN3bE2xhGjhrfcszlgwoz008NFfbv1qLR X-Received: by 2002:a17:906:cd0f:: with SMTP id oz15mr922795ejb.228.1604558586827; Wed, 04 Nov 2020 22:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604558586; cv=none; d=google.com; s=arc-20160816; b=Ai0AsTnF6z/q9yg0jYf/O3vQ85FU3zEwZsbKTixxfsNYXq7G8WZ8unJrHShP/z4/sB Dx5Mjc7LWWzSerW+cRiNjP7cD2AiR7PWKnM3ykO92VeShMaIxHi28LcDMeHrG/zoksAG etd3x3Hq7NH0AKkE7FcGolXLbTD9t06b0VTJtHEigmA1hL2i2N9I0DVGBeG4OQI9lhDO BTzLDW07Vac4DlkJQL7mmxBy4Uh3Etk9SxLFvsH37Zg7QbNjEev/PjlXN4PLQx5hYFOX a7f58Gc4ROZpwNavkjKlFpAPYgr8c0Imh1eziJC2XXD8sUcGoKtMnNUILGx47jZe3FQ4 TwDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=dwJxfTt1li9cbalF1cOR5hI7couMnw13Xkxs2UAKmOc=; b=1CkH3aInCowcOKJ78CYXIrmriEXBU/bLChqNFT+8PShn0yFu8wREmteAY7jL65N2sw yPqeI/5dKWyodPRfGHYqGN489vkIoGPx6TFwGIfU2FcmEq9IVI6fWqmg4HzIcOHJoxlB nOHShp+3g7YcAteJPLJ67FjC2c8rHAWbtaJcwyCeDGzKIcZKbCBE8PMnoXG95uuCstyQ krc8uBDh3AgL5X5EaemSHUaNqVMBS6ftscC1pwjxJd7uXZ8fMSF+2aBrz8IixayrYAYR f/4L/4LitaR4VXdm12DtAJlCv9jibrbe+HHs4EOId12iBmiYbIRLt+0Z5WjxUPfrwpOX tXfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="C/Ilvev+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si507858edr.58.2020.11.04.22.42.44; Wed, 04 Nov 2020 22:43:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="C/Ilvev+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730497AbgKEGFa (ORCPT + 99 others); Thu, 5 Nov 2020 01:05:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729141AbgKEGDS (ORCPT ); Thu, 5 Nov 2020 01:03:18 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE5EC0613D1 for ; Wed, 4 Nov 2020 22:03:17 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id h6so594337pgk.4 for ; Wed, 04 Nov 2020 22:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dwJxfTt1li9cbalF1cOR5hI7couMnw13Xkxs2UAKmOc=; b=C/Ilvev+vZW0UHKxm1C3sg4I2IxXYhfJueXH6PfxeoQtgMhvdoLp+0VikW7iOccx/5 DnhM2dBEbI2ODXoFJ5+LTLOzTiRRpIwzuO7WMK3HGAI2xAij+sSLkhpu2dYi+l8a92tr ZWlEYol8+RyT5ROI8dCFytpf7xnX/5ooCgn/Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dwJxfTt1li9cbalF1cOR5hI7couMnw13Xkxs2UAKmOc=; b=YnzZLCRCe2Yixv57KMsNOpKVytpbMbwR/NIJMrQJPfOIhp9ZdIw93wr6lJwzYuumDC ulB0EJeZeMKjnVUV9rzXJUWzA4TeCVifwDdtdW+8iAc9KyqmCrexNmUjwlJzC8IbZzbT VAvGN7dJRENOhlHNQo27Dhx2LZlo0vFITAvjvlUHt8si6fGo1/30vdwX9Y7PM4XLAqXB Re2PPYTyZheo11pHuardGuPH5kXnzW9tyqJahUSYkPRiTnB2PbDn/edeHEiEr8nhEwYP 2LKZU7S3itV+k0MYGJPuZm8g7lB+XutYtVhBZZ449wlMIj8DU7QDtA72vNexJxZfv7Zv LXQA== X-Gm-Message-State: AOAM532GKm+XUQENKDjNtKl1Ew/GGCQeXXEHGiuVF6HRfMj0JsiDKOD7 v95MbzAVHGxuBYdFHhWqctWEbQ== X-Received: by 2002:aa7:96d7:0:b029:18a:b62f:3527 with SMTP id h23-20020aa796d70000b029018ab62f3527mr918535pfq.53.1604556197209; Wed, 04 Nov 2020 22:03:17 -0800 (PST) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id e201sm834241pfh.73.2020.11.04.22.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 22:03:16 -0800 (PST) From: Vikas Gupta To: eric.auger@redhat.com, alex.williamson@redhat.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: vikram.prakash@broadcom.com, Vikas Gupta Subject: [RFC, v0 2/3] vfio/platform: change cleanup order Date: Thu, 5 Nov 2020 11:32:56 +0530 Message-Id: <20201105060257.35269-3-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201105060257.35269-1-vikas.gupta@broadcom.com> References: <20201105060257.35269-1-vikas.gupta@broadcom.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000002c601105b355da48" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000002c601105b355da48 In the case of msi, vendor specific msi module may require region access to handle msi cleanup so we need to cleanup region after irq cleanup only. Signed-off-by: Vikas Gupta --- drivers/vfio/platform/vfio_platform_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vfio/platform/vfio_platform_common.c b/drivers/vfio/platform/vfio_platform_common.c index c713f4e4c552..b9d68ccdf92f 100644 --- a/drivers/vfio/platform/vfio_platform_common.c +++ b/drivers/vfio/platform/vfio_platform_common.c @@ -283,8 +283,8 @@ static void vfio_platform_release(void *device_data) WARN_ON(1); } pm_runtime_put(vdev->device); - vfio_platform_regions_cleanup(vdev); vfio_platform_irq_cleanup(vdev); + vfio_platform_regions_cleanup(vdev); } mutex_unlock(&driver_lock); -- 2.17.1 --0000000000002c601105b355da48 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQPwYJKoZIhvcNAQcCoIIQMDCCECwCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2UMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB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