From patchwork Mon Jun 21 17:56:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 464876 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 A21F3C48BE5 for ; Mon, 21 Jun 2021 18:14:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7DF716120D for ; Mon, 21 Jun 2021 18:14:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232375AbhFUSRE (ORCPT ); Mon, 21 Jun 2021 14:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232409AbhFUSQW (ORCPT ); Mon, 21 Jun 2021 14:16:22 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D789AC08ED46 for ; Mon, 21 Jun 2021 10:56:31 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id f10so11205165iok.6 for ; Mon, 21 Jun 2021 10:56:31 -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:mime-version :content-transfer-encoding; bh=IV95GMbU/+c678tswYY3L9SohfbRzkw3apADsCCEPR4=; b=N8FZrnlSmGZsKkgxuqor+nYtDsFl3WWcjXfqc7RyjIrL9D2XnzaXDBCx21T9ODu8Fi q03iUsN6caOhg5x1NryfeP+8d1Fh0ftGHY32+Rcvh9OTv6bHHMN0uuoNqK6ERNo0ZRql ea2waOflPGGF32s/P877qcP7JmsNVpWMukaNoXZZcogTS5/nFgQoQ3fhA8YhKVvLznsW zNPnOslWv6HzyN3Fp77tT5udQHU9opPstsUexGf1F1WJdOXSHjGyQeVBmQnGvrFbrm3Y PE+h97+jcEgtcb6E43L7SKX2kzxOznpMBz2g9Ro6wtfL2zi6DDFjsbzfnwJEKglq+6s4 2G5Q== 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=IV95GMbU/+c678tswYY3L9SohfbRzkw3apADsCCEPR4=; b=J5cAiURXW9IDIli6zDBwmMJvE+YhzwaPkxnLopqcutETYxpyBBpkqXXxcr0p43Vkb9 H6SbNj8SUpanG5ztqRw5IRtQNtrMw/WhYL5mnw3nsq5hMj1mc/nEbzQSyCDgpGKjJnN0 TkexEnmyUFRROojxO94bdk0EELnEN5CjULJqsfg1HaN4tQ6ygrEJWZIvGNZRmfRhhLvE bSOeAQg5AHTDZjk9RI2yTzN9tkRX/afSu3+k/QWIy6WmmLIyvPkJz+UyKiiNYH0si3wb mvoVlFREE1vWE/2SieCC0hraT2GTzpcl7seArrcHkecfVIK/PQGISnzb2Frahr8hfG6f 0nEg== X-Gm-Message-State: AOAM531zBhv/UDSyZqxauZGVM7UV1bvqHAS1mcF7oAjIHk+aEOQeby2V 93CHwAcKnMd7KeFfdNj5yr3HXw== X-Google-Smtp-Source: ABdhPJysswUYpGvk3TRgNscJn2cqDNovUnctIaKHNvC6wYmw/FJo3NIZ9iwg/hf1z2bUJkvfNe5izQ== X-Received: by 2002:a05:6602:134f:: with SMTP id i15mr15993299iov.143.1624298191316; Mon, 21 Jun 2021 10:56:31 -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 m13sm6259264iob.35.2021.06.21.10.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 10:56:30 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org Cc: angelogioacchino.delregno@somainline.org, jamipkettunen@gmail.com, bjorn.andersson@linaro.org, agross@kernel.org, elder@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/6] net: ipa: add support for IPA v3.1 Date: Mon, 21 Jun 2021 12:56:21 -0500 Message-Id: <20210621175627.238474-1-elder@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series adds support for IPA v3.1, used by the Qualcomm Snapdragon 835 (MSM8998). The first patch adds "qcom,msm8998-ipa" to the DT binding. The next four patches add code to ensure correct operation on IPA v3.1: - Avoid touching unsupported inter-EE interrupt mask registers - Set the proper flags in the clock configuration register - Work around the lack of an IPA FLAVOR_0 register - Work around the lack of a GSI PARAM_2 register The last patch defines configuration data for this version of IPA. Many thanks are due to AngeloGioacchino Del Regno and Jami Kettunen, both associated with SoMainline. Angelo first posted code to implement most of what was required for this, and Jami has been helpful testing these changes on his hardware. -Alex Alex Elder (6): dt-bindings: net: qcom,ipa: add support for MSM8998 net: ipa: inter-EE interrupts aren't always available net: ipa: disable misc clock gating for IPA v3.1 net: ipa: FLAVOR_0 register doesn't exist until IPA v3.5 net: ipa: introduce gsi_ring_setup() net: ipa: add IPA v3.1 configuration data .../devicetree/bindings/net/qcom,ipa.yaml | 1 + drivers/net/ipa/Makefile | 6 +- drivers/net/ipa/gsi.c | 90 ++- drivers/net/ipa/gsi.h | 2 +- drivers/net/ipa/gsi_reg.h | 3 +- drivers/net/ipa/ipa_data-v3.1.c | 533 ++++++++++++++++++ drivers/net/ipa/ipa_data.h | 1 + drivers/net/ipa/ipa_endpoint.c | 15 + drivers/net/ipa/ipa_main.c | 18 +- 9 files changed, 629 insertions(+), 40 deletions(-) create mode 100644 drivers/net/ipa/ipa_data-v3.1.c Acked-by: AngeloGioacchino Del Regno