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 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA0F1C433E0 for ; Wed, 1 Jul 2020 10:41:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8804220722 for ; Wed, 1 Jul 2020 10:41:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sWN6pwAr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8804220722 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/f8SY9FngIHRpbWPGl8D/ELl945rfCG00j9nRt9JdQY=; b=sWN6pwArPXKgfhDj8JI3x8Tj7 89Ls8etAwppl84yRC7mrcEuKG+hkmR5PXu7d2bKqQ3kBBxVry5ujT0Gcopgxp8f935+kVL0UGzBq8 ssjL1i9I6RAFb98NHQepN5ZX4j5gXz2TskjupWuO1XF2tNXL5zRqTkJGaW2bJo9tdijvm5pfvSKkY AUw6bhFxEh0Lie8Cj0bejBt64R8XHWOzFezBDeWWOP7Vf6M5L5WiT+ao6bVm4lSO5kADSP9Ney/3T 9Mlz/WdosWHfgrPOhhuw7aqX9tZcqbNQzt0UyyJtqUjx6RNQhD9GIc/nFhse8J6xGWeLNp4Gg2W/9 EBCLFmNOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqaAp-0007Cd-Mz; Wed, 01 Jul 2020 10:41:03 +0000 Received: from mx2.suse.de ([195.135.220.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqaAm-0007Bw-UE for linux-riscv@lists.infradead.org; Wed, 01 Jul 2020 10:41:02 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4AD9EAD04; Wed, 1 Jul 2020 10:40:59 +0000 (UTC) From: Andreas Schwab To: Yash Shah Subject: Re: [PATCH 0/3] Dynamic CPU frequency switching for the HiFive References: <1592308864-30205-1-git-send-email-yash.shah@sifive.com> X-Yow: .. over in west Philadelphia a puppy is vomiting.. Date: Wed, 01 Jul 2020 12:40:58 +0200 In-Reply-To: <1592308864-30205-1-git-send-email-yash.shah@sifive.com> (Yash Shah's message of "Tue, 16 Jun 2020 17:31:01 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200701_064101_230574_21E428F4 X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, aou@eecs.berkeley.edu, atish.patra@wdc.com, anup@brainfault.org, lollivier@baylibre.com, linux-kernel@vger.kernel.org, green.wan@sifive.com, sachin.ghadi@sifive.com, robh+dt@kernel.org, palmer@dabbelt.com, deepa.kernel@gmail.com, paul.walmsley@sifive.com, alistair.francis@wdc.com, linux-riscv@lists.infradead.org, bmeng.cn@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Jun 16 2020, Yash Shah wrote: > The patch series adds the support for dynamic CPU frequency switching > for FU540-C000 SoC on the HiFive Unleashed board. All the patches are > based on Paul Walmsley's work. > > This series is based on Linux v5.7 and tested on HiFive unleashed board. I'm using that patch with 5.7.5. It appears to interfer with serial output when using the ondemand governor. I also see soft lockups when using the performance governor: [ 101.587527] rcu: INFO: rcu_sched self-detected stall on CPU [ 101.592322] rcu: 0-...!: (932 ticks this GP) idle=11a/1/0x4000000000000004 softirq=4301/4301 fqs=4 [ 101.601432] (t=6001 jiffies g=4017 q=859) [ 101.605514] rcu: rcu_sched kthread starved for 5984 jiffies! g4017 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=2 [ 101.615494] rcu: RCU grace-period kthread stack dump: [ 101.620530] rcu_sched R running task 0 10 2 0x00000000 [ 101.627560] Call Trace: [ 101.630004] [] __schedule+0x25c/0x616 [ 101.635205] [] schedule+0x42/0xb2 [ 101.640070] [] schedule_timeout+0x56/0xb8 [ 101.645626] [] rcu_gp_fqs_loop+0x208/0x248 [ 101.651266] [] rcu_gp_kthread+0xc2/0xcc [ 101.656651] [] kthread+0xda/0xec [ 101.661426] [] ret_from_exception+0x0/0xc [ 101.666977] Task dump for CPU 0: [ 101.670187] loop0 R running task 0 655 2 0x00000008 [ 101.677218] Call Trace: [ 101.679657] [] walk_stackframe+0x0/0xaa [ 101.685036] [] show_stack+0x2a/0x34 [ 101.690074] [] sched_show_task.part.0+0xc2/0xd2 [ 101.696154] [] sched_show_task+0x64/0x66 [ 101.701618] [] dump_cpu_task+0x3e/0x48 [ 101.706916] [] rcu_dump_cpu_stacks+0x94/0xce [ 101.712731] [] print_cpu_stall+0x116/0x18a [ 101.718375] [] check_cpu_stall+0xcc/0x1a2 [ 101.723929] [] rcu_pending.constprop.0+0x36/0xaa [ 101.730094] [] rcu_sched_clock_irq+0xa6/0xea [ 101.735913] [] update_process_times+0x1e/0x42 [ 101.741821] [] tick_sched_handle+0x26/0x52 [ 101.747456] [] tick_sched_timer+0x6a/0xd0 [ 101.753015] [] __run_hrtimer.constprop.0+0x50/0xe8 [ 101.759353] [] __hrtimer_run_queues+0x48/0x6c [ 101.765254] [] hrtimer_interrupt+0xca/0x1d4 [ 101.770985] [] riscv_timer_interrupt+0x32/0x3a [ 101.776976] [] do_IRQ+0xa4/0xb8 [ 101.781663] [] ret_from_exception+0x0/0xc Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68A71C433DF for ; Wed, 1 Jul 2020 10:41:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E15620722 for ; Wed, 1 Jul 2020 10:41:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729834AbgGAKlB (ORCPT ); Wed, 1 Jul 2020 06:41:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:34696 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729180AbgGAKlB (ORCPT ); Wed, 1 Jul 2020 06:41:01 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4AD9EAD04; Wed, 1 Jul 2020 10:40:59 +0000 (UTC) From: Andreas Schwab To: Yash Shah Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, robh+dt@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sachin.ghadi@sifive.com, aou@eecs.berkeley.edu, anup@brainfault.org, lollivier@baylibre.com, green.wan@sifive.com, atish.patra@wdc.com, alistair.francis@wdc.com, deepa.kernel@gmail.com, bmeng.cn@gmail.com Subject: Re: [PATCH 0/3] Dynamic CPU frequency switching for the HiFive References: <1592308864-30205-1-git-send-email-yash.shah@sifive.com> X-Yow: .. over in west Philadelphia a puppy is vomiting.. Date: Wed, 01 Jul 2020 12:40:58 +0200 In-Reply-To: <1592308864-30205-1-git-send-email-yash.shah@sifive.com> (Yash Shah's message of "Tue, 16 Jun 2020 17:31:01 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Jun 16 2020, Yash Shah wrote: > The patch series adds the support for dynamic CPU frequency switching > for FU540-C000 SoC on the HiFive Unleashed board. All the patches are > based on Paul Walmsley's work. > > This series is based on Linux v5.7 and tested on HiFive unleashed board. I'm using that patch with 5.7.5. It appears to interfer with serial output when using the ondemand governor. I also see soft lockups when using the performance governor: [ 101.587527] rcu: INFO: rcu_sched self-detected stall on CPU [ 101.592322] rcu: 0-...!: (932 ticks this GP) idle=11a/1/0x4000000000000004 softirq=4301/4301 fqs=4 [ 101.601432] (t=6001 jiffies g=4017 q=859) [ 101.605514] rcu: rcu_sched kthread starved for 5984 jiffies! g4017 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=2 [ 101.615494] rcu: RCU grace-period kthread stack dump: [ 101.620530] rcu_sched R running task 0 10 2 0x00000000 [ 101.627560] Call Trace: [ 101.630004] [] __schedule+0x25c/0x616 [ 101.635205] [] schedule+0x42/0xb2 [ 101.640070] [] schedule_timeout+0x56/0xb8 [ 101.645626] [] rcu_gp_fqs_loop+0x208/0x248 [ 101.651266] [] rcu_gp_kthread+0xc2/0xcc [ 101.656651] [] kthread+0xda/0xec [ 101.661426] [] ret_from_exception+0x0/0xc [ 101.666977] Task dump for CPU 0: [ 101.670187] loop0 R running task 0 655 2 0x00000008 [ 101.677218] Call Trace: [ 101.679657] [] walk_stackframe+0x0/0xaa [ 101.685036] [] show_stack+0x2a/0x34 [ 101.690074] [] sched_show_task.part.0+0xc2/0xd2 [ 101.696154] [] sched_show_task+0x64/0x66 [ 101.701618] [] dump_cpu_task+0x3e/0x48 [ 101.706916] [] rcu_dump_cpu_stacks+0x94/0xce [ 101.712731] [] print_cpu_stall+0x116/0x18a [ 101.718375] [] check_cpu_stall+0xcc/0x1a2 [ 101.723929] [] rcu_pending.constprop.0+0x36/0xaa [ 101.730094] [] rcu_sched_clock_irq+0xa6/0xea [ 101.735913] [] update_process_times+0x1e/0x42 [ 101.741821] [] tick_sched_handle+0x26/0x52 [ 101.747456] [] tick_sched_timer+0x6a/0xd0 [ 101.753015] [] __run_hrtimer.constprop.0+0x50/0xe8 [ 101.759353] [] __hrtimer_run_queues+0x48/0x6c [ 101.765254] [] hrtimer_interrupt+0xca/0x1d4 [ 101.770985] [] riscv_timer_interrupt+0x32/0x3a [ 101.776976] [] do_IRQ+0xa4/0xb8 [ 101.781663] [] ret_from_exception+0x0/0xc Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."