From mboxrd@z Thu Jan 1 00:00:00 1970 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 5ED8D3FFAB7 for ; Mon, 2 Mar 2026 15:57:14 +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=1772467035; cv=none; b=OzXULqgQsEyV3q9WIGBnDspYjy7z/K6JdtnEbJaEFV8Ldve/4y+JOaOQNLv6G/hkOYiNTKjsz4RKv9jXrEabV+n60+l1SkAYzPvPwtsiQzEJqnuXDtqJTdy5lUoSvuJd/LlOpUMYREq4GHO+OuufRauvR+dJ60uMwzjeLxvdlF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772467035; c=relaxed/simple; bh=3aHF1WvYb6gbVvXYS4rMRPk0dpmpxM4agexnoYdP0UM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mCPmVlOVr2NMsFAwMm7Q55xvZ0brwXeR2u9d6tiXm0EGkW1sWrzhO/rblr68odIeoEFhSgwgS/uuhWCuWvc5mVYc5mZuqgRvK3z8rCAEHaXCnuDy8t50328Jn5ryurTTAbM5QplLLtd+VwxB/0LScGAlz2fM3l275wTk0jq4Ol4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=a+ZZvVYl; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=HS2GHaDA; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="a+ZZvVYl"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="HS2GHaDA" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6229JtWe3742612 for ; Mon, 2 Mar 2026 15:57:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 8vyvR83xrrtCU77jvjKIBTD0soAKN/hIqxbrkw2O4Eg=; b=a+ZZvVYlo4wLtBeZ mODk+bsqfzDxlaQMCa5Nb/TM3dvekABo4uq/BUsHzK1Pb0vFDXQl9IDHpCrZrvan Gy+Oqm2ACVA27CW//s2cPoXfFPOUtdSrPpzsyN1BIONwz9MQl7n65UrxpQKhdCtZ paYzk8RKggGp0IvZ21Nf+jjsl87nnfG2fjcbI9h0HJ0zL0dak/Bg8uTF60f3gKE/ GPsd/zyrYpqTjI7c0lZLm1vajjB4+vKhSXvoatUqNzV5GVigiMR8e8VLxiV9djHR RRgRIbLG/ROGR6wFZN1JGbb+MS1rSZiv5ndWd/iZ8dbVn6ji/sccvremCddphhnA QbMf/A== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cn7trhb8g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 02 Mar 2026 15:57:13 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8cb0595def4so4325262785a.0 for ; Mon, 02 Mar 2026 07:57:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1772467032; x=1773071832; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8vyvR83xrrtCU77jvjKIBTD0soAKN/hIqxbrkw2O4Eg=; b=HS2GHaDAmpCVB7E8plO5prfc45y4hXfqNN47ZHe5SulyVi4JnWgHeKDsEQsyoKJ60P XrRVGb3KJ7TkBCaraRFPtpaLf/HmWZvqW1q1gtz1+qnbyhnvKPlQFwCP1v8xhcHEdafy Rc8/YyFQa54wZROC1PbNaebt+Z8vVaULBdyE2V4EaGJ0EnExAEwNIfs1SI1tyVX4GV5v dwQsJZ6HgjwrkHFVmZvBdzbR3t3k5VZ02K8ci925jCuGMFtCSOB/rXvePpsmaog7TLaH NlW3I/aeLKcOH2vHJQbBiopVde2RKK9SZtDcBUBRk1IhHs+aaYI/whFyZtzTn3AJrueR 3yvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772467032; x=1773071832; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8vyvR83xrrtCU77jvjKIBTD0soAKN/hIqxbrkw2O4Eg=; b=oY+CxycVJX06y6pIRGWaDx5zzr7qLhYLOgge/FoMBkCXEK3htDtwyT6K/KnfnPR024 1kYn7aVciBvC0CMiWJI2gejnzIh8yMBvm6yMwGoCbVrDbxa7Iy14DykZYClKeuSzceFk OouzaDUzBssOUxkhwEoqa3SXI9MLjc4GyV3J8Iok0qMeo5GIGwsSOfH9FdlvIFhb6wdS FlIHwWZtDxgKId2xyxIAJ7vsWyuCuF603HfW+eNi1XcErIL0g15nHQhifUMCdtCV7SFz wGSrtPVkZd7j+Uyen9/Y+45Xpb8Ch3vf9MsKoE5+3tL5DVBVBOq0e7gzCGd4gKm2U0x2 3UgA== X-Forwarded-Encrypted: i=1; AJvYcCUIVSm3YvVcpD/zg2T4VgaogXWeR8iM9j44E9V5YEC87s/ltJjH4giHw/jDVkDX7JUL0eHULTSIQ5pSOHA=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5uQcSm85ameVUfoLZ4/UqzfuXoRN4S9aHeCPMqTZnc6VZ17Ko s+LyC+d6uiXwthSNDg+V1SY5boKfasgYkmE5Ps1Rt7khjkrtR/bO/TSTVovCOIExZcYVq+BqwD3 gbSsxVthmPFCi+uqYSd9KctgkADHYCyxH3DTXnQhsMG1lOEBQ8KdAgxJjgSvbuCavE/U= X-Gm-Gg: ATEYQzzue7qz74IppPYWt15R69I34mLiiZicSt5HQiVNE9wKHTsE5xi8+O+Q/OHkaFY H3nwBVSAi2pM4nPOXRfaHaEQ7VQ7C99wjZcEQpF4hAYrxd5j++aTXaczAcE9WfeVuQ0jVb//rKd GdtBFRths2hYaEBvsiecZMhC/VMYOpKomc9nKTCHn4dKkLTOSIQmsbWHsGpH7kI0XO+QKoqF6Wx 5YOsXN21oewv9gFasugVp03XaFkyenk7wHQpuVSuFe/CPkf+I2ixpr1EAe8O+dM137C4wvx3Da8 UOQEpKzDIuB8scJ75G9UPGn3pp8CidY1lBjLdBCyhtBSSQfN7dDnWt6LJ1KnxevmgxFEV53WDAM tE3l7weqE4+B9NCFNY9FfZaxWApwP2oZBPqUPU372CwZsHf+b X-Received: by 2002:a05:620a:2906:b0:8c7:1181:779f with SMTP id af79cd13be357-8cbbf3f540dmr1944224285a.35.1772467032101; Mon, 02 Mar 2026 07:57:12 -0800 (PST) X-Received: by 2002:a05:620a:2906:b0:8c7:1181:779f with SMTP id af79cd13be357-8cbbf3f540dmr1944219785a.35.1772467031498; Mon, 02 Mar 2026 07:57:11 -0800 (PST) Received: from [192.168.68.114] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-483bfb296bfsm163572955e9.0.2026.03.02.07.57.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Mar 2026 07:57:09 -0800 (PST) Message-ID: Date: Mon, 2 Mar 2026 15:57:07 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 00/18] accel/qda: Introduce Qualcomm DSP Accelerator driver To: Ekansh Gupta , Oded Gabbay , Jonathan Corbet , Shuah Khan , Joerg Roedel , Will Deacon , Robin Murphy , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Dmitry Baryshkov , Bharath Kumar , Chenna Kesava Raju References: <20260224-qda-firstpost-v1-0-fe46a9c1a046@oss.qualcomm.com> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: <20260224-qda-firstpost-v1-0-fe46a9c1a046@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzAyMDEzMyBTYWx0ZWRfX5Qdu+4/YkhDh yoszU8PQ+X68SKPH0HiOV7mVU3fbNVYWW/fcscjR4aOtPVC8dnW4p1h1nfz5K60XCTtvTB0WcaH sq+nIbCtr3OkFBtyIdtJ+qtqCWvfxPE/4ZigU2OL3gaGgnI4dTnmkb3b2TQYpdrIn5aP+ha2zU/ 5tY/enq4LM6KT/wMOayncNCq7whJEH7TTBNfQPBXWbsbJLaahx9YXFYcWL644LFJe/GkHLqbPCe dohvxAwUBLPbwjKh40Mdh6uC6HoUn/oICWtmOaQugpj5ZKKu4ojH5LfedKHrRkIK3x0SYv+/opa B9801LG3vk9RYM8n3894qDvFjhC/NmIO1MlfqFgTi1DbveAlP5ANXrn6lnFgpM80k+yZPWeJUGS f6jNm79CEDEp/Mm+jj11W0bkG2GU3U/61M6KfmDGVXm5TzFDIoDwz2gmKlpYyy2ac8WhIxrs3lQ xHh2HqVHjjxP97FWmEQ== X-Authority-Analysis: v=2.4 cv=TNhIilla c=1 sm=1 tr=0 ts=69a5b359 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=ZsC4DHZuhs/kKio7QBcDoQ==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=9YJduu4mqnAt5a5FaXIA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-ORIG-GUID: uWujZJZ5A7ox5huU_4to7Bi2fVSGi5nX X-Proofpoint-GUID: uWujZJZ5A7ox5huU_4to7Bi2fVSGi5nX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-02_03,2026-03-02_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 bulkscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603020133 On 2/23/26 7:08 PM, Ekansh Gupta wrote: Thanks Ekansh for this this one out. > Key Features > ============ > > * Standard DRM accelerator interface via /dev/accel/accelN> * GEM-based buffer management with DMA-BUF import/export support > * IOMMU-based memory isolation using per-process context banks > * FastRPC protocol implementation for DSP communication > * RPMsg transport layer for reliable message passing > * Support for all DSP domains (ADSP, CDSP, SDSP, GDSP) To what extent is this support expected ? > * Comprehensive IOCTL interface for DSP operations > > High-Level Architecture Differences with Existing FastRPC Driver > ================================================================= > > The QDA driver represents a significant architectural departure from the > existing FastRPC driver (drivers/misc/fastrpc.c), addressing several key > limitations while maintaining protocol compatibility: > > 3. IOMMU Context Bank Management > > > 9. UAPI Design > - FastRPC: Custom IOCTL interface > - QDA: DRM-style IOCTLs with proper versioning support > - Benefit: Follows DRM conventions, easier userspace integration Can you elaborate this. Are we really getting leverage from any of the standard libraries that are available for drm accel? In general I would like to understand how standardization of this kernel driver is helping userspace side of things. Does this mean that there will be no libfastrpc requirements in future? If that is not the case then I see no point. > > Open Items > =========== > > The following items are identified as open items: > > 1. Privilege Level Management > - Currently, daemon processes and user processes have the same access > level as both use the same accel device node. This needs to be > addressed as daemons attach to privileged DSP PDs and require > higher privilege levels for system-level operations > - Seeking guidance on the best approach: separate device nodes, > capability-based checks, or DRM master/authentication mechanisms > > 2. UAPI Compatibility Layer Simple rule! you can not break anything that is already working with existing UAPI. > - Add UAPI compat layer to facilitate migration of client applications > from existing FastRPC UAPI to the new QDA accel driver UAPI, > ensuring smooth transition for existing userspace code What will happen to long term supported devices? > - Seeking guidance on implementation approach: in-kernel translation > layer, userspace wrapper library, or hybrid solution > > 3. Documentation Improvements > - Add detailed IOCTL usage examples > - Document DSP firmware interface requirements > - Create migration guide from existing FastRPC > > 4. Per-Domain Memory Allocation > - Develop new userspace API to support memory allocation on a per > domain basis, enabling domain-specific memory management and > optimization > > 5. Audio and Sensors PD Support > - The current patch series does not handle Audio PD and Sensors PD > functionalities. These specialized protection domains require > additional support for real-time constraints and power management Please elaborate, fastrpc support is incomplete without audiopd support. --srini