From mboxrd@z Thu Jan 1 00:00:00 1970 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 F03E6329E79 for ; Fri, 28 Nov 2025 12:57:23 +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=1764334645; cv=none; b=bcYOuI2L2bkz8Xf3XVN9xouOWA9u11Io4oHKSxnLRBCIYR+HExuetLupdlCT1rYnWH92wX6bl8dFLCzeejrQkhbyXbAgqCl0F6QQ6w9YXDVctzgcNLwuM4IKdwQpxfXax/W8h7GW4Sqor4EsGPeT/MMnV6d15I5casbDfjo87Pg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764334645; c=relaxed/simple; bh=Phg6H+8nPm5k0Q558yIc97aSgJoiWcWIP+LnfjeaZ+8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JfQjW82h8h+AipaVSrXYqDEWV5Fs+a+1Iea3kEZb2RiWBiaF7E7ehdWX/3UZlEi1kW0/N+1asjDSnRUMIxz2AfXG42YiFTRRC3d9k/3s1ScYbu9tIVhBGF7SKZ5OBLCNQ7MROpuqWvRBld3vB7ZAXjxb07YJuP0KH+NV4v3kvXo= 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=lk/Wrfxj; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JgWp7+CQ; arc=none smtp.client-ip=205.220.180.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="lk/Wrfxj"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JgWp7+CQ" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AS8OMrp3967413 for ; Fri, 28 Nov 2025 12:57:23 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= T4+S1KsCR+oTu8smc9oP0UxTPmQjSIc96c8vpuCaAbo=; b=lk/WrfxjzDy5T8LV +Pz4WMjA0eeMW2573oRzz4R2Dxggzi5ipotdOi+Z6DfUzMAOlURK3D2obZTqAsPy xfxrmwOsL2tK/PXd/iGqw9ED1QbtX8tYu9uxaQn7TWkQ7Uypa8A5Az+DeJOMfM4D VKhcFCim3pQB5c1LDR1/Z3pXqT20GaAZtHjrD+f6XOhXZuFC2o/Q5iWDgx48BCi7 BmABnK07rjDZv5kLK34v3tWUtkZLSnJwLAeIHULokd53Kyox2TkJnMWeUp9zqI84 W2ScLTPeOdsuQraiut1iXppI8B9rhhEBhBZ5aULFRvEKMArMDwv5yJIEDBwnVzm4 jQXUuw== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4apkv5kk1v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 28 Nov 2025 12:57:22 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-4ee05927208so5572471cf.1 for ; Fri, 28 Nov 2025 04:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1764334642; x=1764939442; 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=T4+S1KsCR+oTu8smc9oP0UxTPmQjSIc96c8vpuCaAbo=; b=JgWp7+CQuQi9510LBSSqAXaVqVCALIkRAuwopHTwMQYQ7RrXiq6MDA6SQsDaAhUsZ/ lq47uEMkQFHvJU28EGmZgc9QPKyx+90zVcoRH7zh3Wd93AgMpcWI/tYkYP45mKw2Hr80 0/qCZIiX+86RlHDEvVJolzuQ8vN/qw5mTir7OkovmHfVWm6EL897sejKgEc3fd1K4I71 w3nmIMdmsdpwpsocw6lxq+G1loOR0gC8oYzkCrY5kI9DLQQUj9B/jg23mtYLCJuy10eY 0D4NWrGGnydN2h+ez5KnQ8BbgpnojuOE45lY6KAZl3S+dTdqd07xInjvy28zJxkOTP6K IDhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764334642; x=1764939442; 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=T4+S1KsCR+oTu8smc9oP0UxTPmQjSIc96c8vpuCaAbo=; b=s5BpnUKe5yir3oVGHK9d/pRyO6hR3J5iG/4v+PGE183F1iJb2FX19Q/jfZrxTm7jOW aKKQ0X3lJGOCsWK/PBQWeEemoryLBfxTsCz9CKxqbeuxd1Z8YV4krddNU9BNa+6PYGgT k4RLprxDa0sZ6IZq30exnqIobTWgbhu9lV7YmVJoXzxPFIw0BcP9jpj4QyZGrG5Kie45 92A+jtZd+Ds3WkDBslt1qZpv5leI0dm7J/tUo/mN/RERYhq4N/A8GYdccpRjIqdPLqz3 uLeUnlBPbvCvZ3MBQKtS9xVRoqXOPYgCTidBkyZGvd0Yunib8iVvZiEkJUEXlFILqv5/ WIfA== X-Forwarded-Encrypted: i=1; AJvYcCUz4xCov4ajP2v+WF/kIANV4wcemY6GdvGpiGRnx6xzdUQ6xX295qzUqcTR9ipk37qQtbVanely0gA=@vger.kernel.org X-Gm-Message-State: AOJu0Yy1so1ATJc63UIqiRHBUwoKsQU+8PDqnzRZ/b0GTICCMY63CbVi STCgFp3ljq7aUccrWZIatgQ/4ZP/86i8LMK2yAdGj2RV+nm6rMaunm/c1X38FxiEQly6/s4s1ZY bVCumCcIyadpFGnk0f2Z2L3Sown81X9XmZ+RV5MGrlbhpiofzTAyVhp9AJCzAiRc= X-Gm-Gg: ASbGncvRrKv5ka9Onb4rPkSD3mnWlUSkdBUgdS66Kjhkkd4OhhRannTu194xoOdmf7Z iCfpObewyiw3R7aTMNXivoDwqOe+dllZvAPAAGjXfoD8Gebl0zcIhF/626JfCP8r1y/H1WhY1Yt aLgYgiDlY5mOpVsEBaorkgQWu3MCL1CD0Dh3lxnRaQqrN32jwrIwe0wXXKO75KTh6QcV/yNliMy Sec7lsm6U879sNIxh0K71rHmSsgxqCjEFETBGtzHuZlIUIfUS7y0FVJFXjO97CeI0bi6MDXUSkT 4kR0nqB5rWQmCurB8HlgTj2Oq6KVl7RnEYLyXHnAubjbEVsimsA0jB6o2WI9Id9MVTnhmKUrB2t nVU0y+D596fk26QJeIU/vYtiB63YMSuTSn9ItLcBWra8I0hOdMuc+IFZBj1bRRZQv7/Q= X-Received: by 2002:a05:622a:211:b0:4ee:1588:6186 with SMTP id d75a77b69052e-4ee5b7badc4mr265850281cf.11.1764334642329; Fri, 28 Nov 2025 04:57:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDeoOKipkkD6z6uDYBWbGsDCociwucSXrzeeVHv4vzgh2zwyR3EFUyJx41RNOHudMy5Znk+Q== X-Received: by 2002:a05:622a:211:b0:4ee:1588:6186 with SMTP id d75a77b69052e-4ee5b7badc4mr265850031cf.11.1764334641913; Fri, 28 Nov 2025 04:57:21 -0800 (PST) Received: from [192.168.119.202] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-647510615c0sm4352008a12.30.2025.11.28.04.57.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Nov 2025 04:57:21 -0800 (PST) Message-ID: <183b845c-5fd0-44b9-8133-9741acc94cd3@oss.qualcomm.com> Date: Fri, 28 Nov 2025 13:57:18 +0100 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 11/11] crypto: qce - Switch to using BAM DMA for crypto I/O To: Bartosz Golaszewski Cc: Vinod Koul , Jonathan Corbet , Thara Gopinath , Herbert Xu , "David S. Miller" , Udit Tiwari , Daniel Perez-Zoghbi , Md Sadre Alam , Dmitry Baryshkov , dmaengine@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, Bartosz Golaszewski References: <20251128-qcom-qce-cmd-descr-v9-0-9a5f72b89722@linaro.org> <20251128-qcom-qce-cmd-descr-v9-11-9a5f72b89722@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: wXf3sbIlh4IIgEQV6RRhxlPQ15uCCYl- X-Authority-Analysis: v=2.4 cv=O8k0fR9W c=1 sm=1 tr=0 ts=69299c32 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=LOu_IrZLGVboqkKOeDoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTI4MDA5NCBTYWx0ZWRfX8QORJ8zgcbKX hV5gaL8VZS0Sslk3gJvltxD8l9sW3FP1Xx3oIV+AS1trNu1RavWTjdx2hu4Kmr8PXiH6qEjxo0Y 1HHIvc4ooP5FPeQaKbudyhJVFoFXa8Z8IR01h8+AE63qJGyAO2K43fuRjiYrTgxdwSNxdQ1nJVL g2PAEj6xq0NpYmFWKMTEnzmTZd4FKI/EUTo12gIiWC6ApwAZnnim6OvQZrJy8vOo9OAUnKtevcz yoGHBWvoo7w5M3h7ubKUmVvmf3Ki2jw2VZaZc06Rplg4/6b80xQQP5YKKfBlZEjq+PIuDQgtBAu vZTmI+JcTPSpnsNo/LG5xj3+p3H+5KKQjzeHp378w5EYmm+4IBmj8HRc8x/viZ6mIREZEc+o0JT Ajstkv3lCBOc3JCgN5o+6AInW15wWA== X-Proofpoint-GUID: wXf3sbIlh4IIgEQV6RRhxlPQ15uCCYl- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-28_03,2025-11-27_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511280094 On 11/28/25 1:11 PM, Bartosz Golaszewski wrote: > On Fri, Nov 28, 2025 at 1:08 PM Konrad Dybcio > wrote: >> >> On 11/28/25 12:44 PM, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> With everything else in place, we can now switch to actually using the >>> BAM DMA for register I/O with DMA engine locking. >>> >>> Signed-off-by: Bartosz Golaszewski >>> --- >> >> [...] >> >>> @@ -25,7 +26,7 @@ static inline u32 qce_read(struct qce_device *qce, u32 offset) >>> >>> static inline void qce_write(struct qce_device *qce, u32 offset, u32 val) >>> { >>> - writel(val, qce->base + offset); >>> + qce_write_dma(qce, offset, val); >>> } >> >> qce_write() seems no longer useful now >> > > I prefer to leave it like this if there are no strong objections. It > reduces the size of the final patch and also - if for any reason in > the future - we need to go back to supporting both DMA and CPU, we > could handle it here. alright Konrad