From patchwork Thu Aug 29 21:38:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohamed Khalfella X-Patchwork-Id: 13783921 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 C65A628685 for ; Thu, 29 Aug 2024 21:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724967571; cv=none; b=q5p8fcueq1A/2d2/pGmSaGqDTyU/CrC8arPsKXDNyfs92P+4aA2jh/9cY2xLDZUvyNyCn35ggMHxAg+bstwFVePmLWF7M0maNUvJLtRuB5JgY1LKm26DnewadOM4XLvPnkc8S06qV5dV2aLqOVlzqlyA45fKm4lmQWIIjrqWAlg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724967571; c=relaxed/simple; bh=xWmQ1OxqFQz7lf6SRBxNuo8JLNOt90S3oTCefaPSYZM=; h=From:To:Cc:Subject:Date:Message-Id; b=oMI3c+vKkwqiaUuP1NgiRmRdBEvHblpakc3Jgcdly9bXIQ3X7riKpdLUcN7m7/2ISMjsKGtjLC5AlNwRuyASU60sb8Y2v3u+Cm9Gql46e7XSwWU3XFon9w/1p7fCu2OW8HNCy02f5o9zsqf2qGbK+7KgHHCNFMEcRn7WNXjlE04= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=PyZMUphq; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="PyZMUphq" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-7c3ebba7fbbso788593a12.1 for ; Thu, 29 Aug 2024 14:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1724967568; x=1725572368; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/KcJF8QQgoMkUco4enV2ZPS1HMzsxznWZ0pCfKEnKH8=; b=PyZMUphqwF9MO4qOJ4M912fcKTtBIzSrNImkl3Wap/tCM9M+WcnP0fH97HUoLackI9 iUYLCboWvuejF2ORDcstJUYQKkqje9UBut/6B5M0e0nvc11Dk3tUZp/3HxYy4EK6u6eF dkFrbTjc9+Rcx6jyqeF8hIOJPmBTsmtxhCCjmdxg3Lg+wsfSVTgOmX8PT4C6M/Fmk9Bi gX126hjAZ/Y97gTGQK7RZQpF4hkqfJsTYX0yEr1wBRn5OMJXsxa1GoJOAy8VB9vkJETK QbwdoR7R1BqNNCG6TJmSr11dFtMaf1NqsGvoWBnj7kd9Fu6iFaAT4j8Zr5mHlutwUhGB JI3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724967568; x=1725572368; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/KcJF8QQgoMkUco4enV2ZPS1HMzsxznWZ0pCfKEnKH8=; b=CbFl/skJnWkSpcwLAZjyC6ZHjdYYl5MGYqJnwvcp7M5EmMd+QE3hmXnyPH8ucQ7LKp +MFOuMJ3WKj14kR7LvAd5rsw1b7cVC/afxVxZchQCmhO+o3cx7xMET6ViM+Tk0H0Ku/0 tcyBHtbqH4R7RjBgYYfT1WNgv7hutA1G1VtBwyCng/QLAuwfMs1PlxCICTsexAE+DI2A k637FxEe6ad1sRAGLX/O6/8zT6Xuuj/+NLntnOhFW8JoGyJfz6rgY5bvVdtf+0V7sTtw 7sZSVRf4Znc9YHx8CVVU+ivTx/Ev9pOuA+azEDuE4pnkcT7MDHVUxEN0tDVixt2l4C5n GcmA== X-Forwarded-Encrypted: i=1; AJvYcCXOksXSzO2ajXA2FY1EpUPxEwKcLFoEw12icePrbLsMr5z6/FCe8eU2zsLBWBvUaG7am7GwEdkQOwKO@vger.kernel.org X-Gm-Message-State: AOJu0YwXLe1VmgZdNNzg+9yfsW7R/yyd4mAvQGhCk68wGRHvRduOD1iA uqf1WNzl88gUtimCPb4W3n6YwQn8YCaivi1976a+Iok8MhVyt+roebYWiJSLpd4W3Czu3EPsq1Q Mz2U= X-Google-Smtp-Source: AGHT+IEcXzUs8FoS4L8k0/z6Ku0YobbN9cwTJiImNRR4sdcXZ0Np8BqHyO2j7RLzFbPZpoN7+TDUlg== X-Received: by 2002:a17:90a:fe8c:b0:2c2:f6a2:a5f7 with SMTP id 98e67ed59e1d1-2d8561a16afmr4896336a91.13.1724967567904; Thu, 29 Aug 2024 14:39:27 -0700 (PDT) Received: from dev-mkhalfella2.dev.purestorage.com ([208.88.159.128]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2d84462aec5sm4705298a91.32.2024.08.29.14.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 14:39:27 -0700 (PDT) From: Mohamed Khalfella To: Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: yzhong@purestorage.com, Mohamed Khalfella , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/1] net/mlx5: Added cond_resched() to crdump collection Date: Thu, 29 Aug 2024 15:38:55 -0600 Message-Id: <20240829213856.77619-1-mkhalfella@purestorage.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Changes in v2: - Removed cond_resched() in mlx5_vsc_wait_on_flag(). The idea is that usleep_range() should be enough. - Updated cond_resched() in mlx5_vsc_gw_read_block_fast every 128 iterations. v1: https://lore.kernel.org/all/20240819214259.38259-1-mkhalfella@purestorage.com/ Mohamed Khalfella (1): net/mlx5: Added cond_resched() to crdump collection drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.c | 4 ++++ 1 file changed, 4 insertions(+) Reviewed-by: Przemek Kitszel Reviewed-by: Moshe Shemesh