Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp605035iob; Tue, 3 May 2022 06:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx34DInRGwO7Agvxe05lYU2WqC+rbpbE6gd0zdslfH1Zo8Wdy+0NzPpWeRC0v3oc7/v9QPI X-Received: by 2002:a05:6638:1c14:b0:32b:5d85:f8e6 with SMTP id ca20-20020a0566381c1400b0032b5d85f8e6mr5493858jab.110.1651582950946; Tue, 03 May 2022 06:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651582950; cv=none; d=google.com; s=arc-20160816; b=nczAuEVwmMkqLF83wfbEh7OHU8z4yz5CvsJ4srUC8vUUckgGhZiCViykn/c9KFL70R uwtJeO8k2yB39XtsS5ANW9PkrRDPhKWOpMo6ZLt5ePejfKY/ws2MhRR9WZ2Tk6ljZHxp 7lMFFx8Il79GMZScCnD8Hnx1a5GkUOuzIVATlNIr7YeTLeLX0MzWRyhCj05C6o1W1da6 hejEeWl6QqODrKECEVmk0wvb4hADv+CEsuohoho3SI3IWJKM9OJvSxDZHXmRIbckWpUs hClREOMtBH4fDvEbcMT/GgiTVBVkv2/UiFTjo/nya4twsFR2w9LbEHkSbwbXFIAb8gKv ugaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=icg/RRzy92MCxjcIrKG+QPHsjSYKRS7DyPeH73AhcLw=; b=l4+zDuzdmcK4yRWWLvFw0ZpF+fjzBwzjHlvYpZsfxQ+cbh9M8PLapppBDGRloIZItC N3lmLzDjvsU6+/1hAMj5TU/DUKzmHNn+beKw6a45GQ1lwU2/9hbnI4eUnn2Ji1Vga89L 2COmQibkexV1hp6yQ+g+/ktKCVz+NxfFoMHrAjmYmFPYATrvPpiCoL8+8nRTrYXk3F2U ZgLjmRfqPZuP4VCa82dHtJtTaAJJ4JFY35/zsJbOsJoiiz7EucjH/I5B2i4ZGgRXt3uH 8YPEq7nrT3S4PJoy7F/KIRMRTJyvjcuqRPPIHzAp94QoiCXnMAcU6O8IB6mCKl/9I8z4 ijjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 15-20020a056e0216cf00b002c8063b4eb4si9652241ilx.112.2022.05.03.06.02.15; Tue, 03 May 2022 06:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232493AbiECHzt (ORCPT + 99 others); Tue, 3 May 2022 03:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232473AbiECHzp (ORCPT ); Tue, 3 May 2022 03:55:45 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB8571FCE0 for ; Tue, 3 May 2022 00:52:13 -0700 (PDT) Received: from mail-yw1-f176.google.com ([209.85.128.176]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MxmFk-1o2bcz2H6s-00zHBi for ; Tue, 03 May 2022 09:52:11 +0200 Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-2ebf4b91212so171465817b3.8; Tue, 03 May 2022 00:52:11 -0700 (PDT) X-Gm-Message-State: AOAM530lAbT0p7sa+dRpcU4mzLt0WgSB7SLjEWtlCytqcbpiuk2RmdSp 191B0DlXqa66UB9/Ox5EHPquTWlK8DLeMQnyFZE= X-Received: by 2002:a81:1697:0:b0:2fa:32f9:78c8 with SMTP id 145-20020a811697000000b002fa32f978c8mr3738925yww.135.1651564330419; Tue, 03 May 2022 00:52:10 -0700 (PDT) MIME-Version: 1.0 References: <4CE23DC3-B3E5-45C1-91F3-B88E5444AE7C@goldelico.com> <11504A17-6B50-4D6C-A9E1-CA943C157C93@goldelico.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 3 May 2022 09:51:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kernel panic with v5.18-rc1 on OpenPandora (only) To: Ard Biesheuvel Cc: Arnd Bergmann , "H. Nikolaus Schaller" , Tony Lindgren , Discussions about the Letux Kernel , Linux Kernel Mailing List , Linux-OMAP , Linux ARM Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:q4596kitnW8xbAvjo4GnHPeAh23Okl2WjFqcrkXALunK3DID6wz UUrYKX0jt0azzdGSCC0jdLoT8TaDY8Yf9mVx3ocnSo8I1Gdx5rKc7I+Ck9lZt4UJoc0RanZ 6lt0thg2ElufEfvcyY5uHpcz5Yb6RLoxnCA9f62ZYTlzHRvuVU6qXfHrdqcMq2LASYu7t/0 IVckQQ6L9hdEAB6NiCi6g== X-UI-Out-Filterresults: notjunk:1;V03:K0:GE9Dm6wwpqs=:OWjpCq3J6+sTPQGL0MRZMs zDaGimHnlybx01b1lGP7vw7vGpSfWjwhJPCMUd3XCKICIbQGKKQg0aZmduJCdKVAiFEd9b1PD uAOKWY/FGUNECi1Uv8IrKnOZNFJnePMUgeC1+206xRoQbdnisA+Ozww/J7znYx2MK0JQC7l/9 TJWqAJL8wn7c6vydqAKLOeQsFuZK6R0KGLTzPUJRDreKTrheLw9Lo64xmAvYaeQIKGsUMtRNM d8xejuKv/A/eeY7gPgPsrDGoksdDwoi6PJqDiftSgcpHN3x3VkNTOFQsZUNnon8Nre1KIpcrA ubmES5Z4f+HOV0ogNDft/6DAgzR/+tElHPBqhZgBM4gjlw5JrUDr6YLPrzG5qn//HfC/qYzIH KWXKu7T8cUqzx1Payrc/wOsEG3GFIFM7xgNSvHQTBzh6ZndrAt6+7xCqlx3R32pB/OAodUfo9 yk4gJQoct/RhZDqgg5ZHOPbjH9UryaLZ8aLxGxbAOMaiNSFyO3CIYyLi2nB3F6qQlEF9WjLdc Da+zF1OIpxzAUXW0OaUqY2H2Ycv9A07IzE8bqvQ11ghwFH6C7iiUPd57sO6W7PsLTmiTFLQJp 9FDxuq61kiw6Oa7NgElsHw/p6GeqJ3Qe6n5BHabIyBFqiyAkueMQ8jDyqlf9mfUusdkH2lSyQ Hhf4giXlX7VWxNKS5sNUiT/X6wChvFOpE87nJJC6n4pO8/dtr7jX0/J7S3Mxc6/OLzp5aKZQl c5iu+VWVxHwVZCBEntCtfWht8/KTQpBShOqe/gEPm0rq+fGZKEwfnO6QQdTbehXz5Sep70Cus mMFGlcBY5bDi6pDFyYTmg8IcADlNCqEQvWurXlm69+j8hXiiGQ= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 3, 2022 at 9:28 AM Ard Biesheuvel wrote: > On Sat, 30 Apr 2022 at 20:48, Arnd Bergmann wrote: > > > > I think what is going on here is that your platform is able to detect > > the broken DMA because of the l3 interrupt handler telling the kernel > > about it, when on other platforms we would see either silent data corruption > > or a DMA that never reaches its target. > > > > I wonder if we could narrow this down by adding the possibility to use > IRQ stacks in the linear map, while using vmap'ed task stacks. I don't think we have actual DMA attempts to the IRQ stack, so this should not make a difference. What might help is to print some more information in omap3_l3_app_irq() that is likely provided by the hardware. The BUG_ON() happens for any timeout error, and that is most of the possible errors. Simply dumping the L3 registers should at least show the exact type of timeout, and maybe the DMA master ID and physical address that can be traced back into a virtual address. Setting CONFIG_DMA_API_DEBUG=y should get the same information I think, but it can't hurt to do both. Arnd