From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E78CC433EF for ; Fri, 3 Jun 2022 20:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345966AbiFCUq0 (ORCPT ); Fri, 3 Jun 2022 16:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344714AbiFCUqZ (ORCPT ); Fri, 3 Jun 2022 16:46:25 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1615B89D; Fri, 3 Jun 2022 13:46:24 -0700 (PDT) Received: from mail-yb1-f172.google.com ([209.85.219.172]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N9d91-1nlQOx3IBR-015aZC; Fri, 03 Jun 2022 22:46:23 +0200 Received: by mail-yb1-f172.google.com with SMTP id v106so15818012ybi.0; Fri, 03 Jun 2022 13:46:22 -0700 (PDT) X-Gm-Message-State: AOAM531RmBnREoJki5dVl60R9PCoEls1+yrh5Ibx8XkzIM1MLa8vUpmG oWSYv9TrjWFegA0D3W26bC7+j49fdokwzHc0hko= X-Google-Smtp-Source: ABdhPJxeD6w6m6F9CVwFsS5VbNSgm02jMEaD11IY6b67kJoJNWXfIieWwJGAqX3QfpLf8e5BPmOQ9BXPY602TUwH8Fg= X-Received: by 2002:a25:1209:0:b0:65d:63f9:e10a with SMTP id 9-20020a251209000000b0065d63f9e10amr12789538ybs.480.1654289181550; Fri, 03 Jun 2022 13:46:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Fri, 3 Jun 2022 22:46:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: am335x: 5.18.x: system stalling To: Yegor Yefremov Cc: Arnd Bergmann , Ard Biesheuvel , Tony Lindgren , Linux-OMAP , linux-clk , Stephen Boyd , Linux ARM Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:xPqhkauarN5C+ExCtlazP0A8aoqfSXWuJ9+oPGgB8ZsVDuXMZca 6VcsQEL7dqC+1DoFcLLLW3kqS2T1/tboTbV3Y4J9jIcKVHr/TFyzyq9RLCaTS62z/La0vLz X8RmvvI/6y7urE3vbdOazmc42wR7tlWPLs1PtVW/jIylMRhLxjuJHvAsE2HEF6TB/d5VADH OeJpK4jKPjQdWAjt0awkg== X-UI-Out-Filterresults: notjunk:1;V03:K0:2SdwqDVsGsc=:2sw4sshLC6vcE+tLS4Zd2R SjaSAzmqshar/xKgbIwXbTlwCV84LAer67Em6ZhogKp7TAxrUKqg7HZOb7zEx7Yv21Fvm/v+N MCM+qwXXKsJ0+mcZOROoKBvc1UkpZ/xXJofom3FnE3aB5fgmMnDLehaxMYgzn7BxiqSSJaFb9 EnsQNi2BvcwEMCPMURJbFbqt2RkKS2vHLnaipfOl3OxccedlsL2e1s3NhUQxUp7M3iD/iGYy2 Y5jco1FcAa5LKU+PFfoSlmx23y5J9pp3xMGlhL9+PjFoJ5STBnz3cSeLIYOWHh+bbKXSW/9PF F41xLJ8/cHkpJiXOgfHAkUpo7T8V7rkVSTaPOj6jxV8fGg+msLZ0ZgeFOPmbrZq2Hec4/OnWR mxN4ZDYFMiNz6N1tnUFQOcOn+Ytbg0mv/GfvXp3UM94Ftxg6AqwXFS+R1PZemTDd51tNrmHrT Rwyy2nW1ChcYfzbTcgudn79WuAnfcQhI78gimHFWKa7FI3XQxAf4GxRqM5/c/0S8D7XRESoj9 Y0HtNTz59bknoX/bpgDAp4BUDXB0pTqSDXnIVNugi4ViHo3kunNyCW4e4UE3BJ0QO3gBw5VB0 uL4t9Py+IsmYvT6s8Gq1QGBigFH26l1C8T4LzYLM5OLnyk/L9gen29Ehjl55Czv2/p3eG6bne vD7gazcP3BZhzCgVK07XfEZFCSzspAMoY1kX8I5m1DkbC9e6H0KQGv6OT7kNpiH69c1qAPmJK dypMDMjQwxW1SVQs7+Uf49vbIqvcva32SGcovQ== Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org On Fri, Jun 3, 2022 at 9:11 PM Yegor Yefremov wrote: > > With compiled-in drivers the system doesn't stall. All other tests and > related outputs will come next week. Ah, nice! It's probably a reasonable assumption that the smp-patched get_current() is (at least sometimes) broken in modules but working in the kernel itself. I suppose that means in the worst case we can hot-fix the issue by having an 'extern' version of get_current() for the case of armv6+smp+module ;-) Maybe start with the ".long 0xe7f001f2" hack I suggested in my last mail. If that gives you an oops for the module case, then we know that the patching doesn't work at all and you don't have to try anything else, otherwise it's more likely that an incorrect instruction sequence is patched in. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5B50C433EF for ; Fri, 3 Jun 2022 20:48:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wcBXjyno87Nl+W6DKdv/d6Al2aPVozA5BUx5ZIn8JmY=; b=vOqpUkyLj3xGGS 8wcG0VQ70MShqNg+dip3x0lHDlsYBH/nRV5z/RRwpEHq9uIZRqkIkvNjcLFu/IT8rFiErUockB8Rq 2/ISSkR2dRdzjDcrbleQQux8Pjo9qhq++YAsmTKnL5NEd/OBOe7eILhr7cFUgE/37XrxwtmQd8ly1 uCtss+z+qG4O3AqrNDyzjaEYYUpIod0W19HCnAxvl4nvlJNtOg7WgMIhUiou6ZphsH05ZBOCX3JfD SsHABObf2SY6hRdk88LMT70bwsELrkbwbDsBsZlLMogJXAbCfR/+bA/9XDrCzmmh2DdZASXtnih51 lB6nIzXQ7at5awl0CAxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nxEBi-008e4H-No; Fri, 03 Jun 2022 20:46:30 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nxEBf-008e3X-CV for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2022 20:46:28 +0000 Received: from mail-yb1-f177.google.com ([209.85.219.177]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MsZ7T-1ndEG53Oxv-00txwu for ; Fri, 03 Jun 2022 22:46:23 +0200 Received: by mail-yb1-f177.google.com with SMTP id a64so15710144ybg.11 for ; Fri, 03 Jun 2022 13:46:22 -0700 (PDT) X-Gm-Message-State: AOAM532Hw7yEtqG8pTzzH0sBCx3w8eHr8C9V3Ze/1rYNx9M3qMvSgNZx oaEe6tj/b+6pdsTfQGSCT+zUUJxaL2X9Qu3aNdk= X-Google-Smtp-Source: ABdhPJxeD6w6m6F9CVwFsS5VbNSgm02jMEaD11IY6b67kJoJNWXfIieWwJGAqX3QfpLf8e5BPmOQ9BXPY602TUwH8Fg= X-Received: by 2002:a25:1209:0:b0:65d:63f9:e10a with SMTP id 9-20020a251209000000b0065d63f9e10amr12789538ybs.480.1654289181550; Fri, 03 Jun 2022 13:46:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Fri, 3 Jun 2022 22:46:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: am335x: 5.18.x: system stalling To: Yegor Yefremov Cc: Arnd Bergmann , Ard Biesheuvel , Tony Lindgren , Linux-OMAP , linux-clk , Stephen Boyd , Linux ARM X-Provags-ID: V03:K1:OX99ELWjan6fpx7YRsdxU08ZkloAEZxudUI0HN8HRPmEdTK0Mm0 SrDliaO8kgkBMyENkzk7zf/VJDCXsEf+YwJVo9lMFusB/aL8QxXNoXz1Bv1gie1SMC8QWY2 nZs1LtF2qgLSMk/JtoyHIzJCGMovIoSNoPWL4GBQbU7XhN1nmhgjqBL2qjykPkBcpVtTU+i OT4edonjMyDBroyfkc+0g== X-UI-Out-Filterresults: notjunk:1;V03:K0:CPZ7z7245qM=:FGG6AtRi1RHIRZtXQqowcT o34hrZ7h225H/t5Xmni2zuHYguR3gcxJ72FzKFikznDBK8hKM+LO4/uuTSA42qsIstdB40vVq 5kwnAZ4yx6E4/yqmdLF6rbweJoyZrEv6wn1S8DXYFAqguxdnYsRqQjWhxCgCiGzqiyObrKb6W 6sHLKYWor3C9yqtGn2PrdoBCp22ZMlkt5aceVR1ZWQJrlc5Nr7fFEUIqf8nCNltR5TSTjFt9k 9SGakDj2CQyU2mFdf3nWRLjLrU3KLB8shFIKVQxtgvXMrE7SI3saTpLUU3s5cmG+YxsfomCDH SHRF+clotTwVjRtR+Ef6wGevdmlVdqODlCBd9ZGmYNQEFoSGvf039JUljDTlpdDULwovO90aa uexyUkn0Edh+SrfUqfryt9hHXQaRJ+yLMjgMxsG2f8vOOrJP2K6kCkx76iaZgdvCuwOLta6go RPkxzzXdRNwJTulfG89bZFyp64tvacbVhIi6fn0+Pql+Hm/mzuvB1O65QzmwU14V4Wb30nR/R lbOl7/lJoAlEqLW7uibdiLhfrjvk6gjJ4DuzjhR2eVba6rG9guC4iM2gxLjGylMSGDfN9ZI2U zdT/1T+zlpXJHHsPjIP1XA1LhQ0iBkx+wBzxacUCUmn1il2qsJScLh5f02+aSYdSFcByE6sY9 3jd4yac/pJJ1MIwv0DrDHf9fGaApoDE2mYgRshnyICaEDgin5Ng1PCoODpRTEHyj6fR+IfDJc tiSeUP/+4K/Ab0ADSoer308hLd/JR1oEjOcA8g== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220603_134627_759768_F566A5D9 X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 3, 2022 at 9:11 PM Yegor Yefremov wrote: > > With compiled-in drivers the system doesn't stall. All other tests and > related outputs will come next week. Ah, nice! It's probably a reasonable assumption that the smp-patched get_current() is (at least sometimes) broken in modules but working in the kernel itself. I suppose that means in the worst case we can hot-fix the issue by having an 'extern' version of get_current() for the case of armv6+smp+module ;-) Maybe start with the ".long 0xe7f001f2" hack I suggested in my last mail. If that gives you an oops for the module case, then we know that the patching doesn't work at all and you don't have to try anything else, otherwise it's more likely that an incorrect instruction sequence is patched in. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel