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]
Date: Mon, 18 Mar 2024 16:25:46 +0000
From: JiSheng Teoh <jisheng.teoh@...rfivetech.com>
To: Palmer Dabbelt <palmer@...osinc.com>, Conor Dooley <conor@...nel.org>
CC: "linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>, Conor
 Dooley <conor@...nel.org>, Conor Dooley <conor.dooley@...rochip.com>, Will
 Deacon <will@...nel.org>, Mark Rutland <mark.rutland@....com>,
	"linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v1] perf: starfive: fix 64-bit only COMPILE_TEST condition



> -----Original Message-----
> From: Palmer Dabbelt <palmer@...osinc.com>
> Sent: Tuesday, March 19, 2024 12:15 AM
> To: Conor Dooley <conor@...nel.org>
> Cc: linux-riscv@...ts.infradead.org; Conor Dooley <conor@...nel.org>; Conor Dooley <conor.dooley@...rochip.com>; Will Deacon
> <will@...nel.org>; Mark Rutland <mark.rutland@....com>; JiSheng Teoh <jisheng.teoh@...rfivetech.com>; linux-arm-
> kernel@...ts.infradead.org; linux-kernel@...r.kernel.org
> Subject: Re: [PATCH v1] perf: starfive: fix 64-bit only COMPILE_TEST condition
> 
> On Mon, 18 Mar 2024 08:35:04 PDT (-0700), Conor Dooley wrote:
> > From: Conor Dooley <conor.dooley@...rochip.com>
> >
> > ARCH_STARFIVE is not restricted to 64-bit platforms, so while Will's
> > addition of a 64-bit only condition satisfied the build robots doing
> > COMPILE_TEST builds, Palmer ran into the same problems with writeq()
> > being undefined during regular rv32 builds.
> >
> > Promote the dependency on 64-bit to its own `depends on` so that the
> > driver can never be included in 32-bit builds.
> >
> > Reported-by: Palmer Dabbelt <palmer@...osinc.com>
> > Fixes: c2b24812f7bc ("perf: starfive: Add StarLink PMU support")
> > Fixes: f0dbc6d0de38 ("perf: starfive: Only allow COMPILE_TEST for
> > 64-bit architectures")
> > Signed-off-by: Conor Dooley <conor.dooley@...rochip.com>
> > ---
> > CC: Will Deacon <will@...nel.org>
> > CC: Mark Rutland <mark.rutland@....com>
> > CC: Ji Sheng Teoh <jisheng.teoh@...rfivetech.com>
> > CC: linux-arm-kernel@...ts.infradead.org
> > CC: linux-kernel@...r.kernel.org
> > ---
> >  drivers/perf/Kconfig | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index
> > 5060e1f1ea10..7526a9e714fa 100644
> > --- a/drivers/perf/Kconfig
> > +++ b/drivers/perf/Kconfig
> > @@ -87,7 +87,8 @@ config RISCV_PMU_SBI
> >  	  filtering, counter configuration.
> >
> >  config STARFIVE_STARLINK_PMU
> > -	depends on ARCH_STARFIVE || (COMPILE_TEST && 64BIT)
> > +	depends on ARCH_STARFIVE || COMPILE_TEST
> > +	depends on 64BIT
> >  	bool "StarFive StarLink PMU"
> >  	help
> >  	   Provide support for StarLink Performance Monitor Unit.
> 
> Reviewed-by: Palmer Dabbelt <palmer@...osinc.com>
> Acked-by: Palmer Dabbelt <palmer@...osinc.com>

Acked-by: Ji Sheng Teoh <jisheng.teoh@...rfivetech.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ