Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp229604rdh; Tue, 13 Feb 2024 15:22:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVtojn7KeJpSwZZ35+8k9Z6H0Loh8j3oSAz3g3x9OTQKNjDV2Ce2QoMyJJHhsA/4cewBK0E3EhXvxIHhIUyGA1PAEGnn1CbpuYWw5tFOA== X-Google-Smtp-Source: AGHT+IFHzUEEufgVp65NfdBYfyEZNBvpzd5iREtikBOCH/z72OHRUP6uk7/N7e4RW7Hw0lsRoN+c X-Received: by 2002:a05:6358:8094:b0:17a:c976:c143 with SMTP id a20-20020a056358809400b0017ac976c143mr981313rwk.12.1707866520712; Tue, 13 Feb 2024 15:22:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707866520; cv=pass; d=google.com; s=arc-20160816; b=LddFFT9SGlw1WTxNjl3/1gs07M1aFUzwPs3VGcLsufMkgm/lH7LwJTdqhKsBOuVlMV nypJ4+KrJFp5zD4s915LQKPc5A2mLKIv+Fi9l9QIhMftL8+QqdyQyFQOgMeNlMk7YnfE Oq1HkYJGkJei/fpjNYyMFB+vt8fR/UMFLH7ZabRFb1khb4btcT65+ZxApUa7vQDsssil /BAGScNtWcFfYyl5qdakap6WoJoov2GR7J0t5ea4YgOV9vED9vXioVR4t5ArqWUCVA2r I5sjymbuk2WwB9sZymMz+5Wadv6UQp00QVTS60JIKT+Nc1Y2r+EgKP/+5dWdz5SHMwE6 9a4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=kS0BuS/dFc0Sb2CDmjSXKeRKMVaweomB8kr69lr3DUI=; fh=nKDdEecJrUvCMuiioD17XLVi8aKX5jDPpK5mJmZO8qU=; b=jiilWJRbfTTAr6sD5u64txWpkSAixm2a2nrnFLcCa5OarivIP12h/nu1C79sxfdwm0 PlOT3LxdXl8doppgNIql6m5P3wtWJ+DThWs0PHza/g2LBCZ+BaVs2sLxChEj7jeyWuuK OLKoV0awlM/HEvXgi2pj4xYD/I5ZdthKUfPiMQ92ukyg2w8hqg3PMQ9XjgQjVefCNyNC fSistDaxVurUmNNlnww2tAfolnnGuLFVSoHtoHaRQQheT/PdN/pHwvVudo1HVwaOTcMj C1X65K5AD1M97Rbf20sFWGQGqckcZy+NEanYWfihqhTLMrhyf+7csGdsfkOczyEFsaR2 SuVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IYveZ237; 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-64492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCV+s/qM1QfoyQ/xH87JTXkcAse8pjFb03YhclF7/H6q2sFgdennFCKmVYxnDJL+KxU3Y1XZDRCwZM2HJSyE9dVfkBPauxqo0BW1Z0yIhw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v11-20020a056a00148b00b006ddc43211bbsi7626399pfu.62.2024.02.13.15.22.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IYveZ237; 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-64492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64492-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8AA18B2BD30 for ; Tue, 13 Feb 2024 22:50:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA9C6313C; Tue, 13 Feb 2024 22:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="IYveZ237" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 CD8636310E; Tue, 13 Feb 2024 22:49:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707864559; cv=none; b=lLDL71mF/gGaJ+uYT/tWcDORvxMTZetx4JfZfOgrb9NM4171ETajiO3FWriEqvFFhC92GTjup8dOPBkm2FUNaUpgqvlem0V4RAE1CnGa7hHC5sVuN4G16hzQx2uhpijERlHDC9bPoaA5eOSe6Fz6TPYU95lEP1WBwBdi8eAJlyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707864559; c=relaxed/simple; bh=jHvv+4ryYbSvF7PPwhAN75HK+TodxoZw2ak0Ibxc0XA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=f9nfOLhtiNRbhKXwnZwDJXRUuoPMzzRHnC+aRa4RW7pqeHkzkoqlKzkbxOnGRmQEKPcg7fylDE82vWfsO87IoZX+Yyi2xn4oZw9rpqDIC7XNqfDeJtLiLI6/ol68ITlVrjVShNOKqKCymwNToEtGigEQXW42DnbRqvbj6FE0Msw= 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=IYveZ237; arc=none smtp.client-ip=205.220.180.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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41DMNqvB013597; Tue, 13 Feb 2024 22:48:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=kS0BuS/dFc0Sb2CDmjSXKeRKMVaweomB8kr69lr3DUI=; b=IY veZ237BYo3/8kkpCqtX8a0sQz3ISSeSw1tccp3RkOlE6Y43Axf71iYjuE2NSieSv 09W7xZATnKZfM+C7VArnuqvb/mqOn8+hfN6Irq8zT7seH9rqT6SAMcGkUu2FCZlF Iprk/CyP+3OLlBJ6gS+QTOsqPHtdI5JD74oarLbPAp8Rs8Wf4ChGdUWXXRJTMSf8 aQWUiCHRcr+QQBQPOPQ9bXOB7u5GeOXd7AUq+/CrKHcVQsTRQyNlcat5kB8mndON n1cHkAmUFWFO5DqBIWsyb73MUimvr2IeLhKT/zWMxDS4aAH5cOsWZgwidmCYpwiR dderqNLjSn7fbZJk4sFw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w7yh329ba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 22:48:37 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41DMma8G004283 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 22:48:36 GMT Received: from [10.110.76.255] (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.1118.40; Tue, 13 Feb 2024 14:48:36 -0800 Message-ID: <289ae266-c1a4-796a-1f87-387d8ec98646@quicinc.com> Date: Tue, 13 Feb 2024 14:48:31 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v15 29/50] ALSA: usb-audio: qcom: Introduce QC USB SND offloading support Content-Language: en-US To: Takashi Iwai CC: , , , , , , , , , , , , , , , , , , , , , References: <20240213005422.3121-1-quic_wcheng@quicinc.com> <20240213005422.3121-30-quic_wcheng@quicinc.com> <87wmr8y6hi.wl-tiwai@suse.de> From: Wesley Cheng In-Reply-To: <87wmr8y6hi.wl-tiwai@suse.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: CPkrbzsESQIWkFFv2CJithY9DWfBhg74 X-Proofpoint-GUID: CPkrbzsESQIWkFFv2CJithY9DWfBhg74 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-13_14,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 mlxlogscore=666 phishscore=0 spamscore=0 malwarescore=0 clxscore=1015 suspectscore=0 mlxscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402130179 Hi Takashi, On 2/13/2024 2:59 AM, Takashi Iwai wrote: > On Tue, 13 Feb 2024 01:54:01 +0100, > Wesley Cheng wrote: >> +static int __init qc_usb_audio_offload_init(void) >> +{ >> + struct uaudio_qmi_svc *svc; >> + int ret; >> + >> + svc = kzalloc(sizeof(struct uaudio_qmi_svc), GFP_KERNEL); >> + if (!svc) >> + return -ENOMEM; >> + >> + svc->uaudio_wq = create_singlethread_workqueue("uaudio_svc"); >> + if (!svc->uaudio_wq) { >> + ret = -ENOMEM; >> + goto free_svc; >> + } > > Do we need a dedicated workqueue? I don't mind much, but an own > workqueue isn't usually needed unless specifically required such as > the request quantity control or isolation. > I think we can remove this. I checked the QMI interface implementation and looks like they are running all the notifications on its own WQ, so doing duplicate work with queuing to our own WQ here in qc_audio_offload. Thanks Wesley Cheng