Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp482823rwd; Tue, 16 May 2023 04:01:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Y/8qYrkwFYYalay+IAA0U7ML+2gWrTd2I/181887dBh1A7wCjwkMUoKdq4HFg02o19nde X-Received: by 2002:a17:90a:94cc:b0:24e:edd:4d63 with SMTP id j12-20020a17090a94cc00b0024e0edd4d63mr35535928pjw.5.1684234886726; Tue, 16 May 2023 04:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684234886; cv=none; d=google.com; s=arc-20160816; b=NIR6OU0U63fgbnj/XO9UiRUgtiuB1z7hRNGCTZp7sqIyU8ORoj1ns8XOTK4UEUgOs6 R/CtX+FsohToEQhs4glN6rI8NXOse8zMunwWWPfEuAyylXB7RaF6dUOdM/TGYs/0jFng 2WNtgBlowP6XDUSNj0KuHed593k5OeioemEmSaMKOQHP55A5nCk162zMhUiCaus8io2X kaNEwXSOCeD4sBo665a5dt16cu93907Fbot3PtsWazbnzYfICdMKBex/FQ2u/8XEEoVt 6TS50Y1FBXgudWLQWfuZOcavi6Vl1DB78NDCifGeU++mFt53gGogVlrGOyYi+CpovVnR 3QYQ== 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=z9ZuGVVtR8Sf6iHAYM1ldiCBbglbJIFiAVWoXCJWiAs=; b=iNyIFDZXEu1lDd+J70YKfe9JeAtbFIiUesCYmPGp88JYYRKmmx4LLlzqHetny587cw 5jtDwd73UIdEH3TY67RmxmnieTxTlS7Amy4Ny8uZrn9rkzLr8fBy6pRkYi6zYSDs9Hzx SDR5hf8TARMfXT2d8mdy38i/V89fne9V0dEdVZDLEtS5Fm8jSXSCO1/o28yCLtPsjH86 ZnZUYlsAiRBD2R2o7nCuESI8CqON9EbrBC7SDlf1NKvi4RAFW6XwhqPkDzBjY95osLT+ 5k5MELYgpV51dA+J4Zn4Tbis2XclDz4PTP/35WHRrh0clkHbGI3S0uTNxfBjiDDHocLs Dsbg== 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 j15-20020a17090a738f00b0024e140702efsi1554593pjg.118.2023.05.16.04.01.10; Tue, 16 May 2023 04:01:26 -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 S232441AbjEPKvE (ORCPT + 99 others); Tue, 16 May 2023 06:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbjEPKvD (ORCPT ); Tue, 16 May 2023 06:51:03 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D3641FE6 for ; Tue, 16 May 2023 03:51:01 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QLCfq0mVWzLmKC; Tue, 16 May 2023 18:49:39 +0800 (CST) Received: from [10.67.103.158] (10.67.103.158) 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.2507.23; Tue, 16 May 2023 18:50:58 +0800 Subject: Re: [PATCH v10 3/5] hisi_acc_vfio_pci: register debugfs for hisilicon migration driver From: liulongfang To: Jason Gunthorpe CC: , , , , , References: <20230408074224.62608-1-liulongfang@huawei.com> <20230408074224.62608-4-liulongfang@huawei.com> <81e11acf-0ede-d515-bb5a-3964c302f384@huawei.com> Message-ID: <16eee6cd-64c5-bfac-5217-d6f167a2a5c5@huawei.com> Date: Tue, 16 May 2023 18:50:57 +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: Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.158] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023/5/16 17:40, liulongfang wrote: > On 2023/4/21 22:31, Jason Gunthorpe wrote: >> On Fri, Apr 21, 2023 at 11:32:47AM +0800, liulongfang wrote: >> >>> Thank you for your suggestion, but the current debugfs method can already >>> meet the functional requirements of verification testing and >>> problem location. >> >> To be clear, I'm against adding selftest code in this manner. We have >> many frameworks for kernel teesting, please pick one and integrate >> with it. >> > > Hi, Jason: > The purpose of this hisi_acc_vf_debug_restore function is to obtain the > migration status data of the migration device. It is a debug operation. > Just to obtain this status data, user need to complete the few steps> of live migration. > Therefore, it is a debug function here, not a self-test function. > Here it should be: In order to test whether the current state of the device is normal, perform a recovery test through the data saved during the previous live migration. It is matched with the previous save. If you still insist that it is a self-test. How about I delete this recovery debugfs? Thanks, Longfang. > Thanks, > Longfang. >> Jason >> . >>