Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1995788lqg; Mon, 4 Mar 2024 09:37:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUD72YgzlLZMwLqmlqMLnzDqJQgNdmwVe5Qpv+yQU0iT8/5OlCwTpbwUkFVY4zTgVhVzakKcO6BIN3UrDXMo6UhCcW09jt3enhahgiItg== X-Google-Smtp-Source: AGHT+IGKUzjOz5vxIbUSu1ybJpIIpYPNvp4Jp5HVj3V9y61+EErH4irJIo53jxECMbgr2gT7hYq8 X-Received: by 2002:a05:620a:8d0:b0:788:1f31:b07e with SMTP id z16-20020a05620a08d000b007881f31b07emr5798930qkz.66.1709573824526; Mon, 04 Mar 2024 09:37:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709573824; cv=pass; d=google.com; s=arc-20160816; b=evifPjksF3dkIFa4k0OG3/o+xPr/qat1nGEyK7hmWdANmTYLbsv3T5LDNy5SnNG2NO fNOez20YS3keeCRLLaokLAxsKwJFpaSognkN3HbhrSpH0VKlk5VkRzBH2Jh2dy03U5bt r9eKGMl4rH8lD+OpRv091bHIOBZas+Ir4Oc0XLiKAU1VR4e+LotZtUxapp6Dg7r7Djkn snyA4H8bdxCil+lmM92vYdnosbRxVfEK2cunD5QCN51re7FZEQYDoCImKSiYI4MSI0+W y9Tj+VQ9AzR31tgPXa+qs6TcvCHCjk85P9FI20cFsXg+q6Y2jQM5qWayB4ktYEJWMFxp 65zQ== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OXEvMA5w5rvjI27ttLhue2/cB4ftFG6hZNeiSaW+NeA=; fh=SMabPLrN23KzQr9hBBC2Wh+gK8PcbCKDCU1W5OjouM0=; b=XmS1SI7IGmm4EAw4OuuUnAG3P4DZ0Eixl6dHk0r88MCsr6xis1FZ1WjfDmK+YcvLNK ksnj223sdYc+MgTsZP/CSbjBQ9c2JEA0+vTPyR7eES3n2zKMQzNrJNyFN+k11nCi313h JRQWKXC3Go7ZrGgV88pBLD4YaaK7nLU5V6HcpR9oMEVDiriHgoDWW5SUsCnjBeVG8gpf Q6npWRq1fHGG/saLrMoqhu2fWGH2SpajPRUPZfn9bexgzzz5PxqAbKdhdvKO/WvIj7t3 r/NZWArPYrPhtzyupWs5KeGhp4DvR05dp97a9ZYIMdTiVv2NArB/1b/vZf3TEkjItmkw OXgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uxjlboZU; 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-91008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a19-20020a05620a16d300b0078725883460si4552206qkn.390.2024.03.04.09.37.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:37:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uxjlboZU; 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-91008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91008-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 43AE41C215DF for ; Mon, 4 Mar 2024 17:37:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FAF245942; Mon, 4 Mar 2024 17:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uxjlboZU" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 C14F161662 for ; Mon, 4 Mar 2024 17:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709573807; cv=none; b=Vi4zZFSSZjuk/0YmKtFzNe+M0fZr37kg7MaEw0/iIoVghWkm7EVrpJ4dG0k3kKae1DdCDRAaGIBqxTkUTwU3nAtdqApxSd9Qd/51hVwA6Yga2rASTPqGLdanyy3n2NEVfTGH3qm1hFn/b+LGoILEMbZWiEuLyZEWppXu1MFhXUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709573807; c=relaxed/simple; bh=HpONkFOmk9WCDOiqE/57zwq8lJstKwLF4gqAsKfFXQ0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lvdq0IjmL2CDkX5gMS6sSAg57VVq9kjFLwOwWjl7UzKR3oeJvNS5GpwnOPhLCLktIoYBbbVnKezn3vjUgyfMl3nOLQvVm0edQJNNP2J5t3+8HSoOwLlU3R5Kqe/Oertq2fJ98lIt2dQh0Rmraza1RtCHso6DDcZj4YP899U//8w= 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=uxjlboZU; arc=none smtp.client-ip=209.85.208.178 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-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d094bc2244so68988721fa.1 for ; Mon, 04 Mar 2024 09:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709573804; x=1710178604; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OXEvMA5w5rvjI27ttLhue2/cB4ftFG6hZNeiSaW+NeA=; b=uxjlboZUO+FUxmOv28QVSxusXalT+RU6CoziCqpGr/MO+6fQTu2mMeiwaToxflNFFI 7/ihKJgw+S1K6g/v8rsiCOvk41S/iao3iKghg/3G9dOHzJUPpDprlmU6RnnqA2GWZRNm fh/e22c6SeTzokGY+gaUrp6aRjgUpEm6N2ATrApUybWiPxRbcwiCgp1EajWjnxz+1Glq 1T3DljyUwpUsw00925wCSRW1tvTsJONPaqsg8gBCB+q3SJCJcA7oi4aC+xTDKrP+AaZI f+EIAwA2gFtDa7qtyPhvPkca+JWvFxu5cS0uecvH8bmd0WvhzpV/dUMFW8A/JzPu/kSr NXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709573804; x=1710178604; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OXEvMA5w5rvjI27ttLhue2/cB4ftFG6hZNeiSaW+NeA=; b=tXZJcJZypXGCmhRwybV8vyHeQnzF6CYLoYSiScP1eZYd4w4J2YQfQ0ThnLhsg+dMRg E47NZbZ8AHU5bmEGKeUliQSJwPc0Axu8Z1eUQKdJu7wJH4b8Hl6zVobr1ivi+jze9jTh Tw09+e8IrdYfNgMI7oIWFVI0jyAWXBDbYfLUNY1cu6mH2wiYuouB0c1cvWxrR0o69UxS Vou6WAXZPT3dSNCuLSHmfMRwnw2XJg4qf3acfTJCsP7TtJj+3mM8lxGSPzPn2Y7GL6p3 ZW/1/nP92tDudqkzId5z6x0k3m/GGWztkX7iSzy6CSLqynf1hU8NQ3N5pKYBzNuWlTU4 XDoA== X-Forwarded-Encrypted: i=1; AJvYcCXUqUawWm31fMr53MU9itN3DUmQJRC8SFpH2TcDQkYRMcCklPeIcbTFW1F85MOgonXZpnOFXa8Kdw8maQtUEUxMBrWz4I9OaODc3vUB X-Gm-Message-State: AOJu0YymH4Ai51i5UziD72LSZNJUbdK7v0x6hky8qpxr1KfQR2NIyNaK tfU8I0wDhgyITUqPDVEofV+SHCSUn11J6plss12E3BoiyT7AZtmmVlCRrx/Vc1U= X-Received: by 2002:a2e:9ac5:0:b0:2d3:93dd:a192 with SMTP id p5-20020a2e9ac5000000b002d393dda192mr3263691ljj.45.1709573803913; Mon, 04 Mar 2024 09:36:43 -0800 (PST) Received: from [172.30.204.149] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id w15-20020a2e958f000000b002d277882eb6sm1827909ljh.83.2024.03.04.09.36.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 09:36:43 -0800 (PST) Message-ID: <98e154f7-a01d-43d0-bd0b-70122ad880c6@linaro.org> Date: Mon, 4 Mar 2024 18:36: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: [PATCH] interconnect: qcom: x1e80100: Remove inexistent ACV_PERF BCM To: Mike Tipton Cc: Bjorn Andersson , Georgi Djakov , Abel Vesa , Sibi Sankar , Rajendra Nayak , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240302-topic-faux_bcm_x1e-v1-1-c40fab7c4bc5@linaro.org> <20240304164009.GB25492@hu-mdtipton-lv.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20240304164009.GB25492@hu-mdtipton-lv.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/4/24 17:40, Mike Tipton wrote: > On Sat, Mar 02, 2024 at 03:22:49AM +0100, Konrad Dybcio wrote: >> Booting the kernel on X1E results in a message like: >> >> [ 2.561524] qnoc-x1e80100 interconnect-0: ACV_PERF could not find RPMh address >> >> And indeed, taking a look at cmd-db, no such BCM exists. Remove it. >> >> Fixes: 9f196772841e ("interconnect: qcom: Add X1E80100 interconnect provider driver") >> Signed-off-by: Konrad Dybcio > > Reviewed-by: Mike Tipton > > For some background, ACV "perf mode" does exist, but not as a separate > BCM. It's controlled by a separate bit in the ACV mask. By default, the > ACV node only sets the bit indicating the HLOS voter. It doesn't assert > the perf mode bit. > > Enabling perf mode toggles different trade-offs within the DDR subsystem > for slightly improved performance at the expense of slightly higher > power. There are limited use cases of this downstream, where we expose > control over this bit to clients through icc_set_tag(). It primarily > improves certain latency sensitive benchmarks, AFAIK. I don't think it > has much impact on real world use cases. > > This is true for many other targets as well, not just x1e80100. > > Voting for perf-mode is entirely optional and in most cases also > entirely unnecessary. So, removing this broken way to control it without > adding the proper control is totally fine. > > I have a local series to add the proper support, but haven't posted it > yet. There aren't any users for it upstream yet, nor am I aware of any > near term plans to add them. So, it would be unused for a little while, > at least. That said, anybody could use it to set that tag on their BW > votes on the off-chance it improves performance and they don't care > about the power trade-offs. > > I could post the series soon if there's interest. I think adding a sysfs entry for toggling this could be very interesting. Userspace could toggle this based on "power profile"-style settings. Konrad