Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2595798rwd; Wed, 14 Jun 2023 05:11:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qf8xvnziCDqqo7+NKPjMK0omPChkRjA0UFXghoKaPXZEXoZ5pAN3upYZS+Ny7N7KsvkBu X-Received: by 2002:a17:902:e845:b0:1b3:ea47:7972 with SMTP id t5-20020a170902e84500b001b3ea477972mr4381215plg.38.1686744710451; Wed, 14 Jun 2023 05:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686744710; cv=none; d=google.com; s=arc-20160816; b=Aac72iMMnGZny/WBschAKYZUbtS4wTw/i+yDTGu/wHFDEAlsoQy49dJgiuKqXjGEzJ dPLqt6h+klOEgtbyEDC7u0Yddx6uu61QCdC3XzgDbMFkCMFc2qJN7rxyGVOhgGnLn4Gr g56SOVvU5/mokdxnj7s6mTZwBbKEpCB8rskJSMfUAXey5WchrJMMquGeAnVx/WWSgAAg u8X8VYlfAmBEouiqk2k+1fHhftfK5aYHD/vTyBaxG2EUsgxKtGC1B7quBCl6Wj72kDVc fem/w6hdL4Vp2E+m9SBi9eGmnzfKOX9d958SIRCHiZf4hk2vTij6AmmoCy44GgNXM6Xw PwMw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a170902ef4300b001b043fb4083si10956377plx.16.2023.06.14.05.11.35; Wed, 14 Jun 2023 05:11:50 -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 S244356AbjFNLza (ORCPT + 99 others); Wed, 14 Jun 2023 07:55:30 -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 ); 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 To: , CC: Ekansh Gupta , , , , , stable 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Tested-by: Ekansh Gupta Signed-off-by: Ekansh Gupta --- 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); -- 2.7.4