Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp252403lqp; Tue, 11 Jun 2024 03:36:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5v2s3YM/Zt8EjN+zjycXe5DxGF/L40AGzcSR2sX5tjXlI6+vx524QzSDpdiQu372bNcrE3lIWS1WXN4YPTtA27KzJ2kKlbgMFmcaxIw== X-Google-Smtp-Source: AGHT+IGna5jUzlJLskQLbhx2LoQgCIKoZWwVCMtarortRZfkfKftE3H7Rx8M1ZB6jP6Klakr7jvA X-Received: by 2002:a05:6359:608e:b0:19f:2c7e:a217 with SMTP id e5c5f4694b2df-19f2c7eaa15mr949250855d.16.1718102166159; Tue, 11 Jun 2024 03:36:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718102166; cv=pass; d=google.com; s=arc-20160816; b=L8tqf7CPgTcno2wHs6pzPixgjib8yV7LFIWiiHKKiu6tE0fyFMY+bD/daD1AXGYhK7 2fhhqUhx8ugyIIC9FqIrmoLOdBCR0pELr/rb/EpUgc2NrrSyMRYP+ON8mFu9Vu/Wl3GQ cMhFUU6xExHla6vdhW3FdjDvQAlfVc3l5V34MH91vXOA0R930h/6mqHS9JvHNj5t/GbD aY5PHH0kHknGcz3FjE7OiH1WJILlAT3U3HAAGvYxR+LFajwQrIUKk+S1YzxRSG28c5Bc /9G0a8CRlpY3oc2iBBqzKnQa4onY0opAsj7sOXKUqPFcBwytakjpLTBTXwW2Kjj28/u1 cF8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=I8sos9rwYrHGggl0FTEN/sBPPo4Gs9YHOVw24pJX/PE=; fh=MUx/oed4E/xEap45JbBE8Ru/ZFHx2fm5ck5zeVUtPvk=; b=acSWA9d6P0kEMlzS+ehb08c85MpdIhdzYbDEI/jxZRoQK3gJvsQA0xdMiFJoD5tQgu F8T8dojGF+Z5hXPYceDvQoqptho/mr7RnV4fxZpuYiaJehIdXdBKwS+d43z2vWKaWSeb RdVlala8NB+6TffnXCOEkjmYAUdaPVZ9JxCSux0+dcbDMu/jA4RRtnjxE1/BjMuh2yTj VqP4FcY/6rZlp2yE1zk7cjzlZ0q2cJxfukP/5sWwaCDnuaAyktlc/5V3x1ZqAqYmzDsa episnTiEk8b4hiEEfpNcw5wdssGF8Z/EN1vc40BlzlR1JW1U3cOFeSvfDUkur7IkenRG pYfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QSyBTThh; 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-209655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6ea0aadde0esi4882405a12.509.2024.06.11.03.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 03:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QSyBTThh; 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-209655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209655-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B0A70286121 for ; Tue, 11 Jun 2024 10:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B695417B4F2; Tue, 11 Jun 2024 10:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="QSyBTThh" 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 A12A5178CE2; Tue, 11 Jun 2024 10:35:11 +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=1718102113; cv=none; b=Y3im5q6mYFYMrfJcemPqt6/iEy6r06hDearKtp+M71itpnhKr1Izu8rL8c0UY+Sb2K3XFgh/idsrMz0tPSHmrJbThxl6pNY9dOCKfWq44ptv5ZK5v0j5MySmSloOzcDIV5hquELQ/l9jJc5zQixBw7BF3frto/A8IU2jjgV9flE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718102113; c=relaxed/simple; bh=zmhrDFAwSbpUuS9aK/E87bsz61HgB2a7egVTo8Sb3IE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DDyGVcjDWHNlzMWoWJL2K5J8OfjUHp//6wETVTTCIjlatTyoWPErRPEPWWf7Vwwz8+dM1CmIZsWEkvVYr6sNOp2zlblZODILEOF4YctJo3r5XKRKOKpQe44rq3xhLFGD01Qh9CT3QGL0TDTg35wEziMZPciwdq8M6hQ+K41zBq4= 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=QSyBTThh; 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45B31iJu009027; Tue, 11 Jun 2024 10:35:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= I8sos9rwYrHGggl0FTEN/sBPPo4Gs9YHOVw24pJX/PE=; b=QSyBTThh9WWvFlq7 9E5ilgh89d/ycQ04kjOugyDsSRIc1/hjoOnshyq/SoZsZRRykGXBHbagQOgHmIpp 6Z7WyjdpVwwpxqqwUtJrLfyQzZbGfNwvLBbgH/Zd8edWypfKlaEZxccGEBFmQ8EG nrDydGHOwJ1jGVagRunNx2LsnKLXh8pDzbQjwpmtO1YcRuStHYXevSMqwO8sD2/W N8UiM3fSjWtrjh3QWsGBA1Zjn3TNNAQ/fU8edYNPJpQqbPjpD1W6LxnmXrt0D9ZC yyLPiZh7sI9tU2/OQJpNNBU1pfV2k1NHPKOskD+iwoNEiC/PyRBEZuHEwYq/JkhP ABpsAw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yme8rxju8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2024 10:35:06 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45BAZ5bq023094 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2024 10:35:06 GMT Received: from hu-ekangupt-hyd.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.1544.9; Tue, 11 Jun 2024 03:35:02 -0700 From: Ekansh Gupta To: , CC: , , , , stable , Caleb Connolly Subject: [PATCH v5 4/7] misc: fastrpc: Avoid updating PD type for capability request Date: Tue, 11 Jun 2024 16:04:37 +0530 Message-ID: <20240611103442.27198-5-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240611103442.27198-1-quic_ekangupt@quicinc.com> References: <20240611103442.27198-1-quic_ekangupt@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: vdBU4_mg4q1yOo5Zd5m0K6d6GjRNotip X-Proofpoint-GUID: vdBU4_mg4q1yOo5Zd5m0K6d6GjRNotip X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-11_06,2024-06-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 suspectscore=0 bulkscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 impostorscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406110080 When user is requesting for DSP capability, the process pd type is getting updated to USER_PD which is incorrect as DSP will assume the process which is making the request is a user PD and this will never get updated back to the original value. The actual PD type should not be updated for capability request and it should be serviced by the respective PD on DSP side. Don't change process's PD type for DSP capability request. Fixes: 6c16fd8bdd40 ("misc: fastrpc: Add support to get DSP capabilities") Cc: stable Signed-off-by: Ekansh Gupta Reviewed-by: Caleb Connolly --- drivers/misc/fastrpc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index c033865d8059..96c19f4919fe 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -1707,7 +1707,6 @@ static int fastrpc_get_info_from_dsp(struct fastrpc_user *fl, uint32_t *dsp_attr args[1].ptr = (u64)(uintptr_t)&dsp_attr_buf[1]; args[1].length = dsp_attr_buf_len * sizeof(u32); args[1].fd = -1; - fl->pd = USER_PD; return fastrpc_internal_invoke(fl, true, FASTRPC_DSP_UTILITIES_HANDLE, FASTRPC_SCALARS(0, 1, 1), args); -- 2.43.0