Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4748701rwb; Tue, 20 Sep 2022 20:08:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iTBascGZSOS1vSPBkmuRSguRSsFcj/tuy0sZ2HhtaW5VsS1lN4N52jr7ZKPPKtzd1bYDs X-Received: by 2002:a65:63ce:0:b0:43a:2103:b7b8 with SMTP id n14-20020a6563ce000000b0043a2103b7b8mr11916053pgv.59.1663729726752; Tue, 20 Sep 2022 20:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663729726; cv=none; d=google.com; s=arc-20160816; b=Q6+DSOJyRYRGSg3YWjI5FOB1RKJMAlXiQUqwI7vr1BIaO3QoHxQGWiqlWnvbT6ap3e NWl+wpWkvLoBUuPASbmirt6ZZUCvtSTSMdeYq1ufzyOT005VhMCno8SxRGVdQS1J9/V7 HKiCLgIM709BYvvBdR1NjaUEfVIOlboWPT0GTCrjz0SC5jvF9XF/e7+rnEAnewceu0VH RN5hcRq0OhlXNYmBhEeErc/gp54r9jKXpkBOTT2t3WAAtyp/y6MBA2T2/JB/GXLrw8b4 bq48E/XX0javjyCenBzScalNYHkuTfNG3/az+acQNKSgZN20rbXOCybBcj9KD3WYVywL UJjQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RP/caS4k+vesM0CIuvxZsJk410Ex/gFQMNBRq9bVzyM=; b=bSZAr5nIH0OG4aLMOy39eiKaKXhkp4OWTtokDw0J+0M3MJTirwaDua227enAuuP1Tu LZIzbmnttjAhK1xsmsy36uFWs11OZ9w7etPZPUCK0OLytQLJlHHhKKlTVZZjm+pN/LmM K7sMIK0NfoK+nFWyRRpBQBnNqqOwzvJBMg7ArmB8l5CHxI/QBo2iHp4eZhLzlpGRvAss SDvxVa3k+a21/HFNLC54t/K2DRsYSakrn1VdOedRLQab2AjW9s7kb5jt3lzjteBWlUn/ 8I8YvSQeVEwGOVUuHPgb5fTAfwktTax8lJ4r03NsZ+BFZPVWxLvCw9d7Sbo2tJAekNJA gB0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eZeYSMXH; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020aa78e55000000b00549fb74d5c3si1562066pfr.95.2022.09.20.20.08.33; Tue, 20 Sep 2022 20:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=eZeYSMXH; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S229905AbiIUDHK (ORCPT + 99 others); Tue, 20 Sep 2022 23:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiIUDHI (ORCPT ); Tue, 20 Sep 2022 23:07:08 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F817E015 for ; Tue, 20 Sep 2022 20:07:05 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id bh13so4627843pgb.4 for ; Tue, 20 Sep 2022 20:07:05 -0700 (PDT) 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; bh=RP/caS4k+vesM0CIuvxZsJk410Ex/gFQMNBRq9bVzyM=; b=eZeYSMXHVVqYPsM9TEiuYxVPWCxElo2q5vJrD/tlmINXA+cfV7umyG3GTuN3AGbTxb imHSLRtysmwPySq+gbc1ax0j4AFvgFxI7n16eGESuYqqSYKrpliTaqhJKc6XGJCK0jM0 X1kxEmCimxP212cpKl3+E8wViBMMqvNfQp1LSjwgNUMMFkLdzB5NxqYOeapgruEr0w5E dQKv5hduqfioF+Cj26fWAhiL9WVFtGkcOUtZHJembo9kMuhaJwDXN8XzvOXI9muewrS0 3/g/GdLhCm9n5N5EvpnIjlf0gUNpkGMyHsss5OwIFy1Y1WdPBAYdDlR7fmYvpeZTHsWH kB8w== 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; bh=RP/caS4k+vesM0CIuvxZsJk410Ex/gFQMNBRq9bVzyM=; b=50ljYvrPKGX38r1q4v1IlkJwk45T48s5L1fNSZQTiEKIuERsZZ0+dvx/VivIHlvSCT dSRXH+mUjdB8ZTyR11cvK6T/XpPBT1TKJBx8QpW95EZ35mZhAVH98/pDoNRASb6wxQEZ iWVPKaio/ZZMow8j+bpzvtwIEakcHaudTi0agiNctkc+G42WfeQ/7ZSxCu8E3M6tU6zj xVnIDgGhfGImzcGbiINIYMgh/4b505EVOF7ZKbtNR7fC7opuTrqXH0+Lgjbkrni/VFMR VP8amMRVp7yYRyF5Urc0BEObr1GxQcnZ3F37jgoj8OGcuCXZmntXdjKPCUVBABJ8MdIH f/3w== X-Gm-Message-State: ACrzQf0fZMRJsZRPoYol4lI79VOHe5ZYHZAQma71fXK5ACIPNjF2LlCu dKJLzI+w3tFXBrDR6i2HLI1V4w== X-Received: by 2002:a63:e442:0:b0:438:7919:adf with SMTP id i2-20020a63e442000000b0043879190adfmr22828745pgk.4.1663729625212; Tue, 20 Sep 2022 20:07:05 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:8e50:8ba8:7ad7:f34c:2f5]) by smtp.gmail.com with ESMTPSA id y23-20020aa78f37000000b0053e61633057sm690846pfr.132.2022.09.20.20.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 20:07:04 -0700 (PDT) From: Bhupesh Sharma To: dmaengine@vger.kernel.org Cc: agross@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, vkoul@kernel.org, Jordan Crouse Subject: [PATCH v7 0/1] dma: qcom: bam_dma: Add support to initialize interconnect path Date: Wed, 21 Sep 2022 08:36:48 +0530 Message-Id: <20220921030649.1436434-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 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=unavailable 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-crypto@vger.kernel.org Changes since v6: ================= - v6 can be seen here: https://lore.kernel.org/linux-arm-msm/30756e6f-952f-ccf2-b493-e515ba4f0a64@linaro.org/ - As per Krzysztof's suggestion on v6, clubbed the crypto driver and dt-bindings changes together. Now the overall v5 patchset into 3 separate patchsets, one each for the following areas to allow easier review and handling from the maintainer: arm-msm, crypto and dma - This patch targets the dma tree specifically. Changes since v5: ================= - v5 can be seen here: https://lore.kernel.org/lkml/20211110105922.217895-1-bhupesh.sharma@linaro.org/ - As per Bjorn's suggestion on irc, broke down the patchset into 4 separate patchsets, one each for the following areas to allow easier review and handling from the maintainer: arm-msm, crypto, dma and devicetree - Addressed Rob's, Vladimir's and Bjorn's review comments received on v5. - Added Tested-by from Jordan received on the v5. Changes since v4: ================= - v4 for sm8250 can be seen here: https://lore.kernel.org/linux-arm-msm/20211013105541.68045-1-bhupesh.sharma@linaro.org/ - v1 for sm8150 qce enablement can be seen here: https://lore.kernel.org/linux-arm-msm/20211013165823.88123-1-bhupesh.sharma@linaro.org/ - Merged the sm8150 and sm8250 enablement patches in the same patchset, as per suggestions from Bjorn. - Dropped a couple of patches from v4, as these have been picked by Bjorn already via his tree. - Addressed review comments from Vladimir, Thara and Rob. - Collect Reviewed-by from Rob and Thara on some of the patches from the v4 patchset. Changes since v3: ================= - v3 can be seen here: https://lore.kernel.org/linux-arm-msm/20210519143700.27392-1-bhupesh.sharma@linaro.org/ - Dropped a couple of patches from v3, on basis of the review comments: ~ [PATCH 13/17] crypto: qce: core: Make clocks optional ~ [PATCH 15/17] crypto: qce: Convert the device found dev_dbg() to dev_info() - Addressed review comments from Thara, Rob and Stephan Gerhold. - Collect Reviewed-by from Rob and Thara on some of the patches from the v3 patchset. Changes since v2: ================= - v2 can be seen here: https://lore.kernel.org/dmaengine/20210505213731.538612-1-bhupesh.sharma@linaro.org/ - Drop a couple of patches from v1, which tried to address the defered probing of qce driver in case bam dma driver is not yet probed. Replace it instead with a single (simpler) patch [PATCH 16/17]. - Convert bam dma and qce crypto dt-bindings to YAML. - Addressed review comments from Thara, Bjorn, Vinod and Rob. Changes since v1: ================= - v1 can be seen here: https://lore.kernel.org/linux-arm-msm/20210310052503.3618486-1-bhupesh.sharma@linaro.org/ - v1 did not work well as reported earlier by Dmitry, so v2 contains the following changes/fixes: ~ Enable the interconnect path b/w BAM DMA and main memory first before trying to access the BAM DMA registers. ~ Enable the interconnect path b/w qce crytpo and main memory first before trying to access the qce crypto registers. ~ Make sure to document the required and optional properties for both BAM DMA and qce crypto drivers. ~ Add a few debug related print messages in case the qce crypto driver passes or fails to probe. ~ Convert the qce crypto driver probe to a defered one in case the BAM DMA or the interconnect driver(s) (needed on specific Qualcomm parts) are not yet probed. BAM dma engine associated with certain Qualcomm Snapdragon hardware blocks requires relevant interconnect pieces be initialized prior to the dma engine initialization. For e.g. crypto bam dma engine on sm8250. Such requirement is passed on to the bam dma driver from dt via the "interconnects" property. Add support in bam_dma driver to check whether the interconnect path is accessible/enabled prior to attempting driver intializations. If interconnects are not yet setup, defer the BAM DMA driver probe(). Tested on sm8150-mtp, sa8155p-adp, sm8250-mtp and RB5 boards. Cc: vkoul@kernel.org Cc: thara.gopinath@gmail.com Cc: andersson@kernel.org Tested-by: Jordan Crouse Thara Gopinath (1): dma: qcom: bam_dma: Add support to initialize interconnect path drivers/dma/qcom/bam_dma.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.37.1