Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp471449lqb; Thu, 29 Feb 2024 06:26:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXePFGzJnMd5WQ2U1zTFMVAIyion9OLmJ0ma3BtXBLZQ7v+sC1wDg2wOpnm7YTOQksIxFW42h1LDPOF1xmg4+Y5BJR2V5iRqVscMVa4lw== X-Google-Smtp-Source: AGHT+IGMTDyqUo7KrzWCK8baApWf0lgf5KgB+sxHC6iNeksj/RLLI2mJ4Xf7zOYgUBzvuk2R4+xb X-Received: by 2002:ad4:46c9:0:b0:690:479d:cf5d with SMTP id pm9-20020ad446c9000000b00690479dcf5dmr1755396qvb.54.1709216765342; Thu, 29 Feb 2024 06:26:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709216765; cv=pass; d=google.com; s=arc-20160816; b=mAKh6YQtbDyvxDfOjO0rBnFOuL0aCgA21vGRRppAd8g95VkFF9PrRMZ+r9l2EBCrvy GtGfgZd+LPzQVlPfQavsEEhT65fsez8rAzaIFX3CMaaddx8D9eBl8p7wb4RmDEs5ji0q 67XUl2wfnnMaml85Ix3p/mC8ufg+RKeoyETZTILQfxpA61qhZMmHgi1DOIz/N9Yvz0CI QptOZSNZl3JXbJ1Pw7CsvA5fYBMTYe7nGHfGGAq1dwQOMMdRzxCFJoTGf4oyeJrioF0I yni9AzvShjQIh3OZYHOtSFv4FSGW4nbZ5B6tuU5dAHQT7/Er6FMA1c8TISB2DMkJ2FkC jELw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=ZqiKyr3wNc42hkbFNPVIaVl792nLxPpuIPr3npbekXQ=; fh=zmGBwKedlpysszoZtk+LASQWxIhfzQShk2D6O/8YHRU=; b=cIdzxJnaV/kO5IEWFJo0N0WQWoSw0l8QgpOE11FDUkRKYwPeq26NbCQsO6SNhe+xTH mQul7+3RTZuedDHlCa61zcD2LB2rTE+ksn0/lJAEIHlI18DLsRYHfEyeB3b0vknRr/QP FLEgTiQHg0swq+Ap6JxmFrI+dYN0tgYZo84GwMwtBVGeyNbETLqbxKHObvR3bOJdUWPK GYF3+SVoE446/4Yhtt9u4sJ1mUf7glmpu3ny+jbPas8ooVe1YdiEEkpBncS0GVK0oZzF 2j1qh39ZVv5nXGKJxEEpzraxFC/grcn2sCweEBVqa6Duaw2L5Z4y/gT2Nv9C2poMeM05 sqlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-86837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gu12-20020a056214260c00b0068c6fa95b48si1409223qvb.466.2024.02.29.06.26.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 06:26:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-86837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 17C4B1C20A6F for ; Thu, 29 Feb 2024 14:26:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1D39137754; Thu, 29 Feb 2024 14:24:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E731137740; Thu, 29 Feb 2024 14:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709216686; cv=none; b=fjnJkD8lHXCcWIBCul7pl21c1dQbIkfg7cLeAmWZiYJazA/D2kUfO0DHQHFDSFiEA1//hs7gI/MY25XrO6g6gN62VLUCXifPP4W4I/4gean40gEQf6D5blHXaJu/giUONduvfe5u7tsPxS4SxJL7CKlGmBNFDldcnkuWypeGt8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709216686; c=relaxed/simple; bh=lCe1akPKknc5mXsZjqXrn+eyyKkLvRis75F0vbeOrEc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dchzdGicPs440nMb/HZd+Nc/M7s9DOuk1B1uki+nIPQn0goiCFt0bR+6ICPJuFYm5agh9o65DMV7c7/LExOYPBQSKeu09jckIU5TELa6VEvUC0URdBnEUGjdUDWcIkEHglsaEyPYu4V/sufHxFJiMFQGnsCvzPR/kjFZRfqpD0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C4C4F1FB; Thu, 29 Feb 2024 06:25:22 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CCC693F6C4; Thu, 29 Feb 2024 06:24:41 -0800 (PST) Date: Thu, 29 Feb 2024 14:24:39 +0000 From: Sudeep Holla To: Sibi Sankar Cc: , , Sudeep Holla , , , , , , , , , , , Amir Vajid Subject: Re: [RFC 3/7] firmware: arm_scmi: Add QCOM vendor protocol Message-ID: References: <20240117173458.2312669-1-quic_sibis@quicinc.com> <20240117173458.2312669-4-quic_sibis@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240117173458.2312669-4-quic_sibis@quicinc.com> On Wed, Jan 17, 2024 at 11:04:54PM +0530, Sibi Sankar wrote: > From: Shivnandan Kumar > > SCMI QCOM vendor protocol provides interface to communicate with SCMI > controller and enable vendor specific features like bus scaling capable > of running on it. > I would expect a proper description of the protocol specification either as part of the header file qcom_scmi_vendor.h or somewhere in the Documentation. It helps to understand the design instead of assuming and/or getting confused with the assumption while reviewing. I will point out at couple of individual place why I am asking for this. You can follow some pattern to describe the command using SCMI spec as reference. That will act as a contract for the software instead of changing the implementation every time someone thinks it should work in certain way. I have seen that quite a lot with the Qcom firmware lately with zero transparency provided for these firmware by Qcom. In short I don't trust just code to understand these vendor protocols. I need them to be documented and version where needed so that we can refer back and make maintenance smooth and easy. -- Regards, Sudeep