Re: nandemulator

2019-02-23 Thread Warner Losh
On Sat, Feb 23, 2019 at 12:40 PM David Holland wrote: > Do we have docs for the object nandemulator is supposed to be > emulating? Some questions have arisen about how complete it is and > nobody I've talked to seems to really have answers. > So looking at the code... It's an ONFI emulator.

Re: RFC: New userspace fetch/store API

2019-02-23 Thread Jason Thorpe
> On Feb 23, 2019, at 6:35 PM, Robert Elz wrote: > > fuword/fuiword/suword/suiword (etc) are all ancient, and I would > have expected, largely deprecated these days - but what's wrong > with copyin/copyout ?Those could be optimised for particular > data sizes if there was some real need

Re: RFC: New userspace fetch/store API

2019-02-23 Thread Robert Elz
fuword/fuiword/suword/suiword (etc) are all ancient, and I would have expected, largely deprecated these days - but what's wrong with copyin/copyout ?Those could be optimised for particular data sizes if there was some real need for that. kre

Re: RFC: New userspace fetch/store API

2019-02-23 Thread Jason Thorpe
> On Feb 23, 2019, at 4:19 PM, Jason Thorpe wrote: >> On Feb 23, 2019, at 4:04 PM, matthew green wrote: >> >> i like this. the current API is ... odd. >> >> can you add alignment documentation? eg, if only to say that it >> must support aligned or unaligned accesses for the relevant >>

Re: RFC: New userspace fetch/store API

2019-02-23 Thread Jason Thorpe
> On Feb 23, 2019, at 4:04 PM, matthew green wrote: > > i like this. the current API is ... odd. Oh… any thoughts on “have intrsafe or not”? -- thorpej

Re: RFC: New userspace fetch/store API

2019-02-23 Thread Jason Thorpe
> On Feb 23, 2019, at 4:04 PM, matthew green wrote: > > i like this. the current API is ... odd. > > can you add alignment documentation? eg, if only to say that it > must support aligned or unaligned accesses for the relevant > datatypes. not sure what we need currently, ie, if unaligned

re: RFC: New userspace fetch/store API

2019-02-23 Thread matthew green
i like this. the current API is ... odd. can you add alignment documentation? eg, if only to say that it must support aligned or unaligned accesses for the relevant datatypes. not sure what we need currently, ie, if unaligned is needed because that happens today, or we can define it as wrong

RFC: New userspace fetch/store API

2019-02-23 Thread Jason Thorpe
The existing fetch(9) / store(9) APIs have some problems. Specifically: ==> Their return semantics mean that fuword() cannot disambiguate between an error condition (-1) and a legitimate fetch of -1 from user space. ==> “word” is poorly defined. For all practical purposes, it means “long”,

nandemulator

2019-02-23 Thread David Holland
Do we have docs for the object nandemulator is supposed to be emulating? Some questions have arisen about how complete it is and nobody I've talked to seems to really have answers. -- David A. Holland dholl...@netbsd.org

Fix the NetBSD/i386 build with Kernel Sanitizers

2019-02-23 Thread Kamil Rytarowski
Please review. Build errors and proposed patches are in the .txt files. http://netbsd.org/~kamil/patch-00087-amdgpu_cz_smc.c.txt http://netbsd.org/~kamil/patch-00088-amdgpu_display.c.txt http://netbsd.org/~kamil/patch-00089-amdgpu_gfx_v8_0.c.txt