Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 677D4C636D7 for ; Wed, 15 Feb 2023 19:54:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbjBOTyC (ORCPT ); Wed, 15 Feb 2023 14:54:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjBOTx6 (ORCPT ); Wed, 15 Feb 2023 14:53:58 -0500 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D83D5FD3 for ; Wed, 15 Feb 2023 11:53:57 -0800 (PST) Received: by mail-io1-xd2b.google.com with SMTP id j4so7567009iog.8 for ; Wed, 15 Feb 2023 11:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sT4ClNB23fZFU4XjrijJ0dWtSiTxl6Nd7yW2gogV88A=; b=kOoXHaENCqaveZbRVos/KoMjQEYUTTe+cDvD6aZOVB4UUm+9O4E2ELQjImfT8ouZ0J iELDS2mImUI4RYworlFqM7oaHyim/HvO25dDpiSyr7dtNtV+o8xuJalkoo5wJWQ5rTUg +oDPdVMW56ZFzB1vW6+zCXGc+1wVSE96+kk52Q3f59Nf2L77oqW0yzuiC3HydTBOqKIc MT7Qd14E5trSIKIU7J1kY2G2PdW2y4BYh+4O/dZPIz49zPNJmWGCH8JBD7pne/j3bIiB OLQH70fIPNS+3xkyvdwHrUz4SUmR57AeqVf91aJC2bVurGUT0evfT6K4C6eFkgZu/Cnu RAuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sT4ClNB23fZFU4XjrijJ0dWtSiTxl6Nd7yW2gogV88A=; b=g4nBf7dWRjCrfs6nyGfbRZdNUqzYlVxqf4pZfnHf+48fIPMXkwLcnwrJWis9sJFnBM BRn+k6qvJt5eGerDGXdla6LqKaLK1GZgr+BDkpwDVdlM85dijS5B8k81K8A8Cwm/i0WL gRVBAdUL0CwOgvZgfypTO5QjVPXxh/KROXIF1c+yp5KVgWZZ0fYuUZswRkjt+I8Hoyp+ xABOxsfcvgvPfHZB0455M5pw3+QN7l0OwnQ03101MUrIxO17VA8PtsOsXvh12fKNNPbh g3E9WEUKciNYe7UMnBDQPBHxHWNmhy/Lz2pnar/jzMPrjyFIPTSmAjk7Cn4I1nhv+1W1 6Q0A== X-Gm-Message-State: AO0yUKVQ8b6Pjf7H786k63oyb/UUso5pu69vpY6Vj7H05zAD0dAp1oVN dJadfURvga6g0JM3d5IAkalDSg== X-Google-Smtp-Source: AK7set8XLttl8lPSv2+iEOKoX0074zNwcBjXiQgyM56kXujYOubNht4kSI2UhSZzQoeaE5M2qpr1/g== X-Received: by 2002:a05:6602:370a:b0:734:ac8a:65d6 with SMTP id bh10-20020a056602370a00b00734ac8a65d6mr348465iob.10.1676490836388; Wed, 15 Feb 2023 11:53:56 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:53:55 -0800 (PST) From: Alex Elder 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 0/6] net: final GSI register updates Date: Wed, 15 Feb 2023 13:53:46 -0600 Message-Id: <20230215195352.755744-1-elder@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I believe this is the last set of changes required to allow IPA v5.0 to be supported. There is a little cleanup work remaining, but that can happen in the next Linux release cycle. Otherwise we just need config data and register definitions for IPA v5.0 (and DTS updates). These are ready but won't be posted without further testing. The first patch in this series fixes a minor bug in a patch just posted, which I found too late. The second eliminates the GSI memory "adjustment"; this was done previously to avoid/delay the need to implement a more general way to define GSI register offsets. Note that this patch causes "checkpatch" warnings due to indentation that aligns with an open parenthesis. The third patch makes use of the newly-defined register offsets, to eliminate the need for a function that hid a few details. The next modifies a different helper function to work properly for IPA v5.0+. The fifth patch changes the way the event ring size is specified based on how it's now done for IPA v5.0+. And the last defines a new register required for IPA v5.0+. -Alex Alex Elder (6): net: ipa: fix an incorrect assignment net: ipa: kill gsi->virt_raw net: ipa: kill ev_ch_e_cntxt_1_length_encode() net: ipa: avoid setting an undefined field net: ipa: support different event ring encoding net: ipa: add HW_PARAM_4 GSI register drivers/net/ipa/gsi.c | 36 ++++----- drivers/net/ipa/gsi.h | 3 +- drivers/net/ipa/gsi_reg.c | 35 ++------ drivers/net/ipa/gsi_reg.h | 23 ++++-- drivers/net/ipa/reg/gsi_reg-v3.1.c | 22 ++--- drivers/net/ipa/reg/gsi_reg-v3.5.1.c | 22 ++--- drivers/net/ipa/reg/gsi_reg-v4.0.c | 22 ++--- drivers/net/ipa/reg/gsi_reg-v4.11.c | 116 ++++++++++++++------------- drivers/net/ipa/reg/gsi_reg-v4.5.c | 64 ++++++++------- drivers/net/ipa/reg/gsi_reg-v4.9.c | 74 ++++++++--------- 10 files changed, 205 insertions(+), 212 deletions(-) -- 2.34.1