Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Atish Patra
On Tue, 2019-08-27 at 15:06 +0530, Anup Patel wrote: > On Tue, Aug 27, 2019 at 5:03 AM Atish Patra > wrote: > > The SBI v0.2 introduces a base extension which is backward > > compatible > > with v0.1. Implement all helper functions and minimum required SBI > > calls from v0.2 for now. All other ba

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Atish Patra
On Tue, 2019-08-27 at 11:39 +0300, Mike Rapoport wrote: > On Tue, Aug 27, 2019 at 01:53:23PM +0530, Anup Patel wrote: > > On Tue, Aug 27, 2019 at 1:28 PM Mike Rapoport > > wrote: > > > On Mon, Aug 26, 2019 at 04:32:56PM -0700, Atish Patra wrote: > > > > The SBI v0.2 introduces a base extension whi

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Christoph Hellwig
> +#define SBI_EXT_BASE 0x10 I think you want an enum enumerating the extensions. > +#define SBI_CALL_LEGACY(ext, fid, arg0, arg1, arg2, arg3) ({ \ > register uintptr_t a0 asm ("a0") = (uintptr_t)(arg0); \ > register uintptr_t a1 asm ("a1") = (uintptr_t)(arg1); \ > register

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Anup Patel
On Tue, Aug 27, 2019 at 5:03 AM Atish Patra wrote: > > The SBI v0.2 introduces a base extension which is backward compatible > with v0.1. Implement all helper functions and minimum required SBI > calls from v0.2 for now. All other base extension function will be > added later as per need. > > Sign

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Anup Patel
On Tue, Aug 27, 2019 at 2:09 PM Mike Rapoport wrote: > > On Tue, Aug 27, 2019 at 01:53:23PM +0530, Anup Patel wrote: > > On Tue, Aug 27, 2019 at 1:28 PM Mike Rapoport wrote: > > > > > > On Mon, Aug 26, 2019 at 04:32:56PM -0700, Atish Patra wrote: > > > > The SBI v0.2 introduces a base extension w

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Mike Rapoport
On Tue, Aug 27, 2019 at 01:53:23PM +0530, Anup Patel wrote: > On Tue, Aug 27, 2019 at 1:28 PM Mike Rapoport wrote: > > > > On Mon, Aug 26, 2019 at 04:32:56PM -0700, Atish Patra wrote: > > > The SBI v0.2 introduces a base extension which is backward compatible > > > with v0.1. Implement all helper

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Anup Patel
On Tue, Aug 27, 2019 at 1:28 PM Mike Rapoport wrote: > > On Mon, Aug 26, 2019 at 04:32:56PM -0700, Atish Patra wrote: > > The SBI v0.2 introduces a base extension which is backward compatible > > with v0.1. Implement all helper functions and minimum required SBI > > calls from v0.2 for now. All ot

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Mike Rapoport
On Mon, Aug 26, 2019 at 04:32:56PM -0700, Atish Patra wrote: > The SBI v0.2 introduces a base extension which is backward compatible > with v0.1. Implement all helper functions and minimum required SBI > calls from v0.2 for now. All other base extension function will be > added later as per need. >