Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2198907pxb; Fri, 25 Mar 2022 12:53:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylZUsCWKe5Hx12p/3LcXM2Oe+I+hpQtP107h5n3sm7WpQH96MRzwR0SZNRyP9NmDh6Ejc4 X-Received: by 2002:a63:2dc6:0:b0:380:2287:82ac with SMTP id t189-20020a632dc6000000b00380228782acmr904400pgt.443.1648238025404; Fri, 25 Mar 2022 12:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648238025; cv=none; d=google.com; s=arc-20160816; b=Q5Xy6caQIfgc0z4cWWs2KZ4RZe/34Xqlxe4DDmfyHcciID60AewbPPKiPnona1Fadl w5Ks9kqYePnSmE3FEbIjMtmwDtgr7VWJ0qTmlPG35fkCzOR+P7vLWcgX8MDyCUCtPbQm 5VdF/KAIJkBlxjeqfAhgqdqfvq6u8bGyi54yUtLDoQZJUnlbS1H9bxhbw3n+liGAXgmq a7LX4MwxsnmRmy+YaJ18RYxmdcIS44VBVkCGxuaXcjocOx2vi2Ibfv0+qQ8gxmlavBeE IAQYX0mmsuvqjo83qw851BHP1d/2F7pR1TTt5oL1DtIit3Wu6J5Pq41tKSPZHFhJDDJH DPLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=YNqe6IKQwYU1SXQAtrDZx7Ab2V139yZrlAAi/SFO/aQ=; b=MxGbgOPNW1mxjE0J6FKeJV8qC2cg4XxnSg76MmIY46s4lioQkN1JRMqjlFSV7WqqwE sz0+Ujy3A0SUVTaPJswK7+aR4annBCJ1m9wNDluEAf0HZRrPImIr7SPokIeh5GeaFsa6 UVQjM8mehq56PyeBDBBlPJGlW9ZcUU6ZOP0BF8IbNa1apYJJem5O7K4ATO6btvaC7ELr 47Ck+XYuwXZSzdjwZ9AoIS7v9l2sks0YzZC6m4ErlTj54wroku+Bqidfyzsk56S94E2x rQx9A2K7V63dW/NXRXVgqGVoRt2sfxMMBTrM1TJ3HmeMqrzR8NPJSNJqua5woT464KPk BeyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=uONsPRuQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n7-20020a17090a928700b001bd14e01fc4si6522144pjo.178.2022.03.25.12.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=uONsPRuQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B4DC22DF3C8; Fri, 25 Mar 2022 11:42:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239183AbiCYIA1 (ORCPT + 99 others); Fri, 25 Mar 2022 04:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238058AbiCYIAZ (ORCPT ); Fri, 25 Mar 2022 04:00:25 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ED48403F5 for ; Fri, 25 Mar 2022 00:58:50 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id pv16so13813528ejb.0 for ; Fri, 25 Mar 2022 00:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=mime-version:content-transfer-encoding:date:message-id:cc:subject :from:to:references:in-reply-to; bh=YNqe6IKQwYU1SXQAtrDZx7Ab2V139yZrlAAi/SFO/aQ=; b=uONsPRuQB+JMPTjrrZXDNX9+tYvAwUVXzuxU7B7b6xzGdgQffKhED+1WkANhvZu/3R ECVyrCWklcku038ZFfN2E+UYkMZP1NfzPToi/rt4EvREaeMbJlG3OLfQ0ee45eySZLVM teGum288u8sFE7jVV1rZP1qZvahMEitALpxe6ZVr5018nLhCEHWYAoUqyD29FZSc3z+U ssUC53eeGpYye/VY3P90BZoBjajHxl6jDRjF1FCC0r3J26XJL7oxiiro4JB31TRfPdh+ J9+w8S922rIcyzuR2lfBSIJVc6FTp0P+Buet5AZWt9j+5t8nRh7STWRNpYSgmbXUD0gP lZvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:cc:subject:from:to:references:in-reply-to; bh=YNqe6IKQwYU1SXQAtrDZx7Ab2V139yZrlAAi/SFO/aQ=; b=EOmm8HCPRQk8zKgPhG2LdU3b8SAFDjmh0yJ5ScZ0HFFua9w0XjspodvcdHORtaZcd3 8N/tUAIpkHR7MaqUwnRnch5EKHdXUvUQzUS7Cv2nWU1ORPNbEfky1lLiDIs3zih0/ceu xYp9Mu85IyTzL6WuvXkspgG3WowoyUgKxMEIv5MryrLRH4u23FLyjee1draNBQXG8Shl KR/3Mz0Rgz6m4fuZmzb19aFfCN7GRaqQOic5ZRNBt12mhlSG6YBB90NY8wpTixNCtv/x Yt6XgMJZafSDT1dNpqXJtU+4r4xDXdFVUZMWtcpVdIIdIC5Tbk1tYIR+EO8LFtT5Kuy2 oqyA== X-Gm-Message-State: AOAM5310r4irlPhyXbeJGYUhYn75wmEOJSlHnpR64UluMAqBY3ilmNuP lPdlJIutjdo7/DarFZaDU0z85/8JAFFI5w== X-Received: by 2002:a17:906:3ec9:b0:6bb:2eb9:84f with SMTP id d9-20020a1709063ec900b006bb2eb9084fmr9968528ejj.86.1648195128732; Fri, 25 Mar 2022 00:58:48 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id a21-20020a170906275500b006d10c07fabesm2007178ejd.201.2022.03.25.00.58.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 00:58:48 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 25 Mar 2022 08:58:47 +0100 Message-Id: Cc: <~postmarketos/upstreaming@lists.sr.ht>, "Stanimir Varbanov" , "Andy Gross" , "Bjorn Andersson" , "Mauro Carvalho Chehab" , , Subject: Re: [PATCH 1/2] media: venus: hfi: Add error message for timeout error From: "Luca Weiss" To: "Luca Weiss" , References: <20220114110226.130380-1-luca.weiss@fairphone.com> In-Reply-To: <20220114110226.130380-1-luca.weiss@fairphone.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi everyone, any feedback on this patch and the following one? Regards Luca On Fri Jan 14, 2022 at 12:02 PM CET, Luca Weiss wrote: > This error can appear with wrong configuration and is difficult to find > as it just returns -ETIMEDOUT with no further message. > > Signed-off-by: Luca Weiss > --- > drivers/media/platform/qcom/venus/hfi_venus.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/medi= a/platform/qcom/venus/hfi_venus.c > index 3a75a27632fb..9a34662fea38 100644 > --- a/drivers/media/platform/qcom/venus/hfi_venus.c > +++ b/drivers/media/platform/qcom/venus/hfi_venus.c > @@ -1583,8 +1583,10 @@ static int venus_suspend_3xx(struct venus_core *co= re) > */ > ret =3D readx_poll_timeout(venus_cpu_and_video_core_idle, hdev, val, va= l, > 1500, 100 * 1500); > - if (ret) > + if (ret) { > + dev_err(dev, "wait for cpu and video core idle fail (%d)\n", ret); > return ret; > + } > =20 > ret =3D venus_prepare_power_collapse(hdev, false); > if (ret) { > --=20 > 2.34.1