Re: [PATCH v3 0/2] adding PCI support to AXS10x

2016-01-08 Thread Bjorn Helgaas
Hi Joao,

On Mon, Dec 21, 2015 at 03:44:14PM +, Joao Pinto wrote:
> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC
> AXS10x. It includes the necessary tweaks to the ARC architecture, necessary
> tweaks to the PCI subsystem and a new driver (pcie-snpsdev).
> This new driver will be used extensively in the PCIe RC Prototyping Kit.
> 
> The patches were produced against Bjorn Helgaas' repository. It was properly
> tested in an IP Prototyping Kit.
> 
> Joao Pinto (2):
>   PCI support added to ARC
>   add new platform driver for PCI RC
> 
>  .../devicetree/bindings/pci/pcie-snpsdev.txt   |  33 +++
>  MAINTAINERS|   7 +
>  arch/arc/Kconfig   |  23 ++
>  arch/arc/include/asm/dma.h |   5 +
>  arch/arc/include/asm/io.h  |  10 +
>  arch/arc/include/asm/pci.h |  43 
>  arch/arc/kernel/Makefile   |   1 +
>  arch/arc/kernel/pcibios.c  |  55 
>  arch/arc/mm/ioremap.c  |  10 +-
>  arch/arc/plat-axs10x/Kconfig   |   1 +
>  drivers/pci/Makefile   |   1 +
>  drivers/pci/host/Kconfig   |   5 +
>  drivers/pci/host/Makefile  |   1 +
>  drivers/pci/host/pcie-designware.c |  11 +
>  drivers/pci/host/pcie-designware.h |   1 +
>  drivers/pci/host/pcie-snpsdev.c| 286 
> +
>  16 files changed, 492 insertions(+), 1 deletion(-)
>  create mode 100644 Documentation/devicetree/bindings/pci/pcie-snpsdev.txt
>  create mode 100644 arch/arc/include/asm/pci.h
>  create mode 100644 arch/arc/kernel/pcibios.c
>  create mode 100644 drivers/pci/host/pcie-snpsdev.c

This failed the kbuild test, so I'm waiting for a refresh to fix that.

Bjorn

___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc


Re: [PATCH] arc: Removed local initramfs source file from axs101 configuration.

2016-01-08 Thread Carlos Palminha
Hi Alexey,

Probably my e-mail comments before the patch mislead you...
If you download the kernel source and try to compile it, it won't work because 
of the INITRAMFS pointing to a non-existing directory. (check log below)

That's why that option should be removed from the standard kernel.

Regards,
C.Palminha

palminha@palminha-vm:~/src/kernels/linux-mainline-next$ make axs101_defconfig
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
palminha@palminha-vm:~/src/kernels/linux-mainline-next$ make
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK include/config/kernel.release
  CHK include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  CC  kernel/bounds.s
  CHK include/generated/bounds.h
  CHK include/generated/timeconst.h
  CC  arch/arc/kernel/asm-offsets.s
  CHK include/generated/asm-offsets.h
  CALLscripts/checksyscalls.sh
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  CC  scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC  scripts/mod/devicetable-offsets.s
  GEN scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  CC  init/main.o
  CHK include/generated/compile.h
  CC  init/version.o
  CC  init/do_mounts.o
  CC  init/do_mounts_initrd.o
  LD  init/mounts.o
  CC  init/initramfs.o
  CC  init/calibrate.o
  CC  init/init_task.o
  LD  init/built-in.o
  HOSTCC  usr/gen_init_cpio
  ./scripts/gen_initramfs_list.sh: Cannot open '../arc_initramfs/'
usr/Makefile:73: recipe for target 'usr/initramfs_data.cpio.gz' failed
make[1]: *** [usr/initramfs_data.cpio.gz] Error 1
Makefile:943: recipe for target 'usr' failed
make: *** [usr] Error 2
palminha@palminha-vm:~/src/kernels/linux-mainline-next$ 


On 07-01-2016 23:20, Alexey Brodkin wrote:
> Hi Carlos,
> 
> On Mon, 2016-01-04 at 14:55 +, palmi...@synopsys.com wrote:
>> From: Carlos Palminha 
>>
>> Cannot compile kernel with INITRAMFS SOURCE option.
>> Please move this option to a buildroot patch.
> 
> First of all if your problem is only related to Buildroot then
> there's not much sense in adding linux-snps-arc@lists.infradead.org
> which is used for pure Linux kernel discussions.
> 
> Then even in case of Buildroot CONFIG_INITRAMFS_SOURCE could be a problem
> only if you don't set Buildroot's BR2_TARGET_ROOTFS_INITRAMFS=y, see
> how it is done in snps_axs101_defconfig here
> https://git.busybox.net/buildroot/tree/configs/snps_axs101_defconfig#n7
> 
> What happens if BR2_TARGET_ROOTFS_INITRAMFS=y then existing in kernel's
> defconfig CONFIG_INITRAMFS_SOURCE gets overridden with new value, see
> https://git.busybox.net/buildroot/tree/linux/linux.mk#n217
> 
> Now if you really want to not use built-in kernel initramfs then simplest
> thing to do is to run "make linux-menuconfig" from your Buildroot's folder
> and disable or set with nothing CONFIG_INITRAMFS_SOURCE.
> 
> -Alexey
> 

___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc