Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4306271imm; Mon, 17 Sep 2018 11:33:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBpidkgY3j5EbN/POi8DKx4/pYArMm5aXC2MMlBGihxOUhWYym3g04FgblAi3YCJlfG1/n X-Received: by 2002:a17:902:4401:: with SMTP id k1-v6mr25219217pld.97.1537209185101; Mon, 17 Sep 2018 11:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537209185; cv=none; d=google.com; s=arc-20160816; b=XWMysTFNyiezpkHb/aTW/wO52cUctJWaENulkL3DCliBRTMGAc/rKsMEzQJUBhZxKr eqDT/Kid0mfITjbxJotAhHqfObyODL+ysEni0S6muy/pQsr7jOK49WdMtWNjL2NiC3IN YYMfnK+s1MTxT/R22Gu9gSCmBVal1Ibm2SqnB7zHXx08Z3XTeXhO483+ruIYBGbg7iKx Lfu0YQ0Wr2h1Z9u/JnpehFcIeUWgJ17FArzVdviyIK6Vs/KPqOfTGeOO7WsISz8kVgXt 8HuJImEmaUbvZ02TwwFp9/6XFuceFj1NSYMYnZ0SYzdr02PM5PdFZL+LmlPHEIYrYuCn vi7w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=BI/HWm1t543kR76nENPStS5P6AJPYywURUo30FV6Yp0=; b=im2KCht7kJDpVU0jW7y6JOp8QGkcJKDkxoOFdJy1VDDaQ8svat6Y5UZmHghsu1DQOc QJvB3JVhQO+qzGYVBXXN2pwg2M3v1HASU6w7yT/63JLD+mV8sWv4S9as2HDT3FWr/tNT iHkYor02MXH/BTXHYjt3pjq/fJVYwbPJemtCxTXQGYO/DT+TxxGivIFg1K44lGSRVUqg 6teStsaPmCL1g2y3chk07IGodVpL/U5S7Z9m3T5krxZP+DkOIS37+RvKWaw2FN1/Yo/h Bj+GKbI8nlejrK3fCnkVwxqabM9T3zRkYl4BTP7MS0FsNXk6+FcNa2ky+qS/qt2zQGm3 YmkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=KmyWuJ58; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t80-v6si17187855pfk.228.2018.09.17.11.32.35; Mon, 17 Sep 2018 11:33:05 -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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=KmyWuJ58; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbeIRABF (ORCPT + 99 others); Mon, 17 Sep 2018 20:01:05 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:34476 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbeIRABE (ORCPT ); Mon, 17 Sep 2018 20:01:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1537209152; x=1568745152; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=osACigfG3tyoWZe0zxiSAjdhGvyjCfyNb7gzwub1hzE=; b=KmyWuJ586kqvessW+cMIFZk1nG7u0YWoxwiMrhKJEWQfiZT8VwSNP/CY vpDszvWLcxAgTkBJNOBCR9ZHqB8jHv+ZTitLTQoCXL9FWdYhmzOWcTzx/ yxlW2k7qgDNbBR5uJ4E2DBzaOe6gQKo/E4Kyb4zjTY+7DFE6tCM0niOWU wqgBTWtZGu09/u3OGvU3vV/UfGT8KZA9dQW27Xk6fFID+otE4vKZNnY9w aXTdZISxw1NWtb5zG6SSarGCntaR7TIWrKQZvylQrkMgMYruRrnYnEmQH PY3yHJrqfoVWWSmI+QRXi/K3WPDWg9pHH7Eyd+JoVKk7ms1jG8qjtsZ+e A==; X-IronPort-AV: E=Sophos;i="5.53,386,1531756800"; d="scan'208";a="89931325" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 18 Sep 2018 02:32:32 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 17 Sep 2018 11:18:53 -0700 Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.196.159.148]) ([10.196.159.148]) by uls-op-cesaip02.wdc.com with ESMTP; 17 Sep 2018 11:32:31 -0700 Subject: Re: [RFC 3/3] RISC-V: Remove per cpu clocksource To: Christoph Hellwig , Thomas Gleixner Cc: "palmer@sifive.com" , "linux-riscv@lists.infradead.org" , "mark.rutland@arm.com" , "robh@kernel.org" , Damien Le Moal , "marc.zyngier@arm.com" , "anup@brainfault.org" , "linux-kernel@vger.kernel.org" References: <1536962096-233842-1-git-send-email-atish.patra@wdc.com> <1536962096-233842-4-git-send-email-atish.patra@wdc.com> <20180917143550.GC15588@infradead.org> <20180917150149.GA25348@infradead.org> From: Atish Patra Message-ID: Date: Mon, 17 Sep 2018 11:32:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180917150149.GA25348@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/17/18 8:01 AM, Christoph Hellwig wrote: > On Mon, Sep 17, 2018 at 04:52:44PM +0200, Thomas Gleixner wrote: >> If this really does not need configuration and all actual implementations >> are not "allowed" to screw the timer up, then this surely can do without >> DT. > > That would be the plan. > >> >> Just for the record, this would be the first (architected) timer ever which >> just works. I'm having a hard time to believe this, but I'd certainly >> welcome it. > > And that would be the contact with reality. Note that the current > scheme which just matches for the riscv hart (aka cpu core) nodes > would not exactly help either. > I thought we will have a dedicated timer node (like all other arch) sooner or later and we will just change TIMER_OF to match that node instead of riscv hart. In this way, we will not do something entirely different from any other architecture. Regards, Atish >> >>> -TIMER_OF_DECLARE(riscv_timer, "riscv", riscv_timer_init_dt); >>> +core_initcall(riscv_timer_init); >> >> Are you sure that core_initcall is not too late? > > No, I'm not at all. This is just intended as a quick throw-away draft. >