From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A047534DB4A for ; Wed, 11 Mar 2026 08:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773216405; cv=none; b=hD4K8xW3Bqw0N8IhLMfNssoHCDPQNPhnhbyyZALEc7kaIXj40kED09EDFnYaIEusITI5/LPBjZwLdlEHMIFV9aTINgI328dlXTDe0EqWkR5vnPYIZO4JqdX1tPnuJqWGO/azgEC5ak2iQbS8jlWxNYmL6HLvhJ3aUI5bCFuuCxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773216405; c=relaxed/simple; bh=I5XePahDdZxkT2lcI/2aGwvT7jVpioZ3NcNMQHdU7Eo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nEsxjG7ydjdDwJ21UBqPCl3Pkol1w5Z8QB9R5SgdmtKQ/+PjqAxVzNvyGpeDY3BodtTZvg7eEyy7/fAVOvNO3E4Pdaku1kuiZOQL/UumIglB+CU6l9UiW+xFqQi6RSVm6u+9LgEHfJywrUuxHdN6txhX1moCVSQjbvDTfNsZz1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=h5/Hjhhc; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h5/Hjhhc" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4853fd7b59aso17990235e9.2 for ; Wed, 11 Mar 2026 01:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773216400; x=1773821200; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=QqJVCEF9evLSw9CGf9v4iGyJ+/vqb8/nhU/YNtIqzkw=; b=h5/HjhhclbRrnH5/9ayteCfacKDvxrvJw4HAtGuduxqH7txBTyzUaQy8T5Svkngjnb N9eZtr5vmwuuV4Hl0eB4t6polvHUvwtti1ynhYBiGotkS7iQiLwoCl8C6W6drqqE5Xd3 igdmjQcZO83solffJQsbzwH9XME6z+zWqxtLBz4vdr2AXuB+yQX521sJmAXdOrt8YTSR kPSKuLuSMkIZgRowxjT3eaOvkoTmknh68nZPqzt3UhBau9kyK6iLxUMcYSVyTNCSuqAv nq81IKZD2bsHvgcYwP+B0FUnbAgTyj5tfHE5xp3BBkBwEjWaiKIa0OYs4QRQqkW/gFvH 8csQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773216400; x=1773821200; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QqJVCEF9evLSw9CGf9v4iGyJ+/vqb8/nhU/YNtIqzkw=; b=A4tJPFNjOAOeKC7zLfQnutEzg0Rxw/VXRJjRF/YlORwPP75HA2oeXtDpkwwrrlDV0W PQTzKMozbnNTk6AisJH3F0uovTyZUKOkVIEzkDA/J3CE+YO75ZDPPV9jLS1sj1Tc+C6C XRIgrRVQ+nQ1goKemq7nzOfgd5wLj6RYiNm4eWOjnHSOJi13/hLyLF/DrDJFhKD9Fkms vpE3i7/llngQ/xzlImz5NETbwXuK8Y/lSEwCvMCLZ/fqwVE6g850rwni86cea6LitloO O7UzRXopr8OcR7si0Z+DX82odGERAdfbL/jPhLTalx9kUyjLs79lJU69lHePT9rHvrl+ ayjQ== X-Forwarded-Encrypted: i=1; AJvYcCWAvEtXEAaJbRSI0l80RyMUFQD0xVfy3LcBQH963Ptf8KyujJsVgysc5JmZNXHh7ICi0//Iq99REXlwLbU=@vger.kernel.org X-Gm-Message-State: AOJu0YxPlM//jeUad4nck1pUNaQFAb2ba24p72kYueYGVjALKmpbCMDE VutCs2qLh02QdVLwX9T25IVPh+7n/HTfZ/MZZQZi4//2FEK4jeDIE0+RX+9Qpdwppr4= X-Gm-Gg: ATEYQzx8G1A3X8xvXX7N0nO5vkYQC1Vd4zIsZ56J9YLyoNWaBhaFpznwX8XqJIUcpvE 5mOH8yAUcEpxQP1ZfMlypNtml12Srld9blLLBG7EMbs6MtDxDWo8W5TtI9g0+htYUfZgxvShjZl bfVmrhSzdsImOp5jDkN2x6bjFzRY1oYmI0D1XaKxM/pKtdMu9/r01PNlOCg77S9xXEo8RZmKQLQ FSLaHtS9XgTAzIRGCK2ApZrduFnvxpp4bZhbtjTaACGvGh/QMCjcKnRc1K7C1fJD3yFkPnhavCw BagpNz/wshLBFEfYxZj9d1WqsUJOaBHyE4Q8yks36S9/qIfZ2dM/boIIBJ82tu2u5CjxkfBWV1O lg0nEkN8pfiVvX2A6OirWZ8KH/BvPe4A3xWjBzEfoHJ1F05UzCZm8vdHSi7oY7Zhr+RSJI7P7kN PjtxG8TJhAvf/84JAy/bH7P87J8JHXVbWqSqwQez189MrEow== X-Received: by 2002:a05:600c:1f10:b0:485:3f58:da6 with SMTP id 5b1f17b1804b1-4854b0a55efmr29718895e9.2.1773216399585; Wed, 11 Mar 2026 01:06:39 -0700 (PDT) Received: from linaro.org ([2a02:2454:ff23:4441:1c2c:7aff:fe45:362e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4854b66ffe2sm30730665e9.13.2026.03.11.01.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2026 01:06:39 -0700 (PDT) Date: Wed, 11 Mar 2026 09:06:34 +0100 From: Stephan Gerhold To: Bartosz Golaszewski Cc: Bartosz Golaszewski , Vinod Koul , Jonathan Corbet , Thara Gopinath , Herbert Xu , "David S. Miller" , Udit Tiwari , Daniel Perez-Zoghbi , Md Sadre Alam , Dmitry Baryshkov , Peter Ujfalusi , Michal Simek , Frank Li , 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, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski , Dmitry Baryshkov , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam Subject: Re: [PATCH v12 00/12] crypto/dmaengine: qce: introduce BAM locking and use DMA for register I/O Message-ID: References: <20260310-qcom-qce-cmd-descr-v12-0-398f37f26ef0@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Mar 11, 2026 at 09:03:37AM +0100, Bartosz Golaszewski wrote: > On Tue, Mar 10, 2026 at 4:44 PM Bartosz Golaszewski > wrote: > > > > This iteration is built on top of the v11 RFC with remaining issues > > fixed and the mechanism for communicating the scratchpad address from > > clients to the BAM driver changed from slave config to descriptor > > metadata. > > > > However: during stress-testing I noticed that sometimes a transaction > > would end with an error. The engine was indicating that a write/read to > > the config registers was performed while the engine was busy (bit 17 of > > the STATUS register was set). It turns out that we must not just > > unconditionally append the UNLOCK descriptor to the "issued" queue, we > > must wait for the transaction to end before we queue it so this version > > takes this into account and queues the UNLOCK descriptor from the > > workqueue. > > > > With this all stress tests and benchmarks from cryptsetup work fine. > > > > Mani, Stephan: sorry, I forgot to update the cover letter to Cc you. > Doing it now here. > > Stephan: I tried to use READ command but it would crash on sm8650, so > I went with WRITE. :( > No worries, thanks for testing this! Stephan