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:[email protected]]
> Sent: Wednesday, March 25, 2015 1:07 PM
> To: Sethi Varun-B16395; [email protected]; [email protected]
> Cc: [email protected]
> 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:[email protected]]
> >> Sent: Wednesday, March 25, 2015 11:41 AM
> >> To: Sethi Varun-B16395; [email protected]; [email protected]
> >> Cc: [email protected]
> >> 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:[email protected]]
> >>>> Sent: Tuesday, March 24, 2015 2:10 PM
> >>>> To: [email protected]; 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,
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to