Message ID | 1686743685-21715-1-git-send-email-quic_ekangupt@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1197696vqr; Wed, 14 Jun 2023 05:11:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Zhbxra6bwGY4Uwy/KTp5n1VEMEBmMPrBx+5zcnshNqKRXjL1Yiq1F9Z7TH0qhzoSkx3sU X-Received: by 2002:a17:902:db02:b0:1b1:d6e5:3dd4 with SMTP id m2-20020a170902db0200b001b1d6e53dd4mr14267294plx.48.1686744683116; Wed, 14 Jun 2023 05:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686744683; cv=none; d=google.com; s=arc-20160816; b=YX+K9SueJ03NqU/Y/wNP5+oW9St3yTx1fIBmWqF2bh3Cu/EgOxt3huSrud5435U1Q0 w/YucGbOiO0L/IP2cq9E3aeljH9GpQicFnS+ITXuYIvCYnGifudDZeLoVhqfdGd0dwZK QGgSRp4G3hMFhQtCwpRnzE7Rtq2YU5IRWeP/43sE4/Jm1c0uUqGpTYXlKoqiJ5vlM5yM 3qAnv5mIfP4NH6gLCtm+ka3EqjGe4BOtgOQMY4hp6rAQFIceIdny175N9KuvKP6bxrW1 yT6b9JF3kSx/7D5cidVVs9ENRGCRa3vLGMSFvRbHZYDfb+K4baFq9ntAc1UUmbjfsJPo f15w== 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=xANxmMV+If5BYmTNoEXvDus8sNSdbTM5CBa8Wbky/M0=; b=RopRM2PiaEIQ3paIIzZ+08oxMq7QpulxdamhcHHS8aAq1axRTrtspQC+YS0lkZ5edD YEa84e8GtpmLk+arrByFBiEGoMiwL5dWSL2k/lsvYGuPvl10HrfwCoOLbmDDOKKj8Ois TzX07oYI67ggN5HaSHD8CcTcrJ4zIhOxM1GDPLcdO70OpJ9uc+mFwZZMbJVaKD1rwy/x nxnJT/IR6cJO2vT2F2yvVcZC9W04NTCOTCnzFg6rpMdPxPuNogSBGiNG1Eic/CbRI9cN lkQefe31JMCdUWz9kUqcyrL4TNJQ5wrLAeLGhhiiIVvvbhWBYAueAGfeN6J1vw66NMOv JFzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CfKu+OtO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay6-20020a1709028b8600b001a97e24eb34si10514652plb.201.2023.06.14.05.11.01; Wed, 14 Jun 2023 05:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CfKu+OtO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244357AbjFNLzb (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Wed, 14 Jun 2023 07:55:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244426AbjFNLzD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Jun 2023 07:55:03 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B891FE2; Wed, 14 Jun 2023 04:54:59 -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 35EBSJRu023782; Wed, 14 Jun 2023 11:54:55 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=xANxmMV+If5BYmTNoEXvDus8sNSdbTM5CBa8Wbky/M0=; b=CfKu+OtOVlgcw0yCHJjklDFspQ1go5y/lK29RAef90APqvjJQCcmXt3XRjshPQ8MbKwd OWvpIEpyBffYbVDde4hIw51nAiTjohfATOvDfs38w+8KyLOTx4NPNGHkP6V1Qi5vqBpm fHQSMnSUtIXkEcEu+kETJ6ylaCIEvYJKyfSH6rJ1r6TGriddMcOdUclyJLBwUyf2Py76 I52xEA1pISwKPMehAKBndPHzyQIKOBIjGgfklrd/tuB/s8IiAQVmjaZ1JUtiVOejMJt2 aSfPWZBGJzEQoJ9Bb4cZqJogWu4DekiK1sCNAkl9vXh6oyxrwOTqVUtw19BpWHYBXN2y Yg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r71tvscgg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jun 2023 11:54:55 +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 35EBst6I011482 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jun 2023 11:54:55 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.986.42; Wed, 14 Jun 2023 04:54:52 -0700 From: Ekansh Gupta <quic_ekangupt@quicinc.com> To: <srinivas.kandagatla@linaro.org>, <linux-arm-msm@vger.kernel.org> CC: Ekansh Gupta <quic_ekangupt@quicinc.com>, <ekangupt@qti.qualcomm.com>, <gregkh@linuxfoundation.org>, <linux-kernel@vger.kernel.org>, <fastrpc.upstream@qti.qualcomm.com>, stable <stable@kernel.org> Subject: [PATCH v1] misc: fastrpc: Create fastrpc scalar with correct buffer count Date: Wed, 14 Jun 2023 17:24:45 +0530 Message-ID: <1686743685-21715-1-git-send-email-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain 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-GUID: R4rCMNCjX4WpPIP01mKNrPOm_J0k9ZeY X-Proofpoint-ORIG-GUID: R4rCMNCjX4WpPIP01mKNrPOm_J0k9ZeY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-14_07,2023-06-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 mlxlogscore=990 bulkscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 priorityscore=1501 adultscore=0 suspectscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306140102 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768679993066820619?= X-GMAIL-MSGID: =?utf-8?q?1768679993066820619?= |
Series |
[v1] misc: fastrpc: Create fastrpc scalar with correct buffer count
|
|
Commit Message
Ekansh Gupta
June 14, 2023, 11:54 a.m. UTC
A process can spawn a PD on DSP with some attributes that can be associated with the PD during spawn and run. The invocation corresponding to the create request with attributes has total 4 buffers at the DSP side implementation. If this number is not correct, the invocation is expected to fail on DSP. Added change to use correct number of buffer count for creating fastrpc scalar. Fixes: d73f71c7c6ee ("misc: fastrpc: Add support for create remote init process") Cc: stable <stable@kernel.org> Tested-by: Ekansh Gupta <quic_ekangupt@quicinc.com> Signed-off-by: Ekansh Gupta <quic_ekangupt@quicinc.com> --- drivers/misc/fastrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 30d4d04..37f32d2 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -1437,7 +1437,7 @@ static int fastrpc_init_create_process(struct fastrpc_user *fl, sc = FASTRPC_SCALARS(FASTRPC_RMID_INIT_CREATE, 4, 0); if (init.attrs) - sc = FASTRPC_SCALARS(FASTRPC_RMID_INIT_CREATE_ATTR, 6, 0); + sc = FASTRPC_SCALARS(FASTRPC_RMID_INIT_CREATE_ATTR, 4, 0); err = fastrpc_internal_invoke(fl, true, FASTRPC_INIT_HANDLE, sc, args);