lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJF2gTR=wTi6G7wFzOyUpQn72b3iKtAjzvBSFHNDgpPFboJs0w@mail.gmail.com>
Date:   Sat, 19 Mar 2022 11:58:52 +0800
From:   Guo Ren <guoren@...nel.org>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     Palmer Dabbelt <palmer@...osinc.com>, linux-csky@...r.kernel.org,
        linux-arch <linux-arch@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Guo Ren <guoren@...ux.alibaba.com>
Subject: Re: [PATCH] csky: Move to generic ticket-spinlock

Hi Arnd,

On Fri, Mar 18, 2022 at 6:58 PM Arnd Bergmann <arnd@...db.de> wrote:
>
> On Fri, Mar 18, 2022 at 9:34 AM <guoren@...nel.org> wrote:
> > @@ -3,6 +3,8 @@ generic-y += asm-offsets.h
> >  generic-y += extable.h
> >  generic-y += gpio.h
> >  generic-y += kvm_para.h
> > +generic-y += ticket-lock.h
> > +generic-y += ticket-lock-types.h
> >  generic-y += qrwlock.h
> >  generic-y += user.h
> >  generic-y += vmlinux.lds.h
>
> If these headers are not included from architecture-independent code,
> they should
> not be marked as generic-y, same as for the qrwlock.h header
>
> > +#include <asm/ticket-lock.h>
> >  #include <asm/qrwlock.h>
> >
> > ...
> > +#include <asm/ticket-lock-types.h>
> >  #include <asm-generic/qrwlock_types.h>
> >
>
> So these should all become
>
> #include <asm-generic/...h>
>
> It would however make sense to have the trivial two-line version
> of the two header files and put them into asm-generic/spinlock.h
> and asm-generic/spinlock-types.h, replacing the current version.
>
> If you do that, then you need a 'generic-y' line for spinlock.h,
> but not for the other ones.
Thx for the suggestion, I've sent V2 based on Palmer's series to make
the ticket spinlock more generic.
Please have a look:
https://lore.kernel.org/linux-arch/20220319035457.2214979-1-guoren@kernel.org/T/#t

>
>        Arnd




--
Best Regards
 Guo Ren

ML: https://lore.kernel.org/linux-csky/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ