Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5021708ybl; Wed, 22 Jan 2020 08:51:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwDZDKmTQxqEzBWOIja8QimRQHT1sIxvIe3a6jNj5untpo1w6Mupq//7lKDHoexYDaDcU/H X-Received: by 2002:a9d:7f83:: with SMTP id t3mr7751030otp.115.1579711907688; Wed, 22 Jan 2020 08:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579711907; cv=none; d=google.com; s=arc-20160816; b=z19CHNJnmRrOqrYoz+geUZYKV0UEd0/5UMCxZZch/aVlTp5jvIUGsGDDofWixxRd8H 2i8+DnozjSJAWqIjTPQa0TAqSZk4f6idQDGtDU8L7aQzgJjGUnu3rbcn7mBXTad+IA54 Dt9eYfmJRJMFJVaMvi9hqjFxoCfVgT+VV0Wm0KD23/jwGVKowVF8E3cgsyHRTZq+tFTQ CXkhNydzQXH5jSEMPPuQtid7ee0MG76aVbJQdXerWl0sidfcpMmQOISl2pqTYXOQn8lH U3wsItCon+EW7W2IWSmYcf/SjAYAR1bGIeGFIfNA/jKAgcsUoBhDCdmInrUdX4X7q6sW n88A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=YgHrm/eRDAbATyHCYt7XJCqYc4ngWaOB9tO9AQpkPhI=; b=GWRggZeIFrE0w8US7scxAGk2Fuj7WIR64npEREjVjrOzxNbR2kJD7wn6splBp14/uD hqPUwbuLMdVWbMkHL+awqPe/LEmOdHh+oSGBLRoTpeCxWzqLA2PqKUTNsPnyOezgL46K WKLmCL6BMhdOCtR41RHunxcI/n3DHxgjvWi+O3UjlWhWHDju52L3crqxYNu9NTEx3MFY wVfYrEPV5ysL4YknqGhjSiL66a93fvFFR7rxNFTU91MoR4SJi5RzOSWVh2MykFigk7uf JO+tO+0eb9DpYM+/nREEZjPQ+55PL7f7fFfYuk6dCwU+WxRlLsoM4AQW1/9bQ0q6HSTK LNMw== ARC-Authentication-Results: i=1; mx.google.com; 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 u12si21139866oiv.13.2020.01.22.08.51.29; Wed, 22 Jan 2020 08:51:47 -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; 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 S1725970AbgAVQvZ (ORCPT + 99 others); Wed, 22 Jan 2020 11:51:25 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:39588 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgAVQvY (ORCPT ); Wed, 22 Jan 2020 11:51:24 -0500 Received: by mail-oi1-f194.google.com with SMTP id z2so15091oih.6; Wed, 22 Jan 2020 08:51:24 -0800 (PST) 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; bh=YgHrm/eRDAbATyHCYt7XJCqYc4ngWaOB9tO9AQpkPhI=; b=lb6sgzkcwUpkLL5f3YM0CGVZmIwwEUBgeSN8aEJyMW9UUo4nCBXLQcUpwf5Ct7p37R isp+DPrPNjxp8br6T+HRUwOBlLI9xmXKX3/oJN+EGqenyGaEWNOMPsGNcOjRoijwxiiA zrzxjKt5LMvx/hVSZSVWWPt/DwEDWHCmjI+XRNz47goY0KYetE2IfwMaCoGgHEgJcQId SAtxgwb3dP+0FYkpT5qq6BODOuQT4sN7jT0dV4tfnqPGCUqc4kO0MRpQGqWfId2IKWCX lVkPyhs5yfMxXwx5WJWmdYLLrMmcXRGfAla54eB2K0RY/zfdJjFE5L2v300QCIgG/Atv 8AIQ== X-Gm-Message-State: APjAAAXBnWi8Wz+YXXYUKLV/33kc/IK0hf+8qNnQ90bEWyD5LuSTS+/Z /BFXqHvtTm1tfF5cwdgpk5qXHvD7X44l/mbvNX4= X-Received: by 2002:aca:1a06:: with SMTP id a6mr7125489oia.148.1579711883817; Wed, 22 Jan 2020 08:51:23 -0800 (PST) MIME-Version: 1.0 References: <20200116101447.20374-1-gilad@benyossef.com> In-Reply-To: <20200116101447.20374-1-gilad@benyossef.com> From: Geert Uytterhoeven Date: Wed, 22 Jan 2020 17:51:12 +0100 Message-ID: Subject: Re: [PATCH 00/11] crypto: ccree - fixes and cleanups To: Gilad Ben-Yossef 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" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Gilad, On Thu, Jan 16, 2020 at 11:25 AM Gilad Ben-Yossef wrote: > 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=n, I get the following crash: 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-ccree) 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=y. Do you have a clue? Thanks! [*] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.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