Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1836679rwd; Fri, 2 Jun 2023 00:23:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QJx3lA85LnuIVe/tXlHmKOZjMC+wVPdB3q0iQgYAJhEAJF/GPS1ZYwuscYIGTa/OKl2/y X-Received: by 2002:a17:90b:613:b0:253:37ef:ce63 with SMTP id gb19-20020a17090b061300b0025337efce63mr1707967pjb.18.1685690609949; Fri, 02 Jun 2023 00:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685690609; cv=none; d=google.com; s=arc-20160816; b=aNyiCiLzOubls0AC6lKdBmphxMuJRUZY6PSkMYQCxvrXe55j5rixf+EY5m1xYdEPxh jYycLPTtbMnIg7EppkEd3WT0ey9BvlN4ChUz4SwgLhJ6E6BX7J1OW9P4L5gv1fMIa0FY TozGfIBhy5pMh6lTCTOl4eWKCSHvEFNW7eIEhroljAuhazxJ9nzAkQ9W0epGnTuPBbKR EXe/GkoEzsnZWqGWmmUXV5HZwWDHCpTL12m7UmXk/Ez5yefpW70MGI0+Z10midBp+tCs wwraRRkDEx2/1elv+zBDPCdNGe8RTaJ6GgpgQGRQlWjJph05okrp/00MhAeUy/LekGn3 wW1A== 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:from:references:cc:to :subject; bh=8L+IogHrarcsNjf2qyRWIjrISYRSeJX5dipydTsbSt4=; b=wAHXUlw0wOo04ETTUoywdBFIROi1Ac07Ib7MYDI0QpABHlPrSn6T/lXAo6MizJh2b4 0O/j44AtSdW52aztw/L/jlx3/Gmliq+T35SnPdHRTXOQrbmkint5d0qXb8he3UONWprM 60HaH4g5rzOGmxXYYLzBR2QmuDYF8Y9KWLmh1Qho0NQuaDo+m7x14rg0Tbf2x4FLgzrA ak5x+IJf6rUyadEQ9wfzZFqM52fJlTaLuTWqQHY4od1TfygaK+4SPV5kZj/e4App5kGb UPj2VCPkzWATn26KiHA01cLM2gqhHiFZ3RhNUBdSK7RdYE7nqffcLnuj9rmsLyrYsHEG NnQA== 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 mr12-20020a17090b238c00b002533b600bbesi2350535pjb.101.2023.06.02.00.23.15; Fri, 02 Jun 2023 00:23:29 -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 S233869AbjFBHHz (ORCPT + 99 others); Fri, 2 Jun 2023 03:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233168AbjFBHHy (ORCPT ); Fri, 2 Jun 2023 03:07:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7251FE5C for ; Fri, 2 Jun 2023 00:07:27 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QXYpy6GQPzqTmt; Fri, 2 Jun 2023 15:02:34 +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; Fri, 2 Jun 2023 15:07:16 +0800 Subject: Re: [PATCH v10 3/5] hisi_acc_vfio_pci: register debugfs for hisilicon migration driver To: Jason Gunthorpe CC: , , , , , References: <20230408074224.62608-1-liulongfang@huawei.com> <20230408074224.62608-4-liulongfang@huawei.com> <81e11acf-0ede-d515-bb5a-3964c302f384@huawei.com> From: liulongfang Message-ID: <9c2a68f6-7ee4-03a0-eb9b-49137b37ed10@huawei.com> Date: Fri, 2 Jun 2023 15:07:15 +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: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 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 19:50, Jason Gunthorpe wrote: > On Tue, May 16, 2023 at 05:40:36PM +0800, 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. > > A debug function should not alter the device state, or do a trial migration. > OK Then I delete this migration and restore the test operation. Does this meet your requirements? Thanks, Longfang. > Jason > . >