From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A705035894 for ; Tue, 13 Aug 2024 18:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723573678; cv=none; b=I6jAmN6Q1fLvkm14JhSjRCKQGGyjK06idEy9jQAV3nwF3/R9QTDN1YYox0kZLJe9Rqy0q343QKJJjWW56QJqaCASFyfEHJgniFHGgw/RAPBqX22gdtXyW2OIbHChfLk6Q93uZ3R1ANoZDvO6aVcrHC+GfXEVv93hYCnRZDKKJZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723573678; c=relaxed/simple; bh=11Vo1GRIel5+sWXjEZX4YTqPJYZTmDP5+/gfPmKbZgg=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=gS/7TTswYf/yYhaaG2/ayGUxgKn2ajPvZP0gW04A3UF9lJub6yFexQE9UfwtX2ne8uXIdLM1c8M/ZF3rkpAJwCyWfdwA8OoZWTPES+VMEBj3Mw90wNj0uIkXjIDXi6Cqgox8xN5BTFCNHal7ZlAPVl/kG38Dz6PkLf0+JrZjksk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--manojvishy.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1IlkAmc0; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--manojvishy.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1IlkAmc0" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-66a2aee82a0so113492027b3.0 for ; Tue, 13 Aug 2024 11:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1723573675; x=1724178475; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Xx3vUn4Ffi9+cFtQJZC9o9842wkaz5PPRNr6UKhxqa4=; b=1IlkAmc0Y+yU63uOAR8SSCsZ8jPRACi6OYtHVkZ4Ge3iPcKSxCW4zcxre3CQXe8e2I QtgGmkcA+JnPzblbdj6k5KMp9t/IvtfTPxYBnR/k3dxcSWOjYiz12vecOxPdr3rz79Jn BUdu5SRUddAx/2goBu/TjJjXHBL7tJDFWsPDYXuSj6NrUA8uDf+bGSYWjQHjGTx9e//3 uij3i+lHqmRkBmTT76CMYfGw51iVzNbz6JkZ2zt5mVKt7Hhkk7KBnG78sunOLRXQKm4E 0rJeJ2zeVZ2szGCdXz7YgWBF5n2oLeagI7a6jSHeFv+EsaHxM/zQSYtamCzmICG+7jha xKhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723573675; x=1724178475; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Xx3vUn4Ffi9+cFtQJZC9o9842wkaz5PPRNr6UKhxqa4=; b=vvHix7B1/9jbD4xkKVxxlBCkfeyI1PEqU1DzUs8IoKz79ZgoN6r14NB/XhRQcoafFp 7WhRtKH+lDXtajvgdBIs0prAA7O7IdXK6R/4IPxRPFOqmbewXiOFMMNET8qs1W7nyF1E EAMd4NEWbORgexSiBqTKoVaLFkG3A/KWYULVybGDQLBYGD5YWDHsMlq+DYQlieeqtjhL /smkP+xrJ/sxW6kd5QAblLfFlQozB/gldFM58rXIwvA0+GoKYjBoowx1r8PfPDj8W8Ej q605WDT2UKFVivG8fETp5qr7EtPTKdZbk/OWwTBmdCEYH7O2JMdSgX3HzqIwft41YnW1 b7QA== X-Forwarded-Encrypted: i=1; AJvYcCVqTVjYKiKwrXhLfVZy5ml9hxiO82ioSG5xxCUmrsC+btVEm3BXk4UnW91di6yVFLiVtjSda7KYFv9GcLFokN6p6pGdA1id+5JSt7ZB X-Gm-Message-State: AOJu0Yy+cCGU507m+LYmbwwaVzMv3792q5EC0wWbiTDocOlyIUMlFIdo N4S+l0RLxf2Ug77wdF8wc1wQKtp5rqeAghnS7XVbm6wbTKxwRMyb9VIr195f1lE+GsysXjuUCRy t9dlWwKsn9l57D7tXCg== X-Google-Smtp-Source: AGHT+IEx3+U3ZkvA7CMIoEjRZ4BxjgN2Bf0euNJuMc/TelI5R1HUUjVY1E3oCM0wKQAMuhyiSiaKXwm0TBtkioIO X-Received: from manojvishy.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:413f]) (user=manojvishy job=sendgmr) by 2002:a05:690c:3183:b0:6aa:4e07:ad70 with SMTP id 00721157ae682-6ac9736421emr4847b3.2.1723573675642; Tue, 13 Aug 2024 11:27:55 -0700 (PDT) Date: Tue, 13 Aug 2024 18:27:42 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.46.0.76.ge559c4bf1a-goog Message-ID: <20240813182747.1770032-1-manojvishy@google.com> Subject: [PATCH v1 0/5] IDPF Virtchnl fixes From: Manoj Vishwanathan To: Tony Nguyen , Przemek Kitszel , "David S. Miller" , Eric Dumazet , intel-wired-lan@lists.osuosl.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, google-lan-reviews@googlegroups.com, Manoj Vishwanathan Content-Type: text/plain; charset="UTF-8" This patch series is to enhance IDPF virtchnl error reporting and some minor fixes to the locking sequence in virtchnl message handling we encountered while testing. Also includes a minor clean up with regards to warning we encountered in controlq section of IDPF. The issue we had here was a virtchnl processing delay leading to the "xn->salt" mismatch, transaction timeout and connection not recovering. This was due to default CPU bounded kworker workqueue for virtchnl message processing being starved by aggressive userspace load causing the virtchnl processing to be delayed and causing a transaction timeout. The reason the virtchnl process kworker was stalled as it was bound to CPU0 by default and there was immense IRQ traffic to CPU0. All of the above with an aggressive user space process on the same core lead to the change from Marco Leogrande to convert the idpf workqueues to unbound. Manoj Vishwanathan (3): idpf: address an rtnl lock splat in tx timeout recovery path idpf: Acquire the lock before accessing the xn->salt idpf: more info during virtchnl transaction time out Marco Leogrande (1): idpf: convert workqueues to unbound Willem de Bruijn (1): idpf: warn on possible ctlq overflow drivers/net/ethernet/intel/idpf/idpf_main.c | 15 ++++++++----- drivers/net/ethernet/intel/idpf/idpf_txrx.c | 14 ++++++++++++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 21 ++++++++++++++----- 3 files changed, 39 insertions(+), 11 deletions(-) -- 2.46.0.76.ge559c4bf1a-goog