From patchwork Tue Feb 28 15:24:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 62521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3079604wrd; Tue, 28 Feb 2023 07:26:44 -0800 (PST) X-Google-Smtp-Source: AK7set/RYeVwl0UdFMLDmz1B9IF4655eTR9WRLoKPYrcCdIFvowuaTZKrU33Cfei6Tfd6ebZy9y5 X-Received: by 2002:a17:902:ce8f:b0:19c:f698:8564 with SMTP id f15-20020a170902ce8f00b0019cf6988564mr3867778plg.17.1677598004155; Tue, 28 Feb 2023 07:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677598004; cv=none; d=google.com; s=arc-20160816; b=s2J3ICK1CNTyy2blldjBFqak3iZ7Sp5AMgk6H+TLkmbIO1nb15SPvatfd6eIcK/GiS roDdUAPyzUsu9vHN16kDiO2J5O6v3aHBH2N43Hpam0FKOlwu77VPQ/U9vQwF4EtdTRRE Pxw0FfpaFIbFojcuwYIrcQGcFlN2SCN9vQsQVfiKy8gR+nFcPPxM1ImjnHePgFtSHn8E 5oLXJQVNTM7VYZKbWTzL/VOfV2C4YqjxUw0+uB0Qp5OB8D04MoNusCnZi75as3XVLKzl ANmf3x7TzzxcgZQljSy0prIfV+WJPf8b5Wc/VBTfvxytOmzGlajv7W6ytk6lW4bfan/8 gmdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=q2YOQCGUDR6LVZWl352w6X7jU8EvLQncBoIP/WOJkXQ=; b=JZ4l9DigOXumWzlk+lPmOskePGbbC9R1Vk2VMH6Ki0lVt7wmZ1zaWodxjfO7hgT1MD mNIUl9ZbGGvyAyIVv/jEmZzlO1sXDd15i3KsQB+ycT45BSgz8ABii1ouTJdxPMm/WAJp ozwLBDLBqJUTDhLj+sUEVeLMNdiKy6uQX7Y0oKj2iFUdg4Ba8QLic/Cz+F3j2ZZG96wa S5qNrgtzOgN44I93YM+d0tT9wEcRjUws3azHJ5pOsCE/OnzPgdnPJQvwdk9TiDNwWP/P tDvBHnyC6Gt2ye2EuWnqQ2yrZeiSlXcx4WlAblBS+23syY8b5y1Xb2JCU/fIbDSX/OQa DXvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DjaJv76Z; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx12-20020a170903138c00b0019d1f42b007si4578522plb.8.2023.02.28.07.26.30; Tue, 28 Feb 2023 07:26:44 -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=@linaro.org header.s=google header.b=DjaJv76Z; 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 S229951AbjB1PZZ (ORCPT + 99 others); Tue, 28 Feb 2023 10:25:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbjB1PYz (ORCPT ); Tue, 28 Feb 2023 10:24:55 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1613B30EA7 for ; Tue, 28 Feb 2023 07:24:51 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id f18so13728462lfa.3 for ; Tue, 28 Feb 2023 07:24:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677597890; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=q2YOQCGUDR6LVZWl352w6X7jU8EvLQncBoIP/WOJkXQ=; b=DjaJv76Zk4rCmcRuGunlj0ep9NWS6zyfIYu7YtftiZRp9XSogaZWIrjwLSBkqKBrSY UwHRP4KC1Wuf8utc5VwOjbDOJXafiQoTunnMuCtvTfp1vuGGM6zIabUcVhJs+u+Vhh8e PxnsfrecdvR79S7DuFsFmBs6KTLFMBCTlh7bdm1FndrJVrOeloyLJmcl+Y8Njpx+ODJ+ fLerzZeHBUFc+TSzuFQCj2QYEha4IX772QEUCsUIAA4pJ8DgxdkJM+Ba+lKyHEViKsdy X/cRjUTCqTEh38M0HFqE/d0BMmKTSum3srfh5G9FnuwDxm7Yr2Kr6ODogfYyW4+epu65 72LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677597890; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q2YOQCGUDR6LVZWl352w6X7jU8EvLQncBoIP/WOJkXQ=; b=OA+cMRHBfqJW9TAQY896P42qR4CcDhU+R3laJegxklm1UqO006FHeOZwsbPbhKTOh0 cd8HtqhGmCfbBKg1jHFEgDPWsLTjDv1oFkV7mD2oT3H7I9zgT2dHHT4uBDC33nrBWtZR Yqaq9Lz4j3aJmvO3p/Og/EstB+Aaav4CVnPnSlywiln00TH32M5ijMZIgsNTK/O0/+Ju qOILxF/1t4cKGWuDkWrH7UsZv6BIy0JOXnv3kKaxa/zN0Qx3v4XaAKrd8Xawe4j/kEZB XOhcNk6VkY4aRDxDFuGETIBpcrFGe4ElYu9BdwRhNlzs9OG2lQ+tVrNz1MDXoBNKzuKg 6mVw== X-Gm-Message-State: AO0yUKVQ93YZSfVqYnYnXFgEvcVIlY3gINTozue0eQgZ/cqktNcX4fra YNVjVWLzQGTOdDI4hYZCR6SRwA== X-Received: by 2002:ac2:4c89:0:b0:4dc:84b3:bc5f with SMTP id d9-20020ac24c89000000b004dc84b3bc5fmr853961lfl.30.1677597890509; Tue, 28 Feb 2023 07:24:50 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id h17-20020ac250d1000000b004db3aa3c542sm1363688lfm.47.2023.02.28.07.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 07:24:50 -0800 (PST) From: Konrad Dybcio Date: Tue, 28 Feb 2023 16:24:34 +0100 Subject: [PATCH 10/18] media: venus: hfi_venus: Fix version check in venus_cpu_and_video_core_idle() MIME-Version: 1.0 Message-Id: <20230228-topic-venus-v1-10-58c2c88384e9@linaro.org> References: <20230228-topic-venus-v1-0-58c2c88384e9@linaro.org> In-Reply-To: <20230228-topic-venus-v1-0-58c2c88384e9@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Dikshita Agarwal , Bryan O'Donoghue , Dikshita Agarwal , Mansur Alisha Shaik , Jonathan Marek Cc: Mauro Carvalho Chehab , Stanimir Varbanov , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Vikash Garodia , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677597872; l=1023; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=xcjWJ5FvVHrRZk+7AUmASQ5Umxw+WM1469ajK0AMX5Q=; b=NT8sLJ0hPyGLMNFmZj3Ojb+rbgBq3CUiqsTP0/kwI+y700b2+PK9Qo/SpgBYegJnTPFoDLaRNmKt DlKPUMFSCO6P/lFTSi9XBfd45L5VyOjnFiJkaKQKjLJc+m2GV0vn X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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=ham 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?1759089004724796741?= X-GMAIL-MSGID: =?utf-8?q?1759089004724796741?= IS_V6() should have instead checked for specific VPU versions. Fix it. Fixes: e396e75fc254 ("media: venus: hfi: Read WRAPPER_TZ_CPU_STATUS_V6 on 6xx") Signed-off-by: Konrad Dybcio --- drivers/media/platform/qcom/venus/hfi_venus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c index ecfbac36de20..584c84125887 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -1543,7 +1543,7 @@ static bool venus_cpu_and_video_core_idle(struct venus_hfi_device *hdev) void __iomem *cpu_cs_base = hdev->core->cpu_cs_base; u32 ctrl_status, cpu_status; - if (IS_V6(hdev->core)) + if (IS_AR50_LITE(hdev->core) || IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) cpu_status = readl(wrapper_tz_base + WRAPPER_TZ_CPU_STATUS_V6); else cpu_status = readl(wrapper_base + WRAPPER_CPU_STATUS);