Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5741647rwl; Tue, 4 Apr 2023 03:01:46 -0700 (PDT) X-Google-Smtp-Source: AKy350bdSqZ71f1j4uAVV/PnS5PFL5sNB+cCjeR9NzPUpXi5tL+tG3SVKeWxFvLS3OvhTUKuKKQf X-Received: by 2002:a17:906:190d:b0:947:46e0:9e4f with SMTP id a13-20020a170906190d00b0094746e09e4fmr1817484eje.3.1680602506062; Tue, 04 Apr 2023 03:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680602506; cv=none; d=google.com; s=arc-20160816; b=fq8ug8KVBe86Vlfui+XdduI0k4uOIr8hJtwIshd/sbUtnBq96aV+a1y7NS0huPuYq9 T6ctttglAGKX8UxZMGOHWXHRjV2fI0d8oQFTavF3ZvoOw85vSZfWKZQJgrdA4/BSdkxb jULunBMVD666Q4cYI01XqwAf2eK/p2tJtATuFTE67sNlLRbyx4QiWS3rCtFhbKmi9ndf paUXxQOwKL7KyJnt0a5nf+AtFZLGg2ps3cFnOZU1+IIPyE7/Tw+28MmC1S0jthE+JxOu 0y8l5kMZldh1HPm5QjNCrrShean6RJMdCja7yI47FYNJ0aYZZQdZeLHFv7rkZHKog5ZB xRjw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8EeJ3Vg/hflzXly6UJfLnp/sYv8Ula1ty7RMpEhQjsE=; b=xMBMNbv4eNDSt/zvW8RQeRaDq7WM9oIVPnmT0txZ8dxkk9ZbdkJW+jMx+9rkOa9H/T Gk5krf6Hb3bFvZQfhpH2RA8ZnNEZP1YbCxRu8hgFtVYlbWh717CemNXmjzpRZQTKA3Cx L9PgJhiJigxNL88I6Y3A0ydk9Us2nR5MBDrTxU2zseXW9d43TdUiNllbIfbqJfzGXVQu jh4ctJQeP7i8J6mkznJkBirZtXdZDWjdxJisgc5yZQne30yeAz9iW58WhY9g3Tze2OAJ JmZkrUWztZbuf5myId74hw0VMrmSb6kuCibEtOIhZ+3bhdAx+NHG38hmNbBHdJcewdlr U+ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=DZcbyLky; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a17090626c700b009316b784857si2524186ejc.352.2023.04.04.03.01.12; Tue, 04 Apr 2023 03:01:46 -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; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=DZcbyLky; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234000AbjDDJ5g (ORCPT + 99 others); Tue, 4 Apr 2023 05:57:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233811AbjDDJ5e (ORCPT ); Tue, 4 Apr 2023 05:57:34 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8B72689 for ; Tue, 4 Apr 2023 02:57:32 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id p13-20020a17090a284d00b0023d2e945aebso1403433pjf.0 for ; Tue, 04 Apr 2023 02:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20210112.gappssmtp.com; s=20210112; t=1680602252; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8EeJ3Vg/hflzXly6UJfLnp/sYv8Ula1ty7RMpEhQjsE=; b=DZcbyLkyTGTTuO+N7pa4ARwCTRNuL4ybs38LCUxl4HjBDH9eqjR2F0nnTnp1HWGEfc PhRf8bwSKXhOdsUKHc9TxrsB5fNYFMJtf08rWMZhxTVbBRsp71RfQ4+6Ye1omj+dPl4/ SNS0NCBcfN3EOdGTJjny3/JDM2TZ/qHzsfDC3ASKsNYrR+VAZmbZd8gqmJ1D7hZUiYBj y/NqILXWJo+WPf7Fv7k5SH72D5y39NCvUOIRvrbjST8TvSWka2VANi3vardpQuZQF+rc BX132iwtB4VLe04nL1nzS6OdsrgWQ5BSA5vOt+Y0Dr1j0WT9LV2DWp1C6KtYOZqFczTL 6g4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680602252; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8EeJ3Vg/hflzXly6UJfLnp/sYv8Ula1ty7RMpEhQjsE=; b=Xga3xDnJexv/jNPdgDoNW4tQ9zLbULsnWyy0JhhJ1Y/c6myGr3M7qtOueVyL/AlxlJ QbLpnW1aItiG8o0kLn1iapLNoQ+xkiV5Vfc4jJT4lEgNRI4YKRpCjbm9I0jQ9uHKyHiE VPrloAE1dvEr92mm17+Pwk80NG2CcdwGjz7YXw3u/ErCgl2URFnjqTaY7f23pNAm/7ug lG6fesmAOMxIYlMEGA2Sj3xMwEwmDQObY7U5pwz7PjOW8dzRCY1eJxvi6dyx/jSyX9Ii DdpbJdhQU7/ielSv8YOwyXuxZZdTdJwsqgWsxJs+VGsevpJtw4j8of2G/g6+eu9zmIvQ LVrg== X-Gm-Message-State: AAQBX9e7LF96a6EQunl9i5k/AX6SlUFP1xerqnLDi47ZAvFd3Mv5awmH TNeuoNkoq2Eth8vcgRq+Y9FD5Q== X-Received: by 2002:a17:90b:3e89:b0:237:ae7c:15be with SMTP id rj9-20020a17090b3e8900b00237ae7c15bemr2086527pjb.30.1680602251950; Tue, 04 Apr 2023 02:57:31 -0700 (PDT) Received: from [10.16.161.199] (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id iy5-20020a170903130500b0019e81c8fd01sm8005079plb.249.2023.04.04.02.57.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 02:57:31 -0700 (PDT) Message-ID: <79357547-d32d-9916-074d-37354d4016c3@igel.co.jp> Date: Tue, 4 Apr 2023 18:57:27 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC PATCH 00/11] Introduce a test for continuous transfer Content-Language: en-US To: Manivannan Sadhasivam Cc: Gustavo Pimentel , Vinod Koul , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Kishon Vijay Abraham I , Arnd Bergmann , Greg Kroah-Hartman , Bjorn Helgaas , Kunihiko Hayashi , Yoshihiro Shimoda , Frank Li , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-pci@vger.kernel.org References: <20230317113238.142970-1-mie@igel.co.jp> <20230331053850.GE4973@thinkpad> From: Shunsuke Mie In-Reply-To: <20230331053850.GE4973@thinkpad> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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/03/31 14:38, Manivannan Sadhasivam wrote: > On Fri, Mar 17, 2023 at 08:32:27PM +0900, Shunsuke Mie wrote: >> This patchset introduces testing through continuous transfer to the PCI >> endpoint tests. The purpose is to find bugs that may exist in the endpoint >> controller driver. This changes able to find bugs in the DW EDMA driver and >> this patchset includes the fix. >> >> This bug does not appear in the current tests because these synchronize to >> finish with every data transfer. However, the problem occurs with >> continuous DMA issuances. The continuous transfers are required to get high >> throughput and low latency. Therefore, the added tests will enable >> realistic transfer testing. >> >> This patchset is divided into three parts: >> - Remove duplicated definitions and improve some code [1-6/11] >> - Add continuous transfer tests [7-9/11] >> - Fix for the DW EDMA driver bug [10,11/11] >> >> This patchset has beed tested on RCar Spidar that has dw pci edma chip. >> > If you want maintainers to review the patches separately, please remove the RFC > tag. Unless you are looking for some overall feedback about the approach. Got it. > > But we are in the process of migrating the existing test under tools to > Kselftest framework [1]. Until then, we cannot accept patches improving the > existing test code. So please respin the patches on top of the Kselftest patch > once it got posted. It's already due for some time :/ I understood. I'll track the work of Kselftest migration. > > Also the subject should mention "PCI endpoint". Yes. > > - Mani > > [1] https://lore.kernel.org/all/20221007053934.5188-1-aman1.gupta@samsung.com/ Thank you for your comments. >> Shunsuke Mie (11): >> misc: pci_endpoint_test: Aggregate irq_type checking >> misc: pci_endpoint_test: Remove an unused variable >> pci: endpoint: function/pci-epf-test: Unify a range of time >> measurement >> PCI: endpoint: functions/pci-epf-test: Move common difinitions to >> header file >> MAINTAINERS: Add a header file for pci-epf-test >> misc: pci_endpoint_test: Use a common header file between endpoint >> driver >> PCI: endpoint: functions/pci-epf-test: Extend the test for continuous >> transfers >> misc: pci_endpoint_test: Support a test of continuous transfer >> tools: PCI: Add 'C' option to support continuous transfer >> dmaengine: dw-edma: Fix to change for continuous transfer >> dmaengine: dw-edma: Fix to enable to issue dma request on DMA >> processing >> >> MAINTAINERS | 1 + >> drivers/dma/dw-edma/dw-edma-core.c | 30 ++- >> drivers/misc/pci_endpoint_test.c | 132 ++++-------- >> drivers/pci/endpoint/functions/pci-epf-test.c | 199 ++++++++---------- >> include/linux/pci-epf-test.h | 67 ++++++ >> include/uapi/linux/pcitest.h | 1 + >> tools/pci/pcitest.c | 13 +- >> 7 files changed, 231 insertions(+), 212 deletions(-) >> create mode 100644 include/linux/pci-epf-test.h >> >> -- >> 2.25.1 >> Best, Shunsuke.