From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 E792348A2C3 for ; Wed, 1 Jul 2026 13:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912708; cv=none; b=FyQczLugMKDHxwsWkzNELm9JQzBzQDKOpeY/RvPnNbBGqS5d5JRI4KcurLsw0DdVz7rI9wJBcKWVgZkptbF1U2Y0FpRzIUYd/j+EQG+Yn7AlXQPRviunjhBKOKj75lnVCNt3AoSN/nDziJNl3z89iJnzEpcqoulVl76jpeLU94s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912708; c=relaxed/simple; bh=bP5KfU/0EvFpzUaA0IWBbLVnj4P0xljC3bpOzpSGDv4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZNJzuHTJUcQSWFSCPAT2cebyUqnfV8TR9T1tkh2Mlki75d9+WhZ87fT/XRhP5IcleXG18lZTKeKpWgoehp45w/5bTJf7Bevu9O8KSDHHrdYWqQkZeSJUucFZdodqoCHnCUyokNefyUGPSy23XO2LrSWUA7x7g5NGd51/7pp9Yio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=oKzsFzNT; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aheu+lNy; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="oKzsFzNT"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aheu+lNy" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 661A8rST763047 for ; Wed, 1 Jul 2026 13:31:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= wNaW08++vnLTFi1SsLSGWlzJVpLZiWA1rhZCbZvT7rs=; b=oKzsFzNTJKFZTGEw +dbmuPRNFK0epez/YQ8C8fHxvcJc6prV05IP5VHVd2DNOne0+d6uSx/k3giB0Gh3 ODRqpBkzXUIZF4Ch7FGQJ3Fe2nOS7GbuL5jxeTTrLK13fGV8GYVNApjA3DptNE8P oE2Gh5n43faByuq0PwBYL0S9ZPbWnNmDDkVzBObVBhzvOe/YW57D7s7HMlWOygKn C/rseP3uIiEkDyrIP8IUnk3qhPVIvLUxIzL4ONK64zmUmxUIH3Swh5GmHdXiFx9h 0Noo2gdkFUv/LOSsRsN8ABueob4pt0nygp6+JTox9LsbRO9L7jkSnLPJvFvDljSb QzAF0Q== Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f4jktcd1x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 01 Jul 2026 13:31:45 +0000 (GMT) Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-6a24cefef75so7251eaf.0 for ; Wed, 01 Jul 2026 06:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782912705; x=1783517505; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=wNaW08++vnLTFi1SsLSGWlzJVpLZiWA1rhZCbZvT7rs=; b=aheu+lNyvawOexkm+FpJSAtn29zC9F/hvcPRkp8Of4MKlFWn91UG/44Wa2tfp17V19 8OofGlQWCE1DYrzazzjAxSfzohs1qZe4hDq0e30ROeyERcyEZRQJei1Gp7kp3anaDUBS VQZrJ7ke5HVFhnqctVMDSeTdurf9ncIaNAjqzFe6YTdB88AgbFFyW2v0O0+MODdfxPP6 TW+kvkTmtsGV8uRY+pWJlr7Yo1RZzCJiFedtQ+i4vDQvjs7Y3FbzANK5Z3CxhEErIOk8 Il5y7WN4b+cNsNqD37VNtCDwSQKIob7UXWgxmn207nnZWYJDPy0tRp1HDM7eCqZCuEfB 2xNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782912705; x=1783517505; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wNaW08++vnLTFi1SsLSGWlzJVpLZiWA1rhZCbZvT7rs=; b=NskJcunz8sC+I8AJxGha3ObWGy4+iG7OnnKlg3UT1i0vtPrVPkIgdLJfJPvLpq3sBW 2keDWb1NrMex9cbf5P384qj7fSZTg49XskT+gtlW+B+UNRlOq+J1j+T3EzVJNCgVAbDb T0nTAF0NCdR7jI9Iy0HXibbWL3jVkHYlqDVQ48CuhAq3ypUII7z4o7JEGTuZmAos4HwG C4tGYDhIUSAQPhCGh7zPCsjSsahTlbezWvWALlPrYXF2Yv7o6rXvDV6PSAsL79NHqcs0 V8bAMtITAh7BMtRmNxUKBKV2onCjYnhQBtMLTiQNlfSV6uOdBzcsVQbFcwrms1dVmm71 jzkA== X-Forwarded-Encrypted: i=1; AFNElJ+UowHtB7zj92iLfSpC40Cl5ErYkhTYZWFmbomBPl944AazB7dxYUkmnE8djAszVYMPMvzejgYxREB+ECU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxt6AiEQl5y2bty4mnnMNuofihZ7TSVf0yqW/IxFuLZHGWgiThj hwlBk6rVENPxO4nW8QvKSQVjrTTcKErTaklTevGD90sOtuFcy/lmek8UDrsUkgj0WQYyidiYufJ dJqIk4es+cz4M3m2SLBoJLt7sxJ8d3Euc/QX2klPv36GdMZ8eCd4XaoF57rsMaX3Z6qg= X-Gm-Gg: AfdE7clPBBdLML40RdXGILg3WsQot17549BU7halO9DaTNn+Ja+fNb9deGG1IpnbCtp EjHg0isIT1ruCFTXoJPBeKx4zwajz9lp8GeDT1ZbijmFbC7HrPuOxisfRC/wjm3Rr5YbrOo+CqT MvRyOxbQar0nLViNcN+nZT21v9kda9Bb/oURdAJxJuNVWVzlVviR49FUvx2pcpBdU6rRi4o2uuR XR85KSDjFNzgk2Eurj/6NVqyMltSgFHzrZ57FDO/A49/RkYE6PesefMBixfY837AXDsEBEI42Tg aMkQIo3SvwwT8T3Lyf19mKk8G0kF57o9Xrz+CKZ/9PKg31zyNcYwEdliJ1SHdDQwj5aNJTk3bng WWevS2yDaqoC2RZGlAP0Z/pmhtZ3pYYAV4PE= X-Received: by 2002:a05:6820:330d:b0:6a1:7ed6:9de with SMTP id 006d021491bc7-6a309b4fe66mr369470eaf.3.1782912705155; Wed, 01 Jul 2026 06:31:45 -0700 (PDT) X-Received: by 2002:a05:6820:330d:b0:6a1:7ed6:9de with SMTP id 006d021491bc7-6a309b4fe66mr369458eaf.3.1782912704654; Wed, 01 Jul 2026 06:31:44 -0700 (PDT) Received: from [192.168.120.170] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1288d19df8sm277296666b.10.2026.07.01.06.31.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jul 2026 06:31:43 -0700 (PDT) Message-ID: <1ccca566-f804-4c4b-8d71-1f258380db70@oss.qualcomm.com> Date: Wed, 1 Jul 2026 15:31:38 +0200 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 v2 3/6] firmware: qcom: scm: Add support for setting Bluetooth power modes To: George Moussalem , Jens Axboe , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johannes Berg , Jeff Johnson , Bartosz Golaszewski , Marcel Holtmann , Luiz Augusto von Dentz , Balakrishna Godavarthi , Rocky Liao , Saravana Kannan , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Philipp Zabel Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org References: <20260629-ipq5018-bluetooth-v2-0-02770f03b6bb@outlook.com> <20260629-ipq5018-bluetooth-v2-3-02770f03b6bb@outlook.com> <175f7835-df18-4bc6-8267-ceef35696af8@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAxMDE0MSBTYWx0ZWRfX+rqmGsSRmpTD D9XNU2L4TcdjHJEOLyekLI4KtM01G6t0EB/nclxxdDAqpI6ZG/qJfyEjRS8EWS07jlfCxhY3r72 5KZS510KcKCaSYF4YLjurO8qr5DJr2A= X-Proofpoint-GUID: hz39wmUWeIP_4HdRti1wbW5H_ZN4eTw8 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAxMDE0MSBTYWx0ZWRfX24ObXDeAunxZ bp8glqt25sr/vVBJdQP112UsyY30Ad+u/iPgBOZCRzxckuPV9DEuCL9OcvzxRBZQbuYwntRP+6k 9J/PYt8fyeXpAmG92ZpDc+XabYM8Zc0c3/f8SbRV9K5NEPj1O5V95Ma4yqXbhkZKvt9zJEA3U5R m8yPv14xbBFUai4UCkO8N87igi109MmOx2h6zNuVP6sTbdZpFnmHQreK4Q6Tz9GnVvRnmWyHdDY NWA8aYjxsY87zc/sASdq+VP1wdHJ24XmBpoapDUZEvewmLoWBY6o4immkMi35NBP8cgb+Vj4WYi 1gHcYxALP1SS2t9QeQ+YZXoi751ozGJF36jT2N+kHFhdu+zerU31AgutfNPk8MTbxPE3pYtYAFn uavW/U4uLsFRHaAjeAbBffovtSnkL7AGjGGdtXuzDVyTsQLQSYrQLNhPJsYOXRqLcJ1w3OXJyJZ UnoVqhbRFM70mUo0MNw== X-Authority-Analysis: v=2.4 cv=R+wz39RX c=1 sm=1 tr=0 ts=6a4516c1 cx=c_pps a=V4L7fE8DliODT/OoDI2WOg==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=UqCG9HQmAAAA:8 a=zNuiAkW08ekSdzkv0MIA:9 a=QEXdDO2ut3YA:10 a=WZGXeFmKUf7gPmL3hEjn:22 X-Proofpoint-ORIG-GUID: hz39wmUWeIP_4HdRti1wbW5H_ZN4eTw8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-01_03,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607010141 On 7/1/26 3:15 PM, George Moussalem wrote: > On 7/1/26 14:40, Konrad Dybcio wrote: >> On 6/29/26 3:01 PM, George Moussalem via B4 Relay wrote: >>> From: George Moussalem >>> >>> The Bluetooth subsystem (BTSS) on the IPQ5018 SoC supports setting power >>> modes which are required to be configured through a Secure Channel >>> Manager (SCM) call to TrustZone. However, not all Trusted Execution >>> Environment (QSEE) images support this call, so first check if the call >>> is available. >>> >>> Signed-off-by: George Moussalem >>> --- >> >> I'm amazed changing this setting is a secure operation >> >> [...] >> >>> +/** >>> + * qcom_scm_pas_set_bluetooth_power_mode() - Configure power optimization mode >>> + * for the Bluetooth subsystem (BTSS) >>> + * @pas_id: peripheral authentication service id >>> + * @val: 0x0 for normal operation, 0x4 for ECO mode >> >> If there's just two values, maybe we should make this take a `bool eco_mode`? > > that was the direction I was going in initially but then thought that > there may be more (undocumented) power modes I'm unaware off so changed > it to u32. I'll change it back to bool. We can always change back if needed Konrad