From patchwork Thu Sep 5 04:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohamed Khalfella X-Patchwork-Id: 13791674 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 1DE547FD for ; Thu, 5 Sep 2024 04:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725508991; cv=none; b=IDX5EZYZc1zka5IUxkRxeB8Q4eX4wPtAp5xiAVwfpKm37p1BQjYHWnJvXG0DAk2Vh4QtagQkwDrQKpyMXvziTZkxhGN3ZkLIkafWETORYdCtL2KW/u2FQN66IItZ5fp3iJ5Jm8wbVuSEOEWABgB33GTJrsGWDiwd5kdywJw/NNI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725508991; c=relaxed/simple; bh=8pABicp+50IsLqxOyqWE6Sq8aD/+XIjO0scm9/7FURw=; h=From:To:Cc:Subject:Date:Message-Id; b=nypNg5tRgxn/4o5XWo7l7FCY9j4V8dZLyuhPrw6ayCWeTdZeycKe3Y72577muyDcxmzTq0HxOnYUG1UoxVj1wEjWznhFa0xaR7946xAfpvrMLTzpbafO8cXreofDrBA/f+sS0zL2LlPhYqDRLkLokt/Ob4BkOOhr75BuVzZ+3L8= 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=XlrfEKuV; arc=none smtp.client-ip=209.85.218.53 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="XlrfEKuV" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a8a7596b7dfso6729166b.0 for ; Wed, 04 Sep 2024 21:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1725508988; x=1726113788; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IlIByFDmC8Mahq3GIIzaKXynB+32bEHND/HXQox9Rro=; b=XlrfEKuVSf28QtNtngx6pcM+KmJsNtse8w1b/zkHUkpkakv6kKz0DtMcaHL/MEM9nn xcve+n72KTG0p2zLZOuwt+CN0RFT9Ya6Tm2Az/4VrKmBuJiEihdBxVEi+/V1esH4nhv5 V9GiTtPLxJQ3r4L4Ibn7RUFBrNrlvWWBIUXNyLnGC12tOoNHqUWy7P/F5t52pnt4Pgvg DidfxtXchzq4znR1v5a2e+14W9RLdVz1TqsB/auzuGvaAoAo2fCqUYJ/kwxb4Vpc1DmA fVzv3zpPptqw9V2AJ1mqoNvD7BBQrTdvmhvv2sVgDdEep4wOfR3A2rHLSaeNGfqHLhIU lj3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725508988; x=1726113788; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IlIByFDmC8Mahq3GIIzaKXynB+32bEHND/HXQox9Rro=; b=F/ughZnRxNkQ8Wm+pDaGp+ROGWs55tohN8+MnwdywbwlYjCAz3NkXdGV+1fFOixcR0 GFQz2d4/0GH22Wd73Dh/vPdN5ToKCkH8kGtXcHpuE68Z49jOvAPzWSnkCZrF7GM35XNj zGMF8PzbI+ZN8y9/b8LZMj9EreDhwvm8CHaqq9w5O+a+8gGLyv0YNhhBbt26KLSxBKk6 FWGIN3R7G0V9rP7dNOebwZq+NVVz3bh3lDFDTbQjH7bI9r7ZGatfZOLGmdXLNLSlCnFR CBzFrnq2fVOxiaS4I+4+AiQ+AKg/3QZ3hWxT3KwjC39ymViCO+7QogTyPpIbSkLjWa/P p6eQ== X-Forwarded-Encrypted: i=1; AJvYcCUnP1b2gjKJfC/lTx1PQHRH56S9rlNNnOBp67rfELOfdvcO2/vXlxI1VhY2xdnZDZIzPNnqSyU=@vger.kernel.org X-Gm-Message-State: AOJu0YyLYTINIlIXWMGpzaAclrWP8O4i9MovlVJsXZqK/CsdmLOu8rI4 VcrWO63IImL80iSDnw8nTMLOEFyFpy2aWWp2NOktO9UM1UUER02wyoWrORnVU10= X-Google-Smtp-Source: AGHT+IFegv6CAdqeljKZjd+tW6xGIxlEnk5sl8GV8u0dq1pS2dAxSFJempXIEh11AlDG1b8kGZ4a8g== X-Received: by 2002:a17:906:c146:b0:a80:b016:2525 with SMTP id a640c23a62f3a-a8a4301f534mr382421766b.8.1725508988250; Wed, 04 Sep 2024 21:03:08 -0700 (PDT) Received: from dev-mkhalfella2.dev.purestorage.com ([208.88.159.129]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a8a61fbb093sm74170266b.11.2024.09.04.21.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 21:03:07 -0700 (PDT) From: Mohamed Khalfella To: Tariq Toukan , Alexander Lobakin , Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: yzhong@purestorage.com, Moshe Shemesh , Przemek Kitszel , Shay Drori , Mohamed Khalfella , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/1] Added cond_resched() to crdump collection Date: Wed, 4 Sep 2024 22:02:47 -0600 Message-Id: <20240905040249.91241-1-mkhalfella@purestorage.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Changes in v3: - Added Fixes: 8b9d8baae1de ("net/mlx5: Add Crdump support"). - Updated the commit message to mention why cond_resched() every 128 registers read. - Simplified the check that calls cond_resched(). v1: https://lore.kernel.org/all/20240819214259.38259-1-mkhalfella@purestorage.com/ v2: https://lore.kernel.org/all/20240829213856.77619-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 | 10 ++++++++++ 1 file changed, 10 insertions(+)