Message ID | 20230215195352.755744-2-elder@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp388712wrn; Wed, 15 Feb 2023 12:00:16 -0800 (PST) X-Google-Smtp-Source: AK7set9WZyBzUH0qFyc1KEKBLB2oU22ctCIvlZzTnK9QT6ihikPa7K/gyw2UnvJX5/l8xjvvTZcF X-Received: by 2002:a17:907:7657:b0:86f:e30c:72c1 with SMTP id kj23-20020a170907765700b0086fe30c72c1mr3827097ejc.8.1676491216153; Wed, 15 Feb 2023 12:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676491216; cv=none; d=google.com; s=arc-20160816; b=EnoeEnpYCUeoeoAE2eMB7v5dScOX4o3EOJkVRYRcb1bRJgBekVHu8Y1+EeiTpeFwbg xXlJnSTeBmn/qWyiUL0sqx1elh7K3gjbXqdl4Y/5LNIptf1ybi1AnRRvlYNj65EZtylp w0sriw3n4GGCqRcBDarrzYz/It6sjK0IgduuJOAPhJQ1DrlDycmofQOEbHkY3yWe5JRw /pm4VTnO3WRqzpgfvIbVTMtRGQeHFnnWz+b5ag04ls+VwvGIfs0eoV8uGvRyNX7QAxsQ pvxC0KWiIeSZ43v2js8qgLvz10cQGlcPUDrxM6l1EEF4Sm9WLqBA7De1gUlIDUnqRptT +9DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YbMLPKGF7WhK7cdDBBY2la/NoWBzR8bhvPOtNAmLCnQ=; b=D6qKpDssqZcZokQTLFGepBds38eI/7DcZ9pkrAICOXBE1Fus7XVVaszYqhsf9Awuei N8SFYLRSUlJKsnrgIIjwcYAUYs2ZylN2VpO7l8jhawrC5Z/dzXjzKvYh9JgVTvU7d1OM nelf3mchTK58Ar+L5FOEq9pKmynJJ2BZ0hJZMPMGRIJYsjk74xZ9Wlr4ZRMdkpd/royN 9t8Uiy3MOEPcsARMrkiVH0hHKjEhSO4b4h9M7JvHehsi7w7qaUfukfnVh+noPvQglPXE J72LJ8VReJz8tHp+7MRMu3tY9woxXnAwxHuYriug2ESYCub9+i2BuiNQK8FxJcKL3Iqg HF7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JauapKQS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a17090620c300b008af42607e97si26184721ejc.379.2023.02.15.11.59.52; Wed, 15 Feb 2023 12:00:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JauapKQS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229805AbjBOTyD (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Wed, 15 Feb 2023 14:54:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjBOTyA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Feb 2023 14:54:00 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3317C76A5 for <linux-kernel@vger.kernel.org>; Wed, 15 Feb 2023 11:53:58 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id 65so7565786iou.3 for <linux-kernel@vger.kernel.org>; Wed, 15 Feb 2023 11:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YbMLPKGF7WhK7cdDBBY2la/NoWBzR8bhvPOtNAmLCnQ=; b=JauapKQSc+yTYJuA2tbKx2MyJ6hDWbl0keveabfqq02FTqMpXAiVK5PYexk4tHBhVZ v3YcU3RbguraYhH3HiM9ELy/vyA5Mp+I2/gcR6WO5jSp6hKm0zjRnk3b5TE5EWFdhfv3 5b/NTlDWhiu22+YOJwfxocQuxQHfTXp/2lAvm+UN+BYktqRYufuGgGqUOPMJcpRZ4MVk AM5JTKGdmwJew8zNOjfTOI8OTpcgNoL0ASeKXpdbX8YFPfOVh0wPkEh9i/LIlxX1y3b1 VTPW4e02pEVfu3Tz4pqhbpnnRiY0SxbOjRXsB93cwh6Q0RpIq0N1a7On7JNfW5RJC4XH Pm7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YbMLPKGF7WhK7cdDBBY2la/NoWBzR8bhvPOtNAmLCnQ=; b=pBk+Px7pqfSD4pkVxQsPQbsWpcwK5pAJN1hFhq7FOndNCW+IeZVbfeYwkmvdjakdkS I0TixIEJtuNU3u4TkNyDSLhe4tk+QNe9FUEGhbOc/3yXhnW2Lv+2e3sKWEEmRMR2U6hZ E36kYIeK5At0dGLvQgCd8NMrYCw00BwDTfRyKi+wrzIt3KDvgUKXs96xTzZ5PBZxqCHr n+nXDMPS4ljHo5YF5FtJJ8mNF7qByCnvs11wRjxzqApmp3bdnHCMnAS6Th2eF3g2KjW+ MMwI2AS6ILPS8BddgvdnU322czzfKGQFwgK2nUmSHCttT2keL591BE7Weddd0DVJsEZf 2CdA== X-Gm-Message-State: AO0yUKXw6IeP/ld3+HsjXw6rTStXlFTvUE9mKyQRxN6eIkM75kzJ9He3 4FiqVytlgXmWjF8uwxgPKRuPCw== X-Received: by 2002:a5d:8048:0:b0:71a:b85c:2995 with SMTP id b8-20020a5d8048000000b0071ab85c2995mr2416487ior.15.1676490837532; Wed, 15 Feb 2023 11:53:57 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id n10-20020a5ed90a000000b0073a312aaae5sm6291847iop.36.2023.02.15.11.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:53:57 -0800 (PST) From: Alex Elder <elder@linaro.org> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: caleb.connolly@linaro.org, mka@chromium.org, evgreen@chromium.org, andersson@kernel.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/6] net: ipa: fix an incorrect assignment Date: Wed, 15 Feb 2023 13:53:47 -0600 Message-Id: <20230215195352.755744-2-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230215195352.755744-1-elder@linaro.org> References: <20230215195352.755744-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757928453334214526?= X-GMAIL-MSGID: =?utf-8?q?1757928453334214526?= |
Series |
net: final GSI register updates
|
|
Commit Message
Alex Elder
Feb. 15, 2023, 7:53 p.m. UTC
I spotted an error in a patch posted this week, unfortunately just
after it got accepted. The effect of the bug is that time-based
interrupt moderation is disabled. This is not technically a bug,
but it is not what is intended. The problem is that a |= assignment
got implemented as a simple assignment, so the previously assigned
value was ignored.
Fixes: edc6158b18af ("net: ipa: define fields for event-ring related registers")
Signed-off-by: Alex Elder <elder@linaro.org>
---
drivers/net/ipa/gsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c index f44d2d843de12..05ea2502201da 100644 --- a/drivers/net/ipa/gsi.c +++ b/drivers/net/ipa/gsi.c @@ -762,7 +762,7 @@ static void gsi_evt_ring_program(struct gsi *gsi, u32 evt_ring_id) /* Enable interrupt moderation by setting the moderation delay */ reg = gsi_reg(gsi, EV_CH_E_CNTXT_8); val = reg_encode(reg, EV_MODT, GSI_EVT_RING_INT_MODT); - val = reg_encode(reg, EV_MODC, 1); /* comes from channel */ + val |= reg_encode(reg, EV_MODC, 1); /* comes from channel */ /* EV_MOD_CNT is 0 (no counter-based interrupt coalescing) */ iowrite32(val, gsi->virt + reg_n_offset(reg, evt_ring_id));