Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1763193rwb; Fri, 23 Sep 2022 18:54:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ai/uRfL9DGFJwvbsWSlkizaIFoX8CcnHgS0AhpvE9e9EzGsDs3W7vgpra1h9gS1+nQ7Zb X-Received: by 2002:a17:902:f314:b0:178:a6ca:4852 with SMTP id c20-20020a170902f31400b00178a6ca4852mr11106043ple.116.1663984467070; Fri, 23 Sep 2022 18:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663984467; cv=none; d=google.com; s=arc-20160816; b=kcGe2UNFEUafBJMQLbNwT1e82UbWUtiwQ2q2+ZIrPZMkIgL8B9dVgU2OsjMVPLrrYV hkI9z2cvWM4b0kukTNgGudkLCY5c/m58i7nvRn+YvcOnNJcawwrJXUwnVzl2UNy1hc2N nx9S6jjAlvPYTD2GAMaQrdLlzsvR24WRz3sU9RJwiLr7xuc8tcO4jfKQXHM0fyOFiMY4 wdbX4O/K9bPZv193WrMQdYthF6TY685iUhGtwjF8lSUMEVGc8cVB5cwmWsysrMqJ8xej UTZmYgTlAdWUEv6Y5ebn4PfrITeMx+dKsyMLLjuI7FJP+xpMBWaJec7aSrMucgc3d5wX 1QHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:from :subject; bh=mofqj7IsoNSjWh3dUh4ABNbwX6LCSlqhnk93fM0Yy2A=; b=qovMg0eNQw+SgG9sBzeeLavhCw8y1wfh4YQr432suMvu0oP83nVpQlnx05zx7UPsTX U3FasA7CmxnlhJhoOA7QbszfkY7DoDn3KmyRq9r/cFqNaKyHhx01hfT8roEd3dKk5fsz K2VYLzpqQYwdICR5UyF0YqGdFQ8GDANDKq65JMn0pLz8s6Za0azzR4AVWVBD3/StFfc+ 2UE7Ykvf0TeESowthwfQxePmG+qS4FgLYtCC31WSGfIw1l2/TvX2pKMvxO41LkpfUqLd OkKV3quG0jEeMHL4Yd5pOVMnmF/HB5+Kl6gCH4lRD6KWo63l22u9ByZCQbxuCo3kVJ2g kwRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k5-20020a170902ce0500b001769d172607si4300483plg.476.2022.09.23.18.54.15; Fri, 23 Sep 2022 18:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232972AbiIXBtx (ORCPT + 99 others); Fri, 23 Sep 2022 21:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231841AbiIXBtv (ORCPT ); Fri, 23 Sep 2022 21:49:51 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D9F29CAA for ; Fri, 23 Sep 2022 18:49:49 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MZBfQ5b42zHtcg; Sat, 24 Sep 2022 09:45:02 +0800 (CST) Received: from kwepemm600005.china.huawei.com (7.193.23.191) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 09:49:46 +0800 Received: from [10.67.102.118] (10.67.102.118) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 09:49:46 +0800 Subject: Re: [PATCH v2 3/5] hisi_acc_vfio_pci: Remove useless function parameter From: liulongfang To: Shameerali Kolothum Thodi , "alex.williamson@redhat.com" , "jgg@nvidia.com" CC: "cohuck@redhat.com" , "linux-kernel@vger.kernel.org" , "linuxarm@openeuler.org" References: <20220922083928.58797-1-liulongfang@huawei.com> <20220922083928.58797-4-liulongfang@huawei.com> <5f6c62a5-9ccf-c130-7285-aa8cedbf65c9@huawei.com> Message-ID: <2d2bdf4d-344a-0c21-ad5e-cebadac19be8@huawei.com> Date: Sat, 24 Sep 2022 09:49:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <5f6c62a5-9ccf-c130-7285-aa8cedbf65c9@huawei.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.118] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/24 9:45, liulongfang Wrote: > On 2022/9/23 18:30, Shameerali Kolothum Thodi wrote: >> >> >>> -----Original Message----- >>> From: liulongfang >>> Sent: 22 September 2022 09:39 >>> To: alex.williamson@redhat.com; jgg@nvidia.com; Shameerali Kolothum >>> Thodi >>> Cc: cohuck@redhat.com; linux-kernel@vger.kernel.org; >>> linuxarm@openeuler.org; liulongfang >>> Subject: [PATCH v2 3/5] hisi_acc_vfio_pci: Remove useless function >>> parameter >>> >>> Remove unused function parameters for vf_qm_fun_reset() and >>> ensure the device is enabled before the reset operation >>> is performed. >>> >>> Signed-off-by: Longfang Liu >> >> Hi Longfang, >> >> This one seems to have a merge conflict on top of vfio/next branch. >> May be better to rebase and send a v3 picking up Jason's R-by as well? >> > > I merged this patchset to the latest tag version vfio-v6.0-rc5 of the > vfio/next branch, and there is no merge conflict. > > Which patchset do you refer to as "Jason's R-by"? Can you provide the > title of this patchset? > I saw Jason's reply, and I reposted a v3 version with Jason's R-by. >> Thanks, >> Shameer >> Thansk, Longfang >>> --- >>> drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 8 +++++--- >>> 1 file changed, 5 insertions(+), 3 deletions(-) >>> >>> diff --git a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c >>> b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c >>> index 0638a8a6b0c1..24c03ff41502 100644 >>> --- a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c >>> +++ b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c >>> @@ -345,8 +345,7 @@ static struct hisi_acc_vf_core_device >>> *hssi_acc_drvdata(struct pci_dev *pdev) >>> core_device); >>> } >>> >>> -static void vf_qm_fun_reset(struct hisi_acc_vf_core_device *hisi_acc_vdev, >>> - struct hisi_qm *qm) >>> +static void vf_qm_fun_reset(struct hisi_qm *qm) >>> { >>> int i; >>> >>> @@ -662,7 +661,10 @@ static void hisi_acc_vf_start_device(struct >>> hisi_acc_vf_core_device *hisi_acc_vd >>> if (hisi_acc_vdev->vf_qm_state != QM_READY) >>> return; >>> >>> - vf_qm_fun_reset(hisi_acc_vdev, vf_qm); >>> + /* Make sure the device is enabled */ >>> + qm_dev_cmd_init(vf_qm); >>> + >>> + vf_qm_fun_reset(vf_qm); >>> } >>> >>> static int hisi_acc_vf_load_state(struct hisi_acc_vf_core_device >>> *hisi_acc_vdev) >>> -- >>> 2.33.0 >> >> . >>