Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5307293ybi; Tue, 28 May 2019 10:49:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYSLnmCTlfU77D/tdSjJb96SATAvE8MAIHfDkbw5DJjCAAGrKLwMMm4R4npkxMK6sGnns6 X-Received: by 2002:a63:fc61:: with SMTP id r33mr26668253pgk.294.1559065783079; Tue, 28 May 2019 10:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559065783; cv=none; d=google.com; s=arc-20160816; b=xVz7O7ew6BPMfHDiKpf/UXuytd1afq0KulmDaFb+qrWHUlDZY04yQeXkQ28f/HA0LN dW2YxR0VnV2Wk6ZxQJL8xEbA/NW9nH8uk4ZUPBSde70eauxFJgWFytkJWs+kgl80KEdk iDV9t+SiuA/YSULR39vxqr9zC8sJAtWEqRv5YOmKxb3MrJX9Cwly9laaRlKLeonDtEIj GZovO7eK1t4/fzj6ajIIy1/i1zjwCYXiGyTzIZvB81peVJp4Aok5cYZIJdaxAI+rYhE8 W12mbcjV3A6mtQT2Dh/+wBxvB9gCjqyn0BxAX1D0IbS4HvofKAyB7gPJq1rdDr7jMb78 fkFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date; bh=yQ0wPLtkdAzUq5XjJlbPIX/NMo5+U32U+TCJOUeQptg=; b=vildubO+1Bim74MJSsJB5seO1AnYPvUMsQ60Hij/LQFmbIXslpDQNukrG0XAA5jYBF xCZI/oAVQB0Gg3UDcqZkP9gK1nnnkcts9YjyN3MtpxC0MtOiVgPypTsQkSudBBTH3HtV HrTdE/+4ciZuA6DrUli+HOnNdEave354mZAGbhcBWixJEPq2Z+Hd+X+fPY2Jb8ZLZ+uh nJwF1/bnngEGrk+I6HfFS7CzPIGhizKNrZyS1oJY81CL8D+P2UFRtSZb3jLjPFLgd/rk JAZHQ/kmtxvj1xtGyJnM6xJ9R7GhwjqVkdncfLuX64B2zcZH1+YJEM4HX5uaTpLUB/8+ oPiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si389271pgi.289.2019.05.28.10.49.26; Tue, 28 May 2019 10:49:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727397AbfE1Rrx (ORCPT + 99 others); Tue, 28 May 2019 13:47:53 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42429 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfE1Rrw (ORCPT ); Tue, 28 May 2019 13:47:52 -0400 Received: by mail-pl1-f194.google.com with SMTP id go2so8626671plb.9 for ; Tue, 28 May 2019 10:47:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=yQ0wPLtkdAzUq5XjJlbPIX/NMo5+U32U+TCJOUeQptg=; b=TBovtBygk+ZIlkYKe37NadbVTUbqn3G4NcMMu/UzUF20xllryQ0Hi2MDc6/G3NcWax BBsuadPOwqvXqdCF/xtS0bEAz434edl0DhG7wovwxyEQvJfGQNIhYFCMTKPeUGwGTUVf PFBrIS+MMXD8WfLVKr5h3qC57QzkJs0yuhJ9beEUitnzZpE5yY73kRkV3UfPRP2ex4Oa /IsYJgtMttiRpjucb6r8qiPiAcTHuD44l/aiVT79fZ7FX9KcBcJCHopXs3CSIm+4SNUJ pG6pgLMZO2GZW4yEWYHccpEB7X07asUO8JzQ8put2923bFyn9MbsNUDY4BuMYVVjafCM ck8Q== X-Gm-Message-State: APjAAAVRAv5zzfyrhDj9BFQSHTuBNkoi8V706J4gg8CSbAmS4ZkLFB6w DzyaRn2N9MeTbIemmjDq43d05g== X-Received: by 2002:a17:902:1126:: with SMTP id d35mr101551544pla.82.1559065671746; Tue, 28 May 2019 10:47:51 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id d9sm12944666pgj.34.2019.05.28.10.47.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 10:47:51 -0700 (PDT) Date: Tue, 28 May 2019 10:47:51 -0700 (PDT) X-Google-Original-Date: Tue, 28 May 2019 10:47:49 PDT (-0700) Subject: Re: [PATCH] RISC-V: defconfig: Enable NO_HZ_IDLE and HIGH_RES_TIMERS In-Reply-To: CC: Anup Patel , aou@eecs.berkeley.edu, Atish Patra , Christoph Hellwig , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: anup@brainfault.org, Paul Walmsley Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 May 2019 01:05:22 PDT (-0700), anup@brainfault.org wrote: > On Wed, May 15, 2019 at 12:00 PM Anup Patel wrote: >> >> This patch enables NO_HZ_IDLE (idle dynamic ticks) and HIGH_RES_TIMERS >> (hrtimers) in RV32 and RV64 defconfigs. >> >> Both of the above options are enabled by default for architectures >> such as x86, ARM, and ARM64. >> >> The idle dynamic ticks helps use save power by stopping timer ticks >> when the system is idle whereas hrtimers is a much improved timer >> subsystem compared to the old "timer wheel" based system. >> >> This patch is tested on SiFive Unleashed board and QEMU Virt machine. >> >> Signed-off-by: Anup Patel >> --- >> arch/riscv/configs/defconfig | 2 ++ >> arch/riscv/configs/rv32_defconfig | 2 ++ >> 2 files changed, 4 insertions(+) >> >> diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig >> index 2fd3461e50ab..f254c352ec57 100644 >> --- a/arch/riscv/configs/defconfig >> +++ b/arch/riscv/configs/defconfig >> @@ -1,5 +1,7 @@ >> CONFIG_SYSVIPC=y >> CONFIG_POSIX_MQUEUE=y >> +CONFIG_NO_HZ_IDLE=y >> +CONFIG_HIGH_RES_TIMERS=y >> CONFIG_IKCONFIG=y >> CONFIG_IKCONFIG_PROC=y >> CONFIG_CGROUPS=y >> diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig >> index 1a911ed8e772..d5449ef805a3 100644 >> --- a/arch/riscv/configs/rv32_defconfig >> +++ b/arch/riscv/configs/rv32_defconfig >> @@ -1,5 +1,7 @@ >> CONFIG_SYSVIPC=y >> CONFIG_POSIX_MQUEUE=y >> +CONFIG_NO_HZ_IDLE=y >> +CONFIG_HIGH_RES_TIMERS=y >> CONFIG_IKCONFIG=y >> CONFIG_IKCONFIG_PROC=y >> CONFIG_CGROUPS=y >> -- >> 2.17.1 >> > > Hi All, > > Any comments on this one? > > @Palmer, It would be nice to have this in Linux-5.2 My only issue here is testing: IIRC last time we tried this it ended up causing trouble. I'm in the process of switching to Yocto right now for my tests, so it'll be a bit slow.