Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4672731imm; Mon, 17 Sep 2018 19:23:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYc3Y+mIKTDJr37LkzHutHMEjnVfb0m6ZZX5iaVLvSD3I2goFdTg9ceIqZfz+2nR7NNr8RR X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr28371960pfc.156.1537237404723; Mon, 17 Sep 2018 19:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537237404; cv=none; d=google.com; s=arc-20160816; b=HW8EYD+lEj4KxOpYWF4XTf10ecqnAvLMrsXyTfGflRYA45yYfcbivzT9npARptjrNn 3QYGTVrmrJpZGwcmsfbd+rCyotJ1E5pUnYC7JWIsELt1Wzoz1vSsLe46ZIXppZhaGb3j 9UogwzMWwEMa3YdnGCEFl0oBKEkOa4G5taIZviiZFSybl+UiqYb89xRms5W0xf8IVVjG gaB1HCDOyuHquaQ9hviwzgsbgZURw74jjIbmvkjr0nPGXQbTBCaeD6AINLPVaWggFcjo hTrVfT4LmXzy1W/UX9RADUkQS0urfLarfIsFt9Ee9rh/L9BJEZYhXu3qInr9rlEO4osf /rnw== 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=+naygFiJqok5q+uc9zCtVnTrzhEFyOTJUdXiXhlMwmo=; b=Ljltmq+JGVm23rtn3sMMAUSpQMc5OBqFGLJm0mqmTCWraYOPv5wFrwucDaekPFdi7m rIFGcvkNKv8iKOJsdu6qqu8ZdLzbBBH432Q8I+X52+Ka/5udnESiv4j6z+eN+tI9pwY/ r0Ac1IfBlBl/1+ls/LKN/JP69dV6Aial2tGG3S7HAVh66aD+9QvlnNy9d7u4cCTokthL 1KDmO4qqCxb59zxYZcmaats3sLTO2mJSJq1Rc83EqdvSXQX/vbpcgCZVjcef62/LS2nd atp1hhQDCgpn+H5EjhQ4mywRv3IGuOOprrjXtbiDwITMI3biKwyy6ZL4bbfFqqscY8hD 0I/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IYaXVfwN; 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 r59-v6si16526387plb.39.2018.09.17.19.23.08; Mon, 17 Sep 2018 19:23:24 -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=IYaXVfwN; 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 S1726759AbeIRHxR (ORCPT + 99 others); Tue, 18 Sep 2018 03:53:17 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:52846 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbeIRHxR (ORCPT ); Tue, 18 Sep 2018 03:53:17 -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=1537237404; x=1568773404; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=Ko73oEIYQ0SQVgw+OZMjPWghg7nBrzhiDJWDZ86DSpw=; b=IYaXVfwNghiZ6A0iMf9zr3r2Zj0zvbGky24e0nBK9JS1fp675uv5OXjH ttCfggOpjbDNXeZxL4zl7I+WgjWEJsDGuzfki2t1c61NecaZCU7GKzuer afvvUtEnr71PMjOvAUBWES7li3VkbvA/xyoAH1PICN2GCd5nSjZT+jlu5 F+YVgbgDEeTFM5kNDqjQPxlES2fj+TSoqF1reoNcbkqNzhwW8q3MKeWp+ 4ezm5uvbzUkEGdydFvgNH/YLSXP7HIrCOWYcEyyA0OpOrywWpR9JL6sHb h1fra7OS93PPvtMNLcZJigCJ6mqrvaUcLhCVX/Ijkyq5kR9lCBf/S4/Io w==; X-IronPort-AV: E=Sophos;i="5.53,387,1531756800"; d="scan'208";a="187544702" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 18 Sep 2018 10:23:24 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 17 Sep 2018 19:09:14 -0700 Received: from d4bdf12.ad.shared (HELO [10.86.55.130]) ([10.86.55.130]) by uls-op-cesaip02.wdc.com with ESMTP; 17 Sep 2018 19:23:03 -0700 Subject: Re: [RFC 2/3] RISC-V:Support per-hart timebase-frequency To: Christoph Hellwig 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" , "tglx@linutronix.de" References: <1536962096-233842-1-git-send-email-atish.patra@wdc.com> <1536962096-233842-3-git-send-email-atish.patra@wdc.com> <20180917142308.GB15588@infradead.org> From: Atish Patra Message-ID: <4d7c1d3d-df0b-df7c-aabd-8ce9fd9dc623@wdc.com> Date: Mon, 17 Sep 2018 19:23:02 -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: <20180917142308.GB15588@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 7:23 AM, Christoph Hellwig wrote: > On Fri, Sep 14, 2018 at 02:54:55PM -0700, Atish Patra wrote: >> Follow the updated DT specs and read the timebase-frequency >> from the boot cpu. Keep the old DT reading as well for backward >> compatibility. This patch is rework of old patch from Palmer. >> >> Signed-off-by: Atish Patra > > This setup looks a bit odd because it keeps blindly overwriting > riscv_timebase for every cpu found. Shouldn't we at least check that > they all match for now as the rest of the port assumes that? > It will be only updated for boot cpu as it is done after this check. if (cpuid != smp_processor_id()) return 0; Regards, Atish