Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp224545pxm; Wed, 2 Mar 2022 13:59:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNh//sBupAHZABJuqNqRsLqMhxjKAMUCMpk5fr6MwcJqzIH5yLfGA8WDAWdQyvm+cHl9V5 X-Received: by 2002:a05:6402:1941:b0:413:2b80:b245 with SMTP id f1-20020a056402194100b004132b80b245mr31378790edz.252.1646258377482; Wed, 02 Mar 2022 13:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646258377; cv=none; d=google.com; s=arc-20160816; b=tatx8EnumRlZK0pEa9zrbPyYxlNVYaOcB3J10duKwLiXoW1LYOdgFjNnIL2vdmd6YJ 4xBIGnY05QAqtwP0TtwxBuVvfiUpmczLbcw1kf+JxXgqhwaz5GDFDELGEMdCNJY17Wqj OxDTMfPOjkEst9jUpl6z07jDyvhpHrpdXYOwvEHISHruBiXdjmWEKPPGOCiV3OTFG9/x +amHrs+6rUVgpvQUnxtiNCZrQmPHDA+pv+yZxuR3yDd3oVD42Qio1LN4AFaCErNlyr00 wM2nmuredAx7uCkS1dPYBrPmEkdC308pDpxvTtCTD0aJykRmife8PUV4kL3yxdveNblM MLYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=RMTWf5MAA2Ifjviwl27v9Z408h353xyic/juCBa2+rc=; b=YC8yc4JZfuckwsnpKFGVjtrAPhEXUu/xpCh/Gq+jpDNJVU1zqayNT39Tty2azXMybu 5QJTlhB+sZy8TuM8AJElmXYkOdLndsTleN3KmCC8JaKRftHpzaUxbsGKG+ecQzlRWkAr KnG7mM38zVq/ltWeD2Xx6qcEpUdv7Pqq5IJhLa0k9mmdG9wYmmrJn0pws6gx3O9q5ezG DmVuvq6A3vuCn5v/lUX+/WBmMSCbHTvyuyycYqGoKnUk/cJri/+5BKSLIMsWP6nKt/zR d5ZbUgGkU9xov66lvGdQby40FYHSrEIFodsfuKRn1DPGSB7O+qPC5hmx5yxMiLBkcPJx 8Cwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Qzlz6NSM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb28-20020a1709077e9c00b006da8ab260f5si187109ejc.1000.2022.03.02.13.59.12; Wed, 02 Mar 2022 13:59:37 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=Qzlz6NSM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242500AbiCBRab (ORCPT + 99 others); Wed, 2 Mar 2022 12:30:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243921AbiCBRaO (ORCPT ); Wed, 2 Mar 2022 12:30:14 -0500 Received: from m43-7.mailgun.net (m43-7.mailgun.net [69.72.43.7]) by lindbergh.monkeyblade.net (Postfix) with UTF8SMTPS id B76F24D269 for ; Wed, 2 Mar 2022 09:29:01 -0800 (PST) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1646242141; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=RMTWf5MAA2Ifjviwl27v9Z408h353xyic/juCBa2+rc=; b=Qzlz6NSMZO2f32ju56jdUxJpFJnUrbVqfgR0FxiBxM6j/CYnHIKxIefrI7u18DiYb/FsVo02 y/crf9CSQLdNNuQZUswmYMu0HQFPK9/P8J8EEXNVUsxdzl9nY5cG049dbwkd/F5smUzrE8gc R01bEcUari/3Q6/LRTQTjg2lV88= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 621fa94838d1ef42a4a6a8c5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 02 Mar 2022 17:28:40 GMT Sender: quic_akhilpo=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 33CF2C4360D; Wed, 2 Mar 2022 17:28:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from hyd-lnxbld559.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akhilpo) by smtp.codeaurora.org (Postfix) with ESMTPSA id C60C9C4360D; Wed, 2 Mar 2022 17:28:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org C60C9C4360D Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=quicinc.com From: Akhil P Oommen To: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Dmitry Baryshkov , Bjorn Andersson Cc: Abhinav Kumar , Daniel Vetter , David Airlie , Sean Paul , linux-kernel@vger.kernel.org Subject: [PATCH v1 09/10] drm/msm: Remove pm_runtime_get() from msm_job_run() Date: Wed, 2 Mar 2022 22:57:35 +0530 Message-Id: <20220302225551.v1.9.I5e0f1bc491d12b7dec6c449554c27d2ccdf7a144@changeid> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1646242056-2456-1-git-send-email-quic_akhilpo@quicinc.com> References: <1646242056-2456-1-git-send-email-quic_akhilpo@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We do pm_runtime_get() within msm_gpu_submit(). So remove the redundant pm_runtime_get/put from msm_job_run(). Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/msm_ringbuffer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_ringbuffer.c b/drivers/gpu/drm/msm/msm_ringbuffer.c index 3bbf574..43fb04e 100644 --- a/drivers/gpu/drm/msm/msm_ringbuffer.c +++ b/drivers/gpu/drm/msm/msm_ringbuffer.c @@ -18,8 +18,6 @@ static struct dma_fence *msm_job_run(struct drm_sched_job *job) submit->hw_fence = msm_fence_alloc(submit->ring->fctx); - pm_runtime_get_sync(&gpu->pdev->dev); - /* TODO move submit path over to using a per-ring lock.. */ mutex_lock(&gpu->lock); @@ -27,8 +25,6 @@ static struct dma_fence *msm_job_run(struct drm_sched_job *job) mutex_unlock(&gpu->lock); - pm_runtime_put(&gpu->pdev->dev); - return dma_fence_get(submit->hw_fence); } -- 2.7.4