diff mbox

[5/5] arch/powerpc: Add CONFIG_FSL_DPAA to corenetXX_smp_defconfig

Message ID 1474030832-20611-6-git-send-email-claudiu.manoil@nxp.com (mailing list archive)
State Superseded
Headers show

Commit Message

Claudiu Manoil Sept. 16, 2016, 1 p.m. UTC
Enable the drivers on the powerpc arch.

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
---
 arch/powerpc/Makefile            | 4 ++--
 arch/powerpc/configs/dpaa.config | 1 +
 drivers/soc/Kconfig              | 1 +
 drivers/soc/fsl/Makefile         | 1 +
 4 files changed, 5 insertions(+), 2 deletions(-)
 create mode 100644 arch/powerpc/configs/dpaa.config

Comments

kernel test robot Sept. 16, 2016, 4:19 p.m. UTC | #1
Hi Claudiu,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.8-rc6 next-20160916]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Claudiu-Manoil/Freescale-DPAA-1-x-QBMan-Drivers/20160916-212727
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   In file included from drivers/soc/fsl/qbman/bman_priv.h:33:0,
                    from drivers/soc/fsl/qbman/bman_ccsr.c:31:
>> drivers/soc/fsl/qbman/dpaa_sys.h:51:2: error: #error "Unsupported Cacheline Size"
    #error "Unsupported Cacheline Size"
     ^~~~~
--
   In file included from drivers/soc/fsl/qbman/bman_priv.h:33:0,
                    from drivers/soc/fsl/qbman/bman_portal.c:31:
>> drivers/soc/fsl/qbman/dpaa_sys.h:51:2: error: #error "Unsupported Cacheline Size"
    #error "Unsupported Cacheline Size"
     ^~~~~
   drivers/soc/fsl/qbman/bman_portal.c: In function 'bman_portal_probe':
>> drivers/soc/fsl/qbman/bman_portal.c:152:6: error: '_PAGE_GUARDED' undeclared (first use in this function)
         _PAGE_GUARDED | _PAGE_NO_CACHE);
         ^~~~~~~~~~~~~
   drivers/soc/fsl/qbman/bman_portal.c:152:6: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from drivers/soc/fsl/qbman/qman_priv.h:33:0,
                    from drivers/soc/fsl/qbman/qman_portal.c:31:
>> drivers/soc/fsl/qbman/dpaa_sys.h:51:2: error: #error "Unsupported Cacheline Size"
    #error "Unsupported Cacheline Size"
     ^~~~~
   drivers/soc/fsl/qbman/qman_portal.c: In function 'qman_portal_probe':
>> drivers/soc/fsl/qbman/qman_portal.c:289:6: error: '_PAGE_GUARDED' undeclared (first use in this function)
         _PAGE_GUARDED | _PAGE_NO_CACHE);
         ^~~~~~~~~~~~~
   drivers/soc/fsl/qbman/qman_portal.c:289:6: note: each undeclared identifier is reported only once for each function it appears in

vim +51 drivers/soc/fsl/qbman/dpaa_sys.h

4c95420d Claudiu Manoil 2016-09-16  35  #include <linux/slab.h>
4c95420d Claudiu Manoil 2016-09-16  36  #include <linux/module.h>
4c95420d Claudiu Manoil 2016-09-16  37  #include <linux/interrupt.h>
4c95420d Claudiu Manoil 2016-09-16  38  #include <linux/kthread.h>
4c95420d Claudiu Manoil 2016-09-16  39  #include <linux/vmalloc.h>
4c95420d Claudiu Manoil 2016-09-16  40  #include <linux/platform_device.h>
4c95420d Claudiu Manoil 2016-09-16  41  #include <linux/of_reserved_mem.h>
4c95420d Claudiu Manoil 2016-09-16  42  #include <linux/prefetch.h>
4c95420d Claudiu Manoil 2016-09-16  43  #include <linux/genalloc.h>
4c95420d Claudiu Manoil 2016-09-16  44  #include <asm/cacheflush.h>
4c95420d Claudiu Manoil 2016-09-16  45  
4c95420d Claudiu Manoil 2016-09-16  46  /* For 2-element tables related to cache-inhibited and cache-enabled mappings */
4c95420d Claudiu Manoil 2016-09-16  47  #define DPAA_PORTAL_CE 0
4c95420d Claudiu Manoil 2016-09-16  48  #define DPAA_PORTAL_CI 1
4c95420d Claudiu Manoil 2016-09-16  49  
4c95420d Claudiu Manoil 2016-09-16  50  #if (L1_CACHE_BYTES != 32) && (L1_CACHE_BYTES != 64)
4c95420d Claudiu Manoil 2016-09-16 @51  #error "Unsupported Cacheline Size"
4c95420d Claudiu Manoil 2016-09-16  52  #endif
4c95420d Claudiu Manoil 2016-09-16  53  
4c95420d Claudiu Manoil 2016-09-16  54  static inline void dpaa_flush(void *p)
4c95420d Claudiu Manoil 2016-09-16  55  {
4c95420d Claudiu Manoil 2016-09-16  56  #ifdef CONFIG_PPC
4c95420d Claudiu Manoil 2016-09-16  57  	flush_dcache_range((unsigned long)p, (unsigned long)p+64);
4c95420d Claudiu Manoil 2016-09-16  58  #elif defined(CONFIG_ARM32)
4c95420d Claudiu Manoil 2016-09-16  59  	__cpuc_flush_dcache_area(p, 64);

:::::: The code at line 51 was first introduced by commit
:::::: 4c95420d89be521032d30fa549bacdd9cd98c7c9 soc/fsl: Introduce DPAA 1.x BMan device driver

:::::: TO: Claudiu Manoil <claudiu.manoil@nxp.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
diff mbox

Patch

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 1934707..f36347c 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -325,12 +325,12 @@  mpc85xx_smp_defconfig:
 PHONY += corenet32_smp_defconfig
 corenet32_smp_defconfig:
 	$(call merge_into_defconfig,corenet_basic_defconfig,\
-		85xx-32bit 85xx-smp 85xx-hw fsl-emb-nonhw)
+		85xx-32bit 85xx-smp 85xx-hw fsl-emb-nonhw dpaa)
 
 PHONY += corenet64_smp_defconfig
 corenet64_smp_defconfig:
 	$(call merge_into_defconfig,corenet_basic_defconfig,\
-		85xx-64bit 85xx-smp altivec 85xx-hw fsl-emb-nonhw)
+		85xx-64bit 85xx-smp altivec 85xx-hw fsl-emb-nonhw dpaa)
 
 PHONY += mpc86xx_defconfig
 mpc86xx_defconfig:
diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config
new file mode 100644
index 0000000..efa99c0
--- /dev/null
+++ b/arch/powerpc/configs/dpaa.config
@@ -0,0 +1 @@ 
+CONFIG_FSL_DPAA=y
diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig
index fe42a2f..e6e90e8 100644
--- a/drivers/soc/Kconfig
+++ b/drivers/soc/Kconfig
@@ -1,6 +1,7 @@ 
 menu "SOC (System On Chip) specific Drivers"
 
 source "drivers/soc/bcm/Kconfig"
+source "drivers/soc/fsl/qbman/Kconfig"
 source "drivers/soc/fsl/qe/Kconfig"
 source "drivers/soc/mediatek/Kconfig"
 source "drivers/soc/qcom/Kconfig"
diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile
index 203307f..75e1f53 100644
--- a/drivers/soc/fsl/Makefile
+++ b/drivers/soc/fsl/Makefile
@@ -2,5 +2,6 @@ 
 # Makefile for the Linux Kernel SOC fsl specific device drivers
 #
 
+obj-$(CONFIG_FSL_DPAA)                 += qbman/
 obj-$(CONFIG_QUICC_ENGINE)		+= qe/
 obj-$(CONFIG_CPM)			+= qe/