Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp582553lqs; Tue, 5 Mar 2024 10:05:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSO0lAFp2j0usVXOtfdfaRu7KTk5fMmL8qrkvLMDb+a93XUA2Tyjn2EHrbPUQU0MnO/dG2FXwZrmGKb/v2zv109i/LX3kU1NmzkHqaFg== X-Google-Smtp-Source: AGHT+IG9/kxjARs5I4pAk98xwmlCblkuXAVCr4qacS718ARgTpOGOgVJj7y098/NOjtJb4NShB75 X-Received: by 2002:ac8:5c4b:0:b0:42e:dcfc:b87 with SMTP id j11-20020ac85c4b000000b0042edcfc0b87mr2935924qtj.48.1709661954582; Tue, 05 Mar 2024 10:05:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709661954; cv=pass; d=google.com; s=arc-20160816; b=safF4robdDtdlOS02d7jY2fcPNndF81/ziGkctA6z//lb5+2M6oGy0i+fGVJ3SYP7p y9zr/fb4teNmmOq/usXK1spKVfDA27rMl+kHJg4NNgGnkcoxgB0x+faKY09tA1kg7LYw pOjHgGApIZ9OOeqCNxn0m1+HCxHD5rrpNhntCJY3tEGF5vGzUL0TWVtfo2/CDZ1nBD1Z CP/aHHoj2g0N/Bsce0t9mIUR/kdV+hgliGYPsqCLyBswtZrHZdYnVe0P1kCCPgdg974a vJlTBSptrcxzjYNJvJnG9i/cI9DgM3VFiR8VvkoujjqmqS3AxgHKWjEQt67u4z5Wzwm6 acVg== 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:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=sghqC+om+7KfQnUHnhcBPIALJGyNo7LhaapE291B5b0=; fh=4V0mA654TRc881MjYkV9ljmMuwl5276FG30EsxxoLiI=; b=sVDX6S4i/djWzsJuLdlgZdb5LXvV1Sa/bYMRRegT9rHYdtWYVHDpMtgwZ0s0CzvgHJ 9G5sZqLCWaTpSwchoy4tbVf5Bs6drBxj+0PSQf5saC2BRJ0nmYb1k78OHrDfGYQtl2ru OsFGqhuxFFmqvSY2faHUvXB/bMGkr63peZ4fkwx5fF4MQQc6uQOxnDAK0ZRYzqWxKS4H pJRkMzPscwQOgg0aXDR+6jVbzvIvQkaR8YqHNAUoeBBvZHm/xccBnQwd31H7PdZairdr u0qMRNTlPlT67IaxQ31OibsLjWzP5Xt/hfENi7rLQ03bG3AADTHPiCGNKYaenw7v/03w HEKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nmiYXkXB; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-92808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g16-20020ac85d50000000b0042f04d1200fsi1314650qtx.209.2024.03.05.10.05.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 10:05:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92808-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=@quicinc.com header.s=qcppdkim1 header.b=nmiYXkXB; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-92808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 146A41C203DF for ; Tue, 5 Mar 2024 18:05:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF137249FC; Tue, 5 Mar 2024 18:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="nmiYXkXB" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9257512E7E; Tue, 5 Mar 2024 18:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709661876; cv=none; b=KdRIOqf1XbBU2ZLuCCWOMk/GZASYulKAMNscxlBTU4IH18Yp+5Lw4bFMxCGb01waJYwvSi4/Trr8q8mO5XptWUGl03/vDLiG9+HGq5FOw7zi4pm2Lf4xmg59yCcVRIz78LaEx6Qm69gkBBkez+8AjSebXu1sI3/+eQmksllU2J0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709661876; c=relaxed/simple; bh=KKaXc5Gf1bPywyMA3vROKr+bIO/DG51ozDBuV4FN71I=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=k+449tUPePaZkParDF6rvegoExwy/ijd25BJyaZTJpgzleDExf6so2zv2AeBRGBRNzV0/bltX2RS2yme0k0vUJNLXFH+tjstKPc+oCtOh18sOpg52rDpgz7tLFKfN49B16AymxNpuwQItGoLMWOaiCwsoKcOxFh9DfOhFJmHLlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=nmiYXkXB; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 425ER8Pb032429; Tue, 5 Mar 2024 18:04:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=sghqC+om+7KfQnUHnhcBPIALJGyNo7LhaapE291B5b0=; b=nm iYXkXBm7jZSjeA42OzytxgY+zrHhWjnWN5eYlP17xcH70zIVD87ELqKuqWpUUr3Q RRLsAwgkD4FrsojfOb2VkUNll1GKNIufLtc2xmAxZNxmh18QpxWZf/L093ZQxauc Ea4f9NdoHLamn6Tb8A/aa1KLsXKzNQTGNaRJ2kIFu5jUXymDxIQmomUQfWXZnn+9 QqMUTbrCd9TeppRhfpwiSv/p8Fij5fM+3/5BbCFkxnmWptAMRGsHl8NiT17vIwMM kL/8oeBxbiFr40fhPxOna3hxI5lDpiwaEjVdDHivHEST4xOdMhs5CwXI35KTT6FS Y7eJLPsZR2VoJMANmJCQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wp02898bh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Mar 2024 18:04:20 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 425I4Kqj010381 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Mar 2024 18:04:20 GMT Received: from [10.216.51.173] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 5 Mar 2024 10:04:12 -0800 Message-ID: <1a47c20a-abda-4493-a8f0-ff7b4e144d9c@quicinc.com> Date: Tue, 5 Mar 2024 23:34:12 +0530 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 0/3] Enable firmware-managed USB resources on Qcom targets Content-Language: en-US To: Krzysztof Kozlowski , , , , , , , , , , , , , , , , , , , , , , References: <1709657858-8563-1-git-send-email-quic_sriramd@quicinc.com> <4d2501a7-d56d-4736-95d7-41556166859b@linaro.org> From: Sriram Dash In-Reply-To: <4d2501a7-d56d-4736-95d7-41556166859b@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 2IOJRVrWpQ7_YUUjAOmM_nf0gKuKdET4 X-Proofpoint-ORIG-GUID: 2IOJRVrWpQ7_YUUjAOmM_nf0gKuKdET4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-05_15,2024-03-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=951 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 mlxscore=0 clxscore=1015 bulkscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403050144 On 3/5/2024 10:42 PM, Krzysztof Kozlowski wrote: > On 05/03/2024 17:57, Sriram Dash wrote: >> Some target systems allow multiple resources to be managed by firmware. > > Which? Why this is so vague... > SA8775 will be using it as pilot. Will include the target name. >> On these targets, tasks related to clocks, regulators, resets, and >> interconnects can be delegated to the firmware, while the remaining >> responsibilities are handled by Linux. >> >> To support the management of partial resources in Linux and leave the rest >> to firmware, multiple power domains are introduced. Each power domain can >> manage one or more resources, depending on the specific use case. >> >> These power domains handle SCMI calls to the firmware, enabling the >> activation and deactivation of firmware-managed resources. >> >> The driver is responsible for managing multiple power domains and >> linking them to consumers as needed. Incase there is only single >> power domain, it is considered to be a standard GDSC hooked on to >> the qcom dt node which is read and assigned to device structure >> (by genpd framework) before the driver probe even begins. > > This will break the ABI. Sorry, come with an ABI stable solution. > The plan is to include multiple power-domains and fw-managed property or similar in the device tree and fw-managed property will be deciding if we need some resource management offloaded to firmware. So, OS is always in control here. The decision making will be done in the drivers. Also, there will be no separate vendor hooks. > Best regards, > Krzysztof >