From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbdIPGX6 (ORCPT ); Sat, 16 Sep 2017 02:23:58 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35877 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbdIPGX4 (ORCPT ); Sat, 16 Sep 2017 02:23:56 -0400 X-ME-Sender: X-Sasl-enc: Jkn3xkuv+eMuycdT1rI08CctCFhin+80u/97N5Hzw8Fa 1505543033 Subject: Re: [PATCH v8 10/18] RISC-V: Init and Halt Code To: Daniel Lezcano , Palmer Dabbelt , peterz@infradead.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, Arnd Bergmann Cc: yamada.masahiro@socionext.com, mmarek@suse.com, albert@sifive.com, will.deacon@arm.com, boqun.feng@gmail.com, oleg@redhat.com, mingo@redhat.com, gregkh@linuxfoundation.org, jslaby@suse.com, davem@davemloft.net, mchehab@kernel.org, hverkuil@xs4all.nl, rdunlap@infradead.org, viro@zeniv.linux.org.uk, mhiramat@kernel.org, fweisbec@gmail.com, mcgrof@kernel.org, dledford@redhat.com, bart.vanassche@sandisk.com, sstabellini@kernel.org, mpe@ellerman.id.au, rmk+kernel@armlinux.org.uk, paul.gortmaker@windriver.com, nicolas.dichtel@6wind.com, linux@roeck-us.net, heiko.carstens@de.ibm.com, schwidefsky@de.ibm.com, geert@linux-m68k.org, akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, jiri@mellanox.com, vgupta@synopsys.com, airlied@redhat.com, jk@ozlabs.org, chris@chris-wilson.co.uk, Jason@zx2c4.com, paulmck@linux.vnet.ibm.com, ncardwell@google.com, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, patches@groups.riscv.org References: <20170912215715.4186-1-palmer@dabbelt.com> <20170912215715.4186-11-palmer@dabbelt.com> <799b75ef-f512-3182-bc6d-cc79afedf282@linaro.org> From: Dmitriy Cherkasov Message-ID: <98372099-25e1-f340-f204-8e9a10d659f9@oss-tech.org> Date: Fri, 15 Sep 2017 23:23:45 -0700 MIME-Version: 1.0 In-Reply-To: <799b75ef-f512-3182-bc6d-cc79afedf282@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/13/2017 11:15 AM, Daniel Lezcano wrote: > > All this code must go in the timer side and use the TIMER_OF_DECLARE > macro with the proper wrappers. Hi, thanks for the feedback. Agreed. I'll clean this up. > > Where is the request_per_cpu_interrupt()? > > What is this riscv_timer_interrupt() signature? This arch defines a separate exception type for local timer interrupts. Currently the interrupt controller driver checks the trap cause register, determines that it's a timer, and calls the handler directly. To make this go through the interrupt subsystem, this driver would need to be reworked. > > Where is get_cycles64() ? This is in asm/timex.h. Should this be split into a separate asm header ala arm64? > > The timer driver should be self-contained and not spread across > different places, it is very difficult to review it. > > [ ... ] > Agreed, thanks again for reviewing it anyway :)