All of lore.kernel.org
 help / color / mirror / Atom feed
* more randconfig failures
@ 2021-01-27 21:16 Stefano Stabellini
  2021-01-27 21:23 ` Andrew Cooper
  2021-01-27 21:25 ` Julien Grall
  0 siblings, 2 replies; 9+ messages in thread
From: Stefano Stabellini @ 2021-01-27 21:16 UTC (permalink / raw)
  To: Doug Goldstein, fam, andrew.cooper3, Bertrand.Marquis, famzheng,
	wl, julien, jbeulich
  Cc: sstabellini, xen-devel

Hi all,

These are two recent randconfig build failures reported by gitlab (the
two patches that triggered the CI-loop are two patches to the
MAINTAINERS file -- certainly not the cause of the build issues):

x86 randconfig failure:
https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647

arm randconfig failure:
https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472

Cheers,

Stefano


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

* Re: more randconfig failures
  2021-01-27 21:16 more randconfig failures Stefano Stabellini
@ 2021-01-27 21:23 ` Andrew Cooper
  2021-01-28  8:11   ` Jan Beulich
  2021-01-27 21:25 ` Julien Grall
  1 sibling, 1 reply; 9+ messages in thread
From: Andrew Cooper @ 2021-01-27 21:23 UTC (permalink / raw)
  To: Stefano Stabellini, Doug Goldstein, fam, Bertrand.Marquis,
	famzheng, wl, julien, jbeulich
  Cc: xen-devel

On 27/01/2021 21:16, Stefano Stabellini wrote:
> Hi all,
>
> These are two recent randconfig build failures reported by gitlab (the
> two patches that triggered the CI-loop are two patches to the
> MAINTAINERS file -- certainly not the cause of the build issues):
>
> x86 randconfig failure:
> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647

This has been known and a source of intermittent failures for ages.

I already laid out how to fix it, by removing some inappropriate Kconfig
dependencies.  I'll get around to writing some patches when there aren't
more important tasks to do for 4.15.

~Andrew


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

* Re: more randconfig failures
  2021-01-27 21:16 more randconfig failures Stefano Stabellini
  2021-01-27 21:23 ` Andrew Cooper
@ 2021-01-27 21:25 ` Julien Grall
  2021-01-27 23:11   ` Rahul Singh
  1 sibling, 1 reply; 9+ messages in thread
From: Julien Grall @ 2021-01-27 21:25 UTC (permalink / raw)
  To: Stefano Stabellini, Bertrand Marquis, Rahul Singh
  Cc: Doug Goldstein, fam, Andrew Cooper, famzheng, Wei Liu,
	Jan Beulich, xen-devel

Hi,

On Wed, 27 Jan 2021 at 21:16, Stefano Stabellini <sstabellini@kernel.org> wrote:
>
> Hi all,
>
> These are two recent randconfig build failures reported by gitlab (the
> two patches that triggered the CI-loop are two patches to the
> MAINTAINERS file -- certainly not the cause of the build issues):
>
> x86 randconfig failure:
> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
>
> arm randconfig failure:
> https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472

make[5]: Leaving directory '/builds/xen-project/patchew/xen/xen/common/libfdt'
smmu-v3.c: In function 'acpi_smmu_get_options':
smmu-v3.c:3017:7: error: 'ACPI_IORT_SMMU_V3_CAVIUM_CN99XX' undeclared
(first use in this function)
 3017 |  case ACPI_IORT_SMMU_V3_CAVIUM_CN99XX:
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
smmu-v3.c:3017:7: note: each undeclared identifier is reported only
once for each function it appears in
smmu-v3.c:3020:7: error: 'ACPI_IORT_SMMU_V3_HISILICON_HI161X'
undeclared (first use in this function)
 3020 |  case ACPI_IORT_SMMU_V3_HISILICON_HI161X:
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  INIT_O  efi-dom0.init.o
smmu-v3.c: In function 'arm_smmu_device_acpi_probe':
smmu-v3.c:3035:36: error: implicit declaration of function
'dev_get_platdata' [-Werror=implicit-function-declaration]
 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
      |                                    ^~~~~~~~~~~~~~~~
smmu-v3.c:3035:36: error: nested extern declaration of
'dev_get_platdata' [-Werror=nested-externs]
smmu-v3.c:3035:10: error: cast to pointer from integer of different
size [-Werror=int-to-pointer-cast]
 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
      |          ^
ld    -EL  -r -o built_in.o memcpy.o memcmp.o memmove.o memset.o
memchr.o clear_page.o bitops.o find_next_bit.o strchr.o strcmp.o
strlen.o strncmp.o strnlen.o strrchr.o
cc1: all warnings being treated as errors

It looks like the SMMUv3 driver has not been built tested with
CONFIG_ACPI=y.  Bertrand, Rahul, can you take a look?

Cheers,


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

* Re: more randconfig failures
  2021-01-27 21:25 ` Julien Grall
@ 2021-01-27 23:11   ` Rahul Singh
  2021-01-28 16:34     ` Julien Grall
  0 siblings, 1 reply; 9+ messages in thread
From: Rahul Singh @ 2021-01-27 23:11 UTC (permalink / raw)
  To: Julien Grall
  Cc: Stefano Stabellini, Bertrand Marquis, Doug Goldstein, fam,
	Andrew Cooper, famzheng, Wei Liu, Jan Beulich, xen-devel

Hello Julien,

> On 27 Jan 2021, at 9:25 pm, Julien Grall <julien.grall.oss@gmail.com> wrote:
> 
> Hi,
> 
> On Wed, 27 Jan 2021 at 21:16, Stefano Stabellini <sstabellini@kernel.org> wrote:
>> 
>> Hi all,
>> 
>> These are two recent randconfig build failures reported by gitlab (the
>> two patches that triggered the CI-loop are two patches to the
>> MAINTAINERS file -- certainly not the cause of the build issues):
>> 
>> x86 randconfig failure:
>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
>> 
>> arm randconfig failure:
>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472
> 
> make[5]: Leaving directory '/builds/xen-project/patchew/xen/xen/common/libfdt'
> smmu-v3.c: In function 'acpi_smmu_get_options':
> smmu-v3.c:3017:7: error: 'ACPI_IORT_SMMU_V3_CAVIUM_CN99XX' undeclared
> (first use in this function)
> 3017 |  case ACPI_IORT_SMMU_V3_CAVIUM_CN99XX:
>      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> smmu-v3.c:3017:7: note: each undeclared identifier is reported only
> once for each function it appears in
> smmu-v3.c:3020:7: error: 'ACPI_IORT_SMMU_V3_HISILICON_HI161X'
> undeclared (first use in this function)
> 3020 |  case ACPI_IORT_SMMU_V3_HISILICON_HI161X:
>      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  INIT_O  efi-dom0.init.o
> smmu-v3.c: In function 'arm_smmu_device_acpi_probe':
> smmu-v3.c:3035:36: error: implicit declaration of function
> 'dev_get_platdata' [-Werror=implicit-function-declaration]
> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>      |                                    ^~~~~~~~~~~~~~~~
> smmu-v3.c:3035:36: error: nested extern declaration of
> 'dev_get_platdata' [-Werror=nested-externs]
> smmu-v3.c:3035:10: error: cast to pointer from integer of different
> size [-Werror=int-to-pointer-cast]
> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>      |          ^
> ld    -EL  -r -o built_in.o memcpy.o memcmp.o memmove.o memset.o
> memchr.o clear_page.o bitops.o find_next_bit.o strchr.o strcmp.o
> strlen.o strncmp.o strnlen.o strrchr.o
> cc1: all warnings being treated as errors
> 
> It looks like the SMMUv3 driver has not been built tested with
> CONFIG_ACPI=y.  Bertrand, Rahul, can you take a look?

Sorry my mistake I didn’t enable the ARM_SMMU_V3 with ACPI and tested the compilation.

There are two option to fix this:

1. #undef-ining the CONFIG_ACPI in the smmu-v3.c file and fix the compilation. In this case once we have ACPI IORT table code ported to XEN smmu-v3 code can be used at that time.
2.  Remove the arm_smmu_device_acpi_probe() from the smmu-v3.c now and once we have  ACPI IORT table code ported to XEN we can add it back.

Let me know your view I will send the patch to fix the compilation.

Regards,
Rahul
> 
> Cheers,


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

* Re: more randconfig failures
  2021-01-27 21:23 ` Andrew Cooper
@ 2021-01-28  8:11   ` Jan Beulich
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Beulich @ 2021-01-28  8:11 UTC (permalink / raw)
  To: Andrew Cooper, Stefano Stabellini
  Cc: xen-devel, julien, wl, Bertrand.Marquis, fam, famzheng, Doug Goldstein

On 27.01.2021 22:23, Andrew Cooper wrote:
> On 27/01/2021 21:16, Stefano Stabellini wrote:
>> Hi all,
>>
>> These are two recent randconfig build failures reported by gitlab (the
>> two patches that triggered the CI-loop are two patches to the
>> MAINTAINERS file -- certainly not the cause of the build issues):
>>
>> x86 randconfig failure:
>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
> 
> This has been known and a source of intermittent failures for ages.
> 
> I already laid out how to fix it, by removing some inappropriate Kconfig
> dependencies.  I'll get around to writing some patches when there aren't
> more important tasks to do for 4.15.

Are you sure? I see

ld: ld: /builds/xen-project/patchew/xen/xen/.xen-syms.0: hidden symbol `xenmem_add_to_physmap_one' isn't defined

which rather reminds me of a recent report where DCE doesn't do what we
expect it to do.

Jan


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

* Re: more randconfig failures
  2021-01-27 23:11   ` Rahul Singh
@ 2021-01-28 16:34     ` Julien Grall
  2021-01-28 16:46       ` Jan Beulich
  2021-01-28 17:20       ` Rahul Singh
  0 siblings, 2 replies; 9+ messages in thread
From: Julien Grall @ 2021-01-28 16:34 UTC (permalink / raw)
  To: Rahul Singh, Julien Grall
  Cc: Stefano Stabellini, Bertrand Marquis, Doug Goldstein, fam,
	Andrew Cooper, famzheng, Wei Liu, Jan Beulich, xen-devel

On 27/01/2021 23:11, Rahul Singh wrote:
> Hello Julien,

Hi Rahul,

>> On 27 Jan 2021, at 9:25 pm, Julien Grall <julien.grall.oss@gmail.com> wrote:
>>
>> Hi,
>>
>> On Wed, 27 Jan 2021 at 21:16, Stefano Stabellini <sstabellini@kernel.org> wrote:
>>>
>>> Hi all,
>>>
>>> These are two recent randconfig build failures reported by gitlab (the
>>> two patches that triggered the CI-loop are two patches to the
>>> MAINTAINERS file -- certainly not the cause of the build issues):
>>>
>>> x86 randconfig failure:
>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
>>>
>>> arm randconfig failure:
>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472
>>
>> make[5]: Leaving directory '/builds/xen-project/patchew/xen/xen/common/libfdt'
>> smmu-v3.c: In function 'acpi_smmu_get_options':
>> smmu-v3.c:3017:7: error: 'ACPI_IORT_SMMU_V3_CAVIUM_CN99XX' undeclared
>> (first use in this function)
>> 3017 |  case ACPI_IORT_SMMU_V3_CAVIUM_CN99XX:
>>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> smmu-v3.c:3017:7: note: each undeclared identifier is reported only
>> once for each function it appears in
>> smmu-v3.c:3020:7: error: 'ACPI_IORT_SMMU_V3_HISILICON_HI161X'
>> undeclared (first use in this function)
>> 3020 |  case ACPI_IORT_SMMU_V3_HISILICON_HI161X:
>>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   INIT_O  efi-dom0.init.o
>> smmu-v3.c: In function 'arm_smmu_device_acpi_probe':
>> smmu-v3.c:3035:36: error: implicit declaration of function
>> 'dev_get_platdata' [-Werror=implicit-function-declaration]
>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>       |                                    ^~~~~~~~~~~~~~~~
>> smmu-v3.c:3035:36: error: nested extern declaration of
>> 'dev_get_platdata' [-Werror=nested-externs]
>> smmu-v3.c:3035:10: error: cast to pointer from integer of different
>> size [-Werror=int-to-pointer-cast]
>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>       |          ^
>> ld    -EL  -r -o built_in.o memcpy.o memcmp.o memmove.o memset.o
>> memchr.o clear_page.o bitops.o find_next_bit.o strchr.o strcmp.o
>> strlen.o strncmp.o strnlen.o strrchr.o
>> cc1: all warnings being treated as errors
>>
>> It looks like the SMMUv3 driver has not been built tested with
>> CONFIG_ACPI=y.  Bertrand, Rahul, can you take a look?
> 
> Sorry my mistake I didn’t enable the ARM_SMMU_V3 with ACPI and tested the compilation.
> 
> There are two option to fix this:
> 
> 1. #undef-ining the CONFIG_ACPI in the smmu-v3.c file and fix the compilation. In this case once we have ACPI IORT table code ported to XEN smmu-v3 code can be used at that time.
> 2.  Remove the arm_smmu_device_acpi_probe() from the smmu-v3.c now and once we have  ACPI IORT table code ported to XEN we can add it back.

How about the following?

3. Only allow the user to build the SMMUv3 when !CONFIG_ACPI.

Cheers,

-- 
Julien Grall


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

* Re: more randconfig failures
  2021-01-28 16:34     ` Julien Grall
@ 2021-01-28 16:46       ` Jan Beulich
  2021-01-28 17:45         ` Julien Grall
  2021-01-28 17:20       ` Rahul Singh
  1 sibling, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2021-01-28 16:46 UTC (permalink / raw)
  To: Julien Grall, Rahul Singh, Julien Grall
  Cc: Stefano Stabellini, Bertrand Marquis, Doug Goldstein, fam,
	Andrew Cooper, famzheng, Wei Liu, xen-devel

On 28.01.2021 17:34, Julien Grall wrote:
> On 27/01/2021 23:11, Rahul Singh wrote:
>> Hello Julien,
> 
> Hi Rahul,
> 
>>> On 27 Jan 2021, at 9:25 pm, Julien Grall <julien.grall.oss@gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> On Wed, 27 Jan 2021 at 21:16, Stefano Stabellini <sstabellini@kernel.org> wrote:
>>>>
>>>> Hi all,
>>>>
>>>> These are two recent randconfig build failures reported by gitlab (the
>>>> two patches that triggered the CI-loop are two patches to the
>>>> MAINTAINERS file -- certainly not the cause of the build issues):
>>>>
>>>> x86 randconfig failure:
>>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
>>>>
>>>> arm randconfig failure:
>>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472
>>>
>>> make[5]: Leaving directory '/builds/xen-project/patchew/xen/xen/common/libfdt'
>>> smmu-v3.c: In function 'acpi_smmu_get_options':
>>> smmu-v3.c:3017:7: error: 'ACPI_IORT_SMMU_V3_CAVIUM_CN99XX' undeclared
>>> (first use in this function)
>>> 3017 |  case ACPI_IORT_SMMU_V3_CAVIUM_CN99XX:
>>>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> smmu-v3.c:3017:7: note: each undeclared identifier is reported only
>>> once for each function it appears in
>>> smmu-v3.c:3020:7: error: 'ACPI_IORT_SMMU_V3_HISILICON_HI161X'
>>> undeclared (first use in this function)
>>> 3020 |  case ACPI_IORT_SMMU_V3_HISILICON_HI161X:
>>>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>   INIT_O  efi-dom0.init.o
>>> smmu-v3.c: In function 'arm_smmu_device_acpi_probe':
>>> smmu-v3.c:3035:36: error: implicit declaration of function
>>> 'dev_get_platdata' [-Werror=implicit-function-declaration]
>>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>>       |                                    ^~~~~~~~~~~~~~~~
>>> smmu-v3.c:3035:36: error: nested extern declaration of
>>> 'dev_get_platdata' [-Werror=nested-externs]
>>> smmu-v3.c:3035:10: error: cast to pointer from integer of different
>>> size [-Werror=int-to-pointer-cast]
>>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>>       |          ^
>>> ld    -EL  -r -o built_in.o memcpy.o memcmp.o memmove.o memset.o
>>> memchr.o clear_page.o bitops.o find_next_bit.o strchr.o strcmp.o
>>> strlen.o strncmp.o strnlen.o strrchr.o
>>> cc1: all warnings being treated as errors
>>>
>>> It looks like the SMMUv3 driver has not been built tested with
>>> CONFIG_ACPI=y.  Bertrand, Rahul, can you take a look?
>>
>> Sorry my mistake I didn’t enable the ARM_SMMU_V3 with ACPI and tested the compilation.
>>
>> There are two option to fix this:
>>
>> 1. #undef-ining the CONFIG_ACPI in the smmu-v3.c file and fix the compilation. In this case once we have ACPI IORT table code ported to XEN smmu-v3 code can be used at that time.
>> 2.  Remove the arm_smmu_device_acpi_probe() from the smmu-v3.c now and once we have  ACPI IORT table code ported to XEN we can add it back.
> 
> How about the following?
> 
> 3. Only allow the user to build the SMMUv3 when !CONFIG_ACPI.

And then perhaps as "depends on !ACPI || BROKEN" in Kconfig?

Jan


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

* Re: more randconfig failures
  2021-01-28 16:34     ` Julien Grall
  2021-01-28 16:46       ` Jan Beulich
@ 2021-01-28 17:20       ` Rahul Singh
  1 sibling, 0 replies; 9+ messages in thread
From: Rahul Singh @ 2021-01-28 17:20 UTC (permalink / raw)
  To: Julien Grall
  Cc: Julien Grall, Stefano Stabellini, Bertrand Marquis,
	Doug Goldstein, fam, Andrew Cooper, famzheng, Wei Liu,
	Jan Beulich, xen-devel

Hello Julien,

> On 28 Jan 2021, at 4:34 pm, Julien Grall <julien@xen.org> wrote:
> 
> On 27/01/2021 23:11, Rahul Singh wrote:
>> Hello Julien,
> 
> Hi Rahul,
> 
>>> On 27 Jan 2021, at 9:25 pm, Julien Grall <julien.grall.oss@gmail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> On Wed, 27 Jan 2021 at 21:16, Stefano Stabellini <sstabellini@kernel.org> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> These are two recent randconfig build failures reported by gitlab (the
>>>> two patches that triggered the CI-loop are two patches to the
>>>> MAINTAINERS file -- certainly not the cause of the build issues):
>>>> 
>>>> x86 randconfig failure:
>>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
>>>> 
>>>> arm randconfig failure:
>>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472
>>> 
>>> make[5]: Leaving directory '/builds/xen-project/patchew/xen/xen/common/libfdt'
>>> smmu-v3.c: In function 'acpi_smmu_get_options':
>>> smmu-v3.c:3017:7: error: 'ACPI_IORT_SMMU_V3_CAVIUM_CN99XX' undeclared
>>> (first use in this function)
>>> 3017 |  case ACPI_IORT_SMMU_V3_CAVIUM_CN99XX:
>>>      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> smmu-v3.c:3017:7: note: each undeclared identifier is reported only
>>> once for each function it appears in
>>> smmu-v3.c:3020:7: error: 'ACPI_IORT_SMMU_V3_HISILICON_HI161X'
>>> undeclared (first use in this function)
>>> 3020 |  case ACPI_IORT_SMMU_V3_HISILICON_HI161X:
>>>      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>  INIT_O  efi-dom0.init.o
>>> smmu-v3.c: In function 'arm_smmu_device_acpi_probe':
>>> smmu-v3.c:3035:36: error: implicit declaration of function
>>> 'dev_get_platdata' [-Werror=implicit-function-declaration]
>>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>>      |                                    ^~~~~~~~~~~~~~~~
>>> smmu-v3.c:3035:36: error: nested extern declaration of
>>> 'dev_get_platdata' [-Werror=nested-externs]
>>> smmu-v3.c:3035:10: error: cast to pointer from integer of different
>>> size [-Werror=int-to-pointer-cast]
>>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>>      |          ^
>>> ld    -EL  -r -o built_in.o memcpy.o memcmp.o memmove.o memset.o
>>> memchr.o clear_page.o bitops.o find_next_bit.o strchr.o strcmp.o
>>> strlen.o strncmp.o strnlen.o strrchr.o
>>> cc1: all warnings being treated as errors
>>> 
>>> It looks like the SMMUv3 driver has not been built tested with
>>> CONFIG_ACPI=y.  Bertrand, Rahul, can you take a look?
>> Sorry my mistake I didn’t enable the ARM_SMMU_V3 with ACPI and tested the compilation.
>> There are two option to fix this:
>> 1. #undef-ining the CONFIG_ACPI in the smmu-v3.c file and fix the compilation. In this case once we have ACPI IORT table code ported to XEN smmu-v3 code can be used at that time.
>> 2.  Remove the arm_smmu_device_acpi_probe() from the smmu-v3.c now and once we have  ACPI IORT table code ported to XEN we can add it back.
> 
> How about the following?
> 
> 3. Only allow the user to build the SMMUv3 when !CONFIG_ACPI.
> 
Yes that also works for me I will send the patch to fix.

Regards,
Rahul
> Cheers,
> 
> -- 
> Julien Grall


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

* Re: more randconfig failures
  2021-01-28 16:46       ` Jan Beulich
@ 2021-01-28 17:45         ` Julien Grall
  0 siblings, 0 replies; 9+ messages in thread
From: Julien Grall @ 2021-01-28 17:45 UTC (permalink / raw)
  To: Jan Beulich, Rahul Singh, Julien Grall
  Cc: Stefano Stabellini, Bertrand Marquis, Doug Goldstein, fam,
	Andrew Cooper, famzheng, Wei Liu, xen-devel



On 28/01/2021 16:46, Jan Beulich wrote:
> On 28.01.2021 17:34, Julien Grall wrote:
>> On 27/01/2021 23:11, Rahul Singh wrote:
>>> Hello Julien,
>>
>> Hi Rahul,
>>
>>>> On 27 Jan 2021, at 9:25 pm, Julien Grall <julien.grall.oss@gmail.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> On Wed, 27 Jan 2021 at 21:16, Stefano Stabellini <sstabellini@kernel.org> wrote:
>>>>>
>>>>> Hi all,
>>>>>
>>>>> These are two recent randconfig build failures reported by gitlab (the
>>>>> two patches that triggered the CI-loop are two patches to the
>>>>> MAINTAINERS file -- certainly not the cause of the build issues):
>>>>>
>>>>> x86 randconfig failure:
>>>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990347647
>>>>>
>>>>> arm randconfig failure:
>>>>> https://gitlab.com/xen-project/patchew/xen/-/jobs/990335472
>>>>
>>>> make[5]: Leaving directory '/builds/xen-project/patchew/xen/xen/common/libfdt'
>>>> smmu-v3.c: In function 'acpi_smmu_get_options':
>>>> smmu-v3.c:3017:7: error: 'ACPI_IORT_SMMU_V3_CAVIUM_CN99XX' undeclared
>>>> (first use in this function)
>>>> 3017 |  case ACPI_IORT_SMMU_V3_CAVIUM_CN99XX:
>>>>        |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> smmu-v3.c:3017:7: note: each undeclared identifier is reported only
>>>> once for each function it appears in
>>>> smmu-v3.c:3020:7: error: 'ACPI_IORT_SMMU_V3_HISILICON_HI161X'
>>>> undeclared (first use in this function)
>>>> 3020 |  case ACPI_IORT_SMMU_V3_HISILICON_HI161X:
>>>>        |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>    INIT_O  efi-dom0.init.o
>>>> smmu-v3.c: In function 'arm_smmu_device_acpi_probe':
>>>> smmu-v3.c:3035:36: error: implicit declaration of function
>>>> 'dev_get_platdata' [-Werror=implicit-function-declaration]
>>>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>>>        |                                    ^~~~~~~~~~~~~~~~
>>>> smmu-v3.c:3035:36: error: nested extern declaration of
>>>> 'dev_get_platdata' [-Werror=nested-externs]
>>>> smmu-v3.c:3035:10: error: cast to pointer from integer of different
>>>> size [-Werror=int-to-pointer-cast]
>>>> 3035 |  node = *(struct acpi_iort_node **)dev_get_platdata(dev);
>>>>        |          ^
>>>> ld    -EL  -r -o built_in.o memcpy.o memcmp.o memmove.o memset.o
>>>> memchr.o clear_page.o bitops.o find_next_bit.o strchr.o strcmp.o
>>>> strlen.o strncmp.o strnlen.o strrchr.o
>>>> cc1: all warnings being treated as errors
>>>>
>>>> It looks like the SMMUv3 driver has not been built tested with
>>>> CONFIG_ACPI=y.  Bertrand, Rahul, can you take a look?
>>>
>>> Sorry my mistake I didn’t enable the ARM_SMMU_V3 with ACPI and tested the compilation.
>>>
>>> There are two option to fix this:
>>>
>>> 1. #undef-ining the CONFIG_ACPI in the smmu-v3.c file and fix the compilation. In this case once we have ACPI IORT table code ported to XEN smmu-v3 code can be used at that time.
>>> 2.  Remove the arm_smmu_device_acpi_probe() from the smmu-v3.c now and once we have  ACPI IORT table code ported to XEN we can add it back.
>>
>> How about the following?
>>
>> 3. Only allow the user to build the SMMUv3 when !CONFIG_ACPI.
> 
> And then perhaps as "depends on !ACPI || BROKEN" in Kconfig?

I am fine with that.

Cheers,

-- 
Julien Grall


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

end of thread, other threads:[~2021-01-28 17:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 21:16 more randconfig failures Stefano Stabellini
2021-01-27 21:23 ` Andrew Cooper
2021-01-28  8:11   ` Jan Beulich
2021-01-27 21:25 ` Julien Grall
2021-01-27 23:11   ` Rahul Singh
2021-01-28 16:34     ` Julien Grall
2021-01-28 16:46       ` Jan Beulich
2021-01-28 17:45         ` Julien Grall
2021-01-28 17:20       ` Rahul Singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.