Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package plymouth for openSUSE:Factory 
checked in at 2021-05-01 00:46:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plymouth (Old)
 and      /work/SRC/openSUSE:Factory/.plymouth.new.1947 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "plymouth"

Sat May  1 00:46:25 2021 rev:93 rq:889523 version:0.9.5+git20201026+53c83cc

Changes:
--------
--- /work/SRC/openSUSE:Factory/plymouth/plymouth.changes        2021-02-22 
14:22:05.719533922 +0100
+++ /work/SRC/openSUSE:Factory/.plymouth.new.1947/plymouth.changes      
2021-05-01 00:46:31.367499024 +0200
@@ -1,0 +2,15 @@
+Wed Feb 24 08:25:42 UTC 2021 - Cliff Zhao <[email protected]>
+
+- Pickup plymouth-only_use_fb_for_cirrus_bochs.patch: Currently our
+  kernel hardware support need this fix, and boo#1172028 will be
+  fix seperately (bnc#888590 boo#1172028 bsc#1181913).
+
+-------------------------------------------------------------------
+Sat Feb 20 08:37:12 UTC 2021 - Cliff Zhao <[email protected]>
+
+- Disable plymouth-systemd-KillMode-mixed.patch: Temporary disable
+  it, because aarch64 and ppc64le system could not booting in
+  release period, and this is only a enhancement with no harm to
+  rollback (bnc#1177082, bnc#1182145, bnc#1184087).
+
+-------------------------------------------------------------------

New:
----
  plymouth-only_use_fb_for_cirrus_bochs.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ plymouth.spec ++++++
--- /var/tmp/diff_new_pack.6EvjnC/_old  2021-05-01 00:46:31.983496280 +0200
+++ /var/tmp/diff_new_pack.6EvjnC/_new  2021-05-01 00:46:31.987496263 +0200
@@ -47,6 +47,8 @@
 Patch4:         plymouth-no-longer-modify-conf-to-drop-isopensuse-macro.patch
 # PATCH-FIX-OPENSUSE plymouth-disable-fedora-logo.patch [email protected] -- 
Disable the fedora logo reference which is not in openSUSE.
 Patch6:         plymouth-disable-fedora-logo.patch
+# PATCH-FIX-OPENSUSE plymouth-only_use_fb_for_cirrus_bochs.patch bnc#888590 
boo#1172028 bsc#1181913 [email protected] -- force fb for cirrus and bochs, force 
drm otherwise. replace removal of framebuffer driver and 
plymouth-ignore-cirrusdrm.patch with single patch.
+Patch7:         plymouth-only_use_fb_for_cirrus_bochs.patch
 # PATCH-FIX-UPSTREAM 0001-Add-label-ft-plugin.patch boo#959986 [email protected] 
-- add ability to output text in initrd needed for encryption.
 Patch1000:      0001-Add-label-ft-plugin.patch
 # PATCH-FIX-UPSTREAM 
0002-Install-label-ft-plugin-into-initrd-if-available.patch boo#959986 
[email protected] -- add ability to output text in initrd needed for encryption.


++++++ plymouth-only_use_fb_for_cirrus_bochs.patch ++++++
From: Fabian Vogt <[email protected]>
Subject: force fb for cirrus and bochs, force drm otherwise
References: bsc#888590, bsc#980750

DRM does not work well with cirrus and bochs (no display) but the framebuffer 
driver
prevents DRM drivers from loading.
As we need to support cirrus for libvirt and bochs for QEMU, we cannot just 
remove support for frame-buffer.

Index: 
plymouth-0.9.3+git20180807.7663b0c/src/libply-splash-core/ply-device-manager.c
===================================================================
--- 
plymouth-0.9.3+git20180807.7663b0c.orig/src/libply-splash-core/ply-device-manager.c
        2018-08-07 17:41:15.000000000 +0200
+++ 
plymouth-0.9.3+git20180807.7663b0c/src/libply-splash-core/ply-device-manager.c  
      2018-08-17 19:58:41.178821647 +0200
@@ -228,13 +228,33 @@ create_devices_for_udev_device (ply_devi
                 subsystem = udev_device_get_subsystem (device);
                 ply_trace ("device subsystem is %s", subsystem);
 
+                const char *card_vendor = udev_device_get_sysattr_value 
(device, "device/vendor");
+                const char *card_device = udev_device_get_sysattr_value 
(device, "device/device");
+                bool use_fb = false;
+                if (card_vendor) {
+                        /* Cirrus */
+                        if (strcmp ("0x1013", card_vendor) == 0)
+                                use_fb = true;
+                        /* "Technical Corp", also used by bochs */
+                        else if (strcmp ("0x1234", card_vendor) == 0)
+                                use_fb = strcmp("0x1111", card_device) == 0;
+                }
+
                 if (subsystem != NULL && strcmp (subsystem, SUBSYSTEM_DRM) == 
0) {
                         ply_trace ("found DRM device %s", device_path);
                         renderer_type = PLY_RENDERER_TYPE_DRM;
+                        if (use_fb) {
+                                ply_trace ("forcing use of framebuffer for 
cirrusdrmfb");
+                                renderer_type = PLY_RENDERER_TYPE_NONE;
+                        }
                 } else if (strcmp (subsystem, SUBSYSTEM_FRAME_BUFFER) == 0) {
                         ply_trace ("found frame buffer device %s", 
device_path);
-                        if (!fb_device_has_drm_device (manager, device))
+                        if (use_fb) {
                                 renderer_type = PLY_RENDERER_TYPE_FRAME_BUFFER;
+                        }
+                        else if (!fb_device_has_drm_device (manager, device)) {
+                                ply_trace ("avoiding use of framebuffer to not 
block DRM drivers from working");
+                        }
                         else
                                 ply_trace ("ignoring, since there's a DRM 
device associated with it");
                 }

Reply via email to