Message ID | 20240229-gce-client-reg-log-dbg-v2-1-4975077173d0@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-87382-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp641212dyb; Thu, 29 Feb 2024 11:51:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUy5fbyi+weonO+6cU13YEQrpBJWeyJ5bvF/QtSx7atFc3CBFs5rVjrMwyY5T8ijeKq3/hfVDrDOO+t+izP7ZuYAsqZMA== X-Google-Smtp-Source: AGHT+IGiFEZ58Ad8RvRJ13mlIZz2ZU/ql/aRlhg1y9toojCV5Hwwv/4fpc/apL71FLNYKiaXGCF0 X-Received: by 2002:a05:6808:2087:b0:3c1:cc86:5fb6 with SMTP id s7-20020a056808208700b003c1cc865fb6mr1314327oiw.10.1709236292507; Thu, 29 Feb 2024 11:51:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709236292; cv=pass; d=google.com; s=arc-20160816; b=IpV6P+QVJTUd/rdWsbzpIZMhe8h3Vm2funsFHVmYnYqAIy8NYvsee4YWYEBSawulx4 zIjtFslOeFoT3VnhO7dZUfaAyj2sE1K8p2/cMcu1GiL4uCA/l/Vr9CC2A4JJA9huPXS8 XoYG52x5mFmbzmLxMwWOtyUywrKcFrzT65q/lnLPrQ8hL/zXyjFualASdoCqpjCZp1yT kt0m5cIoGUlofC25Bx4GS1ESc56lg68Qm+SNVRsbg/o0UYzt+/IdXhwZ7G4jZ2uUKv4F KmRmSsg9FOhU9yML2YGQOvZhNFwdAa8ziaPnUe6XTSROfI+QxQL/MJujKzauhUlG1G3t DtaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=EqblXngSjSh4FBQAwJUgrqAmv50aiEdXS048OLK4Wco=; fh=TQLFXyvd9Tps45BdjUS6iafgoPq1GcNVUSoD1N5uPW8=; b=WieFJQjXcMwUfS/fhyVUoyrzMl2h3TKGbJ+83BN8iTdOoLjxxQJwD53euhMh3oVfYL FUlNvNv7SRTbzO44bpupE8lfbChnstNtjOuMMnYpQbIlGjUpI1DPwK8LyXl807BDOX5W oNBTtpTN/lOMSbmryeoSisLzCoIPbRnqMmJ/HA6ke6NhZ8yMOHDxx6xUZJNHj1HzS6Zj 1akW+icA9Uat4CKLROg8VPe5sHPgarDQtA5aNeUBjRCGrSwXrQujI8wQH8GJu8v+g+CU 4hr4mOO6OwOZZjemRaDUNUT6YhDTsv0nB1B7k5TXu3meCI1Z2BK0WDiw+DF2Di6zji5Z PXsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xsaX8nb5; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-87382-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87382-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a10-20020a05622a064a00b0042c2fcc55ebsi2252962qtb.24.2024.02.29.11.51.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 11:51:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87382-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xsaX8nb5; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-87382-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87382-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 48D331C217F4 for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 19:51:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6EA813F431; Thu, 29 Feb 2024 19:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="xsaX8nb5" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEF3313C9CD for <linux-kernel@vger.kernel.org>; Thu, 29 Feb 2024 19:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709236277; cv=none; b=gFCmGr/k6eKRftpKFAomSl1eT7kDif79tRA9o1JDePE9QLSbI0OztAvxUr7MwgFJKpaapuXF3zbnYblefsPyRTzg8nUY5q8XuLoGoIvtmq6gclsHjoasp/aSE/onh+d5sfz7s08Mj3UObeZTK1O62L3NAO57JqbdCKWrLBcRaCI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709236277; c=relaxed/simple; bh=bj3pI6xkKLINn85t9EjrFuhDT8EzhA7/C3H9O7fd9gI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=PG/WKlfNyJC7nfNkyk2/4foK6iDuSfFR4ltRml4oV5wiDYpONafYtT55f9qYsz1CGJ5AT0UJoQrSAeDlvCTUKzgrbaw4DqKW/D/cCU6/bPzyU2/4dAHe5cCJXYjdYy+/tJqo/j+ewDYGoI5J83o1Ufwn1sKJOHOccnHriHqbQG4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=xsaX8nb5; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709236274; bh=bj3pI6xkKLINn85t9EjrFuhDT8EzhA7/C3H9O7fd9gI=; h=From:Date:Subject:To:Cc:From; b=xsaX8nb5bz0HkDPjdymTlmxtjZ9vQMYIIaJjKCIstMDsbbjVsntTs6aT/xbIUI4JX wD6a6bfD5j//1GtwgA4RwBX4cbezYpcZ/Sa6WZEM33nOH0mf2bthkECr2X7IgzbWP4 yWQgTfgTPOfWupXhihDzXVbPSzEkPlKhSMoSNeAHTHAmM6kCv/LDU6MnakaNDweL3V 4FQ2yqAOq7blHwJoL5rZD+HSZ9fv3xkkF+XAsAQtmxaIwcrEQwwv+b05XiRpeaU9sd WzCKB/ymX+2zSp+DO34CqRDVIxBz6N5uWNlr2+7+ECbZdqHWXfI/UPjKg0AAxl+PG1 yzkygNrQCMTNw== Received: from [192.168.1.200] (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5334337820ED; Thu, 29 Feb 2024 19:51:12 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> Date: Thu, 29 Feb 2024 14:51:08 -0500 Subject: [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240229-gce-client-reg-log-dbg-v2-1-4975077173d0@collabora.com> X-B4-Tracking: v=1; b=H4sIACvg4GUC/4WNQQ6CMBBFr0Jm7ZhSFMSV9zAsyjAtk1RKWkI0h LtbuYDL95L//gaJo3CCe7FB5FWShCmDPhVAo5kcowyZQSt9UVrX6IiRvPC0YGSHPjgceodXw21 dNUbdeIA8niNbeR/hZ5d5lLSE+Dl+1vJn/ybXEku0ylrbNlQpah4UvDd9iOZM4QXdvu9frQhqg 8AAAAA= To: Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> X-Mailer: b4 0.13.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792264154542841245 X-GMAIL-MSGID: 1792264154542841245 |
Series |
[v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found
|
|
Commit Message
Nícolas F. R. A. Prado
Feb. 29, 2024, 7:51 p.m. UTC
Most of the callers to this function do not require CMDQ support, it is
optional, so the missing property shouldn't cause an error message.
However, it could result on degraded performance, so the fact that it's
missing should still be alerted. Furthermore, the callers that do
require CMDQ support already log at the error level when an error is
returned.
Change the log message in this helper to be printed at the warning level
instead.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Changed from debug to warning level
- Tweaked commit message to mention performance penalty of not having
GCE
- Link to v1: https://lore.kernel.org/r/20240226-gce-client-reg-log-dbg-v1-1-f0fff97c30c7@collabora.com
---
drivers/soc/mediatek/mtk-cmdq-helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
base-commit: 41913bcddc83b131649ee8ff0d9ff29e01731398
change-id: 20240226-gce-client-reg-log-dbg-5ae9637a08ed
Best regards,
Comments
Il 29/02/24 20:51, Nícolas F. R. A. Prado ha scritto: > Most of the callers to this function do not require CMDQ support, it is > optional, so the missing property shouldn't cause an error message. > However, it could result on degraded performance, so the fact that it's > missing should still be alerted. Furthermore, the callers that do > require CMDQ support already log at the error level when an error is > returned. > > Change the log message in this helper to be printed at the warning level > instead. > > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Ok, this is good now. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > Changes in v2: > - Changed from debug to warning level > - Tweaked commit message to mention performance penalty of not having > GCE > - Link to v1: https://lore.kernel.org/r/20240226-gce-client-reg-log-dbg-v1-1-f0fff97c30c7@collabora.com > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c > index b0cd071c4719..943e9055dd1f 100644 > --- a/drivers/soc/mediatek/mtk-cmdq-helper.c > +++ b/drivers/soc/mediatek/mtk-cmdq-helper.c > @@ -55,7 +55,7 @@ int cmdq_dev_get_client_reg(struct device *dev, > "mediatek,gce-client-reg", > 3, idx, &spec); > if (err < 0) { > - dev_err(dev, > + dev_warn(dev, > "error %d can't parse gce-client-reg property (%d)", > err, idx); > > > --- > base-commit: 41913bcddc83b131649ee8ff0d9ff29e01731398 > change-id: 20240226-gce-client-reg-log-dbg-5ae9637a08ed > > Best regards,
diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c index b0cd071c4719..943e9055dd1f 100644 --- a/drivers/soc/mediatek/mtk-cmdq-helper.c +++ b/drivers/soc/mediatek/mtk-cmdq-helper.c @@ -55,7 +55,7 @@ int cmdq_dev_get_client_reg(struct device *dev, "mediatek,gce-client-reg", 3, idx, &spec); if (err < 0) { - dev_err(dev, + dev_warn(dev, "error %d can't parse gce-client-reg property (%d)", err, idx);