meta-arago-distro: chromium-browser: add support for Chromium v123
PATCH 1/1 meta-arago-distro: chromium-browser: add support for Chromium v123
From: Darren Etheridge <[email protected]>
Add support for Chromium v123 and remove the v111 support as this is not functional on Scarthgap.
This fixes up the wrapper script to use --use-gl=angle instead of --use-gl=egl when launching Chromium. With the PowerVR drivers everything works better if we go through ANGLE with never versions of Chromium.
Also apply a couple of patches (these are not strictly needed) the first reduces a permissions warning that gets logged to stderr, however it is not fatal because chromium falls back to using another allocation method
which succeeds. The second is an upstream patch that fixes an issue
where the buffer object size that is getting allocated is incorrect. It hasn't been shown to be a problem in our testing, but just in the abundance of caution this patch is going to be included.
---
...dbox-allow-access-to-PowerVR-GPU-fro.patch | 40 +++++-----
...stream-fix-incorrect-size-allocation.patch | 79 +++++++++++++++++++
...omium-ozone-wayland_111.0.5563.64.bbappend | 8 --
...-chromium-32307795-fix-nullprt-deref.patch | 52 ------------
...mium-ozone-wayland_123.0.6312.122.bbappend | 11 +++
5 files changed, 112 insertions(+), 78 deletions(-)
rename meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/{chromium-ozone-wayland_111.0.5563.64 => chromium-ozone-wayland-123.0.6312.122}/0001-chromium-gpu-sandbox-allow-access-to-PowerVR-GPU-fro.patch (69%)
create mode 100644 meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland-123.0.6312.122/0002-upstream-fix-incorrect-size-allocation.patch
delete mode 100644 meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_111.0.5563.64.bbappend
delete mode 100644 meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_111.0.5563.64/0002-upstream-chromium-32307795-fix-nullprt-deref.patch
create mode 100644 meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_123.0.6312.122.bbappendmeta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland-123.0.6312.122/0001-chromium-gpu-sandbox-allow-access-to-PowerVR-GPU-fro.patch renamed from meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_111.0.5563.64/0001-chromium-gpu-sandbox-allow-access-to-PowerVR-GPU-fro.patch +22 -18
@@ -1,9 +1,12 @@ -From 11267fe76f81dce283d565d517b679aa2be44466 Mon Sep 17 00:00:00 2001 -From: Darren Etheridge <[email protected]> -Date: Fri, 26 Jan 2024 10:54:49 -0600 +From a27529b8808e2eaa18ae5a30d5fee8193969bde7 Mon Sep 17 00:00:00 2001 +From: Darren Etheridge <[email protected]> +Date: Mon, 20 May 2024 15:48:36 -0500 Subject: [PATCH] chromium: gpu: sandbox: allow access to PowerVR GPU from sandbox +Upstream-Status: Pending [not strictly necessary, but reduces +permissions warnings on console] + Chromium runs in a sandbox to limit access to the system, however the PowerVR drivers for the Imagination GPU used on TI hardware need some extra libraries along with the DRM device nodes to be opened up.
@@ -11,17 +14,17 @@ This patch opens up the necessary pieces. Signed-off-by: Darren Etheridge <[email protected]> --- - content/gpu/gpu_sandbox_hook_linux.cc | 16 +++++++++++++++- + content/common/gpu_pre_sandbox_hook_linux.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) -diff --git a/content/gpu/gpu_sandbox_hook_linux.cc b/content/gpu/gpu_sandbox_hook_linux.cc -index d93285a..1f8aafd 100644 ---- a/content/gpu/gpu_sandbox_hook_linux.cc -+++ b/content/gpu/gpu_sandbox_hook_linux.cc +diff --git a/content/common/gpu_pre_sandbox_hook_linux.cc b/content/common/gpu_pre_sandbox_hook_linux.cc +index 28de3c7..7db0617 100644 +--- a/content/common/gpu_pre_sandbox_hook_linux.cc ++++ b/content/common/gpu_pre_sandbox_hook_linux.cc @@ -67,6 +67,11 @@ inline bool UseChromecastSandboxAllowlist() { #endif } - + +inline bool IsGPUIMGRogue() { + return true; +}
@@ -30,10 +33,10 @@ index d93285a..1f8aafd 100644 inline bool IsArchitectureArm() { #if defined(ARCH_CPU_ARM_FAMILY) return true; -@@ -441,6 +446,11 @@ std::vector<BrokerFilePermission> FilePermissionsForGpu( - +@@ -484,6 +489,11 @@ std::vector<BrokerFilePermission> FilePermissionsForGpu( + AddVulkanICDPermissions(&permissions); - + + if (IsGPUIMGRogue()) { + // Add standard DRM permissions for snapdragon/PowerVR: + AddDrmGpuPermissions(&permissions);
@@ -42,7 +45,7 @@ index d93285a..1f8aafd 100644 if (IsChromeOS()) { // Permissions are additive, there can be multiple GPUs in the system. AddStandardChromeOsPermissions(&permissions); -@@ -508,6 +518,8 @@ void LoadArmGpuLibraries() { +@@ -552,6 +562,8 @@ void LoadArmGpuLibraries() { DRI_DRIVER_DIR "/mediatek_dri.so", DRI_DRIVER_DIR "/rockchip_dri.so", DRI_DRIVER_DIR "/asahi_dri.so",
@@ -51,7 +54,7 @@ index d93285a..1f8aafd 100644 #else "/usr/lib64/dri/msm_dri.so", "/usr/lib64/dri/panfrost_dri.so", -@@ -515,6 +527,8 @@ void LoadArmGpuLibraries() { +@@ -559,6 +571,8 @@ void LoadArmGpuLibraries() { "/usr/lib64/dri/rockchip_dri.so", "/usr/lib64/dri/asahi_dri.so", "/usr/lib/dri/msm_dri.so",
@@ -60,7 +63,7 @@ index d93285a..1f8aafd 100644 "/usr/lib/dri/panfrost_dri.so", "/usr/lib/dri/mediatek_dri.so", "/usr/lib/dri/rockchip_dri.so", -@@ -632,7 +646,7 @@ sandbox::syscall_broker::BrokerCommandSet CommandSetForGPU( +@@ -655,7 +669,7 @@ sandbox::syscall_broker::BrokerCommandSet CommandSetForGPU( command_set.set(sandbox::syscall_broker::COMMAND_ACCESS); command_set.set(sandbox::syscall_broker::COMMAND_OPEN); command_set.set(sandbox::syscall_broker::COMMAND_STAT);
@@ -68,6 +71,7 @@ index d93285a..1f8aafd 100644 + if ((IsGPUIMGRogue() || IsChromeOS()) && (options.use_amd_specific_policies || options.use_intel_specific_policies || - options.use_virtio_specific_policies || IsArchitectureArm())) { --- -2.36.1 + options.use_nvidia_specific_policies || +-- +2.34.1 +
meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland-123.0.6312.122/0002-upstream-fix-incorrect-size-allocation.patch new file +79 -0
79 lines not on this page · raw message
meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_111.0.5563.64.bbappend deleted +0 -8
@@ -1,8 +0,0 @@ -PR:append = ".arago0" - -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}_${PV}:" - -SRC_URI:append = " \ - file://0001-chromium-gpu-sandbox-allow-access-to-PowerVR-GPU-fro.patch \ - file://0002-upstream-chromium-32307795-fix-nullprt-deref.patch \ - "
meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_111.0.5563.64/0002-upstream-chromium-32307795-fix-nullprt-deref.patch deleted +0 -52
52 lines not on this page · raw message
meta-arago-distro/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland_123.0.6312.122.bbappend new file +11 -0
@@ -0,0 +1,11 @@ +PR:append = ".arago0" + +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-${PV}:" + +CHROMIUM_EXTRA_ARGS:remove = " --use-gl=egl" +CHROMIUM_EXTRA_ARGS:append = " --use-gl=angle" + +SRC_URI:append = " \ + file://0001-chromium-gpu-sandbox-allow-access-to-PowerVR-GPU-fro.patch \ + file://0002-upstream-fix-incorrect-size-allocation.patch \ + "
Signature · 1 line
2.36.1