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 89D72C433FE for ; Thu, 26 May 2022 12:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239553AbiEZMiI (ORCPT ); Thu, 26 May 2022 08:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233899AbiEZMiH (ORCPT ); Thu, 26 May 2022 08:38:07 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B2A15FCA; Thu, 26 May 2022 05:38:06 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-3003cb4e064so13792067b3.3; Thu, 26 May 2022 05:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9IPhcmMGrDmqz68ElM8PH2pAWE1VUpwJtm/jAj5a35M=; b=gGayeH81IsTayP7BQBCodWcrNR9zVdhxgKZiS6L3vdF9gzYopP1IVAAwYkTSt2/uud xAp+yxbFQMWuBX+yPvfhQugfW3CiK+PWI0cbSeNNQUesHVvWJcofsRq/YwK4gs0wP3Pp 2NLd86vgfTu5pl5UZV4wWFy/lqOPG5WQd79rqgHvIDD0FLV/URcEPDQPnVXgU6y8VMhP Z08TFMxlOjW9+p6fGWLk1te2Fr8VgGOU40eaM6YqX+omvzMqbRdadI4vO9cLCp6puwma L9zdmA7jK4mUadL0BFq5IFoCmqNK2g455bCylcD5Z7SoxYOSDFitw91PkEqaSvZPC5DS 7wog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9IPhcmMGrDmqz68ElM8PH2pAWE1VUpwJtm/jAj5a35M=; b=XEXBYEL9O8U4wHqXmQCoXUdy6lxWWfEMZ7Arj+tXIZTsLCdc06cyfrrGyaBYxqUN9d 1qSccZGTO9C0i7iVXsNIEF7GqFn7X+7cKyikZ5iHAsR7aZZVGYk95anWgkb0FxUj6qX2 ul6gMjLZIOoyRoK0JtS0lBMkQJEIry8jWB2//M4CgRJtYkxwORLAFsGvWZKtM/pEE4YA VHa5DfdCV9uRc/If3RHNSEqWvmK4zF/MjuKkQX4gYdeb+UYDPXinh2Acm/IhADkfi/Ir tyfvObnzv457fL0L66YH9U2sXgFoUinrzRz8tLx2g03c0JGgxfeDH0leFJlofcxhaW3M hoBQ== X-Gm-Message-State: AOAM530tafVHvJSDEGgDpKIYBcFVfZYnkcqPQCwOetwMBn5vWj4UPepJ tNmbdmMUjDkuZX+OED8XGU5OubEFPAQ0SKKhpi0= X-Google-Smtp-Source: ABdhPJyXiLkZovCl8sv28FDSct+tUa+OHbvd6/3Mq4sjU8gdVF0dJdI3TvdfiiModeAqOa+zx+K9pO2k7Ggpa4uKGNc= X-Received: by 2002:a81:488c:0:b0:302:549f:ffbc with SMTP id v134-20020a81488c000000b00302549fffbcmr1991131ywa.495.1653568686083; Thu, 26 May 2022 05:38:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yegor Yefremov Date: Thu, 26 May 2022 14:37:55 +0200 Message-ID: Subject: Re: am335x: 5.18.x: system stalling To: Ard Biesheuvel Cc: Tony Lindgren , Arnd Bergmann , Linux-OMAP , linux-clk , Stephen Boyd , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hi Ard, On Thu, May 26, 2022 at 10:19 AM Ard Biesheuvel wrote: > > On Thu, 26 May 2022 at 08:20, Tony Lindgren wrote: > > > > * Yegor Yefremov [220526 05:45]: > > > On Tue, May 24, 2022 at 4:19 PM Tony Lindgren wrote: > > > > Maybe also try with CONFIG_MUSB_PIO_ONLY=y to see if it makes things > > > > better or worse :) > > > > > > PIO is always the last resort :-) And now it proves it again. With > > > PIO_ONLY the system doesn't stall. > > > > OK great :) So it has something to do with drivers/dma/ti/cppi41.c, or > > with drivers/usb/musb/cppi_dma.c or whatever the dma for am335x here > > is. Or maybe there's something using stack for buffers being passed to > > dma again that breaks with vmap stack. > > > > In order to confirm this theory, could you please try rebuilding your > kernel with CONFIG_VMAP_STACK disabled, and leave everything else as > before? I have disabled the CONFIG_VMAP_STACK option: # zcat /proc/config.gz | grep VMAP_STACK CONFIG_HAVE_ARCH_VMAP_STACK=y # CONFIG_VMAP_STACK is not set The system stalls. 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 71419C433EF for ; Thu, 26 May 2022 12:39:34 +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=Mu5op4QhwSoQDCx5t5UqebDlicFBGVQsaXnmT0I9gzw=; b=wyJB6WITgRMovu JiPyZ8JO76EJAHnFzuIkq/4OtXpG27xe56a7VB8+5RsoEzPwrmDQaHrKM7JDfFx/PwCPfBEbzIHxR Ba+3hH8Xl9uwLyR0zfBKIEVpak+MrdZxTjoVFwGjz8SnAuhlvX93iY56isgbrtSeJg0FqzLUpLAO7 tyFUpRB8jkw+fwTpLcBiwK4UOq4BezJxQM3zxWps8cJgfhQ07E8QoimatHCPAA/AwlnDk8ft+AePY dFOCkwQY9RRsiktT2rYeQ2wC9r4Ptg6mMrr/CtpLaP+h2QR1pcLeqsAScxgMWA3PwiLmkwNpUwUEa PZ/luTvRpoaXkfDPlcfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuCkl-00Erfp-S1; Thu, 26 May 2022 12:38:12 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuCki-00EreP-1F for linux-arm-kernel@lists.infradead.org; Thu, 26 May 2022 12:38:09 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-300beab2b76so13459317b3.13 for ; Thu, 26 May 2022 05:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9IPhcmMGrDmqz68ElM8PH2pAWE1VUpwJtm/jAj5a35M=; b=gGayeH81IsTayP7BQBCodWcrNR9zVdhxgKZiS6L3vdF9gzYopP1IVAAwYkTSt2/uud xAp+yxbFQMWuBX+yPvfhQugfW3CiK+PWI0cbSeNNQUesHVvWJcofsRq/YwK4gs0wP3Pp 2NLd86vgfTu5pl5UZV4wWFy/lqOPG5WQd79rqgHvIDD0FLV/URcEPDQPnVXgU6y8VMhP Z08TFMxlOjW9+p6fGWLk1te2Fr8VgGOU40eaM6YqX+omvzMqbRdadI4vO9cLCp6puwma L9zdmA7jK4mUadL0BFq5IFoCmqNK2g455bCylcD5Z7SoxYOSDFitw91PkEqaSvZPC5DS 7wog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9IPhcmMGrDmqz68ElM8PH2pAWE1VUpwJtm/jAj5a35M=; b=V6dpTYxrEUveNXSBSbMDyaOaYLkVEJyA5blc/RpytXnVydwuNOxMRwgpVqzVFMd8pZ o/V5/O/Krk7PiteU0BQvnkLv/7HJeqWqJhVEO1GgT0OaBqzmMW4Xwgvb8tATadiYabSR QoJ4O6QLNTtbC7zsRJO+CivQhk03OWIWD7loEtGXipX2XlLkgXDMgxuG7R9r5jqsac0P ZZRRf4isYCN0MhXSN74hTVOr2ErxtIiwQe9+TFPHrfPFHKITVCzPzEqmhJnjM1BZ6jGf w1PvD6RSrliiyl79GBrNp6mCdyYDuEC3vBujjd3+meY+bH4PL8m5epIWWGn8v7M3jlFp HrRA== X-Gm-Message-State: AOAM531qKS+OdfLpuPx8jcnRftFVjNAr/ADAKdxjxxq8bYRJDrCGu37c ijIJAouYsd7j4IGrKMC1Ky2hH9yU5qxF4+QccRAErsX5hXM= X-Google-Smtp-Source: ABdhPJyXiLkZovCl8sv28FDSct+tUa+OHbvd6/3Mq4sjU8gdVF0dJdI3TvdfiiModeAqOa+zx+K9pO2k7Ggpa4uKGNc= X-Received: by 2002:a81:488c:0:b0:302:549f:ffbc with SMTP id v134-20020a81488c000000b00302549fffbcmr1991131ywa.495.1653568686083; Thu, 26 May 2022 05:38:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yegor Yefremov Date: Thu, 26 May 2022 14:37:55 +0200 Message-ID: Subject: Re: am335x: 5.18.x: system stalling To: Ard Biesheuvel Cc: Tony Lindgren , Arnd Bergmann , Linux-OMAP , linux-clk , Stephen Boyd , Linux ARM X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220526_053808_102108_07804D8D X-CRM114-Status: GOOD ( 17.13 ) 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 Hi Ard, On Thu, May 26, 2022 at 10:19 AM Ard Biesheuvel wrote: > > On Thu, 26 May 2022 at 08:20, Tony Lindgren wrote: > > > > * Yegor Yefremov [220526 05:45]: > > > On Tue, May 24, 2022 at 4:19 PM Tony Lindgren wrote: > > > > Maybe also try with CONFIG_MUSB_PIO_ONLY=y to see if it makes things > > > > better or worse :) > > > > > > PIO is always the last resort :-) And now it proves it again. With > > > PIO_ONLY the system doesn't stall. > > > > OK great :) So it has something to do with drivers/dma/ti/cppi41.c, or > > with drivers/usb/musb/cppi_dma.c or whatever the dma for am335x here > > is. Or maybe there's something using stack for buffers being passed to > > dma again that breaks with vmap stack. > > > > In order to confirm this theory, could you please try rebuilding your > kernel with CONFIG_VMAP_STACK disabled, and leave everything else as > before? I have disabled the CONFIG_VMAP_STACK option: # zcat /proc/config.gz | grep VMAP_STACK CONFIG_HAVE_ARCH_VMAP_STACK=y # CONFIG_VMAP_STACK is not set The system stalls. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel