Patch "video/aperture: Only kick vgacon when the pdev is decoding vga" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    video/aperture: Only kick vgacon when the pdev is decoding vga

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     video-aperture-only-kick-vgacon-when-the-pdev-is-dec.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit dbfa373a160f702e4c379e29134c7df29ac61e99
Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
Date:   Thu Apr 6 15:21:04 2023 +0200

    video/aperture: Only kick vgacon when the pdev is decoding vga
    
    [ Upstream commit 7450cd235b45d43ee6f3c235f89e92623458175d ]
    
    Otherwise it's a bit silly, and we might throw out the driver for the
    screen the user is actually looking at. I haven't found a bug report
    for this case yet, but we did get bug reports for the analog case
    where we're throwing out the efifb driver.
    
    v2: Flip the check around to make it clear it's a special case for
    kicking out the vgacon driver only (Thomas)
    
    v4:
    - fixes to commit message
    - fix Daniel's S-o-b address
    
    v5:
    - add back an S-o-b tag with Daniel's Intel address
    
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=216303
    Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
    Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>
    Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
    Cc: Thomas Zimmermann <tzimmermann@xxxxxxx>
    Cc: Javier Martinez Canillas <javierm@xxxxxxxxxx>
    Cc: Helge Deller <deller@xxxxxx>
    Cc: linux-fbdev@xxxxxxxxxxxxxxx
    Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230406132109.32050-5-tzimmermann@xxxxxxx
    Stable-dep-of: 5ae3716cfdcd ("video/aperture: Only remove sysfb on the default vga pci device")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/video/aperture.c b/drivers/video/aperture.c
index 5c94abdb1ad6d..7ea18086e6599 100644
--- a/drivers/video/aperture.c
+++ b/drivers/video/aperture.c
@@ -344,13 +344,15 @@ int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *na
 		aperture_detach_devices(base, size);
 	}
 
-	/*
-	 * WARNING: Apparently we must kick fbdev drivers before vgacon,
-	 * otherwise the vga fbdev driver falls over.
-	 */
-	ret = vga_remove_vgacon(pdev);
-	if (ret)
-		return ret;
+	if (primary) {
+		/*
+		 * WARNING: Apparently we must kick fbdev drivers before vgacon,
+		 * otherwise the vga fbdev driver falls over.
+		 */
+		ret = vga_remove_vgacon(pdev);
+		if (ret)
+			return ret;
+	}
 
 	return 0;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux