From patchwork Tue Apr 4 18:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijaya Krishna Nivarthi X-Patchwork-Id: 7719 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp74985vqo; Tue, 4 Apr 2023 11:18:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZGdrQ9MDqwfQuB32NO4aNC+OLV86BwC9eNsll2EAIQmFHyTR5z/81SLRh3C8QSLP885XiT X-Received: by 2002:a05:6a20:3545:b0:d5:7704:f362 with SMTP id f5-20020a056a20354500b000d57704f362mr2681157pze.56.1680632309247; Tue, 04 Apr 2023 11:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680632309; cv=none; d=google.com; s=arc-20160816; b=XbbbV4D2ZO+gyp9sF3CW5sWsESdZsWJAj7AWITVZ3XLQTtm3udeyD1RUvaN19ovQr2 BHI7vB83e04HnS4GHM2KKcLwn3Yu50sf5ro4ani3sQ/VRMNvE0CZESi0WUFPYsq7BkGs TZkF2ugN+VUsefjcpUcOySKwp6AxXgDkM2UfhppCg6kyT3khMTCW5y/QitPdwFpl/G2W giu/jWj7ruk71mXKQQKYN8BFJVHimmiIVjBfSE+0brhIKoEtdplN7NM9d5zMNSyzbTwi BymvZe9FRaGWNVKIooJE3KYr8QGXr9M42QQ3TPgvyJjK/fg6q/LsUph+7wjQ2kStVxm+ g59A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=0BFYPQS1UqhfZZvnAAsFORkAxtcONmIhYtojA59W0HQ=; b=Zzpsxrp9dlepXGfGdsGhl2KNeCpNk6Iq9aM7nNOsz0K4BXjrHaQPScTnDVHF88jhyW 1J/jfmgJvi9fhyX51vUg1m241CcXNdAx64UIVzGPRlVp75gAzMT+nq8PRX5q2nlbu9Lt 8xVoS0YFVdWucL9w1SZz5Xjy1utJSGmefdwgRdZad2C3rLi/eVgPpyJXAixRfe+I5Fwl qEuCziQ+XzlXA8D8ODptEDNx3JF+vjDLSudZ4Bq0YupQnJ0hrFlxWzPqCa2AMNA057cA bvm+KjZFSNcfAlVUPwCu2NQXMY3Iy4Er6q69+G9ap07CnSwOMYDXZFXexzIQg73WFzHa ++bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=G+ZSC93o; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a63e04b000000b004fbd7827010si10726610pgj.263.2023.04.04.11.18.16; Tue, 04 Apr 2023 11:18:29 -0700 (PDT) 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=@quicinc.com header.s=qcppdkim1 header.b=G+ZSC93o; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235910AbjDDSDg (ORCPT + 99 others); Tue, 4 Apr 2023 14:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234983AbjDDSDe (ORCPT ); Tue, 4 Apr 2023 14:03:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 438904687; Tue, 4 Apr 2023 11:03:34 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 334E5VV6000646; Tue, 4 Apr 2023 18:03:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=0BFYPQS1UqhfZZvnAAsFORkAxtcONmIhYtojA59W0HQ=; b=G+ZSC93oeHXb31ukD+/iSZIoLBhIy9I8jITJp5whjoOd2JJowFIvWUOJcT4hJSwSDbDe J0hrnGQWDBv/D3zT3UGEuZtMA1BWCMDv6qSNjuF0yDuJ1ROrgb3cAZuRl+Zv67l3uCK8 NW77rDUi/39j7SSQ7Fz4lkTHZkNC8PS/Ben7VPli63lefNdS/fHd7uU0tqqDdR0qPJze nz/A4Kfh1e4C5J9OBvXsjPhsB9I0Cy21k95TIR4JFYkVFeFziNQcJXJvfi3Lw8gpFuan jIw2yU1GZEFMAnSJxXuM7D12vbCY1Vk+9X6FJgoTvPbuRRZSM1c5/qNrlgmrxHc76y8v Mw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3prnbt0nth-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 18:03:30 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 334I0Lrn017842; Tue, 4 Apr 2023 18:03:25 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3ppdpkvtr7-1; Tue, 04 Apr 2023 18:03:25 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 334I3PZp021639; Tue, 4 Apr 2023 18:03:25 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-vnivarth-hyd.qualcomm.com [10.213.111.166]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 334I3OVm021638; Tue, 04 Apr 2023 18:03:25 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3994820) id 42E653B69; Tue, 4 Apr 2023 23:33:24 +0530 (+0530) From: Vijaya Krishna Nivarthi To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, broonie@kernel.org, vkoul@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: quic_msavaliy@quicinc.com, dianders@chromium.org, mka@chromium.org, swboyd@chromium.org, quic_vtanuku@quicinc.com, Vijaya Krishna Nivarthi Subject: [PATCH 0/2] spi: Add DMA mode support to spi-qcom-qspi Date: Tue, 4 Apr 2023 23:33:18 +0530 Message-Id: <1680631400-28865-1-git-send-email-quic_vnivarth@quicinc.com> X-Mailer: git-send-email 2.7.4 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: OIanKax0CG2WIC_8UWTEf9Q49a-D9BVL X-Proofpoint-GUID: OIanKax0CG2WIC_8UWTEf9Q49a-D9BVL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-04_09,2023-04-04_05,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=305 bulkscore=0 impostorscore=0 spamscore=0 clxscore=1011 adultscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040165 X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762270703938405290?= X-GMAIL-MSGID: =?utf-8?q?1762270703938405290?= There are large number of QSPI irqs that fire during boot/init and later on every suspend/resume. This could be made faster by doing DMA instead of PIO. Below is comparison for number of interrupts raised in 2 acenarios... Boot up and stabilise Suspend/Resume Sequence PIO DMA ======================= Boot-up 69088 19284 S/R 5066 3430 Vijaya Krishna Nivarthi (2): arm64: dts: qcom: sc7280: Add stream-id of qspi to iommus spi: spi-qcom-qspi: Add DMA mode support arch/arm64/boot/dts/qcom/sc7280.dtsi | 1 + drivers/spi/spi-qcom-qspi.c | 429 ++++++++++++++++++++++++++++++++--- 2 files changed, 399 insertions(+), 31 deletions(-)