aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/recipes-graphics
AgeCommit message (Collapse)Author
2019-12-13kernel-module-mali: Upgrade the kernel space driver to r9p0Madhurkiran Harikrishnan
Upgrade the Mali-400 kernel space driver to r9p0. Key features: -Support linux kernel 4.19 -Added incremental features upgrade details for the DDk revision Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
2019-12-13kernel-module-mali: add patch to check dma_map_page errorJean-Francois Dagenais
This fixes an error when using the module in a kernel configured with the CONFIG_DMA_API_DEBUG flag. utgard fd4b0000.gpu: DMA-API: device driver failed to check map error[device address=0x00000000325b0000] [size=4096 bytes] [mapped as page] ... [<ffffff80082f72bc>] check_unmap+0x44c/0x7e8 [<ffffff80082f76b8>] debug_dma_unmap_page+0x60/0x68 [<ffffff8000622e60>] mali_mem_os_alloc_pages+0x230/0x498 [mali] ... Acked-by: Hyun Kwon <hyun.kwon@xilinx.com> Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
2019-11-19libmali-xlnx: make version recognizableJean-Francois Dagenais
Build systems (like meson), will look for >= of gbm pkg-config. "r8p0" makes these systems choke and fail to recognize gbm completely. The other .pc files next to gbm.pc suffer the same problem but have not caused me problems yet. 17.3 is a best minimal guess when comparing gbm.h relative to the one in mesa. Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: clean and fix FILESXTRAPATHSJean-Francois Dagenais
Normally, when the colon ':' separator is on the right, the assignment is meant to be prepended to the variable. Using the _append override with both colon and spaces is an incoherent use of the FILESEXTRAPATH variable: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-FILESEXTRAPATHS Also removed the r9p0... path as it doesn't exist. Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: Upgrade the userspace driver to r9p0Madhurkiran Harikrishnan
Upgrade the Mali-400 userspace driver to r9p0. Key features: -Minor bug fixes -Add user space support of GBM for MESA 17.3 -Supports Wayland > 1.15 Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: modify version on egl.pc for compatibilityAlejandro Enedino Hernandez Samaniego
Other packages may be using pkg-config to check for a compatible egl version. Align with the supported GL version to avoid errors when running configure for such packages. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: Change version on gbm.pc to be compatible with mesaAlejandro Enedino Hernandez Samaniego
Other packages may be using pkg-config to check for a compatible gbm version, which usually comes from mesa. Align with the supported mesa version to avoid errors when running configure for such packages. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: Dont provide KHR headersAlejandro Enedino Hernandez Samaniego
Mesa-GL provides the KHR headers since 87c156183 (mesa) even if egl is not selected, assuming opengl is. This creates a conflict since when something DEPENDS on virtual/libgl and virtual/gles1, both dependencies will provide the same file. Dont provide KHR headers to avoid this conflict. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: Squash all monolithic library name into a variableMadhurkiran Harikrishnan
Create a variable for monolithic library as it will be easy to call/make changes for future revision upgrade. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: fix x11 headersAlejandro Enedino Hernandez Samaniego
Since we cant rely on the fact that apps will use pkgconfig correctly we need to set the x11 headers accordingly (depending on DISTRO_FEATURES), e.g. qtbase, or libepoxy Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: only use and install dependencies that the DISTRO supportsAlejandro Enedino Hernandez Samaniego
Be less strict with dependencies, if a user doesnt want a certain backend dont use or install dependencies for that backend. While switching alternatives at runtime would technically work, specifically speaking, the link to the selected alternative would be created correctly, the backend itself wouldnt necessarly work for obvious reasons, unless the user has the correct DISTRO_FEATURES enabled in their DISTRO configuration, which would pull all the necessary runtime dependencies for that backend. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: modify REQUIRED_DISTRO_FEATURESAlejandro Enedino Hernandez Samaniego
Use ANY_OF_DISTRO_FEATURES instead of REQUIRED_DISTRO_FEATURES to avoid pulling unnecessary dependencies for users. If a user wants to use a different backend, they should modify their own conf to add the required DISTRO_FEATURE. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx.bb: ABIs are made consistent for all backendsMadhurkiran Harikrishnan
Application binary interface are made consistent for all backends. GBM API support is now available for any libMali monolithic library. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: Use update-alternatives to switch between GL backendsAlejandro Enedino Hernandez Samaniego
libmali provides GL backends based on x11, fbdev and wayland, we should be able to switch between them at runtime since it is the same ABI, it should only be a matter of loading the correct shared library by the interpreter (dynamic linker). Use the update-alternatives class, to provide a way for the user to choose the desired backend at runtime, do this by setting priorities, the package with the highest priority will be chosen as default at build time, but it can easily be changed at runtime afterwards. This change implies that the libmali package will install all backends regardless of which one was chosen, but it will only use one as default. Use the x11 backend by default at build time; given that it is the same ABI, applications which depend on libmali, can build regardless of the chosen backend at build time. Update-alternatives uses a set of commands on the postinst scripts when creating the root filesystem, which basically create the soft link between the chosen alternative and the binary/library. This usually works seamlessly (for binaries), but it does not in the case of libraries, because ldconfig is run at the end of the do_rootfs task, and it removes the link that was just created, it is important to note that this is simply normal ldconfig behavior and its not something we can fix, so we defer execution of update-alternatives until the first boot, hence avoiding the link removal by ldconfig. Switching backends at build time will also help to avoid longer build times, since it will only invalidate the do_package task, rebuilding an image after switching a backend (at build time) should only execute the do_package task along with the do_rootfs task. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: MALI will not provide wayland-eglMadhurkiran Harikrishnan
Starting from 1.15 wayland, wayland-egl implementations are wired from wayland source code. EGL providers need not provide symbols/library. Applications will hence be linked to the one provided by the wayland. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-11-19libmali-xlnx: upgrade MALI recipe for 2019.2Manjukumar Matha
Upgrade MALI recipe and going forward from Wayland 1.15 the implementation for wayland-egl comes from wayland, EGL providers can leverage that and need not provide a separate implementation. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-06-28xf86-video-armsoc: Remove the recipe for xf86-video-armsocMadhurkiran Harikrishnan
meta-openembedded holds xf86-video-armsoc recipe, meta-xilinx need not have the same. Also, move the patches to a bbappend file, so that it can be used by any xf86-video-armsoc recipe. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-06-28kernel-module-mali: Fix errors associated with kernel upgrade to 4.19Madhurkiran Harikrishnan
These patches fixes errors caused by removal of ancient init_timer API. Also, addresses the removal of hot/cold cache pages in the kernel. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-06-28libmali-xlnx_git.bb: Fix the package arch for libmaliManjukumar Matha
Package arch for libmali cannot be soc_variant specific since it will cause the same library to be packaged differently between 'eg' and 'ev' devices. This has to be soc_family specfic package which applies to 'zynqmp' family. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2019-01-01libmali-xlnx.bb: Add support for wayland in libMaliMadhurkiran Harikrishnan
Along with X11 and fbdev, MALI will now have wayland support as well. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2018-06-25libmali-xlnx.bb: Add recipe to support MALI 400 binariesManjukumar Matha
This recipe allows user to fetch the MALI 400 binaries from xilinx.com manually and use it with compatible machines based on UltraScale+ for libgles1/libgles2 and egl libraries. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2018-06-21kernel-module-mali.bb: Set compatible and package arch according to SOC_VARIANTManjukumar Matha
MALI 400 is available only for eg and ev devices. Set compatible string and package arch to reflect the same. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2018-05-25xf86-video-armsoc: Update xilinx drm driver nameVarunkumar Allagadapa
This patch updates xilinx drm driver name to "xlnx" Signed-off-by: Varunkumar Allagadapa <varunkum@xilinx.com> Signed-off-by: Bhargava Sreekantappa Gayathri<bhargava.sreekantappa-gayathri@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2018-05-25kernel-module-mali: Update Mali driver to r8p0-01rel0Madhurkiran Harikrishnan
This patch will update Mali kernel driver to r8p0-01rel0. Signed-off-by: Madhurkiran Harikrishnan <madhurki@xilinx.com> Tested-by: Jaewon Lee <jaewon.lee@xilinx.com> Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2017-12-13meta-xilinx: Restructuring meta-xilinx to support multiple layersManjukumar Matha
As discussed previously on mailing list, we are proceeding with layer restructuring. For rocko release we will have the following layers meta-xilinx ->meta-xilinx-bsp (current meta-xilinx) ->meta-xilinx-contrib In the subsequent releases we will add other layers from Xilinx meta-xilinx ->meta-xilinx-bsp (current meta-xilinx) ->meta-petalinux ->meta-xilinx-tools ->meta-xilinx-contrib This will provide one clone to get all the required meta layers from Xilinx for a complete solution, and the users can blacklist any layer which they don't want to use using bblayer.conf. This will enables us to help our vendors/partners to add their reference designs, board definitions etc. Recipe changes : * Move reference design zybo-linux-bd.bb to meta-xilinx-contrib * Move kernel patches realted to zybo-linux-bd-zynq7 board to meta-xilinx-contrib * Update README Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>