Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp630124rdb; Wed, 17 Jan 2024 12:15:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzd4PtUcs4F9qCTY8K/IzODy7S3IaHWcf/qvkWq8Etxwc0JQxhs1wdxE2gRGXyu1MpcnIu X-Received: by 2002:a17:902:f68c:b0:1d4:20b8:abfb with SMTP id l12-20020a170902f68c00b001d420b8abfbmr7014795plg.68.1705522557201; Wed, 17 Jan 2024 12:15:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705522557; cv=pass; d=google.com; s=arc-20160816; b=v7ab+cRyDt/s8MY39sSZJRZaylBvjNEaz00C0borjsTG7D0x0cCy8EwbvpazDhW/Xh djqAsQgDaJmOyAUog64PoETylKpw3fdmkJENRsTDq9FUcYOTfKpcmb5gqwfS/WHtSujl ADwdOHYmeWbIQc9to/twBEozWt33NO6T398NqW8dryFgeJJLs8ZnF3AhiqCiyVSrpo4Y 9GDo1hrJUuSi++zt7SmgPWZnhGReFIZlk1Kt9UOQcqYcJnJeSSUIJ5ced+3UNP+Zwf4t FAk5zQsIxgs5bbdyrkgT8QNN1UzbnkpGjueSIQFdEYkna7tz+TLnKjvUsQEcuz/978rW 3vAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=iPTVBifCyaSXrtahIMjrSyS80T5F+j2fg/7+8A/XGuM=; fh=VPk/U8gzcSr4l2CLVJ1M/Vwz44VXH/C8xbNxg8RLP6I=; b=vlVcape/T4koxpFBelJ6aL4CxXdmJUYpLIdMTDOqkO5LbQ+JDOggnoCilaB6ge05yC a/OSFKFKzz/ZWNIIhdcIDevLkcmMzxTmZK9aZCdQgfoKWLVrZgX2mb34D9uNDO42sZij fBgqrXsEq3VYPYWLoTXYxvYMnmPkXF5synBW6t8skSbjXFN+AQ+V851xGOeTSWw1UARK qjOsyguHWhOaRDg0Y6F7OtvT+bly9xOVM2H8j+9iNgAg4FiM1HCPC4wUlNm3t1glTyUn L0v+E2g/79oGXT82sQsJ+s3v10u5ytYwj/a9lieh51M7FG1vqwDpwFB6mmNV+5HyRIAf 07mw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iaPILt36; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-29405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i10-20020a1709026aca00b001d578bdafa4si100101plt.209.2024.01.17.12.15.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 12:15:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iaPILt36; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-29405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D3F1A281551 for ; Wed, 17 Jan 2024 20:15:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A52624B30; Wed, 17 Jan 2024 20:15:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iaPILt36" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33D85249F2 for ; Wed, 17 Jan 2024 20:15:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705522547; cv=none; b=jS3l4P4haU5tgLhBHQYYDjC+yF13uoZb1fOLqRWAwR/j3TjpT+JuY9e980fcvc/i6FDsL+kmhK1NtWud469TP0p6r1Mti/ZkMO7vTsRsSIO2cfiDI0NlLALdyg2i1uszW54w3VM9DoET7wJ4SKHyOFwsHBFLSQ/PgKL4Xtfha5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705522547; c=relaxed/simple; bh=tWtaEStSXXeY4ZlUW4rPFxMeNANJkKEc7+GCVGjK7a8=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language: To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=BZuyOIKHUrpCjmMm+wA07O/4MzpFuKh0ETZ4SlPwxW2ACVrQhRinGcNj1Ert+bxXrYIBvF77OYAOqrMrk8f2WKpWERAg8zTg2Z1j9R2vfGdhEhLPb4H7KLPGkxyEcD1KGE4nPxmSupi9wN1PPR9aPSqIRoZaWBLMXs7aSVybNGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iaPILt36; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-50e741123acso14185325e87.0 for ; Wed, 17 Jan 2024 12:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705522543; x=1706127343; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iPTVBifCyaSXrtahIMjrSyS80T5F+j2fg/7+8A/XGuM=; b=iaPILt36c2KjfTUi22sin5SWtIiKFogOlVqr6tUXuWJOL0ggyEiM1MFAIQDixWfxmI eI8ogH/sG0/d5FRWmMNTHp0AksBmKAu5Ho//4XPz1E7PbFkFHZbS8PJuOMjERo1gF6kl 3KbYQff6y95BazVxOudWm98Gm6909Xy0TLinDTaXsQ6rtAk5wwkX9oIv/5XqW/pFme6p b0gsVV8+5XLE1LerN9kR4Ydvo1tAss4GiRt7HpupCziF/ah9nnFKJbQXVWRDmxFNUEqo ePVQJgq6+TQVHcFZTlFohegVprY4lxBSPR+neE8hpDc7BXHS0B5be0tSbWBaQPTfOK/b 60SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705522543; x=1706127343; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iPTVBifCyaSXrtahIMjrSyS80T5F+j2fg/7+8A/XGuM=; b=rQBjTm9zc2g3L7zIQ+MyPo7IoLyoZFgUyfYqETJldgMCizIlNdgK1+HUPDwkejH3ay pJg1gH4xWH75uwQrbgEP8Ab3X4NvE++iyjLMQZn29I8HVjey0s9RAnzO6Io8kcXC9TIz 5MTJtigyO0n1Rfeeb1P5gdAsg5HgFlL0z1B65+YIWSnFfcLLWXy/5K5tbYQJUr98akUI XDi0XPGM65/Ftq/v/rAsyMkhZd3rs6z9F4tYfF+8pzWAXY1lIw78TZjgHH49LPDDjLXJ UoDLdgondlFWlhfdmANDF6ghaxRBoMx2yKk7Io2BwgxaUJqmBzjRW1x/1M/0P3J1OV1G 0KjQ== X-Gm-Message-State: AOJu0Yzfn1s532/1Fp84NNuTqEYgBSNH4mh/FPGo1D8tZDFwK3s80KaO wizDg3gkjyiHbI1Bes5qhDtDlDPR7kwDhbHjmAuhND7OjIo= X-Received: by 2002:ac2:5b9e:0:b0:50e:9da7:3136 with SMTP id o30-20020ac25b9e000000b0050e9da73136mr4393019lfn.75.1705522543057; Wed, 17 Jan 2024 12:15:43 -0800 (PST) Received: from [172.30.204.151] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id x5-20020ac25dc5000000b0050eaa1a35f4sm359621lfq.303.2024.01.17.12.15.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jan 2024 12:15:42 -0800 (PST) Message-ID: <3325c6ea-ca30-40ee-83ba-c489dc9964b1@linaro.org> Date: Wed, 17 Jan 2024 21:15:40 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 3/7] firmware: arm_scmi: Add QCOM vendor protocol Content-Language: en-US To: Sibi Sankar , sudeep.holla@arm.com, cristian.marussi@arm.com, andersson@kernel.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_rgottimu@quicinc.com, quic_kshivnan@quicinc.com, conor+dt@kernel.org, Amir Vajid References: <20240117173458.2312669-1-quic_sibis@quicinc.com> <20240117173458.2312669-4-quic_sibis@quicinc.com> From: Konrad Dybcio In-Reply-To: <20240117173458.2312669-4-quic_sibis@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/17/24 18:34, 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. "QCOM protocol" sounds overly generic, especially given how many different vendor protocols have historically been present in QC firmware.. > > Signed-off-by: Shivnandan Kumar > Co-developed-by: Ramakrishna Gottimukkula > Signed-off-by: Ramakrishna Gottimukkula > Co-developed-by: Amir Vajid > Signed-off-by: Amir Vajid > Co-developed-by: Sibi Sankar > Signed-off-by: Sibi Sankar > --- So, this is another 0x80 protocol, different to the one that has been shipping on devices that got released with msm-5.4, msm-5.10 and msm-5.15 [1][2]. They're totally incompatible (judging by the msg format), use the same protocol ID and they are (at a glance) providing access to the same HW/FW/tunables. I'm not sure if this can be trusted not to change again.. Unless we get a strong commitment that all platforms (compute, mobile, auto, iot, whatever) stick to this one.. That said, the spec (DEN0056C) says that protocol IDs 0x80-0xff are: "Reserved for vendor or platform-specific extensions to this interface.". So if perhaps there's a will to maintain multiple versions of this, with a way to discern between them.. Konrad [1] https://git.codelinaro.org/clo/la/kernel/msm-5.15/-/blob/KERNEL.PLATFORM.2.1.r5-05400-kernel.0/drivers/firmware/arm_scmi/memlat_vendor.c?ref_type=tags [2] https://git.codelinaro.org/clo/la/kernel/msm-5.15/-/blob/KERNEL.PLATFORM.2.1.r5-05400-kernel.0/include/linux/scmi_memlat.h#L16