From patchwork Wed Feb 28 18:49:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Unnathi Chalicheemala X-Patchwork-Id: 21101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3543348dyb; Wed, 28 Feb 2024 10:51:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOXHzskwl4q1KNXO2Q3cs41bJFX+JlIhBja3zW47LxkZZD9W0JgkeuhOTNn/B5rCSiWO2NkTXT0XZpgzQgftmgLDY5Rg== X-Google-Smtp-Source: AGHT+IHscInov4kSDESmrahAaxKrLH8YoRTR736AA0hdfWySEi1FctN0kqdoRxF6t4klYvzGj1j4 X-Received: by 2002:a0c:cc08:0:b0:68f:69bb:4b8e with SMTP id r8-20020a0ccc08000000b0068f69bb4b8emr5631512qvk.34.1709146299440; Wed, 28 Feb 2024 10:51:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709146299; cv=pass; d=google.com; s=arc-20160816; b=Jr9ThzBNnwzX+Er9OBz9+qTJFJyHoGmKEoCpFzfGeOtfaMxmCCPxfdOLggu91iYbDW ZB2NU8/AKVwLlo9AvRcVfJ9OMVyg5gS5B97074MEX0Z2V5mLr9AW/J34X4kUwxL8qgw7 zQOQXfIB395Uml0wQjXzMDw2vo/W2oCPPnw6a/2xijojnnFUl8n3ehoLJXIxwi3F1qjb dBTRzjO+pJutZZ0CNLPYb+2JIXGABbwcfpIoIRArEP9fDzRDHw3ALLhXhSUFtXLqiEYO VEo8WkG8znBcW03p0jmgRkxPTAwTS0Zv0UTWKNC6ArUa/nUWEM2Geut8e0orG+yhwilo efRA== ARC-Message-Signature: i=2; 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=jEZOciEw7QWJWNd6uZ3qYXpZbkzs1CfLSY+lK5A4LEA=; fh=vnGxVO582uqsGFQHtEnueznKyoH172hkZ54rScNFH4g=; b=Or5rTP+Nxgq3cwzqOALDHHXrthRBKp1fULpjml7IpXen4kB6MF9kseDgwtjnaMV6/g hrcnN4vkXldJFBm9dz6MgGmSr+7ImhIK3DX1GGKH1OqEvjxpKHOZajSyJVWjnb2UX/jz HSV6m98Vf89H1GwqFknXNaS7a1/aSHB26tpGPRkK/LELwB+BRBTFXG9cgbWtq5ipZR+g DDXqFW8Gh3gzQf0Z7G2bG0d/DN4odxvHhe3NJAmtNYFDM/0dbSe9Jg8Xdd3ocwUmzIJl KckAut0od8xhzL5wxCMNE5UHuxuFKoIKXEVBtg7IfHDEsyNfdFw5W9lLcCl331OGWd2W atDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fkJNYAkq; 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-85553-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85553-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 5-20020a05621420c500b0068f3a8597f2si124400qve.333.2024.02.28.10.51.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 10:51:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85553-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fkJNYAkq; 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-85553-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85553-ouuuleilei=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 C181D1C264EE for ; Wed, 28 Feb 2024 18:51:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB5B67442E; Wed, 28 Feb 2024 18:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fkJNYAkq" 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 8598A79B7A; Wed, 28 Feb 2024 18:50:23 +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=1709146225; cv=none; b=szsxO/auZjpJl7rv/p4tUB49aqPJ+rcd301oNgI3Xf+M1og9bk9x82owqVFpRsqle1aE7aeIZUmp5nNJQFHotC+BSm2Xa/cMvpG+t3WJ9h7aUQs2gOYQQftexkSR6YxCceO13XnFV3ZqPZHU/ijWGzMnmurS0Gc65DaYL8qLeig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709146225; c=relaxed/simple; bh=ztBRN8H9cDMaU+euBKWvMiwH9ff2ZLkBxBg/KHOXYYE=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=uGLeyq+Sqt4/NqxzVetELerVMmMZZq72vqkgKEL9qDUzHxx+qnMCIftXs7LnMHHIHRFO+W+WzTVMqdZllzhFDvdip1TALK3+U8fG/uztzVx3meMRgWPLQvbk3aaDs4zgpwAusDmk23eT9Mn6IkCxkZP3rGNMaLFPQ9rDZKQKx44= 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=fkJNYAkq; 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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41SAxLK8014965; Wed, 28 Feb 2024 18:50:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:subject:date:message-id:mime-version:content-type :content-transfer-encoding:to:cc; s=qcppdkim1; bh=jEZOciEw7QWJWN d6uZ3qYXpZbkzs1CfLSY+lK5A4LEA=; b=fkJNYAkqODqjLdDrd3CQdalYiseYPZ zyCPjKNzZplYyYPm9D8AGyp7sbqKEvu7dOpcXjzZ0cpbfjj1vwXa4sHnJ4XM9pUE qOwKLSCZd+yZm0ZVEa82uSWcO/cYVueXrMmhANBqaAoWjEWoWYqpmpGcr5ogf23V ju3R/PW290eMhpbwDkzXmU/2pfwPdlqe8cYD88PZhCXRyyHyFj3sQEbOO0BXQfBU 6VLKkUlCNgryb6uwJsd210K91BFO62WLo6SZNrhUHZ8DkFqF/Wm9LuAoPQGm7Keb wv4GYJf5shWPSqwZpdEERcsu2nTtmIa/oiA+YVlzR1D1OuZR4jwOvbww== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3whw3f232d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 18:50:17 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41SIoGtE013925 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 18:50:16 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 28 Feb 2024 10:50:13 -0800 From: Unnathi Chalicheemala Subject: [PATCH 0/3] SCM: Support latest version of waitq-aware firmware Date: Wed, 28 Feb 2024 10:49:58 -0800 Message-ID: <20240228-multi_waitq-v1-0-ccb096419af0@quicinc.com> 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=H4sIAFaA32UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDIyNj3dzSnJLM+PLEzJJCXRNLEyMTM4uUZBNLCyWgjoKi1LTMCrBp0bG 1tQBjQOlkXQAAAA== To: Bjorn Andersson , Konrad Dybcio , Sibi Sankar CC: , , , Prasad Sodagudi , "Murali Nalajala" , Satya Durga Srinivasu Prabhala , Unnathi Chalicheemala X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709146213; l=960; i=quic_uchalich@quicinc.com; s=20240202; h=from:subject:message-id; bh=ztBRN8H9cDMaU+euBKWvMiwH9ff2ZLkBxBg/KHOXYYE=; b=wF6h5fOIzi1uPnt1nMji/CsczdySbn43gvG+fGPq9UctMBHkims9V0FnOgT3HVEY39viZl22T YG7O4kbWDqHA9wdlEcukPTshA1/ICN80OqyYhPdKdS0SI3B6pJA0LQf X-Developer-Key: i=quic_uchalich@quicinc.com; a=ed25519; pk=8n+IFmsCDcEIg91sUP/julv9kf7kmyIKT2sR+1yFd4A= X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: -YCWjv494SNMppZTNZjw20PhkjcsSIEG X-Proofpoint-GUID: -YCWjv494SNMppZTNZjw20PhkjcsSIEG 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-02-28_08,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=826 spamscore=0 suspectscore=0 adultscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 clxscore=1015 malwarescore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402280148 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792169790470608820 X-GMAIL-MSGID: 1792169790470608820 This series adds support for the latest improvements made in SCM firmware (FW) that allow for multiple wait-queues in FW. This series has been tested on SA8775P SoC. P.S. While at Qualcomm, Guru Das Srinagesh authored these patches. Thanks Guru! Signed-off-by: Unnathi Chalicheemala --- Unnathi Chalicheemala (3): firmware: qcom-scm: Initialize waitq before setting global __scm firmware: qcom-scm: Support multiple waitq contexts firmware: qcom-scm: Remove QCOM_SMC_WAITQ_FLAG_WAKE_ALL drivers/firmware/qcom/qcom_scm-smc.c | 7 ++- drivers/firmware/qcom/qcom_scm.c | 85 +++++++++++++++++++++++++----------- drivers/firmware/qcom/qcom_scm.h | 3 +- 3 files changed, 67 insertions(+), 28 deletions(-) --- base-commit: 39133352cbed6626956d38ed72012f49b0421e7b change-id: 20240223-multi_waitq-4942468dc498 Best regards,