Re: atomic_testandclear_, atomic_testandset_

2018-06-24 Thread Matthew Macy
On Sun, Jun 24, 2018 at 01:42 Konstantin Belousov 
wrote:

> On Sat, Jun 23, 2018 at 01:38:07PM -0700, Matthew Macy wrote:
> > It turns out ck already has equivalent primitives. Pardon the noise.
> Why not to add trivial cmpset-based implementations to the lacking
> arches ?  If maintainers prefer proper ll/cs assembly, they would
> have the time to do it properly without ultimatum.



Good point.

>
>
> It is useful to utilize consistent atomic(9) KPI across kernel.
>


Agreed

>
> >
> > -M
> >
> > On Sat, Jun 23, 2018 at 12:18 Matthew Macy  wrote:
> >
> > > The functions in the subject are both documented in atomic(9) and are
> > > implemented by every arch except sparc64 and MIPS. I have some code in
> > > review that uses them that I intend to commit once the various design
> > > issues are addressed. Please implement them so that those targets can
> > > remain part of universe.
> > >
> > > Thanks in advance.
> > > -M
> > >
> > ___
> > freebsd-current@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atomic_testandclear_, atomic_testandset_

2018-06-24 Thread Konstantin Belousov
On Sat, Jun 23, 2018 at 01:38:07PM -0700, Matthew Macy wrote:
> It turns out ck already has equivalent primitives. Pardon the noise.
Why not to add trivial cmpset-based implementations to the lacking
arches ?  If maintainers prefer proper ll/cs assembly, they would
have the time to do it properly without ultimatum.

It is useful to utilize consistent atomic(9) KPI across kernel.

> 
> -M
> 
> On Sat, Jun 23, 2018 at 12:18 Matthew Macy  wrote:
> 
> > The functions in the subject are both documented in atomic(9) and are
> > implemented by every arch except sparc64 and MIPS. I have some code in
> > review that uses them that I intend to commit once the various design
> > issues are addressed. Please implement them so that those targets can
> > remain part of universe.
> >
> > Thanks in advance.
> > -M
> >
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atomic_testandclear_, atomic_testandset_

2018-06-23 Thread Matthew Macy
It turns out ck already has equivalent primitives. Pardon the noise.

-M

On Sat, Jun 23, 2018 at 12:18 Matthew Macy  wrote:

> The functions in the subject are both documented in atomic(9) and are
> implemented by every arch except sparc64 and MIPS. I have some code in
> review that uses them that I intend to commit once the various design
> issues are addressed. Please implement them so that those targets can
> remain part of universe.
>
> Thanks in advance.
> -M
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


atomic_testandclear_, atomic_testandset_

2018-06-23 Thread Matthew Macy
The functions in the subject are both documented in atomic(9) and are
implemented by every arch except sparc64 and MIPS. I have some code in
review that uses them that I intend to commit once the various design
issues are addressed. Please implement them so that those targets can
remain part of universe.

Thanks in advance.
-M
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"