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 54686C433EF for ; Thu, 19 May 2022 16:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238662AbiESQwT (ORCPT ); Thu, 19 May 2022 12:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235521AbiESQwS (ORCPT ); Thu, 19 May 2022 12:52:18 -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 C79715AEC8; Thu, 19 May 2022 09:52:16 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-2fefb051547so63017427b3.5; Thu, 19 May 2022 09:52:16 -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=lHCXvfU913UZzWwkWLW8PuUF55J+NqN7GNP5EdosEmA=; b=PmWqJxxifKIoOgHFXmefLeMf5SNVsk8hDjVTNrBVEGLYoDc1OflT/W/t6tCoRq3bFS Zsj+hHaUHB2vloNW/GMQTopmCmwq5+ADqPsH1BRegbriHDTsEN5pys++wP0kQFgLuKLW BnMAtgGNO3ZV1yLp8Ga+O5Nvcyr/UwaVYNpguYa0dx4bnw2nq7XfK1v1xgEI9PDWxqG9 jCQ6bqv9RiFFlOdtMKB1IavNGfFxL9U1LEsr0v4bGra3LlphCkUArMKOk5Kjx0ss0y/7 5bgXb9fm6VpyMM3pK7iWkZI340+ZVySJUatMphxu/PMqm6l2a7zVJc3HWyKMnfxNfMIT boOg== 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=lHCXvfU913UZzWwkWLW8PuUF55J+NqN7GNP5EdosEmA=; b=OCWMz6gX1ln9BO93B0dBcK69YtMErq/D4rwl34lLcPz0GUGFTXtXik29YfSH2c0f5M xPauNUzyWMRHldUB1+15TfMXkReRwG9x9m/tTCbm394uYBUFynXnMzefvcrVa3jFXZek JW1aS9Q2IJMrpMjNrJFPaBwXtWmEukZCgjoWsCNAEO10/0iAdhYQdq9bdJWpRgkvTYfQ e7Zj9LeQPYGUtrRaxnUChOwDKTnH4zM0HhwTIdwvF2NaUJuoUck4kv952DfxBoc6dPoY KdhnNQZG5QBXDsn7mykc0nJ3JYk5qSxEGq9okO8cMdI3lYnGkh22I6xFa6qYbNgAnIhv 7LgQ== X-Gm-Message-State: AOAM531z5JXNkf8/tjlyqjdyCbkkiRbFxWl6fk7FjnAaLDtQgyXMAcvM qLVSRqxX8d/MvSFtQgp3wuSxhAQnJvAff9v6Azg= X-Google-Smtp-Source: ABdhPJxgwqortp6LMKQqdJfzXMmfQSE/OcnF3FErWG8XOevuRbeXOgq6I2WrPKba3Od1VBXy6oyEfNaFprdUyPboKIk= X-Received: by 2002:a0d:cd06:0:b0:2f8:f39c:4cfc with SMTP id p6-20020a0dcd06000000b002f8f39c4cfcmr5740233ywd.495.1652979135944; Thu, 19 May 2022 09:52:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yegor Yefremov Date: Thu, 19 May 2022 18:52:04 +0200 Message-ID: Subject: Re: am335x: 5.18.x: system stalling To: Arnd Bergmann Cc: Tony Lindgren , Ard Biesheuvel , 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 Arnd, On Thu, May 12, 2022 at 12:20 PM Yegor Yefremov wrote: > > Hi Arnd, > > On Thu, May 12, 2022 at 10:43 AM Arnd Bergmann wrote: > > > > On Thu, May 12, 2022 at 7:41 AM Tony Lindgren wrote: > > > * Yegor Yefremov [220511 14:16]: > > > > On Thu, May 5, 2022 at 7:08 AM Tony Lindgren wrote: > > > > > * Yegor Yefremov [220504 10:35]: > > > > > > Hi Tony, all, > > > > > > > > > > > > since kernel 5.18.x (5.17.x doesn't show this behavior), the system > > > > > > stalls as soon as I invoke the following commands (initializing > > > > > > USB-to-CAN converter): > > > > > > > > > > > > slcand -o -s8 -t hw -S 3000000 /dev/ttyUSB0 > > > > > > ip link set slcan0 up > > > > Oh, I missed this part at first and only looked at the backtrace. > > Which CAN driver > > are you using? It's likely a problem in the kernel driver. > > I am using the slcan driver [1]. > > > CONFIG_DMA_API_DEBUG is still likely to pinpoint the bug, but I might also > > just see it by looking at the right source file. > > I'll try to get more debug info with CONFIG_DMA_API_DEBUG. DMA_API_DEBUG showed nothing new. But disabling the CPUfreq driver "solved" the problem. I have tried different governors and got these two groups: ondemand, schedutil - cause the problem conservative, powersave, performance and userspace - don't cause the problem So far, I have only seen the same debug output that I've initially sent and in most cases, the system stalls without the output. Yegor > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/can/slcan.c?h=v5.18-rc6 > > Yegor > > 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 DDB45C433EF for ; Thu, 19 May 2022 16:53:40 +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=OUbfhUnPBHwJII903faYB3lV7MxpBB8C7HZwK3XIHn0=; b=R0KYcun3l+SHuQ VinffrRxwJ0tlTxXwrqzuhazyz69Qj/b1Et7alGDoMW/6fe8BaLjXt+EBUFNdrX/mqHfeiR+Wsn6T sveTED9YICgvuU7rjJ/SZPbjZGkigZZE2URasdPBRR4QqFRlSWzzMSHX7y3TtVEJp4dmVMBa2XGGb AcrCKxD/1gPoA66ygLKyLNWGB6ZXJBVji9z4tvBhqYk1At2ev8DOaUIspq4DpTJheP1bdrFvNpjfw Z0pjr1OKnciGI6daOk7ZP+3XT/KVmCqEFei2oruN7Zq4s2lGK+2dj5d9tAgKqhFUTQwXc5wpln66d 5QNUrCOtulOxtwvGZn5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrjNs-008U4a-NE; Thu, 19 May 2022 16:52:20 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrjNp-008U3n-Jd for linux-arm-kernel@lists.infradead.org; Thu, 19 May 2022 16:52:19 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-2fee010f509so62725017b3.11 for ; Thu, 19 May 2022 09:52:16 -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=lHCXvfU913UZzWwkWLW8PuUF55J+NqN7GNP5EdosEmA=; b=PmWqJxxifKIoOgHFXmefLeMf5SNVsk8hDjVTNrBVEGLYoDc1OflT/W/t6tCoRq3bFS Zsj+hHaUHB2vloNW/GMQTopmCmwq5+ADqPsH1BRegbriHDTsEN5pys++wP0kQFgLuKLW BnMAtgGNO3ZV1yLp8Ga+O5Nvcyr/UwaVYNpguYa0dx4bnw2nq7XfK1v1xgEI9PDWxqG9 jCQ6bqv9RiFFlOdtMKB1IavNGfFxL9U1LEsr0v4bGra3LlphCkUArMKOk5Kjx0ss0y/7 5bgXb9fm6VpyMM3pK7iWkZI340+ZVySJUatMphxu/PMqm6l2a7zVJc3HWyKMnfxNfMIT boOg== 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=lHCXvfU913UZzWwkWLW8PuUF55J+NqN7GNP5EdosEmA=; b=buwO7bFWU6XzPRASEqrqFgEJrRgMpjMqr9TP+V44iHWNUCO8NcbDvItrDTYHP2NSdn Zw0d92vArrORbJXjuvVHVw+zlZp/saB9FfdqErIVulF5pMcaFh0wE4XF2OwJueaSvD7n 495f2M4t5f5ZSlOtQeVsaeE07IuKMim9q7ONiF9zQC4WAO8sbeWXt2oUe4wpkEd/UcQG /NDp7PpzzXq3oWFyghdbSf+YyLSCBCq9r+uEO/1eui3rdoD3tM0ZcMxLNNvUzrL3XG6f 2HydIi0fBCgBCdut9ox5basuwlhCIUu1vi1mdQg5j6DUkNK1zyJLR72grDCF4Zw8V9CL jnPA== X-Gm-Message-State: AOAM531263WRa5JdvB4nQMp+YeSZo8qfsjWg0i9wYnLUN8rl/1eymzAo WZZLDQBKTEIH43+fdWGAsxBRsl41ffonnOa11tJ0qFQaotc= X-Google-Smtp-Source: ABdhPJxgwqortp6LMKQqdJfzXMmfQSE/OcnF3FErWG8XOevuRbeXOgq6I2WrPKba3Od1VBXy6oyEfNaFprdUyPboKIk= X-Received: by 2002:a0d:cd06:0:b0:2f8:f39c:4cfc with SMTP id p6-20020a0dcd06000000b002f8f39c4cfcmr5740233ywd.495.1652979135944; Thu, 19 May 2022 09:52:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yegor Yefremov Date: Thu, 19 May 2022 18:52:04 +0200 Message-ID: Subject: Re: am335x: 5.18.x: system stalling To: Arnd Bergmann Cc: Tony Lindgren , Ard Biesheuvel , Linux-OMAP , linux-clk , Stephen Boyd , Linux ARM X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220519_095217_704573_DB5DA0AF X-CRM114-Status: GOOD ( 21.48 ) 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 Arnd, On Thu, May 12, 2022 at 12:20 PM Yegor Yefremov wrote: > > Hi Arnd, > > On Thu, May 12, 2022 at 10:43 AM Arnd Bergmann wrote: > > > > On Thu, May 12, 2022 at 7:41 AM Tony Lindgren wrote: > > > * Yegor Yefremov [220511 14:16]: > > > > On Thu, May 5, 2022 at 7:08 AM Tony Lindgren wrote: > > > > > * Yegor Yefremov [220504 10:35]: > > > > > > Hi Tony, all, > > > > > > > > > > > > since kernel 5.18.x (5.17.x doesn't show this behavior), the system > > > > > > stalls as soon as I invoke the following commands (initializing > > > > > > USB-to-CAN converter): > > > > > > > > > > > > slcand -o -s8 -t hw -S 3000000 /dev/ttyUSB0 > > > > > > ip link set slcan0 up > > > > Oh, I missed this part at first and only looked at the backtrace. > > Which CAN driver > > are you using? It's likely a problem in the kernel driver. > > I am using the slcan driver [1]. > > > CONFIG_DMA_API_DEBUG is still likely to pinpoint the bug, but I might also > > just see it by looking at the right source file. > > I'll try to get more debug info with CONFIG_DMA_API_DEBUG. DMA_API_DEBUG showed nothing new. But disabling the CPUfreq driver "solved" the problem. I have tried different governors and got these two groups: ondemand, schedutil - cause the problem conservative, powersave, performance and userspace - don't cause the problem So far, I have only seen the same debug output that I've initially sent and in most cases, the system stalls without the output. Yegor > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/can/slcan.c?h=v5.18-rc6 > > Yegor > > Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel