From patchwork Wed Dec 20 22:12:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 18385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp40682dyi; Wed, 20 Dec 2023 14:13:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IF67FAo9AOEql64DYdfiXZU2lCVpdxSop84yCrpA4VVBX+PAmLYwZGJ+AkBBMI50XXMcm48 X-Received: by 2002:a05:620a:5637:b0:77d:869f:ca1c with SMTP id vv23-20020a05620a563700b0077d869fca1cmr24212544qkn.65.1703110410053; Wed, 20 Dec 2023 14:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110410; cv=none; d=google.com; s=arc-20160816; b=Ff3MA9kFRa8QVptupcfSkSqjNq0ewjPQMsVBsMoP1AclHI+6Id7ixJcLy5ioKieEdW WDuTt7Up4l6WV14SKEUeRM6rB2F76JhZlz/LonpEpdWAK60oqZYmLuJ5Sv6Yu0BAMn6Q gbCXl/RdCU0zoIyV5bBDrOHZM5h5j7c+2xGR5o6TJNv/i5bQhxYVqljAOveBlGFJPgNO IWSeqt5s/SS1MYNKu2idpZVQm8NGlNv4lxh3nbgAJFOLYV/cB7fwpj1eZDi6WXRAuEAR 5uQYL490QzbCXVnYO01IC8QB5lpvgjBdwLLkAnQmr62GWcQFaAO7wlQZ2kn77Qzer5vb kYug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=WbE+p+rcyyFP+eEtMwxqlwbKKm3YVPbvUnctIfiDxV4=; fh=9TjP5Br7/jShLalm0TuDyO1COBRVeysBZiyxhQJm5Ms=; b=hZKQKHUy3UfLlvxSjUL2KzqHBXipiMSGQgjLBp8oZAqIT+iXuASi+N2/AhfiJnV0QD Wergb+GffYTjUe4mr8uTkKfVoorm7FTyHRQZ7a+HeToh+VDYDQOKwsLaAFbR21supTw9 S9IiIvWi8rkyO52mhGl9TSMh9flc59EgfrSd0LnEtTUDl5RLrncWMvOIHZrEdEEsTIHZ KnBRoWcU4tet67OPtQa0z1WDbkL/hKML5hjBeveyJCzdh0DgUNudwCATRooZmea12UqS h6smta31hotF6ls5cWjEgKBOuRtlOd7YKjdTY9B6ZdmxGcsHegoBxjVHHAW4qEe4jQ5U zjEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Hr4Onva/"; spf=pass (google.com: domain of linux-kernel+bounces-7491-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7491-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q14-20020a05620a0d8e00b007756dfea0ccsi820266qkl.90.2023.12.20.14.13.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:13:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7491-ouuuleilei=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="Hr4Onva/"; spf=pass (google.com: domain of linux-kernel+bounces-7491-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7491-ouuuleilei=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 D329D1C20310 for ; Wed, 20 Dec 2023 22:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D814AF86; Wed, 20 Dec 2023 22:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Hr4Onva/" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 7FB064A98E for ; Wed, 20 Dec 2023 22:12:58 +0000 (UTC) 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a2343c31c4bso15112766b.1 for ; Wed, 20 Dec 2023 14:12:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703110377; x=1703715177; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=WbE+p+rcyyFP+eEtMwxqlwbKKm3YVPbvUnctIfiDxV4=; b=Hr4Onva/aMYa64TV02v8sEKnKOa9dU62ufHv3yjaq1jplcVcisLWqPTnod6NLBmyFf Oj2XWDERSnbqEhbSHqPfRL+xOo0q4I8ZxNh4PksJmQ7akJXXsFjZJ6H269HHJKBhRZ3/ rSqRYkF0PHYQLSfwsHb8O5J1vcFEyhzJHTAjthYue2WHfZQE93GV21d9G19rMnsWnre/ +8kIGjaiGETubllpaBv2Z1E2IVgOfhaTDJO3L/47jiNzxlF1z1ODi/WuTDshXNx8EsX8 1R36bcOCsw9trvSTscRUDP9VnL0o9rKC9fZyQmmm62IPKdmS/2bdlUba3ugcWnuf7D0R LDTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703110377; x=1703715177; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WbE+p+rcyyFP+eEtMwxqlwbKKm3YVPbvUnctIfiDxV4=; b=fVOhAf8Ju/P0s2EQPeFzBnJJgbLlhQjlkii9ErPtzeif3E8Acot+SzUXgY2FqAAFeY glbtKUap45FmqUeDnnDQJCfWWl+EhEFodDjSKe6yx4FvHZ6J1ds0vpl5tIzl75xu1ael w5oYeSjFcZ2TPFXuPYjWpCqtNWQu+nzdDGKrtb8sZQmWwy8nrPg+5soOlTwMDEtOkaTd /p2f4Gcr0OQfJ682a9/c2fknzGg1LG/8udXsz+qfbXcTsxuYMtpc8PINmBuEYfAMXoRD CKQCa4Ay4tEOpjRnT4HSGlFq7bySaSJT9pe0XYaOw38Vf77XYjnN7Ym6qE5QQubB5+rt 69qA== X-Gm-Message-State: AOJu0Yy/nbJf1YwTMpDa9HN8y3+JoPuZbdFL5BZi7ADvuKvBcuZnDNsZ ZT8TkfrRzOa00CoBIXLsdI1EGA== X-Received: by 2002:a17:906:65d8:b0:a19:a19b:4251 with SMTP id z24-20020a17090665d800b00a19a19b4251mr5876749ejn.188.1703110376744; Wed, 20 Dec 2023 14:12:56 -0800 (PST) Received: from [10.167.154.1] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id x22-20020a170906135600b00a235f3b8259sm254654ejb.186.2023.12.20.14.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:12:56 -0800 (PST) From: Konrad Dybcio Subject: [PATCH RFT v2 0/3] Fix up SC8280XP idle states Date: Wed, 20 Dec 2023 23:12:53 +0100 Message-Id: <20230619-topic-sc8280xp-idle-v2-0-cde50bf02f3c@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOVmg2UC/32NQQ6CMBBFr0Jmbc20gBZXrjyAcWdYlFJgkqZtW iQYwt1tOIDL919+3gbJRDIJbsUG0SyUyLsM4lSAnpQbDaM+MwgUJV54w2YfSLOkpZC4hmytYYi DRryKstIS8rNTybAuKqen/HUfa/MYohloPVJveD5e0OZxojT7+D3yCz/U39LCGbKyVrJrZFXzH u+WnIr+7OMI7b7vP1oDiMfRAAAA To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703110375; l=1554; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ARUY1xHpXtNbYJC73kXlyu2iubFsquAhjet7Dqjyorw=; b=jEr+FiShAw83HyJ/2AgXX7eCo9PSxs+fd6VLsvmwSxLTtAFYHteCzA7izJM+8hpXXahv2STz/ KP9ClVfkcC1BKCyOMLzdt6YpWdfFOmse7l+aVQMz3Ri4ySQHP+ZzN9u X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785840701050253818 X-GMAIL-MSGID: 1785840701050253818 Comparing the data available in the downstream sources with what's there upstream, it was easy to spot some differences. This series aligns what we have upstream with what is there on the vendor kernel. The big asterisk there is that the downstream sources for SC8280XP can't always be trusted. A simple test shows that the lower idle states that were previously missing are implemented in the firmware (Linux reports no errors and enters them). HOWEVER The only cluster idle state that's been present until now (the deepest one) is now barely used if at all, as the scheduler seems to deem it inefficient or so. Hence, a request for testing and comments, especially from those who use the X13s daily or have reliable setup to measure the power usage. Signed-off-by: Konrad Dybcio --- Changes in v2: - Rename the idle states - Drop RFC, confirmed with Qualcomm - Rebase - Link to v1: https://lore.kernel.org/r/20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org --- Konrad Dybcio (3): arm64: dts: qcom: sc8280xp: Add lower cluster idle states arm64: dts: qcom: sc8280xp: Add missing CPU idle states arm64: dts: qcom: sc8280xp: Fix up idle state periods arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 72 +++++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 18 deletions(-) --- base-commit: 20d857259d7d10cd0d5e8b60608455986167cfad change-id: 20230619-topic-sc8280xp-idle-00fc007234c8 Best regards,