linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux 5.16-rc3
       [not found] <CAMhs-H-nm1-B8tZejcZPN3jxF_HGr2tWMWmYJUJnz0jau=QcfQ@mail.gmail.com>
@ 2021-12-01 20:38 ` Bjorn Helgaas
  2021-12-01 20:50   ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2021-12-01 20:38 UTC (permalink / raw)
  To: Sergio Paracuellos
  Cc: Guenter Roeck, Randy Dunlap, Linus Torvalds,
	Linux Kernel Mailing List, Lorenzo Pieralisi, Bjorn Helgaas,
	linux-pci

[+cc linux-pci]

On Mon, Nov 29, 2021 at 01:18:12PM +0100, Sergio Paracuellos wrote:
> On Mon, Nov 29, 2021 at 5:17 AM Guenter Roeck <linux@roeck-us.net> wrote:
> > On 11/28/21 7:07 PM, Randy Dunlap wrote:
> > > On 11/28/21 17:59, Guenter Roeck wrote:
> > >> ...
> > >> Build results:
> > >>     total: 153 pass: 152 fail: 1
> > >> Failed builds:
> > >>     mips:allmodconfig
> > >> Qemu test results:
> > >>     total: 482 pass: 482 fail: 0
> > >>
> > >> Building mips:allmodconfig ... failed
> > >> --------------
> > >> Error log:
> > >> ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/controller/pcie-mt7621.o
> > >> ERROR: modpost: "mips_cm_unlock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> > >> ERROR: modpost: "mips_cpc_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> > >> ERROR: modpost: "mips_cm_lock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> > >> ERROR: modpost: "mips_cm_is64" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> > >> ERROR: modpost: "mips_gcr_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> > >>
> > >> There is still no fix for the mips:allmodconfig build problem as far
> > >> as I can see. It is a bit odd, because the fix would be as simple as
> > >>
> > >>   config PCIE_MT7621
> > >> -    tristate "MediaTek MT7621 PCIe Controller"
> > >> -    depends on (RALINK && SOC_MT7621) || (MIPS && COMPILE_TEST)
> > >> +    bool "MediaTek MT7621 PCIe Controller"
> > >> +    depends on SOC_MT7621 || (MIPS && COMPILE_TEST)
> > >>       select PHY_MT7621_PCI
> > >>       default SOC_MT7621
> > >>       help
> > >>
> > >> Context: tristate doesn't make sense here because both RALINK and
> > >> SOC_MT7621 are bool. Also, RALINK is redundant because SOC_MT7621
> > >> already depends on it. The compile failure is due to missing exported
> > >> symbols, and it is only seen if PCIE_MT7621=m - which is only possible
> > >> if COMPILE_TEST=y. In other words, the dependencies above are set such
> > >> that test builds, and only test builds, fail.
> > >>
> > >> The problem was introduced with commit 2bdd5238e756 ("PCI: mt7621:
> > >> Add MediaTek MT7621 PCIe host controller driver"). Copying some of
> > >> those responsible to see if we can expect a solution sometime soon.

Can we do a minimal patch along the lines of the above for v5.16?

We can do the more extensive work as in 
https://lore.kernel.org/r/20211115070809.15529-1-sergio.paracuellos@gmail.com
but that would be material for v5.17.

Bjorn

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

* Re: Linux 5.16-rc3
  2021-12-01 20:38 ` Linux 5.16-rc3 Bjorn Helgaas
@ 2021-12-01 20:50   ` Guenter Roeck
  2021-12-01 21:38     ` Sergio Paracuellos
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2021-12-01 20:50 UTC (permalink / raw)
  To: Bjorn Helgaas, Sergio Paracuellos
  Cc: Randy Dunlap, Linus Torvalds, Linux Kernel Mailing List,
	Lorenzo Pieralisi, Bjorn Helgaas, linux-pci

On 12/1/21 12:38 PM, Bjorn Helgaas wrote:
> [+cc linux-pci]
> 
> On Mon, Nov 29, 2021 at 01:18:12PM +0100, Sergio Paracuellos wrote:
>> On Mon, Nov 29, 2021 at 5:17 AM Guenter Roeck <linux@roeck-us.net> wrote:
>>> On 11/28/21 7:07 PM, Randy Dunlap wrote:
>>>> On 11/28/21 17:59, Guenter Roeck wrote:
>>>>> ...
>>>>> Build results:
>>>>>      total: 153 pass: 152 fail: 1
>>>>> Failed builds:
>>>>>      mips:allmodconfig
>>>>> Qemu test results:
>>>>>      total: 482 pass: 482 fail: 0
>>>>>
>>>>> Building mips:allmodconfig ... failed
>>>>> --------------
>>>>> Error log:
>>>>> ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/controller/pcie-mt7621.o
>>>>> ERROR: modpost: "mips_cm_unlock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
>>>>> ERROR: modpost: "mips_cpc_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
>>>>> ERROR: modpost: "mips_cm_lock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
>>>>> ERROR: modpost: "mips_cm_is64" [drivers/pci/controller/pcie-mt7621.ko] undefined!
>>>>> ERROR: modpost: "mips_gcr_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
>>>>>
>>>>> There is still no fix for the mips:allmodconfig build problem as far
>>>>> as I can see. It is a bit odd, because the fix would be as simple as
>>>>>
>>>>>    config PCIE_MT7621
>>>>> -    tristate "MediaTek MT7621 PCIe Controller"
>>>>> -    depends on (RALINK && SOC_MT7621) || (MIPS && COMPILE_TEST)
>>>>> +    bool "MediaTek MT7621 PCIe Controller"
>>>>> +    depends on SOC_MT7621 || (MIPS && COMPILE_TEST)
>>>>>        select PHY_MT7621_PCI
>>>>>        default SOC_MT7621
>>>>>        help
>>>>>
>>>>> Context: tristate doesn't make sense here because both RALINK and
>>>>> SOC_MT7621 are bool. Also, RALINK is redundant because SOC_MT7621
>>>>> already depends on it. The compile failure is due to missing exported
>>>>> symbols, and it is only seen if PCIE_MT7621=m - which is only possible
>>>>> if COMPILE_TEST=y. In other words, the dependencies above are set such
>>>>> that test builds, and only test builds, fail.
>>>>>
>>>>> The problem was introduced with commit 2bdd5238e756 ("PCI: mt7621:
>>>>> Add MediaTek MT7621 PCIe host controller driver"). Copying some of
>>>>> those responsible to see if we can expect a solution sometime soon.
> 
> Can we do a minimal patch along the lines of the above for v5.16?
> 

I would suggest to either do that or, if module support is mandatory,
revert the patch and re-apply it if and when it can be built as module.

Guenter

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

* Re: Linux 5.16-rc3
  2021-12-01 20:50   ` Guenter Roeck
@ 2021-12-01 21:38     ` Sergio Paracuellos
  0 siblings, 0 replies; 3+ messages in thread
From: Sergio Paracuellos @ 2021-12-01 21:38 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Bjorn Helgaas, Randy Dunlap, Linus Torvalds,
	Linux Kernel Mailing List, Lorenzo Pieralisi, Bjorn Helgaas,
	linux-pci

On Wed, Dec 1, 2021 at 9:50 PM Guenter Roeck <linux@roeck-us.net> wrote:
>
> On 12/1/21 12:38 PM, Bjorn Helgaas wrote:
> > [+cc linux-pci]
> >
> > On Mon, Nov 29, 2021 at 01:18:12PM +0100, Sergio Paracuellos wrote:
> >> On Mon, Nov 29, 2021 at 5:17 AM Guenter Roeck <linux@roeck-us.net> wrote:
> >>> On 11/28/21 7:07 PM, Randy Dunlap wrote:
> >>>> On 11/28/21 17:59, Guenter Roeck wrote:
> >>>>> ...
> >>>>> Build results:
> >>>>>      total: 153 pass: 152 fail: 1
> >>>>> Failed builds:
> >>>>>      mips:allmodconfig
> >>>>> Qemu test results:
> >>>>>      total: 482 pass: 482 fail: 0
> >>>>>
> >>>>> Building mips:allmodconfig ... failed
> >>>>> --------------
> >>>>> Error log:
> >>>>> ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/controller/pcie-mt7621.o
> >>>>> ERROR: modpost: "mips_cm_unlock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> >>>>> ERROR: modpost: "mips_cpc_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> >>>>> ERROR: modpost: "mips_cm_lock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> >>>>> ERROR: modpost: "mips_cm_is64" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> >>>>> ERROR: modpost: "mips_gcr_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
> >>>>>
> >>>>> There is still no fix for the mips:allmodconfig build problem as far
> >>>>> as I can see. It is a bit odd, because the fix would be as simple as
> >>>>>
> >>>>>    config PCIE_MT7621
> >>>>> -    tristate "MediaTek MT7621 PCIe Controller"
> >>>>> -    depends on (RALINK && SOC_MT7621) || (MIPS && COMPILE_TEST)
> >>>>> +    bool "MediaTek MT7621 PCIe Controller"
> >>>>> +    depends on SOC_MT7621 || (MIPS && COMPILE_TEST)
> >>>>>        select PHY_MT7621_PCI
> >>>>>        default SOC_MT7621
> >>>>>        help
> >>>>>
> >>>>> Context: tristate doesn't make sense here because both RALINK and
> >>>>> SOC_MT7621 are bool. Also, RALINK is redundant because SOC_MT7621
> >>>>> already depends on it. The compile failure is due to missing exported
> >>>>> symbols, and it is only seen if PCIE_MT7621=m - which is only possible
> >>>>> if COMPILE_TEST=y. In other words, the dependencies above are set such
> >>>>> that test builds, and only test builds, fail.
> >>>>>
> >>>>> The problem was introduced with commit 2bdd5238e756 ("PCI: mt7621:
> >>>>> Add MediaTek MT7621 PCIe host controller driver"). Copying some of
> >>>>> those responsible to see if we can expect a solution sometime soon.
> >
> > Can we do a minimal patch along the lines of the above for v5.16?
> >
>
> I would suggest to either do that or, if module support is mandatory,
> revert the patch and re-apply it if and when it can be built as module.

Understood. Let's apply a simple fix for 5.16 and a real fix for 5.17.

I have just sent:
https://lore.kernel.org/linux-pci/20211201213402.22802-1-sergio.paracuellos@gmail.com/T/#u

Best regards,
    Sergio Paracuellos
>
> Guenter

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

end of thread, other threads:[~2021-12-01 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAMhs-H-nm1-B8tZejcZPN3jxF_HGr2tWMWmYJUJnz0jau=QcfQ@mail.gmail.com>
2021-12-01 20:38 ` Linux 5.16-rc3 Bjorn Helgaas
2021-12-01 20:50   ` Guenter Roeck
2021-12-01 21:38     ` Sergio Paracuellos

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).