Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3304439lfo; Mon, 23 May 2022 01:11:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4NY6QQirHjFXfz4Qc4lIRG63VX+gsUIAOcwEFdmBhGzTmlJOn23vL95sdsNQkqhsr0pZJ X-Received: by 2002:a05:6a00:188e:b0:518:97d9:90ff with SMTP id x14-20020a056a00188e00b0051897d990ffmr5850974pfh.49.1653293491802; Mon, 23 May 2022 01:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653293491; cv=none; d=google.com; s=arc-20160816; b=QlPqoGXKKTgBVhCxtWpsIEjwp6KCmaWiq2kC6eoT3r3SjVMiTiqN2xww1bD8M8Uuw7 GSiNpWR9DNNXqXNdu/Mr2i4SPz5R5oqaf/YRpbBa/ro10JF4gQnQ6VuJehkkKWqxYMvY XJsDcNl0HyXVHAiAU0JTh/W5olluJAk8gTtbpefe2aTNkvaNm5S1Ak+KjsWMh0JIQ9hN rs9C06hFIh+Fe3dfPyIvbWNlK8PU784DfDVv3YJmHsfAqAmYgOxnPJkOZfD6V6xY9qDH CsNjmuQc7zcJKptS6C6zbJ5j30zdRpm8KccK2syA5ZWjqEVfASvZnSMicaXBazHSkKWL xm+w== 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=RDjvNwQr73WDdKShZZtiXObHhvvbcnoL8/p/PaQfpbU=; b=ybgNh+Y6+pPo1wTUMlvzaKTb+KAamuj7RjgzWkrq4R2ESmdTA4d+iGhiS2iGOeFE/l gGNpLZ8mW03RLpoDx3cGwpQwXqiXidn4FHggq7xV3T5tmS5X1qQjnGfvAOiJD38ZJZH4 lKcICMQ+JbAxVK4dDI1euW2fxgU2mvSgypUo1HQ3JbXiOvpeCiUcCLYRsW0l5m68QyTB gI8MeJMBKA6mCezpBMT42AlShAHKlNsfabtekqEFhGezuR02HLNGJBccRTNuLnD2fHdm YoCfhw/jxE+N1djpnwHp+AY3nJeU7S4eXpRJzUlKDDKePqDxkXH1hIhhOJp/Rc88GFMB dEcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XJgdvqah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 16-20020a631750000000b003fa1e2de690si6249052pgx.441.2022.05.23.01.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XJgdvqah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0813E6A40E; Mon, 23 May 2022 00:06:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353067AbiETSzo (ORCPT + 99 others); Fri, 20 May 2022 14:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353041AbiETSzl (ORCPT ); Fri, 20 May 2022 14:55:41 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 100CE18AAA9 for ; Fri, 20 May 2022 11:55:40 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id i5so6150487ilv.0 for ; Fri, 20 May 2022 11:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RDjvNwQr73WDdKShZZtiXObHhvvbcnoL8/p/PaQfpbU=; b=XJgdvqahG/NtlK+huXowNp3c2vSH9BIpLhN+BMbtyukS48mNI5ag0vZH+xzrrB03eQ mJ0tho8YwZpitBsQ0TAs0hXMTqivWtdG7lfQb+EpGpN1byA26AK432pK+Eayw3OOvucx /Oilk00+wLdF0nMe7O/TfbHlSV4XmDiVMQV4GU3noTo0MKjh+PNybwjjYeiKDAHHnZGC TicURa+nvAj9Se9sJvDcy9WWUZ3LSIDA2h/RuPnDDa5jJ7GxwQrHp0e1vTZj+eSbFEdb D7giS6uFMDL7w/+fvht/gisrK809XtIoR8eQ+DeFgqGtHKCCUSl4HG8V0paUFW0Ykh73 vDsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RDjvNwQr73WDdKShZZtiXObHhvvbcnoL8/p/PaQfpbU=; b=Tk4bmB9pkWJc1gGqcx+u2v4Aa1VRhmK7zWP5JjNI2dvsAN/M0cyIbJw2yNl1TpTAgp 4e8+nQeDhihSMTqG/2W51ZkSm3YC0dcX5AF1+YsAg20h1DoUS0bRkmEgO5W0fIJj4B9r Nx/vS/3Kdxf8Vf+r52G5LE9yHtMtSXuu3S1cjdUD7jTLnRtqamkwKElqHKsVJEEczCHy Q2DBIS8iPQyYVpb0sUU1DtBZSYoeq9Xfh1aoRB2e/rb+hbUDk+Q5yL53ORTMpBQKTQn+ myjIPbYDNszJRbPu+PDXis3XAUTS385u2H8ryxhxCKZvrWUJkWycVSOjPIf72Tp4srU4 wP4w== X-Gm-Message-State: AOAM533mECsS0nQpgkEkG/MQ4blgk/SGkjZlnv7WVz62VuooC9viVsBP 2DQ683hup5us2I/WoK05+BCksA== X-Received: by 2002:a05:6e02:1c22:b0:2d1:87b:c6a3 with SMTP id m2-20020a056e021c2200b002d1087bc6a3mr6199227ilh.184.1653072939426; Fri, 20 May 2022 11:55:39 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id a6-20020a056638058600b0032b3a7817acsm871958jar.112.2022.05.20.11.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 11:55:39 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: mka@chromium.org, evgreen@chromium.org, bjorn.andersson@linaro.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/8] net: ipa: make endpoint HOLB drop configurable Date: Fri, 20 May 2022 13:55:26 -0500 Message-Id: <20220520185533.877920-2-elder@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220520185533.877920-1-elder@linaro.org> References: <20220520185533.877920-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org Add a new Boolean flag for RX endpoints defining whether HOLB drop is initially enabled or disabled for the endpoint. All existing AP endpoints should have HOLB drop disabled. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_endpoint.c | 8 ++++++-- drivers/net/ipa/ipa_endpoint.h | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index 0f489723689c5..3ad97fbf6884e 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -1554,8 +1554,12 @@ static void ipa_endpoint_program(struct ipa_endpoint *endpoint) ipa_endpoint_init_hdr_metadata_mask(endpoint); ipa_endpoint_init_mode(endpoint); ipa_endpoint_init_aggr(endpoint); - if (!endpoint->toward_ipa) - ipa_endpoint_init_hol_block_disable(endpoint); + if (!endpoint->toward_ipa) { + if (endpoint->config.rx.holb_drop) + ipa_endpoint_init_hol_block_enable(endpoint, 0); + else + ipa_endpoint_init_hol_block_disable(endpoint); + } ipa_endpoint_init_deaggr(endpoint); ipa_endpoint_init_rsrc_grp(endpoint); ipa_endpoint_init_seq(endpoint); diff --git a/drivers/net/ipa/ipa_endpoint.h b/drivers/net/ipa/ipa_endpoint.h index 39a12c249f66d..3ab62fb892ec6 100644 --- a/drivers/net/ipa/ipa_endpoint.h +++ b/drivers/net/ipa/ipa_endpoint.h @@ -60,6 +60,7 @@ struct ipa_endpoint_tx { * @buffer_size: requested receive buffer size (bytes) * @pad_align: power-of-2 boundary to which packet payload is aligned * @aggr_close_eof: whether aggregation closes on end-of-frame + * @holb_drop: whether to drop packets to avoid head-of-line blocking * * With each packet it transfers, the IPA hardware can perform certain * transformations of its packet data. One of these is adding pad bytes @@ -74,6 +75,7 @@ struct ipa_endpoint_rx { u32 buffer_size; u32 pad_align; bool aggr_close_eof; + bool holb_drop; }; /** -- 2.32.0