Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp169808pxy; Sat, 14 Aug 2021 03:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPjoM/VuWIg4pxgNVPq80jNkNr9EOxHslkIMV0CjgfhiN2wq+zsLK9X2ZwURXchVeR5CuC X-Received: by 2002:a17:906:7e0b:: with SMTP id e11mr5610449ejr.342.1628938140421; Sat, 14 Aug 2021 03:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628938140; cv=none; d=google.com; s=arc-20160816; b=IWwD3GjLvM8M06kZqeKWyjpo2MIA03ZyQ97Rp0fpbqEjttxnIaeWLdCGMkdQSmjkn7 APcBaw4I3PoYxGWoiot35EyfbuEinyicnQ2HRwfNvUiu3e6YV6z0ln5kmMdlSNOxOHgn 8UrIyHLgfYbExS/bChi6CqXmNHOiQeuJboAHTlhf/lm7sIm1fUhPDZ5xvvtGhnsseHq8 cL1eyM3zRtAjBXyqzL/whu3QcXLTj4WbkBDpbfh+nR8yUokMyZ+TJodw4iD5Ff+sG/ue WxwtQ7ZibkGfPX2iRsYeHa8RmCxIzzu+erB11hxzHdcT7Kiv6sCgNMbT1LWaZhlcibNl O/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=GifoOqx6SBFwu3FmttmT9/vPFr3vQ27vYXItoPzfJbw=; b=CAu+mjfbwb0dGVqz01sVyxsdM2Xoo09350DHsjz39/7eD4BqhQtPcIWfyE9npD91Ee ZwpnFNrF8jZIT4ZmUNo+3QNjmhjHBlJMIIjp4lI2YOpx/yMtt+/Uy98mvEmoO0V5yY6l zl+hlsotg0ofksqktIWF5WzVEl5SO7m74YTlJYLXVVa4XuOBWXE5AkINYvGRtZwdcm32 VC0Ed1Nhg4KEMlyIHz5q9KYhAM51OiTZRF86L1XU1oRizo/c+rZTGKyvNUChs9q8ZWS3 IpqGce5Nq++JkFCaQfIITCFHk5ev9OyRSBuRva5oW91wg5HB+wvZkHco+fus6j3pGI6/ PUKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGKh7WrV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si4610302edd.270.2021.08.14.03.48.34; Sat, 14 Aug 2021 03:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGKh7WrV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237917AbhHNKqe (ORCPT + 99 others); Sat, 14 Aug 2021 06:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237843AbhHNKqe (ORCPT ); Sat, 14 Aug 2021 06:46:34 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E8CC0617AD for ; Sat, 14 Aug 2021 03:46:05 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id g138so8426513wmg.4 for ; Sat, 14 Aug 2021 03:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GifoOqx6SBFwu3FmttmT9/vPFr3vQ27vYXItoPzfJbw=; b=iGKh7WrVF4MYNXHXmMuE4HGs2rA+BEqWJdnXx5ZB4V8/VbbgOA+EVrDUxNhEIqD3ou ornGW1iaYUVFiU29FPznnm5EeccA8yzASP2GO1Og95jGLgHz+Fux3CiVQh/3ppoU4wCj e6TXhrqpVniBVAAQhPCmNpBv327gwXRClqIw+d4GbEJubjreuydBJ0Ez2wAVAnNGlQGI s0gW6WB6TEi5rFjmilKmtFyCj3STAbLcnKrZiCet9tNZLODUSkClFeSs1EcXdfvmcNOn KhQSrlr4wcrwm3hvLDkDAjrL16ZM2AyYi85tdEAV/Z0lRBefuHBYKa+aSzTVOFm3/Vzo ozmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GifoOqx6SBFwu3FmttmT9/vPFr3vQ27vYXItoPzfJbw=; b=XMhOU/8nQ2XoZnZa2PpAIphLsYSzvyd+1ZbG6YF/LUjZt9zQ7YVdNRBqDtTZ7t3IJe BPdXDFoxDcJLaJarpKA1vcB+NjXXEkpUfC0SsFjbKkI01aFKTG5G6iJFG8umbTlaK35c Lk6yaOzxkuyvS6unjhXPtrSCUC5BlAOX1sWx81NSR/9JqJ3tfXd+dsS3EFORn2cUiaAW BuZZTQ1ug/fXxJvKY/HRW52i8Y1EpjZLg1TjH6um7525okb7/eCU3dubCI5eekgCtxHf ppLutM3rTfWkZWQCGbApVGS/b/aUpDdaRs1Lyef9zhA10Gz/5cyQFiFaQ75gh2kzCDPL eLwA== X-Gm-Message-State: AOAM530kJ0vV5h+A5dutftwaj0uRBaBWpudqRoeFiOfsRa/hXC7IE9uH /nwT/LWL8g9/dB27h+7iRFkvJg== X-Received: by 2002:a05:600c:20f:: with SMTP id 15mr6639569wmi.176.1628937964110; Sat, 14 Aug 2021 03:46:04 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:5df3:d0eb:3945:640d? ([2a01:e34:ed2f:f020:5df3:d0eb:3945:640d]) by smtp.googlemail.com with ESMTPSA id f2sm4210847wru.31.2021.08.14.03.46.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Aug 2021 03:46:03 -0700 (PDT) Subject: Re: [PATCH v8 1/5] cpuidle: qcom_spm: Detach state machine from main SPM handling To: Bjorn Andersson , rjw@rjwysocki.net Cc: AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, jeffrey.l.hugo@gmail.com, jami.kettunen@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, devicetree@vger.kernel.org, stephan@gerhold.net, robh@kernel.org, bartosz.dudziak@snejp.pl References: <20210729155609.608159-1-angelogioacchino.delregno@somainline.org> <20210729155609.608159-2-angelogioacchino.delregno@somainline.org> From: Daniel Lezcano Message-ID: Date: Sat, 14 Aug 2021 12:46:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2021 00:56, Bjorn Andersson wrote: > On Thu 29 Jul 10:56 CDT 2021, AngeloGioacchino Del Regno wrote: > >> In commit a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic >> CPUidle driver") the SPM driver has been converted to a >> generic CPUidle driver: that was mainly made to simplify the >> driver and that was a great accomplishment; >> Though, at that time, this driver was only applicable to ARM 32-bit SoCs, >> lacking logic about the handling of newer generation SAW. >> >> In preparation for the enablement of SPM features on AArch64/ARM64, >> split the cpuidle-qcom-spm driver in two: the CPUIdle related >> state machine (currently used only on ARM SoCs) stays there, while >> the SPM communication handling lands back in soc/qcom/spm.c and >> also making sure to not discard the simplifications that were >> introduced in the aforementioned commit. >> >> Since now the "two drivers" are split, the SCM dependency in the >> main SPM handling is gone and for this reason it was also possible >> to move the SPM initialization early: this will also make sure that >> whenever the SAW CPUIdle driver is getting initialized, the SPM >> driver will be ready to do the job. >> >> Please note that the anticipation of the SPM initialization was >> also done to optimize the boot times on platforms that have their >> CPU/L2 idle states managed by other means (such as PSCI), while >> needing SAW initialization for other purposes, like AVS control. >> >> Signed-off-by: AngeloGioacchino Del Regno >> Reviewed-by: Stephan Gerhold >> Tested-by: Stephan Gerhold > > Rafael, Daniel, any objections to me picking this patch through the qcom > tree? > Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog