From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1EB1FC5B543 for ; Thu, 5 Jun 2025 19:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:References:To:From:Subject:Cc:Message-Id:Date:Mime-Version: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XqSYTa7lG41n6ExVKjOFjhF0S0KDZfFnCp9JDDI9hqw=; b=rSZbKpZZKqMpsjRHWTQI3agayC NCY3ZH9qOQAJxlS/FZCOHzfkvQHeBRlI2od+RbE9C3MxJAKEXJTD+uHVNagkIZylRuYUFvlkJntGP DxOAI5AJokOWWFsw18kN8XunojlUnOZgtECDNyWTcjX+CpC9i2d1RT9ruKX+zyNKPY3x3j40M5gg/ 12YH61J2kaWUwQtc0KOq095TpqmZiA+m9/VOqRK5aWCdPmVfw7oNK6q8uCZXDRTR3a2KUPCy1YlKX X7udgtF2ODectuEtzi/928fLtCDQ8WvzjKJ2Z2CmaZ4o85FPWDKezQ4YL/O0uWxbqaUql9WQGOrLY p9r2fNjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNGb7-0000000GXFF-0vLo; Thu, 05 Jun 2025 19:49:57 +0000 Received: from out-173.mta0.migadu.com ([2001:41d0:1004:224b::ad]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNGb3-0000000GXDF-3ahj for linux-rockchip@lists.infradead.org; Thu, 05 Jun 2025 19:49:55 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1749152990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EJqiZsO00UW1qzZCC8pTl4Bce7VgLFymF1yeTS4Wo1I=; b=FXcqnj/ZkLVgqnSXA/9FCtL8/d/zbvT/uL/nRPY4ksTM7NoH+k7HOrLyiUHdrSN448BJEs tzm80CoUd+7YJYNYcP8LDfYzXJxnSMktTXGW8Kwp7IkGVirCjElBjFaIWD3fy73G8ASCEz bi0vCwHbcMFzgtcrYfkulfJnzWs97Ya8EuOeG6Ynh3tmJNSyiwTaxVCoyWVnZc6Ltkq/Ln feYAgiGpA0nhzBqo0uSjz9JfldpzkKqhRG/grezN5hoBijkcaPwIcYAMd6yHiDXQRnXaF0 n8r1ngQ5EzjutOWkyYl5Y7qlhheNe2HsVJPVZo1oMz/kOAwit7pbWLMIJbCNsw== Date: Thu, 05 Jun 2025 21:49:40 +0200 Message-Id: Cc: , , , , Subject: Re: [PATCH 2/2] PM / devfreq: rockchip-dfi: add support for LPDDR5 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Diederik de Haas" To: "Nicolas Frattaroli" , "Chanwoo Choi" , "MyungJoo Ham" , "Kyungmin Park" , "Heiko Stuebner" , "Sascha Hauer" , "Jonathan Cameron" , "Sebastian Reichel" References: <20250530-rk3588-dfi-improvements-v1-0-6e077c243a95@collabora.com> <20250530-rk3588-dfi-improvements-v1-2-6e077c243a95@collabora.com> <4244538.aeNJFYEL58@workhorse> In-Reply-To: <4244538.aeNJFYEL58@workhorse> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250605_124954_376283_E719ACBA X-CRM114-Status: GOOD ( 26.99 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3095993616337863929==" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org --===============3095993616337863929== Content-Type: multipart/signed; boundary=3cdd52bd73029a86b1db18a8ebe587a89be50fded87b2fd99a67d4267211; micalg=pgp-sha512; protocol="application/pgp-signature" --3cdd52bd73029a86b1db18a8ebe587a89be50fded87b2fd99a67d4267211 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi, On Thu Jun 5, 2025 at 5:14 PM CEST, Nicolas Frattaroli wrote: > On Wednesday, 4 June 2025 10:24:33 Central European Summer Time Diederik = de Haas wrote: >> On Fri May 30, 2025 at 3:38 PM CEST, Nicolas Frattaroli wrote: >> > [...] >> > + case ROCKCHIP_DDRTYPE_LPDDR5: >> > + ddrmon_ver =3D readl_relaxed(dfi->regs); >> > + if (ddrmon_ver < 0x40) { >> > + *ctrl =3D DDRMON_CTRL_LPDDR5 | dfi->lp5_bank_mode; >> > + *mask |=3D DDRMON_CTRL_LP5_BANK_MODE_MASK; >> > + break; >> > + } >> > + >> > + /* >> > + * As it is unknown whether the unpleasant special case >> > + * behaviour used by the vendor kernel is needed for any >> > + * shipping hardware, ask users to report if they have >> > + * some of that hardware. >> > + */ >> > + dev_err(&dfi->edev->dev, >> > + "unsupported DDRMON version 0x%04X, please let linux-rockchip know= !\n", >> > + ddrmon_ver); >> > + return -EOPNOTSUPP; >>=20 >> I'm guessing you mean the linux-rockchip mailing list here? If so, I >> think it's better to make that explicit as 'Joe User' who may run into >> this issue may not be aware of that mailing list. The 'linux' and >> 'rockchip' name combo is used in quite a few places. > > I agree it's ambiguous, the message as it is right now is the way it is > because we're not allowed to linebreak user-facing messages for grep- > ability and I also don't want to exceed 100 lines of width (though this > is the one case where we're allowed to). > > I suppose I should just replace it with the e-mail address of the list. > That should be clear enough and this error message also won't end up in > random boot logs strewn across the internet if it really is just some > engineering sample hardware or similar that's affected. I understand the issue. Maybe this discussion itself will help make it appear high enough in the search results to fix the ambiguity ;-) I'll leave it up to you if or how to change anything (or not). Cheers, Diederik >> > + default: >> > + dev_err(&dfi->edev->dev, "unsupported memory type 0x%X\n", >> > + dfi->ddr_type); >> > + return -EOPNOTSUPP; >> > + } >> > + >> > + return 0; >> > +} >> > + >> > static int rockchip_dfi_enable(struct rockchip_dfi *dfi) >> > { >> > void __iomem *dfi_regs =3D dfi->regs; >> > int i, ret =3D 0; >> > + u32 ctrl; >> > + u32 ctrl_mask; >> > =20 >> > mutex_lock(&dfi->mutex); >> > =20 >> > @@ -136,8 +186,11 @@ static int rockchip_dfi_enable(struct rockchip_df= i *dfi) >> > >>=20 --3cdd52bd73029a86b1db18a8ebe587a89be50fded87b2fd99a67d4267211 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCaEH01wAKCRDXblvOeH7b bjekAQDt2eVvkNGS0Du340umiQKSvaFxizTMOEIkxgx5fjC8KwD+I8OVx9ygu1iV eOdkqV5mvuHIC90hcPFQOQTfuRHH9QU= =SP89 -----END PGP SIGNATURE----- --3cdd52bd73029a86b1db18a8ebe587a89be50fded87b2fd99a67d4267211-- --===============3095993616337863929== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip --===============3095993616337863929==--