Re: [linux-yocto] [yocto-5.4][master][PATCH] features/media: set default for DVB_CORE to m

2020-08-07 Thread Bruce Ashfield
On Fri, Aug 7, 2020 at 1:43 PM Anuj Mittal wrote: > MEDIA_SUPPORT is set by default to m so DVB_CORE can't be y and this is > the only tristate that we set to y that is controlled by MEDIA_SUPPORT. > Change it to m. Fixes: > > [NOTE]: 'CONFIG_DVB_CORE' last val (y) and .config val (m) do not

Re: [linux-yocto] [linux-yocto-dev][kernel standard/bcm-2xxx-rpi 00/11] Enable Xen on Raspberry Pi 4

2020-08-07 Thread Bruce Ashfield
On Fri, Aug 7, 2020 at 2:18 AM Christopher Clark < christopher.w.cl...@gmail.com> wrote: > This series of patches, submitted for the standard/bcm-2xxx-rpi kernel, > support enabling linux-yocto-dev to run Xen on the Raspberry Pi 4. This > is version 3 of the series developed within the Xen

[linux-yocto] [yocto-5.4][master][PATCH] features/media: set default for DVB_CORE to m

2020-08-07 Thread Anuj Mittal
MEDIA_SUPPORT is set by default to m so DVB_CORE can't be y and this is the only tristate that we set to y that is controlled by MEDIA_SUPPORT. Change it to m. Fixes: [NOTE]: 'CONFIG_DVB_CORE' last val (y) and .config val (m) do not match [INFO]: CONFIG_DVB_CORE : m ## .config: 3617

Re: [linux-yocto] [linux-yocto-dev] [oe-core] [PATCH] kernel.bbclass: Configuration for environment with HOSTCXX

2020-08-07 Thread Richard Purdie
On Fri, 2020-08-07 at 08:34 -0400, Bruce Ashfield wrote: > This needs to go to oe-core. > > But see some comments below. > > On Fri, Aug 7, 2020 at 5:26 AM wrote: > > From: Zhang Qiang > > > > When compiling xilinx-zynq board linux-kernel-dev(v5.8) if > > "GCC_PLUGINS=y", The following error

[linux-yocto] [linux-yocto-dev] [oe-core] [PATCH] kernel.bbclass: Configuration for environment with HOSTCXX

2020-08-07 Thread Zhang, Qiang
From: Zhang Qiang When compiling xilinx-zynq board linux-kernel-dev(v5.8) if "GCC_PLUGINS=y", The following error will appear: "HOSTCXX -fPIC scripts/gcc-plugins/arm_ssp_per_task_plugin.o fatal error: gmp.h: No such file or directory" the GCC_PLUGINS depend on return result of gcc-plugin.sh

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 03/11] swiotlb-xen: add struct device * parameter to xen_phys_to_bus

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini No functional changes. The parameter is unused in this patch but will be used by next patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky Tested-by: Corey Minyard Tested-by: Roman Shaposhnik Signed-off-by: Christopher Clark ---

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 09/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini With some devices physical addresses are different than dma addresses. To be able to deal with these cases, we need to call phys_to_dma on physical addresses (including machine addresses in Xen terminology) before returning them from xen_swiotlb_alloc_coherent and

[linux-yocto] [linux-yocto-dev][kernel standard/bcm-2xxx-rpi 00/11] Enable Xen on Raspberry Pi 4

2020-08-07 Thread Christopher Clark
This series of patches, submitted for the standard/bcm-2xxx-rpi kernel, support enabling linux-yocto-dev to run Xen on the Raspberry Pi 4. This is version 3 of the series developed within the Xen community, which is now queued for inclusion in Linux upstream:

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 02/11] swiotlb-xen: remove start_dma_addr

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini It is not strictly needed. Call virt_to_phys on xen_io_tlb_start instead. It will be useful not to have a start_dma_addr around with the next patches. Note that virt_to_phys is not the same as xen_virt_to_bus but actually it is used to compared again

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 01/11] swiotlb-xen: use vmalloc_to_page on vmalloc virt addresses

2020-08-07 Thread Christopher Clark
Author: Boris Ostrovsky xen_alloc_coherent_pages might return pages for which virt_to_phys and virt_to_page don't work, e.g. ioremap'ed pages. So in xen_swiotlb_free_coherent we can't assume that virt_to_page works. Instead add a is_vmalloc_addr check and use vmalloc_to_page on vmalloc virt

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 05/11] swiotlb-xen: add struct device * parameter to xen_dma_sync_for_cpu

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini No functional changes. The parameter is unused in this patch but will be used by next patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky Tested-by: Corey Minyard Tested-by: Roman Shaposhnik Signed-off-by: Christopher Clark ---

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 07/11] swiotlb-xen: add struct device * parameter to is_xen_swiotlb_buffer

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini No functional changes. The parameter is unused in this patch but will be used by next patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky Tested-by: Corey Minyard Tested-by: Roman Shaposhnik Signed-off-by: Christopher Clark ---

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 08/11] swiotlb-xen: remove XEN_PFN_PHYS

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini XEN_PFN_PHYS is only used in one place in swiotlb-xen making things more complex than need to be. Remove the definition of XEN_PFN_PHYS and open code the cast in the one place where it is needed. Signed-off-by: Stefano Stabellini Signed-off-by: Christopher Clark >

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 06/11] swiotlb-xen: add struct device * parameter to xen_dma_sync_for_device

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini No functional changes. The parameter is unused in this patch but will be used by next patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky Tested-by: Corey Minyard Tested-by: Roman Shaposhnik Signed-off-by: Christopher Clark ---

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 10/11] xen/arm: introduce phys/dma translations in xen_dma_sync_for_*

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini xen_dma_sync_for_cpu, xen_dma_sync_for_device, xen_arch_need_swiotlb are getting called passing dma addresses. On some platforms dma addresses could be different from physical addresses. Before doing any operations on these addresses we need to convert them back to

[linux-yocto] [linux-yocto-dev][PATCH][kernel standard/bcm-2xxx-rpi 11/11] xen/arm: call dma_to_phys on the dma_addr_t parameter of dma_cache_maint

2020-08-07 Thread Christopher Clark
Author: Stefano Stabellini dma_cache_maint is getting called passing a dma address which could be different from a physical address. Add a struct device* parameter to dma_cache_maint. Translate the dma_addr_t parameter of dma_cache_maint by calling dma_to_phys. Do it for the first page and all