Patch "video/aperture: Move vga handling to pci function" 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: Move vga handling to pci function

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-move-vga-handling-to-pci-function.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 565248ca86de0e5bfba7d14375c4647e51cd583f
Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
Date:   Thu Apr 6 15:21:05 2023 +0200

    video/aperture: Move vga handling to pci function
    
    [ Upstream commit f1d599d315fb7b7343cddaf365e671aaa8453aca ]
    
    A few reasons for this:
    
    - It's really the only one where this matters. I tried looking around,
      and I didn't find any non-pci vga-compatible controllers for x86
      (since that's the only platform where we had this until a few
      patches ago), where a driver participating in the aperture claim
      dance would interfere.
    
    - I also don't expect that any future bus anytime soon will
      not just look like pci towards the OS, that's been the case for like
      25+ years by now for practically everything (even non non-x86).
    
    - Also it's a bit funny if we have one part of the vga removal in the
      pci function, and the other in the generic one.
    
    v2: Rebase.
    
    v4:
    - fix Daniel's S-o-b address
    
    v5:
    - add back an S-o-b tag with Daniel's Intel address
    
    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-6-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 7ea18086e6599..3e4a1f55f51b3 100644
--- a/drivers/video/aperture.c
+++ b/drivers/video/aperture.c
@@ -298,14 +298,6 @@ int aperture_remove_conflicting_devices(resource_size_t base, resource_size_t si
 
 	aperture_detach_devices(base, size);
 
-	/*
-	 * If this is the primary adapter, there could be a VGA device
-	 * that consumes the VGA framebuffer I/O range. Remove this device
-	 * as well.
-	 */
-	if (primary)
-		aperture_detach_devices(VGA_FB_PHYS_BASE, VGA_FB_PHYS_SIZE);
-
 	return 0;
 }
 EXPORT_SYMBOL(aperture_remove_conflicting_devices);
@@ -345,6 +337,13 @@ int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *na
 	}
 
 	if (primary) {
+		/*
+		 * If this is the primary adapter, there could be a VGA device
+		 * that consumes the VGA framebuffer I/O range. Remove this
+		 * device as well.
+		 */
+		aperture_detach_devices(VGA_FB_PHYS_BASE, VGA_FB_PHYS_SIZE);
+
 		/*
 		 * WARNING: Apparently we must kick fbdev drivers before vgacon,
 		 * otherwise the vga fbdev driver falls over.



[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