From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0519AC43381 for ; Wed, 20 Jan 2021 22:30:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C92742220B for ; Wed, 20 Jan 2021 22:30:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbhATW0h (ORCPT ); Wed, 20 Jan 2021 17:26:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732209AbhATWEq (ORCPT ); Wed, 20 Jan 2021 17:04:46 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64DF2C061757 for ; Wed, 20 Jan 2021 14:04:05 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id d81so108039iof.3 for ; Wed, 20 Jan 2021 14:04:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=V3TcYAR0KycrKsgY4roTY2MFZq0U/ncsPStDv/MM68g=; b=eXW1xreQZ3gRIkREKhHF+sAztlPHMdxhtwI3mWQj0eOAZ27j2/gTrK3KQjLsuzu/dF 0p6DFIVWwoj+X/bjAUX9Cw/0Bx5SBUNp8fuPh6uhCcImw6kojoPhOev0R7IGBBgHGgTv Behmzkz2LYgR0UcWBZofnK07+1DNm3quWH1lKaOXgSvWFZtZeVBum/XB5wa+llHrbRqZ Zv691RCn3z9wiS01J+vUmOlAWmcXSQByDSiR+s9pKiW2yTmtUrPo/7pjXhdil+yNRsNr JH4d+uUu5eItQ/Y5j89KR9vSR03bNPdQRq0gyhdKy5VokWY4DSqSMZnV+MaKnO0HhMcm H0TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=V3TcYAR0KycrKsgY4roTY2MFZq0U/ncsPStDv/MM68g=; b=WUJENG91JyANb4rsKqU18Qlp49O+S+6ItXw6ZDQaccUhhGySgxH0J9rx/UOYsj+Zkf xVWsaLepBkUP/fhCMVAL/Ukg0hQKGLw9HxfPqACSYqZfU2LuTGtL7pVT+gvjDALgP1El 77wxSMcAbKaDUNaLlb+Dy6YJKTJ3+kYT/K0Np1kG8LQuV1QCxtuNvgX2iy+XA0eEyYiq Q0IihkbLOQspy/BUH/ktDp2/NCHoWfZZt4PYMe5TWdE9F+O1FhUIaWKXNkVo3Ii0C7Gi 28jCuX70uQi57/38RGTkbIwqxtLOVChOf/H1s0p2IiApvJc4iPkXajr/nkkPYgdy7vAG xy4w== X-Gm-Message-State: AOAM530uYXeFJ1y+6jGG6uc5wOiwDWR7qYG2Kfn3fXC6hfGRe4FvnjVa sxslQIy/ExOIT16+hfRkc6pqgA== X-Google-Smtp-Source: ABdhPJy3FIBbDw1zvduVWfsv6dGPkGtZSJ8PBXTh3kTkclilDwG+2lNNe7410hE5jAVEnezQ0fnf5A== X-Received: by 2002:a02:a584:: with SMTP id b4mr8883276jam.135.1611180244502; Wed, 20 Jan 2021 14:04:04 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id e5sm1651712ilu.27.2021.01.20.14.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:04:03 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: elder@kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/5] net: ipa: NAPI poll updates Date: Wed, 20 Jan 2021 16:03:56 -0600 Message-Id: <20210120220401.10713-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While reviewing the IPA NAPI polling code in detail I found two problems. This series fixes those, and implements a few other improvements to this part of the code. The first two patches are minor bug fixes that avoid extra passes through the poll function. The third simplifies code inside the polling loop a bit. The last two update how interrupts are disabled; previously it was possible for another I/O completion condition to be recorded before NAPI got scheduled. -Alex Alex Elder (5): net: ipa: count actual work done in gsi_channel_poll() net: ipa: heed napi_complete() return value net: ipa: have gsi_channel_update() return a value net: ipa: repurpose gsi_irq_ieob_disable() net: ipa: disable IEOB interrupts before clearing drivers/net/ipa/gsi.c | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) -- 2.20.1