Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp384799ybh; Tue, 10 Mar 2020 00:16:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsqejelhDQ8a2RXdvcMQSFrzMEmUKzk5H+9r4pDt3Oncvrq86odK4sBHgIbx/jDPA0CHOyV X-Received: by 2002:a9d:5e8b:: with SMTP id f11mr16069037otl.110.1583824589047; Tue, 10 Mar 2020 00:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583824589; cv=none; d=google.com; s=arc-20160816; b=pMONz3ud5Xz2YBhk4GTpi+CGxwnKHojtgnXS4BQrSmJr+fszTWVwPl1mhB3Jjh3CHM D+jlRXnQE9VzGEPPR36TEu+LpgDpAxA9mlxRoIUEZNEqmUVLsrwmAGPvibG7TkcwJpK5 Auoony1dOy5kKiBwDG3c8Buih4QV5HjvCSvAkmoLWpyZWkHaBwy+MhG2YwLAaKkvmkhd UYLiwzgnanrbC+fLweLLPqSb/tEPs8305Qy22ZSBLVBpgvcQ63mWZaTJvpc4DNFaJYYn 08L/Rq8yesi2NUIlCe4wnrhrcDg9BWB7dlzMEdeWq1sSeMrWa7qgDKGaIbxrRaAnFFDA Ldgg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=MZ71MZyeJ6XYXT2UKfrEEtb3dLBehdehp35SHHmIpZY=; b=Cn/CRRU1yaBIvE/tj9vU1aHAhksW2L0I4l8X35zA6FHn5pFh/pDIG85XdVUpGU3xiz VuGEMs1WHeJrKhgS/FgU8P/UGJFUrHdJq1QPsj+5E+5C3ifoswWzj4qKfZrzr/2ebpZl OOXHNNqL2KcIlz0wA36clNAaRTmfciDGq/0gsijL6DWPOqdLrLL9S+LHVzvRIAYOAHSf gtS7yBKxlWvZVZSmj1btMMNcWbJ9fa/unxJyt0hzAMkVhy1U9YGxA4DHY6upzf4y/kBI CI23Vfi8BU/bYLPFIAUbVo3TTiWb2QdJ1C1Upzulo2JMCMj7t9pcK8J/bFHrrSTsTocm ZcdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=niIRT3U0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si5165112oic.80.2020.03.10.00.16.17; Tue, 10 Mar 2020 00:16:29 -0700 (PDT) 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=@kernel.org header.s=default header.b=niIRT3U0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726195AbgCJHP4 (ORCPT + 99 others); Tue, 10 Mar 2020 03:15:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:56406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgCJHP4 (ORCPT ); Tue, 10 Mar 2020 03:15:56 -0400 Received: from [10.44.0.22] (unknown [103.48.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8879B24673; Tue, 10 Mar 2020 07:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583824555; bh=lHRdvjrBWbKdwVhG/zcme4K4mmqQu2LwA0HzjDZGbLs=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=niIRT3U0U6AadRwhIfPrL668ZV3NJ1udRnHJRuBQuuFQHaLI8FxweBaVRDLb2Az1m 2nYP69i+q/qnmRhy8pWcgkys/6H6Dle4XcW5nK0ekC5h7J7U9erfsE4L/v33g4zQ6R rQp3Rzbo8kDn52qDlg1c88lf3l8eW/8VIRp/Hn3c= Subject: Re: [PATCH] crypto: caam - select DMA address size at runtime From: Greg Ungerer To: Andrey Smirnov Cc: linux-crypto@vger.kernel.org, Iuliana Prodan References: Message-ID: <8b235eef-74df-f435-cbc1-f9231b93ea09@kernel.org> Date: Tue, 10 Mar 2020 17:15:51 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Andrey, In further testing I am still getting dumps even after reverting this change. So maybe this is not really the problem at all... It is happening much less often - it used to be pretty much every boot (with this change in place), with change reverted maybe 1 in 10 or so. Regards Greg On 10/3/20 4:42 pm, Greg Ungerer wrote: > Hi Andrey, > > I am tracking down a caam driver problem, where it is dumping on startup > on a Layerscape 1046 based hardware platform. The dump typically looks > something like this: > > ------------[ cut here ]------------ > kernel BUG at drivers/crypto/caam/jr.c:218! > Internal error: Oops - BUG: 0 [#1] SMP > Modules linked in: > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.5.0-ac0 #1 > Hardware name: Digi AnywhereUSB-8 (DT) > pstate: 40000005 (nZcv daif -PAN -UAO) > pc : caam_jr_dequeue+0x3f8/0x420 > lr : tasklet_action_common.isra.17+0x144/0x180 > sp : ffffffc010003df0 > x29: ffffffc010003df0 x28: 0000000000000001 > x27: 0000000000000000 x26: 0000000000000000 > x25: ffffff8020aeba80 x24: 0000000000000000 > x23: 0000000000000000 x22: ffffffc010ab4e51 > x21: 0000000000000001 x20: ffffffc010ab4000 > x19: ffffff8020a2ec10 x18: 0000000000000004 > x17: 0000000000000001 x16: 6800f1f100000000 > x15: ffffffc010de5000 x14: 0000000000000000 > x13: ffffffc010de5000 x12: ffffffc010de5000 > x11: 0000000000000000 x10: ffffff8073018080 > x9 : 0000000000000028 x8 : 0000000000000000 > x7 : 0000000000000000 x6 : ffffffc010a11140 > x5 : ffffffc06b070000 x4 : 0000000000000008 > x3 : ffffff8073018080 x2 : 0000000000000000 > x1 : 0000000000000001 x0 : 0000000000000000 > > Call trace: >  caam_jr_dequeue+0x3f8/0x420 >  tasklet_action_common.isra.17+0x144/0x180 >  tasklet_action+0x24/0x30 >  _stext+0x114/0x228 >  irq_exit+0x64/0x70 >  __handle_domain_irq+0x64/0xb8 >  gic_handle_irq+0x50/0xa0 >  el1_irq+0xb8/0x140 >  arch_cpu_idle+0x10/0x18 >  do_idle+0xf0/0x118 >  cpu_startup_entry+0x24/0x60 >  rest_init+0xb0/0xbc >  arch_call_rest_init+0xc/0x14 >  start_kernel+0x3d0/0x3fc > Code: d3607c21 2a020002 aa010041 17ffff4d (d4210000) > ---[ end trace ce2c4c37d2c89a99 ]--- > > > Git bisecting this lead me to commit a1cf573ee95d ("crypto: caam - > select DMA address size at runtime") as the culprit. > > I came across commit by Iuliana, 7278fa25aa0e ("crypto: caam - > do not reset pointer size from MCFGR register"). However that > doesn't fix this dumping problem for me (it does seem to occur > less often though). [NOTE: dump above generated with this > change applied]. > > I initially hit this dump on a linux-5.4, and it also occurs on > linux-5.5 for me. > > Any thoughts? > > Regards > Greg