Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3019766rwb; Mon, 7 Aug 2023 07:08:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2PQCWWeFS1hETUEgq3VlLVWYXJv19bCA8e+mwXdvHSwlbWuomz+cvl6ftd6cBqbTAOiw0 X-Received: by 2002:a17:902:db0c:b0:1bc:7441:d81a with SMTP id m12-20020a170902db0c00b001bc7441d81amr1438641plx.6.1691417322358; Mon, 07 Aug 2023 07:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691417322; cv=none; d=google.com; s=arc-20160816; b=B6S0mw8hrHPTkLZ8Y5AWs0oxrQQA33pIJoc2jCTtfLBPt121Kgscsgvq8wGA7RpYNK qAFNBcVFB1IxzCigWRH4F0s8O3JdzOpWBOfgSinzKcHAmUmivxOXxN79tqbnYGho0qdc HhvDOILzwjr9GPzZYz2TuUSlHXlOpkZzha1/QEqaZU5/502FdGoOJgN7Y8lbNw2I4xrM sT9+qdq4Ex+bHoHuBHYomXmQ/ZbEZcWtA+GBg+qllD2vKa3t0LCmO5y2rUM9hPWsdp0s 2TzI5EUpwWSOJTwQhKqY9WML0bTcY+dKS1HJM2EuWqNx0sHL3I97ncKxhOYnSjXkWGoU E4cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=8fw0ysUuRGQmdYsHgBJKqqkV1K0A5L6FDJbFcuo1480=; fh=0XLI8JpUS+sRUos/onTawcD+P8fXsmPTp0fkoH92Q/A=; b=CcTeok8BMn719AJ6+5jNXppuDZ92255Wz3Z/zkV0yu/kOslU8B3uzW6tomSDHpUy/A wgsuDn/DdDlDfaGcu8Qko7P3xsxRg7Ruf46dfBskuEn5BystkI4lDwZ2iom7vR1olzNd lHEZS+X4OE8Vzn9ZOV5sSxlhpRb0DTtz4lQ4bADTj2xM1XIS7/ksIS7HqU1yJSbEwXy2 SH5AgF7tXLxfNI7cuaH5mx5p3yYZvaNGAFCdO7XxJ3aWE6zEWXB3tLw2hS2+SZ+BiaAw XiMvsmYbRmbPKwPFm1hwpusL9WcM0gMa6c0bqWBJqxExiT2z5U4o+SCOQk8XvNoX0zWv MUpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MJy29QYA; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a170902e88800b001b8c4168e20si3851529plg.58.2023.08.07.07.08.29; Mon, 07 Aug 2023 07:08:42 -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=@linaro.org header.s=google header.b=MJy29QYA; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232105AbjHGNEO (ORCPT + 99 others); Mon, 7 Aug 2023 09:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbjHGNEM (ORCPT ); Mon, 7 Aug 2023 09:04:12 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2EF610FE for ; Mon, 7 Aug 2023 06:04:09 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fe0e34f498so7399800e87.2 for ; Mon, 07 Aug 2023 06:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691413448; x=1692018248; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8fw0ysUuRGQmdYsHgBJKqqkV1K0A5L6FDJbFcuo1480=; b=MJy29QYA/VD6U+CY7J3IJ5cz3bNN7TmAPbf77MJGd3kkYzf9gZadG6tHXfcbfrz3DU XNfpy7dt0w1j5asGH8FWu9wn4psO5TC0kAFU9OTmkLrPldK3oXwQVYcCH8QHJbz3v7VW kd/N8TSA3sccU7kOxYCq753ePdQCoQGY9Io7duwoBYFwyRwTPWnThIg0Z6PCMZP11DFN UcSz3Qw/z6rDlpS7gTGl+TyXFSxMuOBZXouH0lmGm7e3KxLD97KaWgQhb/5+8ro0SnF3 fpH2vTaqv5KyAquLeJ59UxOFVXoj4MAyecyTJ6o3Vos3bJRmtrbGCyUfLL8NGxAFdOFm L7MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691413448; x=1692018248; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8fw0ysUuRGQmdYsHgBJKqqkV1K0A5L6FDJbFcuo1480=; b=WSiH/XUmoeLgWZeAPBBUQp6XBxYNB2NDnbYgbgmuE32Zhzje+H0nutGz2Sld0ebDHr ja2jcQWWmqGJNHIEYWOifwXpd4shCoY/G1XXC5z3rJ+oq/IoGw1346jNQkt6IYtxjxvl MWp5ON0KZGST8R2p6uXsIHfYHUvlrax+WhAWmQhIbq8DUbHI+e23ZIVUeOHrRTfdbl0d 9dJGxHp1dnvfud0jgwKuGmARReh+FX/Nh8vWeX6trNZDImAjTCk4rKmrGEIalKkCYjml whu8A3iv86Mk1GsaK8T2aaTHQtTPSj/7d1me+nK/j6gTT9l6wUBun82XyVRjLpvxXKVl ybbw== X-Gm-Message-State: AOJu0Yxkl34BDefiBo4GtV3k686z+bGcC32n/T5COAe0UqxM41VWHe+T B7zOLOjJpiBiQuYP2wYHG5u2VQ== X-Received: by 2002:a19:f817:0:b0:4fe:590:53ca with SMTP id a23-20020a19f817000000b004fe059053camr5806148lff.4.1691413448165; Mon, 07 Aug 2023 06:04:08 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id b17-20020ac25631000000b004fdc6f03c6dsm1477693lff.37.2023.08.07.06.04.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 06:04:07 -0700 (PDT) Message-ID: Date: Mon, 7 Aug 2023 15:04:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/6] media: platform: venus: Add optional LLCC path Content-Language: en-US To: Johan Hovold Cc: Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , Konrad Dybcio , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230731-topic-8280_venus-v1-0-8c8bbe1983a5@linaro.org> <20230731-topic-8280_venus-v1-4-8c8bbe1983a5@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF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gQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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-kernel@vger.kernel.org On 7.08.2023 12:43, Johan Hovold wrote: > On Fri, Aug 04, 2023 at 10:09:11PM +0200, Konrad Dybcio wrote: > >> @@ -479,12 +488,18 @@ static __maybe_unused int venus_runtime_suspend(struct device *dev) >> if (ret) >> goto err_cpucfg_path; >> >> + ret = icc_set_bw(core->llcc_path, 0, 0); >> + if (ret) >> + goto err_llcc_path; >> + >> ret = icc_set_bw(core->video_path, 0, 0); >> if (ret) >> goto err_video_path; >> >> return ret; >> >> +err_llcc_path: >> + icc_set_bw(core->video_path, kbps_to_icc(20000), 0); > > This looks wrong; you should not try to restore the video path bw which > you have not yet updated here. Oh whoops :D > > Also error labels should be named after what they do, not after where > you jump from (e.g. to avoid mistakes like the above). Perhaps you can > clean up the existing labels before adding the new one. Ack, I wouldn't mind giving this some cleanup. Konrad