From patchwork Thu Feb 20 02:53:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Abdul Rahim, Faizal" X-Patchwork-Id: 13983264 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4397DC021AA for ; Thu, 20 Feb 2025 03:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZvARz4msMzb2NRpOzCvewFQUaboJtL+7gF1CFI28ndU=; b=pvvc/0pyCA8CO/g0i8hGd7HOD0 quFJNg7a3294BsG1NG+pHLg4z2N+oakt0GP8lPxLFhvfKLQ6Zve5HctecbzPOAKRWcFcBciVWgxl/ up2Bd3dlEhw75OdqMxfeLkbymDWnxsugHSmIRQicoEj+CXcMT7lIScOV9WKutKonsXdzwbJAyTjyX kLL15NUnziw5XQctAoU/Y0rxwalm63OV9xBNRS0vz0RoqiiUrHSeLM+ZkSkXc76Lbsz3DPHz1llNJ j+qRJ2KAsVnOPpMmlJqgiQ4S29/fB9UzI8Lfy6mSrpLynkGxUCJRlBiiLueHvvWpsf2vF1/orTyK7 lDentlCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tkwwD-0000000GU4Z-2Vv0; Thu, 20 Feb 2025 03:09:21 +0000 Received: from mgamail.intel.com ([192.198.163.14]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tkwid-0000000GQK8-3Pz8 for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2025 02:55:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740020120; x=1771556120; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=uDhO0buD+LbU4a/ZJlAIOO0MmLejKrvfWJSAZJp7WPs=; b=Rl7KxLQ4Eyuq3A8GhngQapAXY2yDAnzh3Dh5BCrsjjzCzV1Bj9+pTYzA rgtxiJk9AlM0AXqT+gP9GS1MleYLbTT5Qd6orJ8UKRqJm1LPnULzEAD+M F3gUyRRsE/5As3ML/fRjNObqYjDugnU1JGKQIJbF09MsNwsBWL6JT6MCY GQP/pnOeYk4sUBiQuwzf5MG375chzeZI3HzGY8sGd7LfWTBtriGCpCE8J o+CC7YjdT8IFpSjPU0RshTWa/m2nT2leFt9RtFgNDgYZnE34jqVZS5xyd 7bvetTnCwc0CHoS6loFjWXTgPkkRsabK9+52K56n7xUMUDcPbCnf6PI8Y Q==; X-CSE-ConnectionGUID: UWKib3hTTYGG9viTNzzg8g== X-CSE-MsgGUID: i5B5oZdXTxe0lvA0xgNu+w== X-IronPort-AV: E=McAfee;i="6700,10204,11350"; a="41042135" X-IronPort-AV: E=Sophos;i="6.13,300,1732608000"; d="scan'208";a="41042135" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2025 18:55:19 -0800 X-CSE-ConnectionGUID: 2yocVogvQxyZNBE7JpuxSQ== X-CSE-MsgGUID: jS0ktRGYSOug/ZvAyXlb4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,300,1732608000"; d="scan'208";a="115104566" Received: from mohdfai2-ilbpg12-1.png.intel.com ([10.88.227.73]) by fmviesa008.fm.intel.com with ESMTP; 19 Feb 2025 18:55:12 -0800 From: Faizal Rahim To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Simon Horman , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Furong Xu <0x1207@gmail.com>, Russell King , Vladimir Oltean , Serge Semin , Xiaolei Wang , Suraj Jaiswal , Kory Maincent , Gal Pressman , Jesper Nilsson , Andrew Halaney , Choong Yong Liang , Faizal Rahim , Kunihiko Hayashi , Vinicius Costa Gomes , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org Subject: [PATCH iwl-next v5 9/9] igc: Block setting preemptible traffic class in taprio Date: Wed, 19 Feb 2025 21:53:49 -0500 Message-Id: <20250220025349.3007793-10-faizal.abdul.rahim@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250220025349.3007793-1-faizal.abdul.rahim@linux.intel.com> References: <20250220025349.3007793-1-faizal.abdul.rahim@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250219_185519_864263_EF898FC3 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since preemptible tc implementation is not ready yet, block it from being set in taprio. The existing code already blocks it in mqprio. Signed-off-by: Faizal Rahim --- drivers/net/ethernet/intel/igc/igc_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 5a6648a12a53..e6a398dbf09b 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -6408,6 +6408,10 @@ static int igc_save_qbv_schedule(struct igc_adapter *adapter, if (!validate_schedule(adapter, qopt)) return -EINVAL; + /* preemptible isn't supported yet */ + if (qopt->mqprio.preemptible_tcs) + return -EOPNOTSUPP; + igc_ptp_read(adapter, &now); if (igc_tsn_is_taprio_activated_by_user(adapter) &&