From nobody Tue Feb 10 19:00:17 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1674732144; cv=none; d=zohomail.com; s=zohoarc; b=e8I2gMvr6inqn+0j8EcgceGMnbciA8UTs0EbRRBWWBus2SWN/8o3rgg78QALlIy+4BVjo8qxfG9YOHCqzy8qwDW4NYlWeWKoIv8YH3Z3h8fRkREDPamOoFMqpDmCzAf8mA1hqarEoaDGYDTaKoiyI79N/5+2i+f4P6+TMunX7fk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674732144; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=TT0osGopTDhuI/yhr4FFhg/4bwyCAiItzeE97MDNRcA=; b=EzxCUL+ZVM6brx7a0eLIeNzTYpHmAUYeO03x5oZ2l1l1q7HTRY/ZfuvdjKhfMkonDrL4QXwhFmC1HP4etHrfC4vauHssDqq42PG5l5cKQVG75OxcaTv+GN9Jogyfaizc2Hlh4RJYH+MjXo0biJ7a464D9DIKJJARGYppmeJjEUM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1674732144438523.3817884543637; Thu, 26 Jan 2023 03:22:24 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pL0JQ-0002kn-Ez; Thu, 26 Jan 2023 06:21:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pL0JP-0002d4-7a for qemu-devel@nongnu.org; Thu, 26 Jan 2023 06:20:59 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pL0JN-0001ty-Bn for qemu-devel@nongnu.org; Thu, 26 Jan 2023 06:20:58 -0500 Received: by mail-pj1-x102f.google.com with SMTP id rm7-20020a17090b3ec700b0022c05558d22so1412335pjb.5 for ; Thu, 26 Jan 2023 03:20:57 -0800 (PST) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id z14-20020a17090a468e00b00229d7f2abd4sm849520pjf.54.2023.01.26.03.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 03:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TT0osGopTDhuI/yhr4FFhg/4bwyCAiItzeE97MDNRcA=; b=s42/mkc644cVQALLvqB0JIA+RfA3aarYT6Vz1h1h6f8uDNkrXsuXaI9BEyrkf/lw/S rNKtgH7OPGUgWZdnZeaHWsl06UWbEg/XlWczIEzxBVJ/x0EVccPhhIzmZvC5MFZZceHa oj+mdTEuKfV8Ry4N7lxYl2MIHScl4r883RkX+WJeS71F9KtminDbyqO/qBaxrid8LroD B0v3NmB53ZKWsZ4jTuv3PIGDFXO+6GQTYYcIa0k4E8kIwZLkLvHtV4Gh7OkOoZW3eogw daDEchOCiEmcLtJLuSgJapc5Nwb5BA2cqRm5ytUhReht7wO8xTX2mhw9ibcMUpBUAovo Bh4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TT0osGopTDhuI/yhr4FFhg/4bwyCAiItzeE97MDNRcA=; b=aziouzM+JjMgFE9W3qM/AAlqwJXnFuWkIguTKQjVVgavvATn0lIO0db9oKHz7iwI7T TGACgS2ugL52J1WeSLRwC/wysK5otwoMEDtFhKX0VFHwKbfCg2V2qNYUrt46aTigeDMY od7g+1/2scrKf4uXGko0XYgsL6Oe2AueCT9T+1j7MyD25jyOCWHmCPbasfrrbltdjH/V ZAVGoAXOU1IeNt8qQmV33iHl4TaLJNG96ptEIPPw+enwpJWpp4Wwt8aanE8DtCGQLv25 rv58Xfqgz6ps0B4yZXP8hdl3Hl3wBB/KQhO4dxB6D9uS0ndjGjqhIdpu9Fb/du+fSKLy 5CLw== X-Gm-Message-State: AO0yUKWb+o7Rm00+wIdPVFgqIjrFHr9p/1Aigy/vsWyf8Me3SEnwoHp1 Q1vS8IHa1ic+ZRifrcyNetoeuw== X-Google-Smtp-Source: AK7set8VWa8Nrbn2UTex9DrRpUDOOXldJarA5Qh/gJV3fp/C9pUe3SbSFk14HnfzWO6HTu952LWUsg== X-Received: by 2002:a17:90b:38ca:b0:229:ee6d:4178 with SMTP id nn10-20020a17090b38ca00b00229ee6d4178mr1800865pjb.38.1674732056069; Thu, 26 Jan 2023 03:20:56 -0800 (PST) From: Akihiko Odaki To: Cc: Jason Wang , Dmitry Fleytman , "Michael S . Tsirkin" , Marcel Apfelbaum , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal , Cleber Rosa , Laurent Vivier , Paolo Bonzini , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Darren Kenny , Qiuhao Li , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, devel@daynix.com, Yan Vugenfirer , Yuri Benditovich , Sriram Yagnaraman , Akihiko Odaki Subject: [PATCH v4 12/13] tests/avocado: Add igb test Date: Thu, 26 Jan 2023 20:19:42 +0900 Message-Id: <20230126111943.38695-13-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126111943.38695-1-akihiko.odaki@daynix.com> References: <20230126111943.38695-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::102f; envelope-from=akihiko.odaki@daynix.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1674732145050100003 Content-Type: text/plain; charset="utf-8" This automates ethtool tests for igb registers, interrupts, etc. Signed-off-by: Akihiko Odaki --- MAINTAINERS | 1 + .../org.centos/stream/8/x86_64/test-avocado | 1 + tests/avocado/igb.py | 38 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 tests/avocado/igb.py diff --git a/MAINTAINERS b/MAINTAINERS index 127fd92541..c0831aeb56 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2225,6 +2225,7 @@ igb M: Akihiko Odaki S: Maintained F: hw/net/igb* +F: tests/avocado/igb.py F: tests/qtest/igb-test.c F: tests/qtest/libqos/igb.c =20 diff --git a/scripts/ci/org.centos/stream/8/x86_64/test-avocado b/scripts/c= i/org.centos/stream/8/x86_64/test-avocado index 7aeecbcfb8..7e07dbcc89 100755 --- a/scripts/ci/org.centos/stream/8/x86_64/test-avocado +++ b/scripts/ci/org.centos/stream/8/x86_64/test-avocado @@ -37,6 +37,7 @@ make get-vm-images tests/avocado/cpu_queries.py:QueryCPUModelExpansion.test \ tests/avocado/empty_cpu_model.py:EmptyCPUModel.test \ tests/avocado/hotplug_cpu.py:HotPlugCPU.test \ + tests/avocado/igb.py:IGB.test \ tests/avocado/info_usernet.py:InfoUsernet.test_hostfwd \ tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu \ tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_pt \ diff --git a/tests/avocado/igb.py b/tests/avocado/igb.py new file mode 100644 index 0000000000..abf5dfa07f --- /dev/null +++ b/tests/avocado/igb.py @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# ethtool tests for igb registers, interrupts, etc + +from avocado_qemu import LinuxTest + +class IGB(LinuxTest): + """ + :avocado: tags=3Daccel:kvm + :avocado: tags=3Darch:x86_64 + :avocado: tags=3Ddistro:fedora + :avocado: tags=3Ddistro_version:31 + :avocado: tags=3Dmachine:q35 + """ + + timeout =3D 180 + + def test(self): + self.require_accelerator('kvm') + kernel_url =3D self.distro.pxeboot_url + 'vmlinuz' + kernel_hash =3D '5b6f6876e1b5bda314f93893271da0d5777b1f3c' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + initrd_url =3D self.distro.pxeboot_url + 'initrd.img' + initrd_hash =3D 'dd0340a1b39bd28f88532babd4581c67649ec5b1' + initrd_path =3D self.fetch_asset(initrd_url, asset_hash=3Dinitrd_h= ash) + + # Ideally we want to test MSI as well, but it is blocked by a bug + # fixed with: + # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.g= it/commit/?id=3D28e96556baca7056d11d9fb3cdd0aba4483e00d8 + kernel_params =3D self.distro.default_kernel_params + ' pci=3Dnoms= i' + + self.vm.add_args('-kernel', kernel_path, + '-initrd', initrd_path, + '-append', kernel_params, + '-accel', 'kvm', + '-device', 'igb') + self.launch_and_wait() + self.ssh_command('dnf -y install ethtool') + self.ssh_command('ethtool -t eth1 offline') --=20 2.39.0