From patchwork Fri Sep 29 07:00:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 14696 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3842517vqu; Fri, 29 Sep 2023 00:31:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHT5Bq+BAgTfbbEGJoSsoaScSXXqEez/1OuKJ8p9DQqLxnFvCk4ci7k5ue3muLUmYx+tFqX X-Received: by 2002:a17:903:2348:b0:1c5:fab7:70ac with SMTP id c8-20020a170903234800b001c5fab770acmr4277618plh.27.1695972682045; Fri, 29 Sep 2023 00:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695972682; cv=none; d=google.com; s=arc-20160816; b=L9tR4vao+gH2Tim893MvS/4UIVTgMzF6cFRkpNCjsXpf7Brrs4KxmSmWjJTY5+Ct0F 7VE+DToIGz80QtzjXqEKEQyqU+4RcdkLBndIxgb4Q71ZCYYA621h8JXTRl7dN2AFXbpZ v0MKN3tXTJP4bQTdOYMsafpnfPq8sBVBP5kxrQUaFGjAIfMx4yPFEdwowCuQZJOIUFyW 491L1jcj84nDrmav9ly4wEz4vc4SI9iy7tZwGSNWqu3q9C/pGSZBRFtA8zyIOVCtfUOt TOg41nb6qyLBqU0SWNhhRuzGANRoJJ9JF/GTAJpfxq/tWstLQ0Y0fZd+nVtlHmf7owhG NRKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=dzNv6I8ssnUHDK3cRH/+aA2ScM8TjKIX1N+wXRxSrGc=; fh=IQ68kbvYFCSlyXdHKXkbdUfoRSl+ok1hAWwFRWAAo5U=; b=SP8RVJr6qAsejvJ2xPmtKyFmOacZR6ralQ+uY4LEo9xh1cnBat9inhirVEU372W1wz q94js61mLse/cdwIud1kw+WkRpFNd0xld26VPVPSoshVa2Q7sSf/h/Dkkh5WoiGWC2Dw Z4ZnUhwO23Qng3HD4DwSH9lJa7Ia2axU621eJctKIBZk1V4kL5QLDHI7oWpBoKMP3ac9 hXpjtJaP1PDI1Wp31DCnDVKZBy+aPk4+0WtJkTONU+zRhZpGVBocqI+4c/f6o/angib7 Cg/IZkVH8qxJQ9UWnmoRmhRkT7+Ihazrkq+ppKqp3Ex5a9eiIA4HuoizhRMOucF13yRP N7SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="R+uJ/JlZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y20-20020a170902e19400b001bdca6456c3si277691pla.46.2023.09.29.00.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 00:31:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="R+uJ/JlZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D9282821A170; Fri, 29 Sep 2023 00:00:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbjI2HAy (ORCPT + 20 others); Fri, 29 Sep 2023 03:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232519AbjI2HAw (ORCPT ); Fri, 29 Sep 2023 03:00:52 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED5591A5; Fri, 29 Sep 2023 00:00:50 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38T6knHI011069; Fri, 29 Sep 2023 07:00:48 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=dzNv6I8ssnUHDK3cRH/+aA2ScM8TjKIX1N+wXRxSrGc=; b=R+uJ/JlZbL+IshSSE3JgVJl3I9c2anhqnu6wTNb+LVepv81Yt9Sn1HRR4VEwrwiKlSWv B4umEka9co8LXk7XsI4PzlTy9K1o9YgjUoID7CEErMe9WgxNaWpp7J7X8nyUPjkJ0u2n 9R5SrKLwo3OW+6OppRMkeDxqFCySornIawy2FjpkY+Tk0OuD5FQkL79DkhiGp6+mmjbO e7cSyD+U5Xr9UDHmtH0/dNWmMTtxSrEZ9ZJ3ram4UvLrsg6T8jhlCP2HPgAjnGQ3D76w zcQzSRtYTLOJcuwiyhazlkRtJ8u5MbTU4H3jRdijDeaWngtvt9S+YDmhERADHoBzKEQd eQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tdhru0mg0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 07:00:48 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38T70lHX027229 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 07:00:47 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.36; Fri, 29 Sep 2023 00:00:44 -0700 From: Ekansh Gupta To: , CC: Ekansh Gupta , , , , Subject: [PATCH v1 0/4] Add missing features to FastRPC driver Date: Fri, 29 Sep 2023 12:30:26 +0530 Message-ID: <1695970830-12331-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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: ilzxDUG-4gRh_M40ux0JNz4m4WDsh4qf X-Proofpoint-GUID: ilzxDUG-4gRh_M40ux0JNz4m4WDsh4qf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-29_04,2023-09-28_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 mlxlogscore=501 impostorscore=0 spamscore=0 bulkscore=0 adultscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309290059 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 00:01:00 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778356250946924654 X-GMAIL-MSGID: 1778356250946924654 This patch series adds the listed features that have been missing in upstream fastRPC driver. - Add early wakeup support to allow DSP user to send early response to CPU and improve fastrpc performance. - Add polling mode support with which driver polls on memory to avoid CPU from going to low power modes. - Add notifications frameworks to provide users with the DSP PD status notifications. - Add a control mechanism to allow users to clean up DSP user PD Ekansh Gupta (4): misc: fastrpc: Add early wakeup support for fastRPC driver misc: fastrpc: Add polling mode support for fastRPC driver misc: fastrpc: Add DSP PD notification support misc: fastrpc: Add support for users to clean up DSP user PD drivers/misc/fastrpc.c | 463 ++++++++++++++++++++++++++++++++++++++++++-- include/uapi/misc/fastrpc.h | 8 + 2 files changed, 456 insertions(+), 15 deletions(-)