Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp553588ybl; Thu, 23 Jan 2020 03:45:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyrKldRUVsUCu3flcS3pl5BydMrh62iz4Jgs+LCWDPwoYb9Jub6ONuLYfX+GESiHHC86shD X-Received: by 2002:aca:1011:: with SMTP id 17mr10249872oiq.72.1579779921478; Thu, 23 Jan 2020 03:45:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579779921; cv=none; d=google.com; s=arc-20160816; b=S5gCE2gb/BSB9j4TeXOa/QTaDRLsbCDXUR2sRpMHHojnMyzt+UxjvCWY5002arkS4p 9JIiLxNVXS1j2yZuvyVVhzqzRXVOy6vqyP01LnBBToTS+IGgtbWAHdR+0ij5XiFEfGr2 vftkQ6V02jzEUeWt1NUHI+IOC8UTa2XLsLpgSo0uwU4m3Km+jAYyjd/9kSuCWcdR3n2Y H0JY3nyQIxkDdo3DcRw9ISIXecMz1DFDR/db+CgsThz67cQ0zLq3F2RBNl0vNoulFNS2 +TQ8UpL2ZmRC6dR1PUWruIICVfJL7HPcxHLIQu1NAhIc3WXPav5Zzq7LSyQxN9RsjvFJ T4dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nyiurIf26J2PnKEaG0CFQgYd31QfXbKBOura+Qp9DBM=; b=jWNn1lpkN25JoI/GqfGUxzJPyE3u7++gDUwv/EdKqOdkmbnAGCF2xMaKHc2rYaW1sV Yiv//Vco/hT0OfG2oa5dZJ4EGqVFPzK+bkHJgz1RphUAiGn0LGoUtDUCxEc7ygbfJUhl EsIPsveGGbAC3x7ZcU7T1j8J133VSSXI8y39JD9+iVXi1Pa4JPdZlUGOXTCg/0t209lY xWL3SC5rAGuRaDYF93BXO0YVSfYvJcaOpxRRx6+8kREU5JWz69/2PMYvvatMfCmzGHZ+ 2tscXs8kpy51OGJtROTXtvXoOPhsJho3u691WqQF62Zd3glQUjuAL09149GTtWII0R+/ 3ICg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=tFSNFy7T; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y186si716977oig.241.2020.01.23.03.45.02; Thu, 23 Jan 2020 03:45:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=tFSNFy7T; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbgAWLo5 (ORCPT + 99 others); Thu, 23 Jan 2020 06:44:57 -0500 Received: from mail-vk1-f195.google.com ([209.85.221.195]:34073 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgAWLo4 (ORCPT ); Thu, 23 Jan 2020 06:44:56 -0500 Received: by mail-vk1-f195.google.com with SMTP id w67so895399vkf.1 for ; Thu, 23 Jan 2020 03:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nyiurIf26J2PnKEaG0CFQgYd31QfXbKBOura+Qp9DBM=; b=tFSNFy7TaEacy7bRpPIqB4cdCI5aO5jI7z4Cz85Gpq+te0ukUI1F9tsIluuVi7pitp IASLT0XUDz+7mt6+T5PWGQVi2TyP99a4j7wI8IeGOK8IJfM0ZvZqWOVzMwjZa/SZIlRO UhjSe3iGotRv80qlMo4mh8woMNVDkRC7+S8hpJpGFGUCPWKYGpkLj7gJgZcNHyTPTi8N n7IT5cBKS3ckzzajq3S2TmVlfBqFqJibhUuToaaVHHQOKdGG9sxZIVOt+He66nhFu/qM xZnIkhCjLDz+TZB9Knu+i4BqsL7fdf0Q7KTUfWx0IVfeUvdoCcw3oUaaDvSb5pG4gw22 tC+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nyiurIf26J2PnKEaG0CFQgYd31QfXbKBOura+Qp9DBM=; b=RbVg6fEHBizVbfY0W7lXjDcRAiCQ3qHLv6PoSCPff3KxfJmE/8kuje/iwWIxq5MSDf IroGN0lFEVetLOpaCP3jgGPKXyR3PFSNZNBp4fucX/Hk2PCju00uZjYtQTrnPTG3dLEa 28H0qcNR45vevqg9/P7Wl+6s5Q10D0Kl0x+4LPyyeeGEImZ/DQ7A4JOAN+Og+At+z+Fj F4Jmk4ugNtVNk0XQimv4Nq3q7sK0Li3LtNm4BESoqsvPNa1RhDHBRcADvYjHsgUBUIBx heg19xmaqU9cLTW1T+va9w02PlzMirHigSoerFwaqJqQgx+7SebtYLs9nYawo60q4BWp hjSA== X-Gm-Message-State: APjAAAW0+sudXcOZYot7md9CGwmzH/pnujw6lTEK/ZWMxtSH+wzc2gu7 Wsk99Z8c4OsYkUxXk4iGl+MQryXsuAnB0x/IX4a4pl/2APs= X-Received: by 2002:a1f:7cc2:: with SMTP id x185mr9354470vkc.1.1579779895649; Thu, 23 Jan 2020 03:44:55 -0800 (PST) MIME-Version: 1.0 References: <20200116101447.20374-1-gilad@benyossef.com> In-Reply-To: From: Gilad Ben-Yossef Date: Thu, 23 Jan 2020 13:44:43 +0200 Message-ID: Subject: Re: [PATCH 00/11] crypto: ccree - fixes and cleanups To: Geert Uytterhoeven Cc: Herbert Xu , "David S. Miller" , Ofir Drang , Hadar Gat , Linux Crypto Mailing List , Linux Kernel Mailing List , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, On Wed, Jan 22, 2020 at 6:51 PM Geert Uytterhoeven w= rote: > > Hi Gilad, > > On Thu, Jan 16, 2020 at 11:25 AM Gilad Ben-Yossef w= rote: > > A bunch of fixes and code cleanups for the ccree driver > > Thank you! > > I wanted to give this a try, but it looks like CCREE is no longer working > on R-Car H3, both with/without this series. > > E.g. with renesas-devel[*] and renesas_defconfig + > CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=3Dn, I get the following crash: > Thank you for the bug report Geert! My R-Car board is on loan at the moment to another project. I didn't see this on our internal test board. I will track down my R-Car board and reproduce this - hopefully beginning of next week and will get back to you. Thanks again, Gilad > ccree e6601000.crypto: ARM CryptoCell 630P Driver: HW version > 0xAF400001/0xDCC63000, Driver version 5.0 > alg: No test for authenc(xcbc(aes),cbc(aes)) (authenc-xcbc-aes-cbc-aes-cc= ree) > alg: No test for authenc(xcbc(aes),rfc3686(ctr(aes))) > (authenc-xcbc-aes-rfc3686-ctr-aes-ccree) > ------------[ cut here ]------------ > kernel BUG at kernel/dma/swiotlb.c:497! > Internal error: Oops - BUG: 0 [#1] PREEMPT SMP > CPU: 7 PID: 189 Comm: cryptomgr_test Not tainted 5.5.0-rc7-arm64-renesas = #463 > Hardware name: Renesas Salvator-X 2nd version board based on r8a77951 (DT= ) > pstate: 80000005 (Nzcv daif -PAN -UAO) > pc : swiotlb_tbl_map_single+0x30c/0x380 > lr : swiotlb_map+0xb0/0x300 > sp : ffff800012313430 > x29: ffff800012313430 x28: 0000000000000000 > x27: 0000000000000000 x26: 0000000738e7e000 > x25: ffff0006fa5f8010 x24: 0000000000000000 > x23: ffff800011aed000 x22: 0000000000000000 > x21: 0000000000000000 x20: 00000000000e8000 > x19: ffff80001105e000 x18: ffffffffffffffff > x17: 0000000000000007 x16: 0000000000000001 > x15: ffff800010f5f908 x14: ffff800092313cf7 > x13: ffff0006ff0b4000 x12: 0000000000000001 > x11: 0000000000000003 x10: 0000000000200000 > x9 : 0000000000000000 x8 : 0000000000000001 > x7 : ffff800011aed9e0 x6 : 0000000000000000 > x5 : 0000000000000000 x4 : 0000000000000000 > x3 : 0000000000000000 x2 : 0000000000000000 > x1 : 0000000074000000 x0 : 0000000000000000 > Call trace: > swiotlb_tbl_map_single+0x30c/0x380 > swiotlb_map+0xb0/0x300 > dma_direct_map_page+0xb8/0x140 > dma_direct_map_sg+0x78/0xe0 > cc_map_sg+0x10c/0x1a8 > cc_map_aead_request+0x160/0x990 > cc_proc_aead+0x140/0xef8 > cc_aead_encrypt+0x48/0x68 > crypto_aead_encrypt+0x20/0x30 > test_aead_vec_cfg+0x20c/0x848 > test_aead+0xb8/0x140 > alg_test_aead+0x94/0x178 > alg_test+0x108/0x3f8 > cryptomgr_test+0x40/0x48 > kthread+0x11c/0x120 > ret_from_fork+0x10/0x18 > Code: f9402fbc 17ffffa0 f9000bb3 f9002fbc (d4210000) > ---[ end trace 272124cd4e3fd6f0 ]--- > note: cryptomgr_test[189] exited with preempt_count 1 > ------------[ cut here ]------------ > > FWIW, the same happens on R-Car H3 ES1.0. > I haven't tried investigating when it stopped working. > I stopped running the crypto manager tests when they were broken by > CONFIG_HARDENED_USERCOPY_PAGESPAN=3Dy. > > Do you have a clue? > Thanks! > > [*] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.g= it/ > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds --=20 Gilad Ben-Yossef Chief Coffee Drinker values of =CE=B2 will give rise to dom!