Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1239219rdb; Fri, 9 Feb 2024 15:10:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUoohNT65jbOmX7Uu5A6bOQGhBNiqhY22CJ6kBm2JOWoBOd9tjLGotjSKw8PAS55e6GER/tvp1bMy4z8hUKHSL3L7XUXcigCsPZxnHKUw== X-Google-Smtp-Source: AGHT+IEzjTjy9ePjfZotIn2i3YakX0NCRTiNi9ydXI46hKc8m8na6RpE5DHE8cvYh+6Ffa+UWyLW X-Received: by 2002:a05:6358:7520:b0:176:5a5e:4b7c with SMTP id k32-20020a056358752000b001765a5e4b7cmr1124334rwg.6.1707520207943; Fri, 09 Feb 2024 15:10:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707520207; cv=pass; d=google.com; s=arc-20160816; b=SR3NOkTs3E+naRIUS7a9konzTNyzZD+K7a/Wptl9QLhNLGPaQwXYakv4MGXEbpK0Zz 7ZqGL0RDAwUb2uaRnq2yoxSwqH5eedG9L9NHU1Scb/7wkU5ycVCPjiV7Dq2x4hQCksT5 k3LVVeS6wBRWT1ywTv1ZWmPF0Qh4FLSljHhz02c8Ne1cjdY7dhxG+tTvV1eyJuBm7o9M ninkBp71p0brDolc+QUrPmtQQOk2LFBrkljDkua4fNyJWYovepR2SSOxBiuB8N+VIetR cMJ2QF/Qz4Zswg4ZFcL5DLiWBpxQ6qmZKoDM23HtcigGXXzhezYbW6E2X5xMm6R9GyVd isIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=rKbLP7kIBhW5L1hXOD3HxgkQsg75+FOMpBkBzulTld0=; fh=HBDk82wg3DbvjIGYse5/Yqdpcwv9p6Zoli0H5KtK90w=; b=XkftdViU4ZLhexr2KbCRFKuwLbFeS12SDWOHSqBXAhqLBv5/Hx5vsM2+AuG34xh5RP exziOThtrRwJu4uhQwyEd2oqYRYt+hGI1Qc0maJ3Tur0iuUMyfpbzvqWNHE1ArgXTkCK JjmCSACaNNsaIh3NtRNlLH60/Fz6cWm7l17wIVqyKxvfYhVOXameW5pqYXxuTQ5z3kr9 N3fm0lAP0kQwlE9hqc45a4VJfsTncgZEQQ5lbkFmY+OxbOrugh2t4LTXAGuDenjhtwL8 V6/U5CO4akeSw5Kucq2h3W6ds/R/t1MN1S168oVsobMpc+StJDxLBR4OCWeRqX5ud8CD 2afg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TYebRFZl; 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-60130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUUTfLocl7snS6NxMg1GBVXAfJNVhOK0Lgh2MX2axhEGawUMQYuyQsaIEww/t92WYMEEL38fcYOo+kULmvilBlSpNoPGiatbse3a8ogDQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id si3-20020a17090b528300b002963a7638d7si2405510pjb.175.2024.02.09.15.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 15:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TYebRFZl; 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-60130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60130-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5FF4DB24FEA for ; Fri, 9 Feb 2024 22:45:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56E373613D; Fri, 9 Feb 2024 22:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TYebRFZl" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 6FF9D2E40E for ; Fri, 9 Feb 2024 22:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707518714; cv=none; b=d712GUlQH2a8QGEaMt47Xf4941qV3kw+N/1UUBY3w/vlxUOqxlRB8VifxKshg7UYUU9z7WFYP+hdPU0cRTB9D4GwXYWum02KGaMr53416RjzUTyi/FDyl8tOdjXtklVNJh84Tt6zxvXiig5M2QCBC9tc9FVL7JyvF9+5702mC98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707518714; c=relaxed/simple; bh=PCuOO1miD4yYQqIynxL3zjiud3HXuKhWFEAcI/DIvPY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TJnwUPNvoYAR+OnBK1XG3opcXV7SmRd2m1Smp1IdQnJ3CYGPSjreIMYwjnTQm/CM6ddsO2v5vXyns/Rns3mmqLDRy8P9PdDDnQ8WhjKPX66D/njqUYByjdxYHv3bcX60hPziGsqWKhY9Yqerbq3S91nsfn9//EfgZSbEGtYpAaM= 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=TYebRFZl; arc=none smtp.client-ip=209.85.167.54 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-f54.google.com with SMTP id 2adb3069b0e04-5114fa38434so1648545e87.0 for ; Fri, 09 Feb 2024 14:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707518710; x=1708123510; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rKbLP7kIBhW5L1hXOD3HxgkQsg75+FOMpBkBzulTld0=; b=TYebRFZlxJmxpOzGi38nXU2o6PX3sQCwRmg/JkyLa0Jq8KiasVlO2JrozNCzEt/oxC 6qN7iV2rbjnmqZ2A7k6ub6wPdEj0QrDmr+/N6FBYjMLBu+Vd6ri+SqPA5iQ4kLCJPGqb RI5gEuV7BJu4vQyL8IXTwMsS7IFooUag57KmTZkwrfy6qxJpVYut3Frdzt1DMtNS8ty8 DTRSNHeUR15eZp8fWsYlkY+/UZHUdogK2ZKbEO8LZe6bnQoHnxdJmZiVB45JH97ktiik 5Zp9qw0NcwQYPFXeSwF0G5Bb8PH2Y0ttP90dI2QiqcPxI+Nfb2Xtv0mDherCjwWslXkx GAiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707518710; x=1708123510; h=content-transfer-encoding:in-reply-to:autocrypt: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=rKbLP7kIBhW5L1hXOD3HxgkQsg75+FOMpBkBzulTld0=; b=uYOgBB9gWS9v+t1TOaGr/ePvGloYNoh9SwElEJBLxQnW7OLBjWgXdrESnWXq0rnuqR kE7upl2bDdaT97KckZJt9raoOknctn2UsPOvwfKNephFwbSOjralBVct0EQswVpPp9t0 ExDkSY18/7arYPLQVvg/uCNCVks+2eto/+DCghYew3oZF1eXpaH06e56dOEv+BJw+ctg /MHVl65hhp16K4vrtZrowblcZmG3qn8vTIU8qVU4vHKsOoPTKBoLQdsENKbBT1rdcPQY 6x0uT4PRvuexrs+CXQTDShSmPVbrp3E9GssguA/sGo5+kv0NRqWy4fsjV/x7Epzhoa0n qLxw== X-Gm-Message-State: AOJu0YzKjdUXf1NkE0IxAm45BGFihlbjeKx0C2OET5+3Z2ugjFEmRf8c P1pvpogO8gCtlctBkUm4HcS4qwxQm8YzfiYwjimnOgyq6iOnf/C4kIBIWHqyd9s= X-Received: by 2002:ac2:505b:0:b0:511:52b4:2fed with SMTP id a27-20020ac2505b000000b0051152b42fedmr231156lfm.66.1707518710472; Fri, 09 Feb 2024 14:45:10 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVziY3o+jLOYHVEbvVvc/NKk2+eE+ZxCqBR0txLhjfB4yvjgFOkDmhiBEcjfUfTtDC6jvggl9cFMFaZoaAiSelsQS8m20n2+WZSu32GNm4BtG8lE5oRYI8Y3h7pm92BZC4YxOV4mn9yt3UoLCsp+x5srAKwtnSaLyD04mgJ6oJv+JckkYYPA7IXwW22mOMLlpVy0arxA7N9TWTCzu94/f4kWkjxg66AiK04AYW2CnLGJPJYqIc7A9UPxJiHRTlPK3acsTXOgGY9j0fIyrbjQ8TUiPMEyci51T1oUxSBWQt60XDlA1VAL9L0C8yZskUQtCLxeY8tVXJj31WA68TjdfczcPwX5lhpHv87PLrtNobGcbVeO+IL8ikwWRv7RajJAEWxx6n+1KTMsw4fAVrfUHw0A8pZk/MBtqSdtaSpSXop4YcV+oKTR0rt+A/201rVjdZqEzoFrD61UEAg6+Gnt08= Received: from [192.168.192.207] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id vw12-20020a170907a70c00b00a3be00ea824sm1163481ejc.30.2024.02.09.14.45.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Feb 2024 14:45:09 -0800 (PST) Message-ID: <34af183c-638a-49f3-b0b3-784f757282b2@linaro.org> Date: Fri, 9 Feb 2024 23:45:06 +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> <3325c6ea-ca30-40ee-83ba-c489dc9964b1@linaro.org> <2b1d9578-39cc-7836-a51b-be698bb50c43@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konr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IDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <2b1d9578-39cc-7836-a51b-be698bb50c43@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8.02.2024 12:44, Sibi Sankar wrote: > > > On 1/18/24 01:45, Konrad Dybcio wrote: >> >> >> 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. >> > > Hey Konrad, > >> "QCOM protocol" sounds overly generic, especially given how many >> different vendor protocols have historically been present in >> QC firmware.. > > Here it is specifically mentioned that way to communicate that > this is the only vendor protocol exposed by Qualcomm. It handles > all the other protocols which were usually handled separately on > older SoCs. I'm no SCMI specialist but that's a rather.. peculiar design decision, I guess > >> >>> >>> 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. > > Thanks for bringing this up but like I already explained the only > SoC that was actually shipped with ^^ protocol was SC7180 and we > already have an alternative arrangement for memory dvfs upstreamed > on it. Ok, that makes sense. I took my 8550 phone, enabled some debug prints and it looks like the only SCMI protocol exposed is 0x19 (which doesn't seem to be defined). Not sure what other devices would spit out, but I assume what you said is true. For completeness, the reported rev is: arm-scmi firmware:scmi: SCMI Protocol v2.0 'Qualcomm:' Firmware version 0x10000 > Further more it handles only L3 dvfs so it makes zero sense > to try to upstream the older protocol given that working dvfs solution > already exists upstream. We don't have any sort of governor for it though, so I wouldn't go as far as calling it working :P > All other SoCs don't have the 0x80 protocol > enabled for memory dvfs in production. > >> >> 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.. > > This is exactly that consolidation effort from Qualcomm. Here they > expose just one vendor protocol and implement all the algorithms just > through it. And I'm very glad you're taking such consolidation steps.. Just a little worried that in case this protocol's extensibility is exhausted, the next one would need to be called.. "Qualcomm2"? Konrad