Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp711814pxj; Tue, 18 May 2021 12:24:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFJTY9zg8bswzUMkUIkBu/TMl6Hyp9/JUk0OrRDPqYlgwIVydYnxMfK07Z2OJ5aCUsciXR X-Received: by 2002:a05:6402:4251:: with SMTP id g17mr8645431edb.205.1621365841997; Tue, 18 May 2021 12:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621365841; cv=none; d=google.com; s=arc-20160816; b=NuBAtlAswov+WgHdIJYHAchMEdgD2Iq1ileKCMbQsZolssTEDUXHsCuId2MtrFsU11 3paJCwctkXF63syoV5Dj4rogkCWIz9RWhx585UAVhbfvFljWRPZQssJwOCrMmBN47QO5 pWXN6jw0r5AMJJTIumGf7GtlbckjUoZ5cwfkxIJBGYh7VdxtgNHwkXs5NbZQ47plvuhA WIkuj5ZHwWW5K6h3IfhH2Fu/CWSeycKMumZZEA9pNw6BiDBl/ayDcb+IteeHth9LUXcX qZJGB1abN9kpb6Q3dX0VQQNZTp4Dgrom1eyNK6loT7ykg2rSNIWHO+J7jV1Gx6FVEVZJ ucCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=FMXziopFsM5hZJ5tJCaOnr2WSysiINJBqzAKuPzSazg=; b=RJPZXycXMTckYS+eZGemrAK9NCs+m7yd/8jXoUP0Aw/MLsN241NTjS/sJdrVuHKdMz QPZ4XVrWYo28LotTxJuPxctwzBKj0tqyRWStRH7wo3Gn0M6/MJksStkd/YsdOjSsvnzB XIt0BRdj/tYtPvhMZMiaQzSMjrXpBJO3eSUh//1P/hJ3VJrqi2byTSdnNHTk5L6aqisy T2jFJnHAZamon0y3kzEt3sOECzQUMgcKU/jWpmvwDx0ob/J+ghflIZwMXkNaKiDVWHk+ HqxUaSC6qRS9A4Eh9U/kjsP9bbVjjzr4ts1VdxUluDdN9bXws5gR+O1iC1IB3iGCQ8KC nhUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMnyJdRk; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg25si8981006ejc.302.2021.05.18.12.23.31; Tue, 18 May 2021 12:24:01 -0700 (PDT) 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=@linaro.org header.s=google header.b=zMnyJdRk; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243717AbhEQQfB (ORCPT + 99 others); Mon, 17 May 2021 12:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239921AbhEQQex (ORCPT ); Mon, 17 May 2021 12:34:53 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FFC1C0784B2 for ; Mon, 17 May 2021 08:26:17 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id n25so7404844edr.5 for ; Mon, 17 May 2021 08:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FMXziopFsM5hZJ5tJCaOnr2WSysiINJBqzAKuPzSazg=; b=zMnyJdRkgrggyXHkBPAoTzSgccs/deh3e9nQLHDXHS4oVzpWXsyeSHEqbgsHyMAGhu hwaWpvMvCrv1Ow6jDJi1X7IhekkkkVTVFZmWxqdjFSrY4zBU0DceGjgtMqMKixH7UBeB Z5RvPCxWGrq8RkegMijDx9uQC2JeY/ntjxv2Khu/ovOBezsdBdAEB9DbiTjHhLs35otL BgU09nq8smNwZNADM7BYrtlXaK4ViiR5sbvIiBvVQLeqOmSa1w9JEbHO7I7pWm/TsYC2 Im7Vo2AOhSfwv6wiy/zcVVlB/e5c/re8cFxlfXoN1UP9c8s+GYes92/n3Smu5sT2oDt9 MAwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FMXziopFsM5hZJ5tJCaOnr2WSysiINJBqzAKuPzSazg=; b=Et28qgcz3Ah9tdw18MfSkG0gwyQz2HgXrnOV9gNjQ1+Xpr346vk3OTrJETlNXel3Sb kxb4JdY3WDljDECStS4P8Ttb4E3lvJ3vE9eZgv3D/JnohKeF3T3i34MkmheUcgOz6Xcp hN4NHT2pCCb4No15lP7NWwRjaaK9RFJ/8W3h6/1Sm2xz+j8UPqDkFEvOccY0CZ4iR0qh DbziNBBuoVEXFO3WBw7tzi5OD9GQ/o85pW5q9l43S+ClPUXhX33RImW/qkWjevpZatwR L6Uf8ZbZzMk8Q4N0F/D6CczhnDCraNRG6OVbwgnmKOhSWIrJ16HBKR8UtqA04HAe0NXY oyRA== X-Gm-Message-State: AOAM532ZFKeo/2CSE2DkF+i5dGhn2MxXhs1j5fC7qiI9aGnD7588fyOU pIrBD59/QAI1/bQuiJnu2KoYqQ== X-Received: by 2002:a50:f1ca:: with SMTP id y10mr695954edl.294.1621265176124; Mon, 17 May 2021 08:26:16 -0700 (PDT) Received: from [192.168.1.14] ([195.24.90.54]) by smtp.googlemail.com with ESMTPSA id qx18sm2481396ejb.113.2021.05.17.08.26.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 08:26:15 -0700 (PDT) Subject: Re: [PATCH v5 13/25] media: venus: core: use pm_runtime_resume_and_get() To: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org References: <492e148ae1c7b0a8858c1670037925d3e4adb719.1620314616.git.mchehab+huawei@kernel.org> From: Stanimir Varbanov Message-ID: <3f41387e-a15f-1e45-6b63-bd6ef647a47f@linaro.org> Date: Mon, 17 May 2021 18:26:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mauro, On 5/10/21 4:54 PM, Stanimir Varbanov wrote: > > > On 5/6/21 6:25 PM, Mauro Carvalho Chehab wrote: >> Commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") >> added pm_runtime_resume_and_get() in order to automatically handle >> dev->power.usage_count decrement on errors. >> >> Use the new API, in order to cleanup the error check logic. >> >> Signed-off-by: Mauro Carvalho Chehab >> --- >> drivers/media/platform/qcom/venus/pm_helpers.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) > > Tested-by: Stanimir Varbanov > Acked-by: Stanimir Varbanov > What is the plan for these venus patches. Do I need to take them through my Venus pull request for v5.14 or you will take them directly? >> >> diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c >> index c7e1ebec47ee..d0fddf5e9a69 100644 >> --- a/drivers/media/platform/qcom/venus/pm_helpers.c >> +++ b/drivers/media/platform/qcom/venus/pm_helpers.c >> @@ -990,9 +990,8 @@ static int core_power_v4(struct venus_core *core, int on) >> >> if (on == POWER_ON) { >> if (pmctrl) { >> - ret = pm_runtime_get_sync(pmctrl); >> + ret = pm_runtime_resume_and_get(pmctrl); >> if (ret < 0) { >> - pm_runtime_put_noidle(pmctrl); >> return ret; >> } >> } >> > -- regards, Stan