linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fpga: stratix10-soc: fix compilation + COMPILE_TEST
@ 2025-11-06 18:59 Rosen Penev
  2025-11-06 18:59 ` [PATCH 1/2] fpga: stratix10-soc: add missing header Rosen Penev
  2025-11-06 18:59 ` [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support Rosen Penev
  0 siblings, 2 replies; 11+ messages in thread
From: Rosen Penev @ 2025-11-06 18:59 UTC (permalink / raw)
  To: linux-fpga; +Cc: Moritz Fischer, Xu Yilun, Tom Rix, open list

Add missing header and add COMPILE_TEST to prevent future build
failures.

Rosen Penev (2):
  fpga: stratix10-soc: add missing header
  fpga: stratix10-soc: add COMPILE_TEST support

 drivers/fpga/Kconfig         | 2 +-
 drivers/fpga/stratix10-soc.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

--
2.51.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/2] fpga: stratix10-soc: add missing header
  2025-11-06 18:59 [PATCH 0/2] fpga: stratix10-soc: fix compilation + COMPILE_TEST Rosen Penev
@ 2025-11-06 18:59 ` Rosen Penev
  2025-11-07  6:58   ` Xu Yilun
  2025-11-06 18:59 ` [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support Rosen Penev
  1 sibling, 1 reply; 11+ messages in thread
From: Rosen Penev @ 2025-11-06 18:59 UTC (permalink / raw)
  To: linux-fpga; +Cc: Moritz Fischer, Xu Yilun, Tom Rix, open list

linux/sizes.h is needed for SZ_512K.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 drivers/fpga/stratix10-soc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c
index 0a295ccf1644..ab309cbf21c6 100644
--- a/drivers/fpga/stratix10-soc.c
+++ b/drivers/fpga/stratix10-soc.c
@@ -11,6 +11,7 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
+#include <linux/sizes.h>
 
 /*
  * FPGA programming requires a higher level of privilege (EL3), per the SoC
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-06 18:59 [PATCH 0/2] fpga: stratix10-soc: fix compilation + COMPILE_TEST Rosen Penev
  2025-11-06 18:59 ` [PATCH 1/2] fpga: stratix10-soc: add missing header Rosen Penev
@ 2025-11-06 18:59 ` Rosen Penev
  2025-11-07  7:16   ` Xu Yilun
                     ` (2 more replies)
  1 sibling, 3 replies; 11+ messages in thread
From: Rosen Penev @ 2025-11-06 18:59 UTC (permalink / raw)
  To: linux-fpga; +Cc: Moritz Fischer, Xu Yilun, Tom Rix, open list

Allow the buildbots to find compilation issues.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 drivers/fpga/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index 311313f3b282..f2e2776acdd5 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -60,7 +60,7 @@ config FPGA_MGR_ZYNQ_FPGA
 
 config FPGA_MGR_STRATIX10_SOC
 	tristate "Intel Stratix10 SoC FPGA Manager"
-	depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE)
+	depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE) || COMPILE_TEST
 	help
 	  FPGA manager driver support for the Intel Stratix10 SoC.
 
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/2] fpga: stratix10-soc: add missing header
  2025-11-06 18:59 ` [PATCH 1/2] fpga: stratix10-soc: add missing header Rosen Penev
@ 2025-11-07  6:58   ` Xu Yilun
  2025-11-07 19:27     ` Rosen Penev
  0 siblings, 1 reply; 11+ messages in thread
From: Xu Yilun @ 2025-11-07  6:58 UTC (permalink / raw)
  To: Rosen Penev; +Cc: linux-fpga, Moritz Fischer, Xu Yilun, Tom Rix, open list

On Thu, Nov 06, 2025 at 10:59:37AM -0800, Rosen Penev wrote:
> linux/sizes.h is needed for SZ_512K.

Does it always fail or only with COMPILE_TEST?

Please add "fixes" & Cc stable kernel if it always fail.

> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
>  drivers/fpga/stratix10-soc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c
> index 0a295ccf1644..ab309cbf21c6 100644
> --- a/drivers/fpga/stratix10-soc.c
> +++ b/drivers/fpga/stratix10-soc.c
> @@ -11,6 +11,7 @@
>  #include <linux/of.h>
>  #include <linux/of_platform.h>
>  #include <linux/platform_device.h>
> +#include <linux/sizes.h>
>  
>  /*
>   * FPGA programming requires a higher level of privilege (EL3), per the SoC
> -- 
> 2.51.2
> 
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-06 18:59 ` [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support Rosen Penev
@ 2025-11-07  7:16   ` Xu Yilun
  2025-11-07 19:28     ` Rosen Penev
  2025-11-10  3:21   ` kernel test robot
  2025-11-10 16:44   ` kernel test robot
  2 siblings, 1 reply; 11+ messages in thread
From: Xu Yilun @ 2025-11-07  7:16 UTC (permalink / raw)
  To: Rosen Penev; +Cc: linux-fpga, Moritz Fischer, Xu Yilun, Tom Rix, open list

On Thu, Nov 06, 2025 at 10:59:38AM -0800, Rosen Penev wrote:
> Allow the buildbots to find compilation issues.
> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
>  drivers/fpga/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> index 311313f3b282..f2e2776acdd5 100644
> --- a/drivers/fpga/Kconfig
> +++ b/drivers/fpga/Kconfig
> @@ -60,7 +60,7 @@ config FPGA_MGR_ZYNQ_FPGA
>  
>  config FPGA_MGR_STRATIX10_SOC
>  	tristate "Intel Stratix10 SoC FPGA Manager"
> -	depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE)
> +	depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE) || COMPILE_TEST

I don't think it works without INTEL_STRATIX10_SERVICE, maybe:

	depends on ARCH_INTEL_SOCFPGA || COMPILE_TEST
	depends on INTEL_STRATIX10_SERVICE

But INTEL_STRATIX10_SERVICE depends on HAVE_ARM_SMCCC, and they all
require arch configurations...

>  	help
>  	  FPGA manager driver support for the Intel Stratix10 SoC.
>  
> -- 
> 2.51.2
> 
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/2] fpga: stratix10-soc: add missing header
  2025-11-07  6:58   ` Xu Yilun
@ 2025-11-07 19:27     ` Rosen Penev
  0 siblings, 0 replies; 11+ messages in thread
From: Rosen Penev @ 2025-11-07 19:27 UTC (permalink / raw)
  To: Xu Yilun; +Cc: linux-fpga, Moritz Fischer, Xu Yilun, Tom Rix, open list

On Thu, Nov 6, 2025 at 11:12 PM Xu Yilun <yilun.xu@linux.intel.com> wrote:
>
> On Thu, Nov 06, 2025 at 10:59:37AM -0800, Rosen Penev wrote:
> > linux/sizes.h is needed for SZ_512K.
>
> Does it always fail or only with COMPILE_TEST?
Well, COMPILE_TEST under x86. If I had to guess, this header gets
included from some ARM header.
>
> Please add "fixes" & Cc stable kernel if it always fail.
>
> >
> > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> > ---
> >  drivers/fpga/stratix10-soc.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c
> > index 0a295ccf1644..ab309cbf21c6 100644
> > --- a/drivers/fpga/stratix10-soc.c
> > +++ b/drivers/fpga/stratix10-soc.c
> > @@ -11,6 +11,7 @@
> >  #include <linux/of.h>
> >  #include <linux/of_platform.h>
> >  #include <linux/platform_device.h>
> > +#include <linux/sizes.h>
> >
> >  /*
> >   * FPGA programming requires a higher level of privilege (EL3), per the SoC
> > --
> > 2.51.2
> >
> >

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-07  7:16   ` Xu Yilun
@ 2025-11-07 19:28     ` Rosen Penev
  2025-11-08  4:01       ` Xu Yilun
  0 siblings, 1 reply; 11+ messages in thread
From: Rosen Penev @ 2025-11-07 19:28 UTC (permalink / raw)
  To: Xu Yilun; +Cc: linux-fpga, Moritz Fischer, Xu Yilun, Tom Rix, open list

On Thu, Nov 6, 2025 at 11:30 PM Xu Yilun <yilun.xu@linux.intel.com> wrote:
>
> On Thu, Nov 06, 2025 at 10:59:38AM -0800, Rosen Penev wrote:
> > Allow the buildbots to find compilation issues.
> >
> > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> > ---
> >  drivers/fpga/Kconfig | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> > index 311313f3b282..f2e2776acdd5 100644
> > --- a/drivers/fpga/Kconfig
> > +++ b/drivers/fpga/Kconfig
> > @@ -60,7 +60,7 @@ config FPGA_MGR_ZYNQ_FPGA
> >
> >  config FPGA_MGR_STRATIX10_SOC
> >       tristate "Intel Stratix10 SoC FPGA Manager"
> > -     depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE)
> > +     depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE) || COMPILE_TEST
>
> I don't think it works without INTEL_STRATIX10_SERVICE, maybe:
>
>         depends on ARCH_INTEL_SOCFPGA || COMPILE_TEST
>         depends on INTEL_STRATIX10_SERVICE
>
> But INTEL_STRATIX10_SERVICE depends on HAVE_ARM_SMCCC, and they all
> require arch configurations...
Yeah I don't think INTEL_STRATIX10_SERVICE is needed for COMPILE_TEST.
>
> >       help
> >         FPGA manager driver support for the Intel Stratix10 SoC.
> >
> > --
> > 2.51.2
> >
> >

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-07 19:28     ` Rosen Penev
@ 2025-11-08  4:01       ` Xu Yilun
  2025-11-10 20:24         ` Rosen Penev
  0 siblings, 1 reply; 11+ messages in thread
From: Xu Yilun @ 2025-11-08  4:01 UTC (permalink / raw)
  To: Rosen Penev; +Cc: linux-fpga, Moritz Fischer, Xu Yilun, Tom Rix, open list

On Fri, Nov 07, 2025 at 11:28:03AM -0800, Rosen Penev wrote:
> On Thu, Nov 6, 2025 at 11:30 PM Xu Yilun <yilun.xu@linux.intel.com> wrote:
> >
> > On Thu, Nov 06, 2025 at 10:59:38AM -0800, Rosen Penev wrote:
> > > Allow the buildbots to find compilation issues.
> > >
> > > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> > > ---
> > >  drivers/fpga/Kconfig | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> > > index 311313f3b282..f2e2776acdd5 100644
> > > --- a/drivers/fpga/Kconfig
> > > +++ b/drivers/fpga/Kconfig
> > > @@ -60,7 +60,7 @@ config FPGA_MGR_ZYNQ_FPGA
> > >
> > >  config FPGA_MGR_STRATIX10_SOC
> > >       tristate "Intel Stratix10 SoC FPGA Manager"
> > > -     depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE)
> > > +     depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE) || COMPILE_TEST
> >
> > I don't think it works without INTEL_STRATIX10_SERVICE, maybe:
> >
> >         depends on ARCH_INTEL_SOCFPGA || COMPILE_TEST
> >         depends on INTEL_STRATIX10_SERVICE
> >
> > But INTEL_STRATIX10_SERVICE depends on HAVE_ARM_SMCCC, and they all
> > require arch configurations...
> Yeah I don't think INTEL_STRATIX10_SERVICE is needed for COMPILE_TEST.

Have you actually passed compilation without INTEL_STRATIX10_SERVICE?
I can't image how it works without stratix10_svc_xx kAPI definitions.

> >
> > >       help
> > >         FPGA manager driver support for the Intel Stratix10 SoC.
> > >
> > > --
> > > 2.51.2
> > >
> > >

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-06 18:59 ` [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support Rosen Penev
  2025-11-07  7:16   ` Xu Yilun
@ 2025-11-10  3:21   ` kernel test robot
  2025-11-10 16:44   ` kernel test robot
  2 siblings, 0 replies; 11+ messages in thread
From: kernel test robot @ 2025-11-10  3:21 UTC (permalink / raw)
  To: Rosen Penev, linux-fpga
  Cc: oe-kbuild-all, Moritz Fischer, Xu Yilun, Tom Rix, linux-kernel

Hi Rosen,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc5 next-20251107]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/fpga-stratix10-soc-add-missing-header/20251107-030213
base:   linus/master
patch link:    https://lore.kernel.org/r/20251106185938.6419-3-rosenp%40gmail.com
patch subject: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20251110/202511101109.ZYEQ8h7p-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251110/202511101109.ZYEQ8h7p-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511101109.ZYEQ8h7p-lkp@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "stratix10_svc_free_channel" [drivers/fpga/stratix10-soc.ko] undefined!
>> ERROR: modpost: "stratix10_svc_send" [drivers/fpga/stratix10-soc.ko] undefined!
>> ERROR: modpost: "stratix10_svc_request_channel_byname" [drivers/fpga/stratix10-soc.ko] undefined!
>> ERROR: modpost: "stratix10_svc_free_memory" [drivers/fpga/stratix10-soc.ko] undefined!
>> ERROR: modpost: "stratix10_svc_done" [drivers/fpga/stratix10-soc.ko] undefined!
>> ERROR: modpost: "stratix10_svc_allocate_memory" [drivers/fpga/stratix10-soc.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-06 18:59 ` [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support Rosen Penev
  2025-11-07  7:16   ` Xu Yilun
  2025-11-10  3:21   ` kernel test robot
@ 2025-11-10 16:44   ` kernel test robot
  2 siblings, 0 replies; 11+ messages in thread
From: kernel test robot @ 2025-11-10 16:44 UTC (permalink / raw)
  To: Rosen Penev, linux-fpga
  Cc: oe-kbuild-all, Moritz Fischer, Xu Yilun, Tom Rix, linux-kernel

Hi Rosen,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc5 next-20251110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/fpga-stratix10-soc-add-missing-header/20251107-030213
base:   linus/master
patch link:    https://lore.kernel.org/r/20251106185938.6419-3-rosenp%40gmail.com
patch subject: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
config: nios2-allyesconfig (https://download.01.org/0day-ci/archive/20251111/202511110022.BepBhYbE-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251111/202511110022.BepBhYbE-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511110022.BepBhYbE-lkp@intel.com/

All errors (new ones prefixed by >>):

   nios2-linux-ld: drivers/fpga/stratix10-soc.o: in function `s10_remove':
>> stratix10-soc.c:(.text+0x1c): undefined reference to `stratix10_svc_free_channel'
>> stratix10-soc.c:(.text+0x1c): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_free_channel'
   nios2-linux-ld: drivers/fpga/stratix10-soc.o: in function `s10_svc_send_msg':
>> stratix10-soc.c:(.text+0xb4): undefined reference to `stratix10_svc_send'
>> stratix10-soc.c:(.text+0xb4): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_send'
   nios2-linux-ld: drivers/fpga/stratix10-soc.o: in function `s10_probe':
>> stratix10-soc.c:(.text+0x1d4): undefined reference to `stratix10_svc_request_channel_byname'
>> stratix10-soc.c:(.text+0x1d4): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_request_channel_byname'
>> nios2-linux-ld: stratix10-soc.c:(.text+0x25c): undefined reference to `stratix10_svc_free_channel'
   stratix10-soc.c:(.text+0x25c): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_free_channel'
   nios2-linux-ld: drivers/fpga/stratix10-soc.o: in function `s10_free_buffers':
>> stratix10-soc.c:(.text+0x344): undefined reference to `stratix10_svc_free_memory'
>> stratix10-soc.c:(.text+0x344): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_free_memory'
   nios2-linux-ld: drivers/fpga/stratix10-soc.o: in function `s10_ops_write_complete':
>> stratix10-soc.c:(.text+0x4b0): undefined reference to `stratix10_svc_done'
>> stratix10-soc.c:(.text+0x4b0): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_done'
   nios2-linux-ld: drivers/fpga/stratix10-soc.o: in function `s10_ops_write_init':
>> stratix10-soc.c:(.text+0x988): undefined reference to `stratix10_svc_allocate_memory'
>> stratix10-soc.c:(.text+0x988): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_allocate_memory'
>> nios2-linux-ld: stratix10-soc.c:(.text+0x9c0): undefined reference to `stratix10_svc_done'
   stratix10-soc.c:(.text+0x9c0): relocation truncated to fit: R_NIOS2_CALL26 against `stratix10_svc_done'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support
  2025-11-08  4:01       ` Xu Yilun
@ 2025-11-10 20:24         ` Rosen Penev
  0 siblings, 0 replies; 11+ messages in thread
From: Rosen Penev @ 2025-11-10 20:24 UTC (permalink / raw)
  To: Xu Yilun; +Cc: linux-fpga, Moritz Fischer, Xu Yilun, Tom Rix, open list

On Fri, Nov 7, 2025 at 8:16 PM Xu Yilun <yilun.xu@linux.intel.com> wrote:
>
> On Fri, Nov 07, 2025 at 11:28:03AM -0800, Rosen Penev wrote:
> > On Thu, Nov 6, 2025 at 11:30 PM Xu Yilun <yilun.xu@linux.intel.com> wrote:
> > >
> > > On Thu, Nov 06, 2025 at 10:59:38AM -0800, Rosen Penev wrote:
> > > > Allow the buildbots to find compilation issues.
> > > >
> > > > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> > > > ---
> > > >  drivers/fpga/Kconfig | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> > > > index 311313f3b282..f2e2776acdd5 100644
> > > > --- a/drivers/fpga/Kconfig
> > > > +++ b/drivers/fpga/Kconfig
> > > > @@ -60,7 +60,7 @@ config FPGA_MGR_ZYNQ_FPGA
> > > >
> > > >  config FPGA_MGR_STRATIX10_SOC
> > > >       tristate "Intel Stratix10 SoC FPGA Manager"
> > > > -     depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE)
> > > > +     depends on (ARCH_INTEL_SOCFPGA && INTEL_STRATIX10_SERVICE) || COMPILE_TEST
> > >
> > > I don't think it works without INTEL_STRATIX10_SERVICE, maybe:
> > >
> > >         depends on ARCH_INTEL_SOCFPGA || COMPILE_TEST
> > >         depends on INTEL_STRATIX10_SERVICE
> > >
> > > But INTEL_STRATIX10_SERVICE depends on HAVE_ARM_SMCCC, and they all
> > > require arch configurations...
> > Yeah I don't think INTEL_STRATIX10_SERVICE is needed for COMPILE_TEST.
>
> Have you actually passed compilation without INTEL_STRATIX10_SERVICE?
> I can't image how it works without stratix10_svc_xx kAPI definitions.
Based on kernel test bot, It seems INTEL_STRATIX10_SERVICE needs
COMPILE_TEST too.

It also needs fixing. On 32-bit, I get this output:

drivers/firmware/stratix10-rsu.c: In function ‘rsu_get_spt_callback’:
drivers/firmware/stratix10-rsu.c:285:28: error: left shift count >=
width of type [-Werror=shift-count-overflow]
  285 |         priv->spt0_address <<= 32;
      |                            ^~~
drivers/firmware/stratix10-rsu.c:289:28: error: left shift count >=
width of type [-Werror=shift-count-overflow]
  289 |         priv->spt1_address <<= 32;
      |                            ^~~
In file included from <command-line>:
drivers/firmware/stratix10-rsu.c: In function ‘rsu_status_callback’:
././include/linux/compiler_types.h:597:45: error: call to
‘__compiletime_assert_377’ declared with attribute error: FIELD_GET:
type of reg too small for mask
  597 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |                                             ^
././include/linux/compiler_types.h:578:25: note: in definition of
macro ‘__compiletime_assert’
  578 |                         prefix ## suffix();
         \
      |                         ^~~~~~
././include/linux/compiler_types.h:597:9: note: in expansion of macro
‘_compiletime_assert’
  597 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |         ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro
‘compiletime_assert’
   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
      |                                     ^~~~~~~~~~~~~~~~~~
./include/linux/bitfield.h:72:17: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
   72 |                 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask,
_mask) >     \
      |                 ^~~~~~~~~~~~~~~~
./include/linux/bitfield.h:155:17: note: in expansion of macro
‘__BF_FIELD_CHECK’
  155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET:
");       \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/stratix10-rsu.c:122:40: note: in expansion of macro ‘FIELD_GET’
  122 |                 priv->status.version = FIELD_GET(RSU_VERSION_MASK,
      |                                        ^~~~~~~~~
>
> > >
> > > >       help
> > > >         FPGA manager driver support for the Intel Stratix10 SoC.
> > > >
> > > > --
> > > > 2.51.2
> > > >
> > > >

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-11-10 20:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06 18:59 [PATCH 0/2] fpga: stratix10-soc: fix compilation + COMPILE_TEST Rosen Penev
2025-11-06 18:59 ` [PATCH 1/2] fpga: stratix10-soc: add missing header Rosen Penev
2025-11-07  6:58   ` Xu Yilun
2025-11-07 19:27     ` Rosen Penev
2025-11-06 18:59 ` [PATCH 2/2] fpga: stratix10-soc: add COMPILE_TEST support Rosen Penev
2025-11-07  7:16   ` Xu Yilun
2025-11-07 19:28     ` Rosen Penev
2025-11-08  4:01       ` Xu Yilun
2025-11-10 20:24         ` Rosen Penev
2025-11-10  3:21   ` kernel test robot
2025-11-10 16:44   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).