Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1079200imm; Fri, 27 Jul 2018 10:45:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZRNHE5L/o088STy3XzzJ4qBN/J8kz1q84YnOuX6u+cwEZz3BLKdFk9kXRJfE+eq9Nq5T/ X-Received: by 2002:a63:8449:: with SMTP id k70-v6mr7009003pgd.309.1532713545108; Fri, 27 Jul 2018 10:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532713545; cv=none; d=google.com; s=arc-20160816; b=0eNuccfNB063yB0MNp2EmxSYlpEf4oiJaPkVwL8DDT1EQ5jQAC7+tMtakFs8pCXSw0 JwE28GPt1PTFSxXE7n8HQKZbE70aYiGl0LnYpC/5vGpu0P0yhPg40BAptprncTZVuE1s otQWVZA+IHFZmakN2SXjyAtYkhI0xZz0PhotrgSvpggNJnI22cFruUGMRlLLw91Pvcbz h6ETPqGIxgMpn8QI8fKjALXCsAIOHwlHJCoFmZ8up09R9HcNlp6mEjuv4QUKHCfCt3Os sAJFbwCHYaEXyRmrcbPGL+BH1e0HGGmSJ7yyyLw2IPIBjaD0ys34BHAQj0v6/i967UI8 JGQw== 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 :arc-authentication-results; bh=0YkVuKLSsr6yX7Or9yccVykE9Ufw4ZNQuv6BqQTXY90=; b=0q7ByrozMS43+kkIWLQf6grblJpW76tpQ5ZPUcoF9JzUNNJXfL/RbSQYTjLWt/Hjp/ eyO2LEZ2Ux6dHm52HbB4zQpbO/xwAHuFess8uoLc1anxMNy9ISl9S1eL9hxj0nCMsOJp lyR3fhhqIJdOyUGDY+ezyuW8T8qSDuSRDmXq7Jn0W7KaB2C2wNClUsxc2G2k5QyPVari 0yp8HD2kXEZCz+Qiug6lzFg9XpgHW9K9ZBs5m/vh+ohcCi/Qiq0VjalnLfCrKV1X5k+a EchATqWeRGRc66qB3qaA7VChqgSOJQ1mKJH4trAavL+OK8/oVfIhIFjyCp8Z1ENwSw3i 3ohA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="Z+qL/q7P"; 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 87-v6si4612568pfi.60.2018.07.27.10.45.28; Fri, 27 Jul 2018 10:45:45 -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="Z+qL/q7P"; 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 S2388997AbeG0THg (ORCPT + 99 others); Fri, 27 Jul 2018 15:07:36 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:23748 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388951AbeG0THg (ORCPT ); Fri, 27 Jul 2018 15:07:36 -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=1532713479; x=1564249479; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=o+XhC5hTUW8QSlbmNq+/Q0xh5YstXqE4KUh4i+xLo64=; b=Z+qL/q7PoIvCll+LxU7HQhw253mtWHlm8XLMpRgqdN5ftuI4RjiSXzEy XP44IrR8XsWIts7HTL4HH2bTVECFSAzfPJtIBtfgwqTe7IKJl3qKUPCJ8 eEpvGRf1M44ySKrh8DPRW0Sh1z4VwisYLHQrf+u8Q+YzHfFBVC/5f7TO3 6voUQNOnTP2MR+6lqoT7IWFtiokSt7VGdqh7DukEKu7llQId6irsgmgcd s1/A5ZC1Hu70V6V2qUSuH1a8Ihu+JRK6MeVbVq/3ETOZ0Hf4vf0VIMMIM /JAEsld/QyTdV17iqwauexj/VqLAsEi9vRLX2wynvdtqqP3VNUh1837uD Q==; X-IronPort-AV: E=Sophos;i="5.51,410,1526313600"; d="scan'208";a="188897726" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 28 Jul 2018 01:44:39 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 27 Jul 2018 10:33:12 -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; 27 Jul 2018 10:44:39 -0700 Subject: Re: [PATCH 9/9] clocksource: new RISC-V SBI timer driver To: Christoph Hellwig Cc: "tglx@linutronix.de" , "palmer@sifive.com" , "jason@lakedaemon.net" , "marc.zyngier@arm.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "aou@eecs.berkeley.edu" , Dmitriy Cherkasov , "anup@brainfault.org" , "linux-kernel@vger.kernel.org" , Palmer Dabbelt , "linux-riscv@lists.infradead.org" , "shorne@gmail.com" References: <20180726143723.16585-1-hch@lst.de> <20180726143723.16585-10-hch@lst.de> <972dacda-75d6-83cd-45e0-c7526a4e02ba@wdc.com> <20180727144148.GA29626@lst.de> From: Atish Patra Message-ID: Date: Fri, 27 Jul 2018 10:44:05 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180727144148.GA29626@lst.de> 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 7/27/18 7:38 AM, Christoph Hellwig wrote: > On Thu, Jul 26, 2018 at 11:51:56AM -0700, Atish Patra wrote: >> Should we follow the same prefix for these functions? >> either timer_riscv* or riscv_timer* ? >> >> Apologies for overlooking this in my timer patch as wel > > riscv_timer_* sounds saner to me, I can update that. > Thanks. >>> + struct clock_event_device *evdev = this_cpu_ptr(&riscv_clock_event); >>> + >> >> The comment about the purpose of clearing the interrupt in the original >> patch is removed here. If that's intentional, it's fine. >> >> I thought having that comment helps understanding the distinction between >> clearing the timer interrupt in SBI call & here. > > Yes, that was intentional. But given that I don't even understand why > not using an ABI for architectural interrupt source enable/disable maybe > I'm confused and should revisit that decision. > I tried adding a new SBI call to disable the interrupts. However, I realized that it is not recommended to change the SBI unless absolutely required. Here is the PR & following discussion. https://github.com/riscv/riscv-pk/pull/108 Regards, Atish