From patchwork Tue Nov 22 12:13:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 13052292 X-Patchwork-Delegate: kuba@kernel.org 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 19ABBC433FE for ; Tue, 22 Nov 2022 12:13:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233140AbiKVMN3 (ORCPT ); Tue, 22 Nov 2022 07:13:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbiKVMN0 (ORCPT ); Tue, 22 Nov 2022 07:13:26 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A2BF101D7 for ; Tue, 22 Nov 2022 04:13:25 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id a1-20020a17090abe0100b00218a7df7789so6074747pjs.5 for ; Tue, 22 Nov 2022 04:13:25 -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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FqqH+KtltAIS/pFAox0tP5CorP8judi8TGy+EIrJngM=; b=fMeFNd836ur3ELuYWhGiXArQ+Pgxh04yl63lypuVxjxGnWCrm0Ggu0W802uFRdlm1F L+FoXz6kE/vsydcsM9XYxzRB9WsLRj23v8yzoPoOnF2ki0qCxXRx4eUhKXb4/L/j0YDD I2EXy0hDhrN5QLyOHhfaGzqKGPDDXKJhWgxrdsaz2nigyygG9A2gtPZDznWNls54MO2Y A03UW4miHqWKB6TO5dh8Zf2wkgZcfKt0uoiI0bfk7PbgFJt9MdG8TJVJzM4RouHZIBX6 LZZa+Rvs0Bd2OS8gCPsGAJyV5D7I3M3DFp7wQG94KOlQCLiCrGV7yUIoONHsZ6EHh02z XPuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FqqH+KtltAIS/pFAox0tP5CorP8judi8TGy+EIrJngM=; b=Yntfe3QI9DZ0UT8FPsni/MKd/EF9EgviaPcPOS+bK++e6V3RH4vUFLgmRvUFDrv9vX CW5r9QEalRtWRaSzyBTElHM2cRPuVfefhmUD1ow7NAxD49JCNOL37SoLg9DGNs0peuEl Is8THCmO72Hf7O9SLEIleuF4PrgHquewZp/8CJUNUSc/iMRuCpOc89oIsrDyF1sZs09V KCXdV4dShEivbuBmoiQX3vwIYLJPN95en2GuX9l88a/i78RmRAgaCgGwjCJbLyc52WgO BZrYYIYwYyRqYu/zInTi6dv/A1yCFtDfP0hooO/ewwbzSwbMrU8OTAmhZEeR0w+czGfJ JWXw== X-Gm-Message-State: ANoB5plGl1fhVaq2pvzxetOzesZhjClVzM8AZQcCXYFCyese0pN1u0i8 OZlTYvOeC9g3DED36Y/EuUJWnQ== X-Google-Smtp-Source: AA0mqf6MKdOYF2Goa3/2/FWQI2WYKUzDrYu7jWUP2jTUJPr+UkwC7b0ul9u5Zi5tkHIrl0dUwfurRA== X-Received: by 2002:a17:903:2093:b0:188:82fc:e284 with SMTP id d19-20020a170903209300b0018882fce284mr3723448plc.76.1669119204574; Tue, 22 Nov 2022 04:13:24 -0800 (PST) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id r3-20020a17090a940300b001fd6066284dsm9464602pjo.6.2022.11.22.04.13.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 04:13:24 -0800 (PST) From: Akihiko Odaki Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yan Vugenfirer , Yuri Benditovich , Akihiko Odaki Subject: [PATCH] igb: Allocate MSI-X vector when testing Date: Tue, 22 Nov 2022 21:13:12 +0900 Message-Id: <20221122121312.57741-1-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Allocate MSI-X vector when testing interrupts, otherwise the tests will not work. Signed-off-by: Akihiko Odaki --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index e5f3e7680dc6..ff911af16a4b 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c @@ -1413,6 +1413,8 @@ static int igb_intr_test(struct igb_adapter *adapter, u64 *data) *data = 1; return -1; } + wr32(E1000_IVAR_MISC, E1000_IVAR_VALID << 8); + wr32(E1000_EIMS, BIT(0)); } else if (adapter->flags & IGB_FLAG_HAS_MSI) { shared_int = false; if (request_irq(irq,