Re: [PATCH 3/5] clocksource/drivers/timer-riscv: Remove MMIO related stuff

2020-06-06 Thread Anup Patel
On Fri, Jun 5, 2020 at 2:10 AM Palmer Dabbelt wrote: > > On Thu, 21 May 2020 06:45:42 PDT (-0700), Anup Patel wrote: > > Right now the RISC-V timer is convoluted to support: > > 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR > >for clocksource and SBI timer calls for clockevent

Re: [PATCH 3/5] clocksource/drivers/timer-riscv: Remove MMIO related stuff

2020-06-04 Thread Palmer Dabbelt
On Thu, 21 May 2020 06:45:42 PDT (-0700), Anup Patel wrote: Right now the RISC-V timer is convoluted to support: 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for clocksource and SBI timer calls for clockevent device. 2. Linux RISC-V M-mode (without MMU) where it will use CLINT

[PATCH 3/5] clocksource/drivers/timer-riscv: Remove MMIO related stuff

2020-05-21 Thread Anup Patel
Right now the RISC-V timer is convoluted to support: 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for clocksource and SBI timer calls for clockevent device. 2. Linux RISC-V M-mode (without MMU) where it will use CLINT MMIO counter register for clocksource and CLINT MMIO