Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp672078pxb; Thu, 12 Nov 2020 13:21:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzD4k6ARQNu4yPPUyof72JAq9zYb/+aKjYq7tDxqq1/QyFzcWIXOtpEIA2FMPMuBE1RKYg5 X-Received: by 2002:a17:906:b01:: with SMTP id u1mr1284471ejg.427.1605216098510; Thu, 12 Nov 2020 13:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605216098; cv=none; d=google.com; s=arc-20160816; b=0BQ2sicnskfV425BUvYVzTsD/yX+3LdRFJcL0cNCTXJlTTMTaDCDIxX6eFRMlf0ngY tQ5wzXnqOmbkNMkj0OlHarr6wsNNm8ne/ooXbTnilyLuI+n6HaHkNYP3nhwEPpmTvs4O zsAGS9NKU26sXbqDgb5SJxZJsMYlcJBpZjKd0GF4MjFLys7ZccLjJQtircVzZ88VVYep AOaXs8KPHD7aN20TNVThakqsF+6cqvf4Y4U/MwW4WQkONk819aCSiKpc5sB59mOWQ2ug CNRVxCewLEbW1v7M2CIAXAKEGoP7pOEuQcKzVwEclq07+PpH48OVvXkLibWix/2psSIU GjIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=68Rfn9RPFeE/Ay79piO111T4Fhq5zb7ohwzqCtZBUhw=; b=nn9B1F46XBPMaIOYkFvf/8B7Y2uHCfxsw/JvqWRnyuqdqbBw4cXxxQd0JYJCKLr9/i e3703nECxle7bgMXysLFFJLBL6h6Gsde2yjREvWEhCTrwWuhNvnIIBhTT9yfy0flEeRB 3vPxEbVzIELdxZEfFwvLIeRkunsM6KrOZ/wx0zkd+FNImXrTXUB7KkxqMbOn5CCPvzty XWtqaZo74oDqsfiQJ+yCJ/6aQ238upl9YYQ+mHkc/uWTMVrLCCyUjXRVuL94W+Y7ttl8 h/T3dmSXbbp3ztJ0ZbnAtltlfq62+xAy3xx7wn7Gvvov7SGadOB9ZhV7sMV5lxbVMmS3 Lfig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qfaaKBjf; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si4443709ejy.327.2020.11.12.13.21.13; Thu, 12 Nov 2020 13:21:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qfaaKBjf; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727338AbgKLVUQ (ORCPT + 99 others); Thu, 12 Nov 2020 16:20:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:45096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbgKLVUP (ORCPT ); Thu, 12 Nov 2020 16:20:15 -0500 Received: from sol.localdomain (172-10-235-113.lightspeed.sntcca.sbcglobal.net [172.10.235.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD6FE207DE; Thu, 12 Nov 2020 21:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605216014; bh=ZrdSWeCv+VTEWbiteMfAvcDeEOsrjDrldbzblKITiec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qfaaKBjfc6ZRGN04CTNVHwbEGkw0Fa/DtCsJsKh8VVrEawy4LJrgE5c2GiCslkveb hc5wyC/xaNv1+sfkTh2aDKjDfN+PHwiU79Lo+03SLYRvQhT6pW+PCTJSo2Lq7/FVZZ vF67u09KktRBdPUX1Y7jthU2Apbtx43HqwwZ63+k= Date: Thu, 12 Nov 2020 13:20:13 -0800 From: Eric Biggers To: Konrad Dybcio Cc: linux-crypto@vger.kernel.org, Satya Tangirala Subject: Re: Qualcomm Crypto Engine driver Message-ID: References: <20201023170003.GC3908702@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Konrad, On Thu, Nov 12, 2020 at 09:26:30PM +0100, Konrad Dybcio wrote: > Hi Eric, > > First of all, I am EXTREMELY sorry for my long overdue response.. > > I just wanted to bring up that piece of HW so as to offload crypto > tasks from the CPU, but it ended up being slower (which I suspect is > due to bw scaling not being implemented, but I might be wrong, maybe > A53+crypto is just superior..) A while ago, I benchmarked the QCE on an older SoC, and it was much slower than just using the ARMv8 crypto extensions. So I'm not surprised. I don't think QCE is really used anymore. But almost everyone uses ICE. > The goal is to have the phone run Mainline Linux *at least* at > functional parity with the BSP kernel. Both ICE and CE support are > welcome. > > Thanks for your interest and the patches you sent. There is more > sdm630 (and not only, keep watching :D) work coming. I suppose you > managed to boot your Xperia by now, but if you had issues, you should > try out my v5.10-rc3 branch from the repo you linked with the supplied > ninges_defconfig. Then you append the DTB to Image.gz and create an > Android boot image (or put Image.gz+dtb into an existing one with > abootimg -u boot.img -k Image.gz+dtb) and the phone should boot. > > Thanks once again for your interest and apologies for the time it took.. I'm already using your v5.10-rc3 branch, but ninges_defconfig isn't working for me. (Though I couldn't find the firmware file "qcom/a530_zap.elf", so I had to remove it from CONFIG_EXTRA_FIRMWARE.) Instead I'm using a kconfig based on https://github.com/SoMainline/linux/blob/marijn/android/arch/arm64/configs/defconfig which is working for me. I haven't been able to get a full Android userspace to work, and currently I'm instead just replacing the kernel in a TWRP image and booting into recovery. It's enough to get adb shell access and chroot into a Debian chroot on the userdata partition, which is enough to run android-xfstests to test the ICE support. Earlier I tried AOSP using the instructions at https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-11-0-0, and also LineageOS using the instuctions at https://wiki.lineageos.org/devices/kirin/build, but neither worked. That was a couple weeks ago though, so I haven't tried the very latest kernel with full Android. Let me know if you have any suggestions! Thanks, - Eric