Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3528528lqp; Tue, 26 Mar 2024 11:30:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWb3cJF5WrlGvhQNcYCo4xwYlpY+mkXWLR4QpQZumZBa5Wahjh5ojtHIrBs/NkYmUGKLrSdbWBhZveR1fxnKLxsJ38hjobU1rZiKOMnOw== X-Google-Smtp-Source: AGHT+IHngMiPFw3EMQlbyFGzLGl/9Fpk5EDTvUdUphEOfCNiKBoB3PeVuKOfiNe76iKCjqyaKLfz X-Received: by 2002:a17:903:258d:b0:1e0:8e7:3107 with SMTP id jb13-20020a170903258d00b001e008e73107mr9039487plb.39.1711477840744; Tue, 26 Mar 2024 11:30:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711477840; cv=pass; d=google.com; s=arc-20160816; b=0zE2j7BLQ+WlRX93PyR7kaCTa3axSauPOfr2KOmh2fLeIQU7YcuNNqcdwGdNReS+ct CkNaLDQZxY8BBEmvxqyNvvYEBMXHx8OD+6QwHjgEX4GuzC4yupKtBnxwi4EgSuygaA6d Ukg/M9uARFuONY44seZ/GtYjilkTx3EVpMfUALBVLCPfU+NXo7Rgi+JJyS7d7sHAkJBD 6Xn2WMGXGRNA4ixBEMemKt892wr7adH8i1mSgzbiBLJvhimbzcmw7oIxFmRSvj5eLRKt zMRYRsiD5Ir3lXY+he+UN7lOWzc/ZeKCZIzyEWlQeXkn+Oj+y5p7pnQrS3ZJChdp84iK Rxmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=QhxmfxblwX/FGmQaoQOO5EDZYe8wiAfvIozDi8CxlmI=; fh=7tYhSwKw8rcmTLZN39sKG2i3cY9LGYm+E4S7XitkoA8=; b=wfhKBcjxHOg9CpZH6Oltf8MeG1YYXCxaLYjYV2uWlawjvKwW6JoriMwna/oezncCH+ /ZS32LUaFuyXYp1mfg9PupJb2wmYprJDj1X8JbIE0lpVwk5/bTT9oIwOztXNma56F0Qu uixKATCb+M3+2c9/2Ewqh0uwHIrrSopaGN6P3hD2emhvGaSjzo7cg6okJd1mNCbUosJc kgTLrLW/hfs9sPGtOEokBrcLXqN0uSpSehx/wjJyFp8+1IdkBcP6u8FRnjLURi/SsjxM qAyjSbgsxA8jJQQXBsTPL3aZxlwWTcIDj61b6lk44aUmg1nEQ8FUv+VKfxLTfzceJ6u4 Dbdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q2KPHxJj; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-119684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u6-20020a170902e80600b001dcd642ab02si6901712plg.75.2024.03.26.11.30.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 11:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q2KPHxJj; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-119684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 37DDE300A55 for ; Tue, 26 Mar 2024 18:30:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 732FF1292C7; Tue, 26 Mar 2024 18:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Q2KPHxJj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0ADD42F4A; Tue, 26 Mar 2024 18:30:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711477832; cv=none; b=rqFWNTZowylvS1v2klprQILFfcrZCdJ24nCKx7PWe/BRErnCzmBxooFn+QZxba8V4edi3l03H7kcs9Ji5jI+ggr1odvIHSEwuWfE8fgR9afcowRSKjUnkzHNKguJUdYI1n+dAtXWxzEIOAD4IYPq0CeFWgUQ13Q+vlpxEkjLdck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711477832; c=relaxed/simple; bh=uBLkN0mAj3ZSbr4KU4lSaYj97mBcP/vKRcrn/2cfNJo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=USNTvjxKBKxP9SeWtAdajyWrZ5MXq6li/+J5PqTMMGy9H1QkPWtcbiyo8lyI7V1GGEUtZKs4uxq2iV1HYga+MQX7q5DhUFhA7sE2oNXz1o6lqJAhX5yMjrkSNbhAp8syrWN2gXMNO8Mv15dMTNi0ETtvvrmLxjZIKMY6K92d9y4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Q2KPHxJj; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711477830; x=1743013830; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=uBLkN0mAj3ZSbr4KU4lSaYj97mBcP/vKRcrn/2cfNJo=; b=Q2KPHxJjCPh5vMVXxfh8EjyQp+kGpXaVvfVknWsNnjvJZ9Bvn4SIFSh/ 1sCUli35r+rbKOBad2R8WLTxvcCoL0fOG6BO5dS1NOcq0XaOog0GKXlX0 UOvrEAggoJzzD8eoBK17LHynOJwbBlTlEitGMwD9yfbJ7SpXqsweri6QQ RB9jpWunrL3uz1D1gmMMlJkfPVNZzQi3V0W1OBNazN0JwEU9mBHg5EJKH DDuzBltN9OLuyH7ACmyDWz5p5ZEH68SsH+ft6Wsxxqk325mwajOwf6IjS O4q2miMX80Zr9gRVKOpRPjkE24Dq6piwb5+7tgc68jjevQ7sbQcq4tW/W Q==; X-CSE-ConnectionGUID: b7K5pEkuQ6e4WFK3MTl/3A== X-CSE-MsgGUID: Bp8GSavDRgaNO+i+aQkiKw== X-IronPort-AV: E=McAfee;i="6600,9927,11025"; a="17692503" X-IronPort-AV: E=Sophos;i="6.07,156,1708416000"; d="scan'208";a="17692503" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 11:30:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,156,1708416000"; d="scan'208";a="20697374" Received: from unknown (HELO vcostago-mobl3) ([10.124.221.236]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 11:30:29 -0700 From: Vinicius Costa Gomes To: "Song, Yoong Siang" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , "Bezdeka, Florian" , Kurt Kanzenbach , "Fijalkowski, Maciej" Cc: "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" , "xdp-hints@xdp-project.net" Subject: RE: [PATCH iwl-next,v4 1/1] igc: Add Tx hardware timestamp request for AF_XDP zero-copy packet In-Reply-To: References: <20240325020928.1987947-1-yoong.siang.song@intel.com> <87h6gtpvyn.fsf@intel.com> Date: Tue, 26 Mar 2024 11:30:27 -0700 Message-ID: <871q7wq20s.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Song, Yoong Siang" writes: >> >>More a question: you are potentially triggering an interrupt from >>igc_ptp_clear_tx_tstamp() (igc_xsk_wakeup()) which can be called from >>igc_down(). So, how does it work when there's a pending timestamp and >>you remove the igc module? (example of a situation that it might be >>problematic). > > Hi Vinicius, > > Thanks for reviewing the patch. > > There is test_bit(__IGC_DOWN, &adapter->state) checking in > igc_sxk_wakeup(). Since igc_down() will set __IGC_DOWN before > call into igc_ptp_suspend(), so I believe the checking in igc_sxk_wakeup() > should be enough to prevent the situation that you mentioned. > Oh, I missed that one, sorry. Then: Acked-by: Vinicius Costa Gomes Cheers, -- Vinicius