Re: [PATCH] amdgcn: Implement proper locks

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Mar 22 14:53, Andrew Stubbs wrote:
> This should prevent printf output from multiple threads getting garbled.
> 
> I don't know why IO ever worked properly -- probably it was always a bit
> broken -- but the GFX11 devices have a different cache architecture and
> trying to print from many threads at once corrupted the FILE buffers.
> ---
>  newlib/Makefile.in                        |  24 ++-
>  newlib/libc/sys/amdgcn/Makefile.inc       |   3 +-
>  newlib/libc/sys/amdgcn/include/sys/lock.h |  39 +++++
>  newlib/libc/sys/amdgcn/lock.c             | 187 ++++++++++++++++++++++
>  4 files changed, 250 insertions(+), 3 deletions(-)
>  create mode 100644 newlib/libc/sys/amdgcn/include/sys/lock.h
>  create mode 100644 newlib/libc/sys/amdgcn/lock.c

Pushed.

Thanks,
Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.