All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]   ` <551122E2.1040408-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
@ 2015-03-25  5:46     ` Varun Sethi
       [not found]       ` <BN3PR0301MB12195D8782612E67CDE2BFD9EA0B0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Varun Sethi @ 2015-03-25  5:46 UTC (permalink / raw)
  To: Emilian Medve, joro-zLv9SwRftAIdnm+yROfE0A, jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA



> -----Original Message-----
> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
> Sent: Tuesday, March 24, 2015 2:10 PM
> To: linuxppc-dev-50dRxjG7WBCY5r8RbUyfqNHuzzzSOjJt@public.gmane.org; Sethi Varun-B16395
> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
> error: asm/fsl_pamu_stash.h: No such file or directory
> 
> Hello Varun,
> 
> 
> On 03/23/2015 07:02 PM, kbuild test robot wrote:
> > tree:   git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
> ppc/pamu
> > head:   f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> > commit: f2fafdd954d743a0e68e5cd76dbef2f2454deefa [1/1] iommu/fsl:
> PAMU
> > is also present on 64-bit SoC(s)
> > config: microblaze-allyesconfig (attached as .config)
> > reproduce:
> >   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-
> tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >   chmod +x ~/bin/make.cross
> >   git checkout f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> >   # save the attached .config to linux build tree
> >   make.cross ARCH=microblaze
> >
> > All error/warnings:
> >
> >    In file included from drivers/iommu/fsl_pamu.c:21:0:
> >>> drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h:
> >>> No such file or directory
> >     #include <asm/fsl_pamu_stash.h>
> >                                    ^
> >    compilation terminated.
> >
> > vim +24 drivers/iommu/fsl_pamu.h
> >
> > 695093e3 Varun Sethi 2013-07-15   8   * MERCHANTABILITY or FITNESS FOR
> A PARTICULAR PURPOSE.  See the
> > 695093e3 Varun Sethi 2013-07-15   9   * GNU General Public License for
> more details.
> > 695093e3 Varun Sethi 2013-07-15  10   *
> > 695093e3 Varun Sethi 2013-07-15  11   * You should have received a copy of
> the GNU General Public License
> > 695093e3 Varun Sethi 2013-07-15  12   * along with this program; if not,
> write to the Free Software
> > 695093e3 Varun Sethi 2013-07-15  13   * Foundation, 51 Franklin Street, Fifth
> Floor, Boston, MA  02110-1301, USA.
> > 695093e3 Varun Sethi 2013-07-15  14   *
> > 695093e3 Varun Sethi 2013-07-15  15   * Copyright (C) 2013 Freescale
> Semiconductor, Inc.
> > 695093e3 Varun Sethi 2013-07-15  16   *
> > 695093e3 Varun Sethi 2013-07-15  17   */
> > 695093e3 Varun Sethi 2013-07-15  18
> > 695093e3 Varun Sethi 2013-07-15  19  #ifndef __FSL_PAMU_H
> > 695093e3 Varun Sethi 2013-07-15  20  #define __FSL_PAMU_H
> > 695093e3 Varun Sethi 2013-07-15  21
> > cd70d465 Emil Medve  2015-01-28  22  #include <linux/iommu.h>
> > cd70d465 Emil Medve  2015-01-28  23
> > 695093e3 Varun Sethi 2013-07-15 @24  #include <asm/fsl_pamu_stash.h>
> 
> The patch just triggered the build and for some reason these folks are
> building the driver on non-e500mc arches/defconfigs
> 
> 
Hmm.... I believe PAMU driver got included due to the COMPILE_TEST dependency. This is an issue, if we add the COMPILE_TEST dependency, then we can't include architecture specific include files?

-Varun

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

* Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]       ` <BN3PR0301MB12195D8782612E67CDE2BFD9EA0B0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2015-03-25  6:11         ` Emil Medve
       [not found]           ` <55125179.8040801-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Emil Medve @ 2015-03-25  6:11 UTC (permalink / raw)
  To: Sethi Varun-B16395, joro-zLv9SwRftAIdnm+yROfE0A, jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Hello Varun,


On 03/25/2015 12:46 AM, Sethi Varun-B16395 wrote:
>> -----Original Message-----
>> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
>> Sent: Tuesday, March 24, 2015 2:10 PM
>> To: linuxppc-dev-50dRxjG7WBCY5r8RbUyfqNHuzzzSOjJt@public.gmane.org; Sethi Varun-B16395
>> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
>> error: asm/fsl_pamu_stash.h: No such file or directory
>>
>> Hello Varun,
>>
>>
>> On 03/23/2015 07:02 PM, kbuild test robot wrote:
>>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
>> ppc/pamu
>>> head:   f2fafdd954d743a0e68e5cd76dbef2f2454deefa
>>> commit: f2fafdd954d743a0e68e5cd76dbef2f2454deefa [1/1] iommu/fsl:
>> PAMU
>>> is also present on 64-bit SoC(s)
>>> config: microblaze-allyesconfig (attached as .config)
>>> reproduce:
>>>   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-
>> tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>>>   chmod +x ~/bin/make.cross
>>>   git checkout f2fafdd954d743a0e68e5cd76dbef2f2454deefa
>>>   # save the attached .config to linux build tree
>>>   make.cross ARCH=microblaze
>>>
>>> All error/warnings:
>>>
>>>    In file included from drivers/iommu/fsl_pamu.c:21:0:
>>>>> drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h:
>>>>> No such file or directory
>>>     #include <asm/fsl_pamu_stash.h>
>>>                                    ^
>>>    compilation terminated.
>>>
>>> vim +24 drivers/iommu/fsl_pamu.h
>>>
>>> 695093e3 Varun Sethi 2013-07-15   8   * MERCHANTABILITY or FITNESS FOR
>> A PARTICULAR PURPOSE.  See the
>>> 695093e3 Varun Sethi 2013-07-15   9   * GNU General Public License for
>> more details.
>>> 695093e3 Varun Sethi 2013-07-15  10   *
>>> 695093e3 Varun Sethi 2013-07-15  11   * You should have received a copy of
>> the GNU General Public License
>>> 695093e3 Varun Sethi 2013-07-15  12   * along with this program; if not,
>> write to the Free Software
>>> 695093e3 Varun Sethi 2013-07-15  13   * Foundation, 51 Franklin Street, Fifth
>> Floor, Boston, MA  02110-1301, USA.
>>> 695093e3 Varun Sethi 2013-07-15  14   *
>>> 695093e3 Varun Sethi 2013-07-15  15   * Copyright (C) 2013 Freescale
>> Semiconductor, Inc.
>>> 695093e3 Varun Sethi 2013-07-15  16   *
>>> 695093e3 Varun Sethi 2013-07-15  17   */
>>> 695093e3 Varun Sethi 2013-07-15  18
>>> 695093e3 Varun Sethi 2013-07-15  19  #ifndef __FSL_PAMU_H
>>> 695093e3 Varun Sethi 2013-07-15  20  #define __FSL_PAMU_H
>>> 695093e3 Varun Sethi 2013-07-15  21
>>> cd70d465 Emil Medve  2015-01-28  22  #include <linux/iommu.h>
>>> cd70d465 Emil Medve  2015-01-28  23
>>> 695093e3 Varun Sethi 2013-07-15 @24  #include <asm/fsl_pamu_stash.h>
>>
>> The patch just triggered the build and for some reason these folks are
>> building the driver on non-e500mc arches/defconfigs
>>
> Hmm.... I believe PAMU driver got included due to the COMPILE_TEST
> dependency. This is an issue, if we add the COMPILE_TEST dependency,
> then we can't include architecture specific include files?

What in fsl_pamu_stash.h is "even more" arch/platform specific then the
content of drivers/iommu/fsl_pamu*?


Cheers,

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

* RE: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]           ` <55125179.8040801-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
@ 2015-03-25  6:25             ` Varun Sethi
       [not found]               ` <BN3PR0301MB12193C6929AE8CF767B8A78AEA0B0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Varun Sethi @ 2015-03-25  6:25 UTC (permalink / raw)
  To: Emilian Medve, joro-zLv9SwRftAIdnm+yROfE0A, jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Hi Emil,

> -----Original Message-----
> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
> Sent: Wednesday, March 25, 2015 11:41 AM
> To: Sethi Varun-B16395; joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org; jroedel-l3A5Bk7waGM@public.gmane.org
> Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
> error: asm/fsl_pamu_stash.h: No such file or directory
> 
> Hello Varun,
> 
> 
> On 03/25/2015 12:46 AM, Sethi Varun-B16395 wrote:
> >> -----Original Message-----
> >> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
> >> Sent: Tuesday, March 24, 2015 2:10 PM
> >> To: linuxppc-dev-50dRxjG7WBCY5r8RbUyfqNHuzzzSOjJt@public.gmane.org; Sethi Varun-B16395
> >> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32:
> >> fatal
> >> error: asm/fsl_pamu_stash.h: No such file or directory
> >>
> >> Hello Varun,
> >>
> >>
> >> On 03/23/2015 07:02 PM, kbuild test robot wrote:
> >>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
> >> ppc/pamu
> >>> head:   f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> >>> commit: f2fafdd954d743a0e68e5cd76dbef2f2454deefa [1/1] iommu/fsl:
> >> PAMU
> >>> is also present on 64-bit SoC(s)
> >>> config: microblaze-allyesconfig (attached as .config)
> >>> reproduce:
> >>>   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-
> >> tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >>>   chmod +x ~/bin/make.cross
> >>>   git checkout f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> >>>   # save the attached .config to linux build tree
> >>>   make.cross ARCH=microblaze
> >>>
> >>> All error/warnings:
> >>>
> >>>    In file included from drivers/iommu/fsl_pamu.c:21:0:
> >>>>> drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h:
> >>>>> No such file or directory
> >>>     #include <asm/fsl_pamu_stash.h>
> >>>                                    ^
> >>>    compilation terminated.
> >>>
> >>> vim +24 drivers/iommu/fsl_pamu.h
> >>>
> >>> 695093e3 Varun Sethi 2013-07-15   8   * MERCHANTABILITY or FITNESS
> FOR
> >> A PARTICULAR PURPOSE.  See the
> >>> 695093e3 Varun Sethi 2013-07-15   9   * GNU General Public License for
> >> more details.
> >>> 695093e3 Varun Sethi 2013-07-15  10   *
> >>> 695093e3 Varun Sethi 2013-07-15  11   * You should have received a copy
> of
> >> the GNU General Public License
> >>> 695093e3 Varun Sethi 2013-07-15  12   * along with this program; if not,
> >> write to the Free Software
> >>> 695093e3 Varun Sethi 2013-07-15  13   * Foundation, 51 Franklin Street,
> Fifth
> >> Floor, Boston, MA  02110-1301, USA.
> >>> 695093e3 Varun Sethi 2013-07-15  14   *
> >>> 695093e3 Varun Sethi 2013-07-15  15   * Copyright (C) 2013 Freescale
> >> Semiconductor, Inc.
> >>> 695093e3 Varun Sethi 2013-07-15  16   *
> >>> 695093e3 Varun Sethi 2013-07-15  17   */
> >>> 695093e3 Varun Sethi 2013-07-15  18
> >>> 695093e3 Varun Sethi 2013-07-15  19  #ifndef __FSL_PAMU_H
> >>> 695093e3 Varun Sethi 2013-07-15  20  #define __FSL_PAMU_H
> >>> 695093e3 Varun Sethi 2013-07-15  21
> >>> cd70d465 Emil Medve  2015-01-28  22  #include <linux/iommu.h>
> >>> cd70d465 Emil Medve  2015-01-28  23
> >>> 695093e3 Varun Sethi 2013-07-15 @24  #include
> <asm/fsl_pamu_stash.h>
> >>
> >> The patch just triggered the build and for some reason these folks
> >> are building the driver on non-e500mc arches/defconfigs
> >>
> > Hmm.... I believe PAMU driver got included due to the COMPILE_TEST
> > dependency. This is an issue, if we add the COMPILE_TEST dependency,
> > then we can't include architecture specific include files?
> 
> What in fsl_pamu_stash.h is "even more" arch/platform specific then the
> content of drivers/iommu/fsl_pamu*?
> 
This was discussed during early PAMU driver reviews. Joerg's idea was that PAMU would specific to the Power architecture platform, so we should place the include file in the arch specific directory (originally I had placed it under include/linux). 

-Varun 

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

* Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]               ` <BN3PR0301MB12193C6929AE8CF767B8A78AEA0B0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2015-03-25  7:36                 ` Emil Medve
       [not found]                   ` <55126585.7040903-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Emil Medve @ 2015-03-25  7:36 UTC (permalink / raw)
  To: Sethi Varun-B16395, joro-zLv9SwRftAIdnm+yROfE0A, jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Hello Varun,


On 03/25/2015 01:25 AM, Sethi Varun-B16395 wrote:
> Hi Emil,
> 
>> -----Original Message-----
>> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
>> Sent: Wednesday, March 25, 2015 11:41 AM
>> To: Sethi Varun-B16395; joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org; jroedel-l3A5Bk7waGM@public.gmane.org
>> Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
>> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
>> error: asm/fsl_pamu_stash.h: No such file or directory
>>
>> Hello Varun,
>>
>>
>> On 03/25/2015 12:46 AM, Sethi Varun-B16395 wrote:
>>>> -----Original Message-----
>>>> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
>>>> Sent: Tuesday, March 24, 2015 2:10 PM
>>>> To: linuxppc-dev-50dRxjG7WBCY5r8RbUyfqNHuzzzSOjJt@public.gmane.org; Sethi Varun-B16395
>>>> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32:
>>>> fatal
>>>> error: asm/fsl_pamu_stash.h: No such file or directory
>>>>
>>>> Hello Varun,
>>>>
>>>>
>>>> On 03/23/2015 07:02 PM, kbuild test robot wrote:
>>>>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
>>>> ppc/pamu
>>>>> head:   f2fafdd954d743a0e68e5cd76dbef2f2454deefa
>>>>> commit: f2fafdd954d743a0e68e5cd76dbef2f2454deefa [1/1] iommu/fsl:
>>>> PAMU
>>>>> is also present on 64-bit SoC(s)
>>>>> config: microblaze-allyesconfig (attached as .config)
>>>>> reproduce:
>>>>>   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-
>>>> tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>>>>>   chmod +x ~/bin/make.cross
>>>>>   git checkout f2fafdd954d743a0e68e5cd76dbef2f2454deefa
>>>>>   # save the attached .config to linux build tree
>>>>>   make.cross ARCH=microblaze
>>>>>
>>>>> All error/warnings:
>>>>>
>>>>>    In file included from drivers/iommu/fsl_pamu.c:21:0:
>>>>>>> drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h:
>>>>>>> No such file or directory
>>>>>     #include <asm/fsl_pamu_stash.h>
>>>>>                                    ^
>>>>>    compilation terminated.
>>>>>
>>>>> vim +24 drivers/iommu/fsl_pamu.h
>>>>>
>>>>> 695093e3 Varun Sethi 2013-07-15   8   * MERCHANTABILITY or FITNESS
>> FOR
>>>> A PARTICULAR PURPOSE.  See the
>>>>> 695093e3 Varun Sethi 2013-07-15   9   * GNU General Public License for
>>>> more details.
>>>>> 695093e3 Varun Sethi 2013-07-15  10   *
>>>>> 695093e3 Varun Sethi 2013-07-15  11   * You should have received a copy
>> of
>>>> the GNU General Public License
>>>>> 695093e3 Varun Sethi 2013-07-15  12   * along with this program; if not,
>>>> write to the Free Software
>>>>> 695093e3 Varun Sethi 2013-07-15  13   * Foundation, 51 Franklin Street,
>> Fifth
>>>> Floor, Boston, MA  02110-1301, USA.
>>>>> 695093e3 Varun Sethi 2013-07-15  14   *
>>>>> 695093e3 Varun Sethi 2013-07-15  15   * Copyright (C) 2013 Freescale
>>>> Semiconductor, Inc.
>>>>> 695093e3 Varun Sethi 2013-07-15  16   *
>>>>> 695093e3 Varun Sethi 2013-07-15  17   */
>>>>> 695093e3 Varun Sethi 2013-07-15  18
>>>>> 695093e3 Varun Sethi 2013-07-15  19  #ifndef __FSL_PAMU_H
>>>>> 695093e3 Varun Sethi 2013-07-15  20  #define __FSL_PAMU_H
>>>>> 695093e3 Varun Sethi 2013-07-15  21
>>>>> cd70d465 Emil Medve  2015-01-28  22  #include <linux/iommu.h>
>>>>> cd70d465 Emil Medve  2015-01-28  23
>>>>> 695093e3 Varun Sethi 2013-07-15 @24  #include
>> <asm/fsl_pamu_stash.h>
>>>>
>>>> The patch just triggered the build and for some reason these folks
>>>> are building the driver on non-e500mc arches/defconfigs
>>>>
>>> Hmm.... I believe PAMU driver got included due to the COMPILE_TEST
>>> dependency. This is an issue, if we add the COMPILE_TEST dependency,
>>> then we can't include architecture specific include files?
>>
>> What in fsl_pamu_stash.h is "even more" arch/platform specific then the
>> content of drivers/iommu/fsl_pamu*?
>>
> This was discussed during early PAMU driver reviews. Joerg's idea
> was that PAMU would specific to the Power architecture platform, so we
> should place the include file in the arch specific directory (originally
> I had placed it under include/linux).

But the only content that ended up in arch/powerpc is one file with two
definitions that don't seem particularly specific. The line is a bit
blurry and until (if ever) we get different PAMU integration I doubt we
can reasonably make it sharper

Anyway, I'm unsure what an immediately acceptable answer is. I mean if
we're to spend time supporting universal builds of the PAMU driver there
is a list of (some non-trivial) changes we ought to do. This particular
build issue is just the first


Cheers,

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

* RE: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]                   ` <55126585.7040903-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
@ 2015-04-08 13:24                     ` Varun Sethi
       [not found]                       ` <BN3PR0301MB12198F55BD2619F392B58AD4EAFC0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Varun Sethi @ 2015-04-08 13:24 UTC (permalink / raw)
  To: joro-zLv9SwRftAIdnm+yROfE0A, jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Madalin-Cristian Bucur

Hi Joerg,
Following issue was observed while building (compile test) for a non-powerpc (e500mc) based platform. The pamu driver includes a file which is available in the architecture include directory. Should we move the header file to general Linux kernel include directory?

Regards
Varun

> -----Original Message-----
> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
> Sent: Wednesday, March 25, 2015 1:07 PM
> To: Sethi Varun-B16395; joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org; jroedel-l3A5Bk7waGM@public.gmane.org
> Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
> error: asm/fsl_pamu_stash.h: No such file or directory
> 
> Hello Varun,
> 
> 
> On 03/25/2015 01:25 AM, Sethi Varun-B16395 wrote:
> > Hi Emil,
> >
> >> -----Original Message-----
> >> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
> >> Sent: Wednesday, March 25, 2015 11:41 AM
> >> To: Sethi Varun-B16395; joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org; jroedel-l3A5Bk7waGM@public.gmane.org
> >> Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> >> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32:
> >> fatal
> >> error: asm/fsl_pamu_stash.h: No such file or directory
> >>
> >> Hello Varun,
> >>
> >>
> >> On 03/25/2015 12:46 AM, Sethi Varun-B16395 wrote:
> >>>> -----Original Message-----
> >>>> From: Emil Medve [mailto:Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org]
> >>>> Sent: Tuesday, March 24, 2015 2:10 PM
> >>>> To: linuxppc-dev-50dRxjG7WBCY5r8RbUyfqNHuzzzSOjJt@public.gmane.org; Sethi Varun-B16395
> >>>> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32:
> >>>> fatal
> >>>> error: asm/fsl_pamu_stash.h: No such file or directory
> >>>>
> >>>> Hello Varun,
> >>>>
> >>>>
> >>>> On 03/23/2015 07:02 PM, kbuild test robot wrote:
> >>>>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
> >>>> ppc/pamu
> >>>>> head:   f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> >>>>> commit: f2fafdd954d743a0e68e5cd76dbef2f2454deefa [1/1]
> iommu/fsl:
> >>>> PAMU
> >>>>> is also present on 64-bit SoC(s)
> >>>>> config: microblaze-allyesconfig (attached as .config)
> >>>>> reproduce:
> >>>>>   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-
> >>>> tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >>>>>   chmod +x ~/bin/make.cross
> >>>>>   git checkout f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> >>>>>   # save the attached .config to linux build tree
> >>>>>   make.cross ARCH=microblaze
> >>>>>
> >>>>> All error/warnings:
> >>>>>
> >>>>>    In file included from drivers/iommu/fsl_pamu.c:21:0:
> >>>>>>> drivers/iommu/fsl_pamu.h:24:32: fatal error:
> asm/fsl_pamu_stash.h:
> >>>>>>> No such file or directory
> >>>>>     #include <asm/fsl_pamu_stash.h>
> >>>>>                                    ^
> >>>>>    compilation terminated.
> >>>>>
> >>>>> vim +24 drivers/iommu/fsl_pamu.h
> >>>>>
> >>>>> 695093e3 Varun Sethi 2013-07-15   8   * MERCHANTABILITY or FITNESS
> >> FOR
> >>>> A PARTICULAR PURPOSE.  See the
> >>>>> 695093e3 Varun Sethi 2013-07-15   9   * GNU General Public License for
> >>>> more details.
> >>>>> 695093e3 Varun Sethi 2013-07-15  10   *
> >>>>> 695093e3 Varun Sethi 2013-07-15  11   * You should have received a
> copy
> >> of
> >>>> the GNU General Public License
> >>>>> 695093e3 Varun Sethi 2013-07-15  12   * along with this program; if not,
> >>>> write to the Free Software
> >>>>> 695093e3 Varun Sethi 2013-07-15  13   * Foundation, 51 Franklin Street,
> >> Fifth
> >>>> Floor, Boston, MA  02110-1301, USA.
> >>>>> 695093e3 Varun Sethi 2013-07-15  14   *
> >>>>> 695093e3 Varun Sethi 2013-07-15  15   * Copyright (C) 2013 Freescale
> >>>> Semiconductor, Inc.
> >>>>> 695093e3 Varun Sethi 2013-07-15  16   *
> >>>>> 695093e3 Varun Sethi 2013-07-15  17   */
> >>>>> 695093e3 Varun Sethi 2013-07-15  18
> >>>>> 695093e3 Varun Sethi 2013-07-15  19  #ifndef __FSL_PAMU_H
> >>>>> 695093e3 Varun Sethi 2013-07-15  20  #define __FSL_PAMU_H
> >>>>> 695093e3 Varun Sethi 2013-07-15  21
> >>>>> cd70d465 Emil Medve  2015-01-28  22  #include <linux/iommu.h>
> >>>>> cd70d465 Emil Medve  2015-01-28  23
> >>>>> 695093e3 Varun Sethi 2013-07-15 @24  #include
> >> <asm/fsl_pamu_stash.h>
> >>>>
> >>>> The patch just triggered the build and for some reason these folks
> >>>> are building the driver on non-e500mc arches/defconfigs
> >>>>
> >>> Hmm.... I believe PAMU driver got included due to the COMPILE_TEST
> >>> dependency. This is an issue, if we add the COMPILE_TEST dependency,
> >>> then we can't include architecture specific include files?
> >>
> >> What in fsl_pamu_stash.h is "even more" arch/platform specific then
> >> the content of drivers/iommu/fsl_pamu*?
> >>
> > This was discussed during early PAMU driver reviews. Joerg's idea was
> > that PAMU would specific to the Power architecture platform, so we
> > should place the include file in the arch specific directory
> > (originally I had placed it under include/linux).
> 
> But the only content that ended up in arch/powerpc is one file with two
> definitions that don't seem particularly specific. The line is a bit blurry and
> until (if ever) we get different PAMU integration I doubt we can reasonably
> make it sharper
> 
> Anyway, I'm unsure what an immediately acceptable answer is. I mean if
> we're to spend time supporting universal builds of the PAMU driver there is a
> list of (some non-trivial) changes we ought to do. This particular build issue is
> just the first
> 
> 
> Cheers,

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

* Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]                       ` <BN3PR0301MB12198F55BD2619F392B58AD4EAFC0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2015-05-05 13:17                         ` jroedel-l3A5Bk7waGM
       [not found]                           ` <20150505131713.GD5438-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: jroedel-l3A5Bk7waGM @ 2015-05-05 13:17 UTC (permalink / raw)
  To: Varun Sethi
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Madalin-Cristian Bucur

Hi Varun,

On Wed, Apr 08, 2015 at 01:24:16PM +0000, Varun Sethi wrote:
> Following issue was observed while building (compile test) for a
> non-powerpc (e500mc) based platform. The pamu driver includes a file
> which is available in the architecture include directory. Should we
> move the header file to general Linux kernel include directory?

Before I added the COMPILE_TEST dependency it looked like this:

	depends on PPC_E500MC

Which means the driver was only buildable on e500mc and now you are
telling me that this is broken. What am I missing?


	Joerg

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

* RE: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]                           ` <20150505131713.GD5438-l3A5Bk7waGM@public.gmane.org>
@ 2015-05-05 13:22                             ` Varun Sethi
       [not found]                               ` <BN1PR0301MB06271FBAE46B4CBDD9781D0FEAD10-RQSpjbwlmjSD1ymB6+i1+JwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Varun Sethi @ 2015-05-05 13:22 UTC (permalink / raw)
  To: jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Madalin-Cristian Bucur

Hi Joerg,

> -----Original Message-----
> From: jroedel-l3A5Bk7waGM@public.gmane.org [mailto:jroedel-l3A5Bk7waGM@public.gmane.org]
> Sent: Tuesday, May 05, 2015 6:47 PM
> To: Sethi Varun-B16395
> Cc: joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org; iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org; Bucur Madalin-
> Cristian-B32716
> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
> error: asm/fsl_pamu_stash.h: No such file or directory
> 
> Hi Varun,
> 
> On Wed, Apr 08, 2015 at 01:24:16PM +0000, Varun Sethi wrote:
> > Following issue was observed while building (compile test) for a
> > non-powerpc (e500mc) based platform. The pamu driver includes a file
> > which is available in the architecture include directory. Should we
> > move the header file to general Linux kernel include directory?
> 
> Before I added the COMPILE_TEST dependency it looked like this:
> 
> 	depends on PPC_E500MC
> 
> Which means the driver was only buildable on e500mc and now you are
> telling me that this is broken. What am I missing?
> 
PPC_E500MC dependency is fine, but with the COMPIL_TEST flag ("or" condition) the PAMU driver code would be built on any platform if the compile test is selected.

-Varun

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

* Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]                               ` <BN1PR0301MB06271FBAE46B4CBDD9781D0FEAD10-RQSpjbwlmjSD1ymB6+i1+JwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2015-05-05 13:42                                 ` jroedel-l3A5Bk7waGM
       [not found]                                   ` <20150505134251.GG5438-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: jroedel-l3A5Bk7waGM @ 2015-05-05 13:42 UTC (permalink / raw)
  To: Varun Sethi
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Madalin-Cristian Bucur



On Tue, May 05, 2015 at 01:22:24PM +0000, Varun Sethi wrote:
> > Which means the driver was only buildable on e500mc and now you are
> > telling me that this is broken. What am I missing?
> > 
> PPC_E500MC dependency is fine, but with the COMPIL_TEST flag ("or"
> condition) the PAMU driver code would be built on any platform if the
> compile test is selected.

You said it is now also selected on non-ppc platforms, but there is a
PPC32 dependency, so this shouldn't happen. It should build fine on any
ppc platform as the include file is in arch/powerpc/include/asm, no?


	Joerg

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

* RE: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]                                   ` <20150505134251.GG5438-l3A5Bk7waGM@public.gmane.org>
@ 2015-05-05 17:57                                     ` Varun Sethi
       [not found]                                       ` <BN1PR0301MB0627F543CF6AE00CFED18B47EAD10-RQSpjbwlmjSD1ymB6+i1+JwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Varun Sethi @ 2015-05-05 17:57 UTC (permalink / raw)
  To: jroedel-l3A5Bk7waGM
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Madalin-Cristian Bucur

Hi Joerg,

> -----Original Message-----
> From: jroedel-l3A5Bk7waGM@public.gmane.org [mailto:jroedel-l3A5Bk7waGM@public.gmane.org]
> Sent: Tuesday, May 05, 2015 7:13 PM
> To: Sethi Varun-B16395
> Cc: joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org; iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org; Bucur Madalin-
> Cristian-B32716
> Subject: Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal
> error: asm/fsl_pamu_stash.h: No such file or directory
> 
> 
> 
> On Tue, May 05, 2015 at 01:22:24PM +0000, Varun Sethi wrote:
> > > Which means the driver was only buildable on e500mc and now you are
> > > telling me that this is broken. What am I missing?
> > >
> > PPC_E500MC dependency is fine, but with the COMPIL_TEST flag ("or"
> > condition) the PAMU driver code would be built on any platform if the
> > compile test is selected.
> 
> You said it is now also selected on non-ppc platforms, but there is a
> PPC32 dependency, so this shouldn't happen. It should build fine on any ppc
> platform as the include file is in arch/powerpc/include/asm, no?
Actually PPC32 dependency is incorrect, that's what Emil's patch removed. As a result PAMU driver got built on other platforms as well.
commit f2fafdd954d743a0e68e5cd76dbef2f2454deefa

PAMU driver should depend on PPC_E500MC.

-Varun

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

* Re: [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory
       [not found]                                       ` <BN1PR0301MB0627F543CF6AE00CFED18B47EAD10-RQSpjbwlmjSD1ymB6+i1+JwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2015-05-06  8:41                                         ` joro-zLv9SwRftAIdnm+yROfE0A
  0 siblings, 0 replies; 10+ messages in thread
From: joro-zLv9SwRftAIdnm+yROfE0A @ 2015-05-06  8:41 UTC (permalink / raw)
  To: Varun Sethi
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	jroedel-l3A5Bk7waGM, Madalin-Cristian Bucur

Hi Varun,

On Tue, May 05, 2015 at 05:57:32PM +0000, Varun Sethi wrote:
> Actually PPC32 dependency is incorrect, that's what Emil's patch
> removed. As a result PAMU driver got built on other platforms as well.
> commit f2fafdd954d743a0e68e5cd76dbef2f2454deefa
> 
> PAMU driver should depend on PPC_E500MC.

Instead of only removing the PPC32 dependency you guys should have
replaced it with the correct architecture config symbol to prevent it
from being built on anything else than PPC. I am pretty sure there is
one you can rely on.


	Joerg

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

end of thread, other threads:[~2015-05-06  8:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201503240804.8vcZXNOY%fengguang.wu@intel.com>
     [not found] ` <551122E2.1040408@Freescale.com>
     [not found]   ` <551122E2.1040408-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2015-03-25  5:46     ` [iommu:ppc/pamu 1/1] drivers/iommu/fsl_pamu.h:24:32: fatal error: asm/fsl_pamu_stash.h: No such file or directory Varun Sethi
     [not found]       ` <BN3PR0301MB12195D8782612E67CDE2BFD9EA0B0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-03-25  6:11         ` Emil Medve
     [not found]           ` <55125179.8040801-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2015-03-25  6:25             ` Varun Sethi
     [not found]               ` <BN3PR0301MB12193C6929AE8CF767B8A78AEA0B0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-03-25  7:36                 ` Emil Medve
     [not found]                   ` <55126585.7040903-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2015-04-08 13:24                     ` Varun Sethi
     [not found]                       ` <BN3PR0301MB12198F55BD2619F392B58AD4EAFC0-CEkquS/Gb81uuip9JPHoc5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-05-05 13:17                         ` jroedel-l3A5Bk7waGM
     [not found]                           ` <20150505131713.GD5438-l3A5Bk7waGM@public.gmane.org>
2015-05-05 13:22                             ` Varun Sethi
     [not found]                               ` <BN1PR0301MB06271FBAE46B4CBDD9781D0FEAD10-RQSpjbwlmjSD1ymB6+i1+JwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-05-05 13:42                                 ` jroedel-l3A5Bk7waGM
     [not found]                                   ` <20150505134251.GG5438-l3A5Bk7waGM@public.gmane.org>
2015-05-05 17:57                                     ` Varun Sethi
     [not found]                                       ` <BN1PR0301MB0627F543CF6AE00CFED18B47EAD10-RQSpjbwlmjSD1ymB6+i1+JwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-05-06  8:41                                         ` joro-zLv9SwRftAIdnm+yROfE0A

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.