From patchwork Tue Dec 3 05:30:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 13891725 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6A13E6C607 for ; Tue, 3 Dec 2024 05:31:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F235A10E0DC; Tue, 3 Dec 2024 05:31:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="erFGbFwJ"; dkim-atps=neutral Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id B8D1810E0DC for ; Tue, 3 Dec 2024 05:31:03 +0000 (UTC) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4B2IvONG008173; Tue, 3 Dec 2024 05:31:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=ic8z5LOI5QMeynbuU6TBrj pC8vFyuvDqS3CTuzVa5XA=; b=erFGbFwJ+R8ODzyfbo4uUTbmc+PAerteKN61IH z449+yPRNE8sM7K/0TDSvRp6Z8hAkUMiYk0bbZ0BbzItfMYzLnq/TpaxGdZiNI4R HYmLeP5XudjGzDMh+XcDRfWvrFFrV046kjk136mLVZx5h7Bg+771OTD0mmylBoRz G4y5qpnVbQdE9yzugcjOWc7vIN40PSR43qN3XvS8LSeWBwW+RH9mu97utHfGGSHy F2guoEiej3KuK+vIUjHZaK974cl3hM3tfrkj2jBUuM9ONmy4uVovUppQrg0tKrl2 FwK0xY6Fi+Ulj+hIecrNXKLYiOVhxZrUi7xvPxAqh8n7f9yg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 437sq66ykf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Dec 2024 05:31:00 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4B35UxCd014317 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Dec 2024 05:30:59 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; Mon, 2 Dec 2024 21:30:56 -0800 From: Ekansh Gupta To: , CC: , , , , , Subject: [PATCH v6 0/2] Add changes to use session index as identifier Date: Tue, 3 Dec 2024 11:00:46 +0530 Message-ID: <20241203053048.1690069-1-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.34.1 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-GUID: PYRpJstUNwMcvG_f5S-HE7DeRNYH1Yrx X-Proofpoint-ORIG-GUID: PYRpJstUNwMcvG_f5S-HE7DeRNYH1Yrx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 impostorscore=0 mlxlogscore=824 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412030043 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patch series carries changes to use a masked session index as an identifier instead of process tgid to support mutiple PDs from same process. Patch [v5]: https://lore.kernel.org/all/20241202064806.1164800-1-quic_ekangupt@quicinc.com/ Changes in v6: - Add single-line comment. Changes in v5: - Remove mask and just modify session index. Changes in v4: - Use GENMASK for client ID mask - Add a new patch to rename tid and pgid as client ID. Changes in v3: - Modified commit text. - Removed idr implementation. - Using session index for client id. Changes in v2: - Reformatted commit text. - Moved from ida to idr. - Changed dsp_pgid data type. - Resolved memory leak. Ekansh Gupta (2): misc: fastrpc: Add support for multiple PD from one process misc: fastrpc: Rename tgid and pid to client_id drivers/misc/fastrpc.c | 58 ++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 28 deletions(-)