Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3653696pxb; Mon, 24 Jan 2022 14:31:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzW+2wgI6ibKKOjaS7Yeg98IL3MkxBv8A4mxuS954t4LaCjzg1oXuFq6umdKKRRU73UB9KI X-Received: by 2002:a17:902:b944:b0:14a:b045:4d00 with SMTP id h4-20020a170902b94400b0014ab0454d00mr16216162pls.52.1643063497214; Mon, 24 Jan 2022 14:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063497; cv=none; d=google.com; s=arc-20160816; b=N3PdSdBxwXMoSPib0kkazhkBPKBydOGswi71SB7/lpn1fQpvsd3lF1Fww44gqrRciE lmf09hwkH0T3jHSdMwffdCDKYyeXN9gpV6GWYnlA5+s7lmPx78Wv1ckt0vsKn4DLa03I gL4UgmUjN0MHjGX1hkbVKqU1us7FSi7vl+o2ugbPfD2BEEHMNtlc1Q9/KoV8yUGZnSEx Agb6Q8SDGOo7FVo1KkgMyLcUeNs/qqsF/34nEdm3mnNLllhOH9BDBN4SJPRQKoXNDt/1 mq8rp75lxEmc0mhcAnc1eDrxYH7gAuFRzEgeNiuYLYlqjV7BDipQPkcqR8OeRpWB5sOZ PGOw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2nD13wmaajoYrCn9qRm56CryOSOsVCpqJUyUWppK5w4=; b=JoFv3ioFGgTtmYAgJu0cQtOSeid3f/rZHr+WxvKTCGswhsyjC74+JhVINfK+Es7Jk3 MHLb38Gqm/zIWqrWbFnGCh1ca6EbKk1JBx1mJmjGZm6oOmw3xgeriRjTp5e23iJCzU9p hLNwj/Djzc1RxIWzr7u8AQA87mnRaki+EdtRz5adj9JVWGusEPUUYIeqgG3R5F3k6fqy 5et7PsMZLE/2xj/U6fsrT+KCXbEzzCLuyh/du6+XExBMOc7tJ5fPpIAIrIYTmzQWNS8U k0v4xLm/hAjGqgT8IYkEH4ZcTy+FU3b6JhGhNfcFsgM+P/45gM4oS9hUWchNcrVSD2dE ijJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R2Q4hGZ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si13555593plv.391.2022.01.24.14.31.25; Mon, 24 Jan 2022 14:31:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R2Q4hGZ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587596AbiAXW2s (ORCPT + 99 others); Mon, 24 Jan 2022 17:28:48 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:54792 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455746AbiAXVgC (ORCPT ); Mon, 24 Jan 2022 16:36:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CFC3F61469; Mon, 24 Jan 2022 21:36:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E717C340E4; Mon, 24 Jan 2022 21:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060161; bh=tCklUFkTz/9x3T08B8bbRuJKvWtGxMtJjmqMXxKUWro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R2Q4hGZ5Dd70ks7O5cYrnaejs5x+tzqbPPs2iGKQUoSodizmQcOafpJJlykg4K3wk SkyOL1WeUzL2WsLF75MXem8h8CWrfiuS9dx79vATPQMyxH5mYyo+iPR8kHq1mpJ8Pa TPMlVM3rwpln7cHPo/dgQ02utm8x9IIF8e2CX3YI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ulf Hansson , Dmitry Osipenko , Thierry Reding Subject: [PATCH 5.16 0859/1039] drm/tegra: submit: Add missing pm_runtime_mark_last_busy() Date: Mon, 24 Jan 2022 19:44:08 +0100 Message-Id: <20220124184154.165277301@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Osipenko commit a21115dd38c6cf396ba39aefd561e7903ca6149d upstream. Runtime PM auto-suspension doesn't work without pm_runtime_mark_last_busy(), add it. Cc: Reviewed-by: Ulf Hansson Signed-off-by: Dmitry Osipenko Signed-off-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/tegra/submit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/tegra/submit.c +++ b/drivers/gpu/drm/tegra/submit.c @@ -475,8 +475,10 @@ static void release_job(struct host1x_jo kfree(job_data->used_mappings); kfree(job_data); - if (pm_runtime_enabled(client->base.dev)) + if (pm_runtime_enabled(client->base.dev)) { + pm_runtime_mark_last_busy(client->base.dev); pm_runtime_put_autosuspend(client->base.dev); + } } int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,