From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA970C4332F for ; Thu, 22 Dec 2022 16:58:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbiLVQ6f (ORCPT ); Thu, 22 Dec 2022 11:58:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbiLVQ6e (ORCPT ); Thu, 22 Dec 2022 11:58:34 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06B7CE1D for ; Thu, 22 Dec 2022 08:58:33 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id j28so1241418ila.9 for ; Thu, 22 Dec 2022 08:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SSFXjoWtwnBi1YCgBNkvPzvy1204ExxRx5Br5L9WXvk=; b=OZlR/LevIjNdSzuBnMAiRvMJ5QDcLy4QB/ZNpwaA0VetIf2kMuSYT9f1I4GT3Ag8NT bJu10lAGBCOnK9SdCJI54ZLneqexvyzxEIdFRn1+bRDLAeYhGEzgZv57EdLNjMO27w33 W27fGkdoVmZKdpL+lKiBq5uwZ6KFWEt6+WtL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SSFXjoWtwnBi1YCgBNkvPzvy1204ExxRx5Br5L9WXvk=; b=4qY+rfozIFB3WGpR/MtHPIbYBGT598mXrHOgI0fmUE/5MFFivAeVAT2ow5XLWa+H1s qS3BjLy1liyUo6yQMtAi+O/ak7BM+jGH8ID5qexaUQfJhn3n7i4BpZzJz8E1fYMK+9dt +A9h40MBXNyM1sp2dz0ufHZvDQ+5lyz+w3MxV1Rr+HS6l30JQmkI5/MBxhGlOKH6lzuv SD9SwXwynKzxw4xnrR+zRi0pttD186N1G+tK0euYDQe0rGLmd2f7DurOunKGE8hvYgNR kXYtPCPXAYlmtuHzhLKzEayLyRcbVXd276B4Bqc4dFTZ5pIRnxcUjK+uJ2bKjpHIAVCT DFrQ== X-Gm-Message-State: AFqh2kpZYYjttlcni/Hpps/1/80GMQqSnO672wlQ/fpKDDKOKuxj+8ub lQidWRdv/icjABeAPVji1Y4k+A== X-Google-Smtp-Source: AMrXdXsGXi8YHMjU+Yn6Whmi5DC7cWLuRQ5V7D1MYexq88w8oVPxr6Mul/NcH9nlBsUf2FCsPhJQnA== X-Received: by 2002:a05:6e02:1244:b0:304:b2dc:4274 with SMTP id j4-20020a056e02124400b00304b2dc4274mr850849ilq.3.1671728313103; Thu, 22 Dec 2022 08:58:33 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id c17-20020a92dc91000000b00302f4f69f62sm368590iln.12.2022.12.22.08.58.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Dec 2022 08:58:31 -0800 (PST) Message-ID: <641d1e50-a9d0-dc15-be76-07b8ace25dae@linuxfoundation.org> Date: Thu, 22 Dec 2022 09:58:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] selftests: pci: pci-selftest: add support for PCI endpoint driver test To: Aman Gupta , shradha.t@samsung.com, pankaj.dubey@samsung.com, kishon@ti.com, lpieralisi@kernel.org, kw@linux.com, shuah@kernel.org, Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kselftest@vger.kernel.org, Padmanabhan Rajanbabu , Shuah Khan References: <20221007053934.5188-1-aman1.gupta@samsung.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20221007053934.5188-1-aman1.gupta@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 10/6/22 23:39, Aman Gupta wrote: > This patch enables the support to perform selftest on PCIe endpoint > driver present in the system. The following tests are currently > performed by the selftest utility > > 1. BAR Tests (BAR0 to BAR5) > 2. MSI Interrupt Tests (MSI1 to MSI32) > 3. Read Tests (For 1, 1024, 1025, 1024000, 1024001 Bytes) > 4. Write Tests (For 1, 1024, 1025, 1024000, 1024001 Bytes) > 5. Copy Tests (For 1, 1024, 1025, 1024000, 1024001 Bytes) > > Signed-off-by: Aman Gupta > Signed-off-by: Padmanabhan Rajanbabu Adding Bjorn Helgaas to the thread. Adding pcit test under selftests is good. There is another pcitest under tools/pci. I would like to see if the existing code in tools/pci/pcitest.c can be leveraged. As part of this test work, also look into removing tools/pci so we don't have to maintain duplicate code in two places. thanks, -- Shuah