From patchwork Wed Jul 26 07:35:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 13327547 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4AFFC0015E for ; Wed, 26 Jul 2023 07:38:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbjGZHip (ORCPT ); Wed, 26 Jul 2023 03:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232895AbjGZHiD (ORCPT ); Wed, 26 Jul 2023 03:38:03 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E7932D4F; Wed, 26 Jul 2023 00:36:11 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36Q55GGv010023; Wed, 26 Jul 2023 07:36:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=m9b+5Gq8yMg9eoXXcnMA5iUgneZ9clnsM+KE3aEAK1A=; b=cVTUbz2bOFFMHzkD9Nzw/V7a2VxitM4+dwMlBl3iBBxuZOekJ56GQ2k4L+yX87jGUUHe CTmfoJEEDHOlJPx1FoEUxtegv9BP6EgtFSpN3Zs9pk+bdEjBo3WtysXSRDf5OekW7ZBY 6I/IyeoY+4v6xR1pZ+OHoTYVp/JGNNFGIurAnI6dsSPyOvMohmkAfiiOQGld7tx/fvuq 1GBZ2uE8eTXfRIyTCGplYjF3I3mQi1yaB4VfZTEk0zIG5ae5gBQU6zf+aWPFojAMD8l4 RlNE6BBFQWNoH5GaqQ2Dtszx2012ytw2PTnYZwQxjKb5UTO0imn5aE3MM9rjZ4fXNCTu 9g== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s2cf8th74-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 07:36:07 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36Q7a6hj015261 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 07:36:06 GMT Received: from ekangupt-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 26 Jul 2023 00:36:03 -0700 From: Ekansh Gupta To: , CC: Ekansh Gupta , , , , Subject: [PATCH v1 0/2] Static PD restart support and remote heap management redesign Date: Wed, 26 Jul 2023 13:05:57 +0530 Message-ID: <1690356959-1968-1-git-send-email-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ZZcsO_XJsM41BzvOVSkdTy6jowfIUZSv X-Proofpoint-GUID: ZZcsO_XJsM41BzvOVSkdTy6jowfIUZSv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_01,2023-07-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0 mlxlogscore=763 lowpriorityscore=0 malwarescore=0 phishscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307260066 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Static PDs need to support restart feature where it can be restarted affecting other PDs running on the same subsystem. For this support fastrpc driver needs to handle events of PD down and up. This requires addition of a service locator to get the event notifications for audio and sensor domain static PDs. On different events, fastrpc needs to take care of cleaning up resources and notifying the user daemon process. Ekansh Gupta (2): misc: fastrpc: Redesign remote heap management misc: fastrpc: Add static PD restart support drivers/misc/fastrpc.c | 386 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 338 insertions(+), 48 deletions(-)