From nobody Thu Jan 23 17:27:32 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yf7Dj64Qjz5lD8K; Thu, 23 Jan 2025 17:27:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yf7Dj0Zxkz43SC; Thu, 23 Jan 2025 17:27:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737653253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V1vBVrDwFi07KvxblE3WaQLORnBUVv5kZzS8nT20Ejg=; b=P/XIW9WI/JVJ4zZuGLAIekTEpsHl8MtAgo5QiXhCocJunLV1x1QssjQ+saVUhzWa13TRom 2Oa4S3C8PjgjYB0GY7yBCavcLRcV37BCEPMC/magse3Jyp6uN4Wj803cH8j+M5PSWrmWX2 Px9fqPFfdL+I6YmfTk6+WwgLDskWquq591jhzjSALiWihbPFqb/10vzAg626k54uZRO3AM HSPbEOHQtt26jlCNXEVt25u7e/hXdYGAWlnYssiK0lV07nlQ6Er3Tb5AZjI7FOlSdAOXSb Q+TVhzkg2E3f6CDeZZqtupg3xE1r/h7kgYGlN0PGSH75866weiiRnm2HeNG3oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737653253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V1vBVrDwFi07KvxblE3WaQLORnBUVv5kZzS8nT20Ejg=; b=G3H0KAkKbxgbEuVKdJ9wVv+Sh+3umK+zOJFdNOKLwGouc7p74UpgtuCOZlDYPRtCNsO/BE bS8JOLWt0+ARkX/Dj3KyPB/zp+7xm6al6Fhf1NNzkg8Ai5ZeIokU/4RdFC4qcWI5AtgXu1 XoujEW43LWeJiAsOUW1l51FtixWnv5uL98f92qHPu9HOHbfGhl1JcfE5Ht7xcT5RCyZZfk 2shf50PtzjBLHQjCSDXn1zTf5IcPZ7Lv41zSaj9DXjLB15BgEaa63ZZWrhKD/IemHY59Np Q6LJVoALJ+vB6ndJRHPgkh/dJ+83A5Cg3rChZW+OMLx401unUCgl1UNOuVDB8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737653253; a=rsa-sha256; cv=none; b=x6tDcP29xTYP92tDSO0UIGOQoeQvCMOC5J5zZxDZ2cfr3RymSh4hUKdOBQp8aSKMzwiX2Q sGqDWiiNUi/OvEQq8KDkN+Ye9eA/Jhbc+gQwMuYTYBtByDRWDT7o2os9mA1s+xFFL103Q8 CDKPZT3QHdh50DOHp3ylyOwpdMaHRRuDb6+BfyqsuaxWAnRFKaHpUZP2UwiiDJkHJPQAUx 7/brG4kG81XXtVclttfDDjT3vh4kPeHiYLDwo8LPhcHOZTAGwUxFepcma/tniAXZ4s909y DHOHWhwtYpLaa3IvBhuPDu61OpvzDRWDGOLjnpiZ9t4D76B/Mg1eEGuz5S/+mQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Yf7Dj0Bbfzp0s; Thu, 23 Jan 2025 17:27:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50NHRWgS022629; Thu, 23 Jan 2025 17:27:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50NHRWt4022626; Thu, 23 Jan 2025 17:27:32 GMT (envelope-from git) Date: Thu, 23 Jan 2025 17:27:32 GMT Message-Id: <202501231727.50NHRWt4022626@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: f02162394925 - main - scmi: Redefine max message payload size List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f0216239492579022982d94e04090f1333fee5a5 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=f0216239492579022982d94e04090f1333fee5a5 commit f0216239492579022982d94e04090f1333fee5a5 Author: Cristian Marussi AuthorDate: 2025-01-23 12:49:41 +0000 Commit: Andrew Turner CommitDate: 2025-01-23 17:26:26 +0000 scmi: Redefine max message payload size The defined maximum payload size should not include header and status field. Fix the definition accordingly, so that it matches the definitions as can be found in the Linux SCMI stack. The semantic of this define is important since it will then be possible to override such values from devicetree, like in Linux. Tested on: Arm Morello Board Reviewed by: andrew Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D47421 Signed-off-by: Cristian Marussi --- sys/dev/firmware/arm/scmi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/firmware/arm/scmi.h b/sys/dev/firmware/arm/scmi.h index 5ad7b0db3f5f..73b49f099ad8 100644 --- a/sys/dev/firmware/arm/scmi.h +++ b/sys/dev/firmware/arm/scmi.h @@ -36,8 +36,8 @@ #define SCMI_MAX_MSG 32 #define SCMI_MAX_MSG_PAYLD_SIZE 128 -#define SCMI_MAX_MSG_REPLY_SIZE (SCMI_MAX_MSG_PAYLD_SIZE - sizeof(uint32_t)) -#define SCMI_MAX_MSG_SIZE (SCMI_MAX_MSG_PAYLD_SIZE + sizeof(uint32_t)) +#define SCMI_MAX_MSG_REPLY_SIZE (SCMI_MAX_MSG_PAYLD_SIZE + sizeof(uint32_t)) +#define SCMI_MAX_MSG_SIZE (SCMI_MAX_MSG_REPLY_SIZE + sizeof(uint32_t)) enum scmi_chan { SCMI_CHAN_A2P,