Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3420448pxf; Mon, 29 Mar 2021 01:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRZumCR/7nAi2YrhySbfIYlfYFzoj5sfwPqLmLIuINBSJu0z37QQ9Ym6pp1LG8fXHFHIZI X-Received: by 2002:a17:906:4d18:: with SMTP id r24mr26715534eju.493.1617006756963; Mon, 29 Mar 2021 01:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617006756; cv=none; d=google.com; s=arc-20160816; b=EObfYT2vRhxXDDDsQqFQDlUmvgwYPRBCMi8yq4R4wakxUGasW1bmIkMO9Rhvjqigen Bdg1k6al/Lho0XR9b1f1vfKk5vmvZIIukjj3gtrKtP9ZTBlgAsjRGX8t3W9PmUS05KhF MjA60pKbh2yaTsnnHo+EX+X0gTQGOOnxE8VwYfWzFcL4ctUKNQH5YQ2jykHqj8OnDoZW jeO4SEfVfyrlYFcKSP03wAPTN173O5zhOV1JUojqE3RTCmy0FQ+9NjSZJz/288DAY2ws 2mbfQzUNJfY9DkArz5rfIDCJB4zu6NdxH3A2L3Xas5XFExbaMwIx7QJ6qZAi/OF8eb8D 29uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=huHrFoSIFko3Zj5MtzFM+IYW/U+gvknVWZyNM3iR5r8=; b=hvNZEnHvfUlPN+CEfrIPM5dT8jsiiUGDp7t1KYyUuutKP+EAmu49lg8e9ZE8MW79Nb fbLhLsaPD4wxeytJ5tGAPtfMR7+ihH+4rkuT/4W6e7mdid5KM2uZR+8uHIfkA0zOLWSs M8qV8EPa4Q6fCJ7Aa9M/5yx680uMu6X1/FDisiXU0+wv6BPtrMbZkE6+QqdbEH+eyCGY w5hFAVwWbHCsVtlQwUE8pL3N0NQeW2zmFMuNHzq2uXHRMcUgj5mmi8sLwF6qsOz31C0W g3cQt3JDa4CF5Z1s5Rl18NGPdzmP33SuBMThSikmPeXXn2vwHKOsjzi5u3L6eAC9VdPM L0dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=01JI4HcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si11939973edw.216.2021.03.29.01.32.14; Mon, 29 Mar 2021 01:32:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=01JI4HcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233786AbhC2IbZ (ORCPT + 99 others); Mon, 29 Mar 2021 04:31:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:36014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233327AbhC2ITr (ORCPT ); Mon, 29 Mar 2021 04:19:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7AF8F61878; Mon, 29 Mar 2021 08:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005987; bh=8cDX63nTsCigsio/tMbSAwIghiv6J75VGU9t0q2FeDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=01JI4HcJNkNMlLpXfh5v9tiUpAcURAtUJSZlr9U+dPxNQ4y849BTiS/RCVQRUd3uW rLh0iLei4I/vB2taPaJEoE3j42rHmPbzVzXXpCB1sEWRRE1lA9eJOTbHlwgXzCzPWK sQQ7KIMkxF6Jw+HM82SqlMGQPG8zVr7dzaOquyzw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Greg Ungerer , Sascha Hauer , =?UTF-8?q?Horia=20Geant=C4=83?= , Li Yang , Shawn Guo Subject: [PATCH 5.10 077/221] arm64: dts: ls1046a: mark crypto engine dma coherent Date: Mon, 29 Mar 2021 09:56:48 +0200 Message-Id: <20210329075631.764797511@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Horia Geantă commit 9c3a16f88385e671b63a0de7b82b85e604a80f42 upstream. Crypto engine (CAAM) on LS1046A platform is configured HW-coherent, mark accordingly the DT node. As reported by Greg and Sascha, and explained by Robin, lack of "dma-coherent" property for an IP that is configured HW-coherent can lead to problems, e.g. on v5.11: > kernel BUG at drivers/crypto/caam/jr.c:247! > Internal error: Oops - BUG: 0 [#1] PREEMPT SMP > Modules linked in: > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.11.0-20210225-3-00039-g434215968816-dirty #12 > Hardware name: TQ TQMLS1046A SoM on Arkona AT1130 (C300) board (DT) > pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--) > pc : caam_jr_dequeue+0x98/0x57c > lr : caam_jr_dequeue+0x98/0x57c > sp : ffff800010003d50 > x29: ffff800010003d50 x28: ffff8000118d4000 > x27: ffff8000118d4328 x26: 00000000000001f0 > x25: ffff0008022be480 x24: ffff0008022c6410 > x23: 00000000000001f1 x22: ffff8000118d4329 > x21: 0000000000004d80 x20: 00000000000001f1 > x19: 0000000000000001 x18: 0000000000000020 > x17: 0000000000000000 x16: 0000000000000015 > x15: ffff800011690230 x14: 2e2e2e2e2e2e2e2e > x13: 2e2e2e2e2e2e2020 x12: 3030303030303030 > x11: ffff800011700a38 x10: 00000000fffff000 > x9 : ffff8000100ada30 x8 : ffff8000116a8a38 > x7 : 0000000000000001 x6 : 0000000000000000 > x5 : 0000000000000000 x4 : 0000000000000000 > x3 : 00000000ffffffff x2 : 0000000000000000 > x1 : 0000000000000000 x0 : 0000000000001800 > Call trace: > caam_jr_dequeue+0x98/0x57c > tasklet_action_common.constprop.0+0x164/0x18c > tasklet_action+0x44/0x54 > __do_softirq+0x160/0x454 > __irq_exit_rcu+0x164/0x16c > irq_exit+0x1c/0x30 > __handle_domain_irq+0xc0/0x13c > gic_handle_irq+0x5c/0xf0 > el1_irq+0xb4/0x180 > arch_cpu_idle+0x18/0x30 > default_idle_call+0x3c/0x1c0 > do_idle+0x23c/0x274 > cpu_startup_entry+0x34/0x70 > rest_init+0xdc/0xec > arch_call_rest_init+0x1c/0x28 > start_kernel+0x4ac/0x4e4 > Code: 91392021 912c2000 d377d8c6 97f24d96 (d4210000) Cc: # v4.10+ Fixes: 8126d88162a5 ("arm64: dts: add QorIQ LS1046A SoC support") Link: https://lore.kernel.org/linux-crypto/fe6faa24-d8f7-d18f-adfa-44fa0caa1598@arm.com Reported-by: Greg Ungerer Reported-by: Sascha Hauer Tested-by: Sascha Hauer Signed-off-by: Horia Geantă Acked-by: Greg Ungerer Acked-by: Li Yang Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi @@ -325,6 +325,7 @@ ranges = <0x0 0x00 0x1700000 0x100000>; reg = <0x00 0x1700000 0x0 0x100000>; interrupts = ; + dma-coherent; sec_jr0: jr@10000 { compatible = "fsl,sec-v5.4-job-ring",