drm/gma500: Remove Moorestown/Medfield
Subsystems (3)
Thomas Zimmermann
maintainercover drm/gma500: Remove Moorestown/Medfield
Support for Moorestown and Medfield platforms is being removed from the kernel. So here's a patch to remove the related code from the gma500 driver. On top of that I also cleaned up the configuration a bit.
Note that Poulsbo and Cedartrail is still there and will remain. With the MID platforms gone, there's actually a chance of cleaning up the code for the desktop chips.
I smoke tested the patchset by running Xorg and Weston on a Cedartrail system.
Thomas Zimmermann (5):
drm/gma500: Remove Medfield support
drm/gma500: Remove Moorestown support
drm/gma500: Drop DRM_GMA3600 config option drm/gma500: Remove CONFIG_X86 conditionals from source files drm/gma500: Remove dependency on TTM
drivers/gpu/drm/gma500/Kconfig | 28 +- drivers/gpu/drm/gma500/Makefile | 43 +- drivers/gpu/drm/gma500/cdv_intel_hdmi.c | 4 - drivers/gpu/drm/gma500/framebuffer.c | 2 +- drivers/gpu/drm/gma500/intel_gmbus.c | 5 +- drivers/gpu/drm/gma500/mdfld_device.c | 564 --------- drivers/gpu/drm/gma500/mdfld_dsi_dpi.c | 1017 ----------------- drivers/gpu/drm/gma500/mdfld_dsi_dpi.h | 79 -- drivers/gpu/drm/gma500/mdfld_dsi_output.c | 603 ---------- drivers/gpu/drm/gma500/mdfld_dsi_output.h | 377 ------ drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c | 679 ----------- drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.h | 80 -- drivers/gpu/drm/gma500/mdfld_intel_display.c | 966 ---------------- drivers/gpu/drm/gma500/mdfld_output.c | 74 -- drivers/gpu/drm/gma500/mdfld_output.h | 76 -- drivers/gpu/drm/gma500/mdfld_tmd_vid.c | 197 ---- drivers/gpu/drm/gma500/mdfld_tpo_vid.c | 83 -- drivers/gpu/drm/gma500/mid_bios.c | 333 ------ drivers/gpu/drm/gma500/mid_bios.h | 10 - drivers/gpu/drm/gma500/mmu.c | 21 - drivers/gpu/drm/gma500/oaktrail.h | 247 ---- drivers/gpu/drm/gma500/oaktrail_crtc.c | 663 ----------- drivers/gpu/drm/gma500/oaktrail_device.c | 567 --------- drivers/gpu/drm/gma500/oaktrail_hdmi.c | 840 -------------- drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c | 331 ------ drivers/gpu/drm/gma500/oaktrail_lvds.c | 423 ------- drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c | 169 --- drivers/gpu/drm/gma500/psb_drv.c | 82 +- drivers/gpu/drm/gma500/psb_drv.h | 108 -- drivers/gpu/drm/gma500/psb_intel_drv.h | 6 - drivers/gpu/drm/gma500/psb_intel_lvds.c | 14 +- drivers/gpu/drm/gma500/psb_intel_reg.h | 28 +- drivers/gpu/drm/gma500/psb_intel_sdvo.c | 20 +- drivers/gpu/drm/gma500/psb_irq.c | 72 +- drivers/gpu/drm/gma500/psb_irq.h | 2 - drivers/gpu/drm/gma500/psb_reg.h | 14 - drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c | 805 ------------- drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h | 38 - 38 files changed, 31 insertions(+), 9639 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/mdfld_device.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_output.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_output.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_intel_display.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_output.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_output.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_tmd_vid.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_tpo_vid.c delete mode 100644 drivers/gpu/drm/gma500/mid_bios.c delete mode 100644 drivers/gpu/drm/gma500/mid_bios.h delete mode 100644 drivers/gpu/drm/gma500/oaktrail.h delete mode 100644 drivers/gpu/drm/gma500/oaktrail_crtc.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_device.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_hdmi.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_lvds.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c delete mode 100644 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c delete mode 100644 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h
--
2.30.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerPATCH 1/5 drm/gma500: Remove Medfield support
Medfield is an outdated mobile platform with apparently no users left. Remove it from gma500.
--- drivers/gpu/drm/gma500/Kconfig | 7 - drivers/gpu/drm/gma500/Makefile | 10 - drivers/gpu/drm/gma500/cdv_intel_hdmi.c | 4 - drivers/gpu/drm/gma500/mdfld_device.c | 564 --------- drivers/gpu/drm/gma500/mdfld_dsi_dpi.c | 1017 ----------------- drivers/gpu/drm/gma500/mdfld_dsi_dpi.h | 79 -- drivers/gpu/drm/gma500/mdfld_dsi_output.c | 603 ---------- drivers/gpu/drm/gma500/mdfld_dsi_output.h | 377 ------ drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c | 679 ----------- drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.h | 80 -- drivers/gpu/drm/gma500/mdfld_intel_display.c | 966 ---------------- drivers/gpu/drm/gma500/mdfld_output.c | 74 -- drivers/gpu/drm/gma500/mdfld_output.h | 76 -- drivers/gpu/drm/gma500/mdfld_tmd_vid.c | 197 ---- drivers/gpu/drm/gma500/mdfld_tpo_vid.c | 83 -- drivers/gpu/drm/gma500/psb_drv.c | 12 - drivers/gpu/drm/gma500/psb_drv.h | 66 -- drivers/gpu/drm/gma500/psb_intel_reg.h | 12 +- drivers/gpu/drm/gma500/psb_irq.c | 72 +- drivers/gpu/drm/gma500/psb_irq.h | 2 - drivers/gpu/drm/gma500/psb_reg.h | 14 - drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c | 805 ------------- drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h | 38 - 23 files changed, 2 insertions(+), 5835 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/mdfld_device.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_output.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_output.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_intel_display.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_output.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_output.h delete mode 100644 drivers/gpu/drm/gma500/mdfld_tmd_vid.c delete mode 100644 drivers/gpu/drm/gma500/mdfld_tpo_vid.c delete mode 100644 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c delete mode 100644 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h
drivers/gpu/drm/gma500/Kconfig +0 -7
@@ -26,10 +26,3 @@ config DRM_GMA3600 help Say yes to include basic support for Intel GMA3600/3650 (Intel Cedar Trail) platforms. - -config DRM_MEDFIELD - bool "Intel Medfield support (Experimental)" - depends on DRM_GMA500 && X86_INTEL_MID - help - Say yes to include support for the Intel Medfield platform. -
drivers/gpu/drm/gma500/Makefile +0 -10
@@ -43,14 +43,4 @@ gma500_gfx-$(CONFIG_DRM_GMA600) += oaktrail_device.o \ oaktrail_hdmi.o \ oaktrail_hdmi_i2c.o -gma500_gfx-$(CONFIG_DRM_MEDFIELD) += mdfld_device.o \ - mdfld_output.o \ - mdfld_intel_display.o \ - mdfld_dsi_output.o \ - mdfld_dsi_dpi.o \ - mdfld_dsi_pkg_sender.o \ - mdfld_tpo_vid.o \ - mdfld_tmd_vid.o \ - tc35876x-dsi-lvds.o - obj-$(CONFIG_DRM_GMA500) += gma500_gfx.o
drivers/gpu/drm/gma500/cdv_intel_hdmi.c +0 -4
@@ -22,9 +22,6 @@* * Authors: * jim liu <[email protected]> -* -* FIXME: -* We should probably make this generic and share it with Medfield */ #include <linux/pm_runtime.h>
@@ -56,7 +53,6 @@ struct mid_intel_hdmi_priv {bool has_hdmi_audio;/* Should set this when detect hotplug */ bool hdmi_device_connected; -struct mdfld_hdmi_i2c *i2c_bus;struct i2c_adapter *hdmi_i2c_adapter;/* for control functions */ struct drm_device *dev; };
drivers/gpu/drm/gma500/mdfld_device.c deleted +0 -564
564 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_dsi_dpi.c deleted +0 -1017
1,017 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_dsi_dpi.h deleted +0 -79
79 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_dsi_output.c deleted +0 -603
603 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_dsi_output.h deleted +0 -377
377 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c deleted +0 -679
320 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.h deleted +0 -80
80 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_intel_display.c deleted +0 -966
966 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_output.c deleted +0 -74
74 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_output.h deleted +0 -76
76 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_tmd_vid.c deleted +0 -197
197 lines not on this page · raw message
drivers/gpu/drm/gma500/mdfld_tpo_vid.c deleted +0 -83
83 lines not on this page · raw message
drivers/gpu/drm/gma500/psb_drv.h +0 -66
66 lines not on this page · raw message
drivers/gpu/drm/gma500/psb_intel_reg.h +1 -11
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/gma500/psb_irq.c +1 -71
72 lines not on this page · raw message
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c deleted +0 -805
805 lines not on this page · raw message
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h deleted +0 -38
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
2.30.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Part of the diff is not shown here. View the raw message.
Patrik Jakobsson
maintainerRe: [PATCH 1/5] drm/gma500: Remove Medfield support
Quoted 5 lines · Thomas Zimmermann
Medfield is an outdated mobile platform with apparently no users left. Remove it from gma500.
Signed-off-by Thomas Zimmermann <[email protected]>
Great, finally we get rid of that DSI code :)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerRe: [PATCH 1/5] drm/gma500: Remove Medfield support
Hi Patrik
Am 29.01.21 um 15:25 schrieb Patrik Jakobsson:
Quoted 10 lines · Thomas Zimmermann
Quoted 5 lines
Medfield is an outdated mobile platform with apparently no users left. Remove it from gma500.
Signed-off-by Thomas Zimmermann <[email protected]>Great, finally we get rid of that DSI code :)
Signed-off-by Patrik Jakobsson <[email protected]>
I'm not sure about the meaning of the S-o-b tag here. Can I count this as an A-b?
Best regards
Thomas
Quoted 1 line
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patrik Jakobsson
maintainerRe: [PATCH 1/5] drm/gma500: Remove Medfield support
Quoted 9 lines · Thomas Zimmermann
Hi Patrik
Am 29.01.21 um 15:25 schrieb Patrik Jakobsson:
Quoted 5 lines · Thomas Zimmermann
Quoted 4 lines
Medfield is an outdated mobile platform with apparently no users left. Remove it from gma500.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Thomas Zimmermann <[email protected]>Great, finally we get rid of that DSI code :)
Signed-off-by Patrik Jakobsson <[email protected]>I'm not sure about the meaning of the S-o-b tag here. Can I count this as an A-b?
It means I'll take the patch through my path (which is drm-misc in this case).
I normally A-b stuff that is part of a wider series that I will not take myself and S-o-b when I'll take it.
-Patrik
Quoted 6 lines
Best regards
ThomasQuoted 1 line
Quoted 8 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerPATCH 2/5 drm/gma500: Remove Moorestown support
In reply to Thomas ZimmermannMoorestown is an outdated mobile platform with apparently no users left. Remove it from gma500. The MID chip-setup code in mid_bios.c is now unused, so remove it as well.
--- drivers/gpu/drm/gma500/Kconfig | 7 - drivers/gpu/drm/gma500/Makefile | 10 +- drivers/gpu/drm/gma500/framebuffer.c | 2 +- drivers/gpu/drm/gma500/intel_gmbus.c | 5 +- drivers/gpu/drm/gma500/mid_bios.c | 333 -------- drivers/gpu/drm/gma500/mid_bios.h | 10 - drivers/gpu/drm/gma500/oaktrail.h | 247 ------ drivers/gpu/drm/gma500/oaktrail_crtc.c | 663 ---------------- drivers/gpu/drm/gma500/oaktrail_device.c | 567 -------------- drivers/gpu/drm/gma500/oaktrail_hdmi.c | 840 --------------------- drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c | 331 -------- drivers/gpu/drm/gma500/oaktrail_lvds.c | 423 ----------- drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c | 169 ----- drivers/gpu/drm/gma500/psb_drv.c | 66 +- drivers/gpu/drm/gma500/psb_drv.h | 42 -- drivers/gpu/drm/gma500/psb_intel_drv.h | 6 - drivers/gpu/drm/gma500/psb_intel_lvds.c | 14 +- drivers/gpu/drm/gma500/psb_intel_reg.h | 16 - drivers/gpu/drm/gma500/psb_intel_sdvo.c | 20 +- 19 files changed, 13 insertions(+), 3758 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/mid_bios.c delete mode 100644 drivers/gpu/drm/gma500/mid_bios.h delete mode 100644 drivers/gpu/drm/gma500/oaktrail.h delete mode 100644 drivers/gpu/drm/gma500/oaktrail_crtc.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_device.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_hdmi.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_lvds.c delete mode 100644 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c
drivers/gpu/drm/gma500/Kconfig +0 -7
@@ -13,13 +13,6 @@ config DRM_GMA500 Intel GMA500 ('Poulsbo') and other Intel IMG based graphics devices. -config DRM_GMA600 - bool "Intel GMA600 support (Experimental)" - depends on DRM_GMA500 - help - Say yes to include support for GMA600 (Intel Moorestown/Oaktrail) - platforms with LVDS ports. MIPI is not currently supported. - config DRM_GMA3600 bool "Intel GMA3600/3650 support (Experimental)" depends on DRM_GMA500
drivers/gpu/drm/gma500/Makefile +1 -9
@@ -24,8 +24,7 @@ gma500_gfx-y += \ psb_intel_sdvo.o \ psb_lid.o \ psb_irq.o \ - psb_device.o \ - mid_bios.o + psb_device.o gma500_gfx-$(CONFIG_ACPI) += opregion.o \
@@ -36,11 +35,4 @@ gma500_gfx-$(CONFIG_DRM_GMA3600) += cdv_device.o \ cdv_intel_lvds.o \ cdv_intel_dp.o -gma500_gfx-$(CONFIG_DRM_GMA600) += oaktrail_device.o \ - oaktrail_crtc.o \ - oaktrail_lvds.o \ - oaktrail_lvds_i2c.o \ - oaktrail_hdmi.o \ - oaktrail_hdmi_i2c.o - obj-$(CONFIG_DRM_GMA500) += gma500_gfx.o
drivers/gpu/drm/gma500/framebuffer.c +1 -1
@@ -544,7 +544,7 @@ void psb_modeset_init(struct drm_device *dev)/* Oaktrail and Poulsbo should use BAR 2*/ pci_read_config_dword (pdev,PSB_BSM , (u32 *)&(dev->mode_config.fb_base)); -/* num pipes is 2 for PSB but 1 for Mrst */ +/* num pipes is 2 for PSB */ for (i =0 ; i < dev_priv->num_pipe; i++)psb_intel_crtc_init (dev, i, mode_dev);
drivers/gpu/drm/gma500/intel_gmbus.c +1 -4
@@ -402,10 +402,7 @@ int gma_intel_setup_gmbus(struct drm_device *dev)if (dev_priv->gmbus ==NULL )return -ENOMEM ; -if (IS_MRST (dev)) - dev_priv->gmbus_reg = dev_priv->aux_reg; -else - dev_priv->gmbus_reg = dev_priv->vdc_reg; + dev_priv->gmbus_reg = dev_priv->vdc_reg;for (i =0 ; i <GMBUS_NUM_PORTS ; i++) {struct intel_gmbus *bus = &dev_priv->gmbus[i];
drivers/gpu/drm/gma500/mid_bios.c deleted +0 -333
333 lines not on this page · raw message
drivers/gpu/drm/gma500/mid_bios.h deleted +0 -10
@@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/************************************************************************** -* Copyright (c) 2011, Intel Corporation. -* All Rights Reserved. -* -**************************************************************************/ -struct drm_device ; - -extern int mid_chip_setup (struct drm_device *dev); -
drivers/gpu/drm/gma500/oaktrail.h deleted +0 -247
247 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_crtc.c deleted +0 -663
663 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_device.c deleted +0 -567
567 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_hdmi.c deleted +0 -840
840 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c deleted +0 -331
288 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_lvds.c deleted +0 -423
423 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c deleted +0 -169
169 lines not on this page · raw message
drivers/gpu/drm/gma500/psb_drv.c +2 -64
66 lines not on this page · raw message
drivers/gpu/drm/gma500/psb_drv.h +0 -42
42 lines not on this page · raw message
drivers/gpu/drm/gma500/psb_intel_lvds.c +4 -10
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/gma500/psb_intel_reg.h +0 -16
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/gma500/psb_intel_sdvo.c +4 -16
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
2.30.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Part of the diff is not shown here. View the raw message.
Patrik Jakobsson
maintainerRe: [PATCH 2/5] drm/gma500: Remove Moorestown support
Quoted 6 lines · Thomas Zimmermann
Moorestown is an outdated mobile platform with apparently no users left. Remove it from gma500. The MID chip-setup code in
mid_bios.cis now unused, so remove it as well.Signed-off-by Thomas Zimmermann <[email protected]>
As stated earlier. This code must stay since Oaktrail is still supported. Perhaps there are still MRST specifics that can be removed. Let's have a look.
-Patrik
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerPATCH 3/5 drm/gma500: Drop DRM_GMA3600 config option
In reply to Thomas ZimmermannWith support for the MID-related chips removed, only support for desktop chips is left in the driver. So just build the complete driver if DRM_GMA500 has been selected. Anyone who wants to enable the Poulsbo code would probably also want the Cedarview code.
--- drivers/gpu/drm/gma500/Kconfig | 13 +++---------- drivers/gpu/drm/gma500/Makefile | 25 ++++++++++++------------- drivers/gpu/drm/gma500/psb_drv.c | 4 ++-- 3 files changed, 17 insertions(+), 25 deletions(-)
drivers/gpu/drm/gma500/Kconfig +3 -10
@@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_GMA500 - tristate "Intel GMA5/600 KMS Framebuffer" + tristate "Intel GMA500/3600/3650 KMS Framebuffer" depends on DRM && PCI && X86 && MMU select DRM_KMS_HELPER select DRM_TTM
@@ -10,12 +10,5 @@ config DRM_GMA500 select INPUT if ACPI help Say yes for an experimental 2D KMS framebuffer driver for the - Intel GMA500 ('Poulsbo') and other Intel IMG based graphics - devices. - -config DRM_GMA3600 - bool "Intel GMA3600/3650 support (Experimental)" - depends on DRM_GMA500 - help - Say yes to include basic support for Intel GMA3600/3650 (Intel - Cedar Trail) platforms. + Intel GMA500 ('Poulsbo') and Intel GMA3600/3650 (Intel + Cedar Trail).
drivers/gpu/drm/gma500/Makefile +12 -13
@@ -6,33 +6,32 @@ gma500_gfx-y += \ accel_2d.o \ backlight.o \ + blitter.o \ + cdv_device.o \ + cdv_intel_crt.o \ + cdv_intel_display.o \ + cdv_intel_dp.o \ + cdv_intel_hdmi.o \ + cdv_intel_lvds.o \ framebuffer.o \ gem.o \ + gma_device.o \ + gma_display.o \ gtt.o \ intel_bios.o \ - intel_i2c.o \ intel_gmbus.o \ + intel_i2c.o \ mmu.o \ - blitter.o \ power.o \ + psb_device.o \ psb_drv.o \ - gma_display.o \ - gma_device.o \ psb_intel_display.o \ psb_intel_lvds.o \ psb_intel_modes.o \ psb_intel_sdvo.o \ - psb_lid.o \ psb_irq.o \ - psb_device.o + psb_lid.o gma500_gfx-$(CONFIG_ACPI) += opregion.o \ -gma500_gfx-$(CONFIG_DRM_GMA3600) += cdv_device.o \ - cdv_intel_crt.o \ - cdv_intel_display.o \ - cdv_intel_hdmi.o \ - cdv_intel_lvds.o \ - cdv_intel_dp.o - obj-$(CONFIG_DRM_GMA500) += gma500_gfx.o
drivers/gpu/drm/gma500/psb_drv.c +2 -2
@@ -48,9 +48,10 @@ static int psb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent);* N2800 */ static const struct pci_device_id pciidlist[] = { +/* Poulsbo */ {0x8086 ,0x8108 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , (long ) &psb_chip_ops }, {0x8086 ,0x8109 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , (long ) &psb_chip_ops }, -#if defined(CONFIG_DRM_GMA3600) +/* Cedartrail */ {0x8086 ,0x0be0 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , (long ) &cdv_chip_ops }, {0x8086 ,0x0be1 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , (long ) &cdv_chip_ops }, {0x8086 ,0x0be2 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , (long ) &cdv_chip_ops },
@@ -67,7 +68,6 @@ static const struct pci_device_id pciidlist[] = { { 0x8086, 0x0bed, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (long) &cdv_chip_ops }, { 0x8086, 0x0bee, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (long) &cdv_chip_ops }, { 0x8086, 0x0bef, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (long) &cdv_chip_ops }, -#endif { 0, } };MODULE_DEVICE_TABLE (pci, pciidlist);
Signature · 6 lines
2.30.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patrik Jakobsson
maintainerRe: [PATCH 3/5] drm/gma500: Drop DRM_GMA3600 config option
Quoted 7 lines · Thomas Zimmermann
With support for the MID-related chips removed, only support for desktop chips is left in the driver. So just build the complete driver if
DRM_GMA500has been selected. Anyone who wants to enable the Poulsbo code would probably also want the Cedarview code.Signed-off-by Thomas Zimmermann <[email protected]>
As GMA600 is staying, can you please also merge that config?
-Patrik
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerRe: [PATCH 3/5] drm/gma500: Drop DRM_GMA3600 config option
Hi Patrik
Am 29.01.21 um 15:33 schrieb Patrik Jakobsson:
Quoted 10 lines · Thomas Zimmermann
Quoted 7 lines
With support for the MID-related chips removed, only support for desktop chips is left in the driver. So just build the complete driver if
DRM_GMA500has been selected. Anyone who wants to enable the Poulsbo code would probably also want the Cedarview code.Signed-off-by Thomas Zimmermann <[email protected]>As GMA600 is staying, can you please also merge that config?
By 'merge that config', you mean to removed CONFIG_DRM_GMA600 and configure everything with DRM_GMA500?
Best regards
Thomas
Quoted 7 lines
-Patrik
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patrik Jakobsson
maintainerRe: [PATCH 3/5] drm/gma500: Drop DRM_GMA3600 config option
Quoted 11 lines · Thomas Zimmermann
Hi Patrik
Am 29.01.21 um 15:33 schrieb Patrik Jakobsson:
Quoted 7 lines · Thomas Zimmermann
Quoted 6 lines
With support for the MID-related chips removed, only support for desktop chips is left in the driver. So just build the complete driver if
DRM_GMA500has been selected. Anyone who wants to enable the Poulsbo code would probably also want the Cedarview code.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Thomas Zimmermann <[email protected]>As GMA600 is staying, can you please also merge that config?
By 'merge that config', you mean to removed
CONFIG_DRM_GMA600and configure everything withDRM_GMA500?
Yes. No point in keeping it around when config for GMA3600 goes away.
Quoted 12 lines
Best regards
ThomasQuoted 7 lines
-Patrik
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerPATCH 4/5 drm/gma500: Remove CONFIG_X86 conditionals from source files
In reply to Thomas ZimmermannRemove the CONFIG_X86 conditionals from the source code. The driver already depends on X86 in the Kconfig file. Also, no one has been trying to build it on a non-x86 platform recently, or they would have noticed that drm_ttm_cache_flush() doesn't exist.
--- drivers/gpu/drm/gma500/mmu.c | 21 --------------------- 1 file changed, 21 deletions(-)
drivers/gpu/drm/gma500/mmu.c +0 -21
@@ -48,7 +48,6 @@ static inline uint32_t psb_mmu_pd_index(uint32_t offset)return offset >>PSB_PDE_SHIFT ; } -#if defined(CONFIG_X86 )static inline void psb_clflush (void *addr) { __asm__ __volatile__("clflush (%0)\n" : :"r" (addr) :"memory" );
@@ -63,13 +62,6 @@ static inline void psb_mmu_clflush(struct psb_mmu_driver *driver, void *addr)psb_clflush (addr);mb (); } -#else - -static inline void psb_mmu_clflush (struct psb_mmu_driver *driver,void *addr) -{; -} - -#endif static void psb_mmu_flush_pd_locked (struct psb_mmu_driver *driver,int force) {
@@ -293,7 +285,6 @@ static struct psb_mmu_pt *psb_mmu_alloc_pt(struct psb_mmu_pd *pd)for (i =0 ; i < (PAGE_SIZE /sizeof (uint32_t )); ++i) *ptes++ = pd->invalid_pte; -#if defined(CONFIG_X86 )if (pd->driver->has_clflush && pd->hw_context !=-1 ) {mb ();for (i =0 ; i < clflush_count; ++i) {
@@ -302,7 +293,6 @@ static struct psb_mmu_pt *psb_mmu_alloc_pt(struct psb_mmu_pd *pd) }mb (); } -#endif kunmap_atomic (v);spin_unlock (lock);
@@ -459,7 +449,6 @@ struct psb_mmu_driver *psb_mmu_driver_init(struct drm_device *dev, driver->has_clflush =0 ; -#if defined(CONFIG_X86 )if (boot_cpu_has (X86_FEATURE_CLFLUSH )) {uint32_t tfms, misc, cap0, cap4, clflush_size;
@@ -476,7 +465,6 @@ struct psb_mmu_driver *psb_mmu_driver_init(struct drm_device *dev, driver->clflush_mask = driver->clflush_add -1 ; driver->clflush_mask = ~driver->clflush_mask; } -#endif up_write (&driver->sem);return driver;
@@ -486,7 +474,6 @@ struct psb_mmu_driver *psb_mmu_driver_init(struct drm_device *dev,return NULL ; } -#if defined(CONFIG_X86 )static void psb_mmu_flush_ptes (struct psb_mmu_pd *pd,unsigned long address,uint32_t num_pages,uint32_t desired_tile_stride,uint32_t hw_tile_stride)
@@ -534,14 +521,6 @@ static void psb_mmu_flush_ptes(struct psb_mmu_pd *pd, unsigned long address, }mb (); } -#else -static void psb_mmu_flush_ptes (struct psb_mmu_pd *pd,unsigned long address, -uint32_t num_pages,uint32_t desired_tile_stride, -uint32_t hw_tile_stride) -{ -drm_ttm_cache_flush (); -} -#endif void psb_mmu_remove_pfn_sequence (struct psb_mmu_pd *pd,unsigned long address,uint32_t num_pages)
Signature · 6 lines
2.30.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patrik Jakobsson
maintainerRe: [PATCH 4/5] drm/gma500: Remove CONFIG_X86 conditionals from source files
Quoted 7 lines · Thomas Zimmermann
Remove the
CONFIG_X86conditionals from the source code. The driver already depends on X86 in theKconfigfile. Also, no one has been trying to build it on a non-x86 platform recently, or they would have noticed thatdrm_ttm_cache_flush()doesn't exist.Signed-off-by Thomas Zimmermann <[email protected]>
Thanks!
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerPATCH 5/5 drm/gma500: Remove dependency on TTM
In reply to Thomas ZimmermannThe gma500 driver does not use TTM.
--- drivers/gpu/drm/gma500/Kconfig | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/gma500/Kconfig +0 -1
@@ -3,7 +3,6 @@ config DRM_GMA500 tristate "Intel GMA500/3600/3650 KMS Framebuffer" depends on DRM && PCI && X86 && MMU select DRM_KMS_HELPER - select DRM_TTM # GMA500 depends on ACPI_VIDEO when ACPI is enabled, just like i915 select ACPI_VIDEO if ACPI select BACKLIGHT_CLASS_DEVICE if ACPI
Signature · 6 lines
2.30.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patrik Jakobsson
maintainerRe: [PATCH 5/5] drm/gma500: Remove dependency on TTM
Quoted 4 lines · Thomas Zimmermann
The gma500 driver does not use TTM.
Signed-off-by Thomas Zimmermann <[email protected]>
Thanks!
Quoted 17 lines
--- drivers/gpu/drm/gma500/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/gma500/Kconfig +0
-2@@ -3,7 +3,6 @@ config DRM_GMA500 tristate "Intel GMA500/3600/3650 KMS Framebuffer" depends on DRM && PCI && X86 && MMU select DRM_KMS_HELPER - select DRM_TTM # GMA500 depends on ACPI_VIDEO when ACPI is enabled, just like i915 select ACPI_VIDEO if ACPI select BACKLIGHT_CLASS_DEVICE if ACPI --
Quoted 2 lines
2.30.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patrik Jakobsson
maintainerQuoted 6 lines · Thomas Zimmermann
Support for Moorestown and Medfield platforms is being removed from the kernel. So here's a patch to remove the related code from the gma500 driver. On top of that I also cleaned up the configuration a bit.
Quoted 6 lines
Note that Poulsbo and Cedartrail is still there and will remain. With the MID platforms gone, there's actually a chance of cleaning up the code for the desktop chips.
I smoke tested the patchset by running Xorg and Weston on a Cedartrail system.
Hi Thomas,
It is correct that Moorestown platform support is removed in the kernel but Oaktrail and Moorestown aren't interchangeable. They share the same CPU/GPU but not platform. I still have an Oaktrail device (Minnowboard v1) which needs to be supported. Medfield on the other hand can go as far as I'm concerned.
I'll have a closer look at the patches this afternoon.
Thanks
Patrik
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerHi
Am 29.01.21 um 11:46 schrieb Patrik Jakobsson:
Quoted 14 lines · Thomas Zimmermann
Quoted 6 lines
Support for Moorestown and Medfield platforms is being removed from the kernel. So here's a patch to remove the related code from the gma500 driver. On top of that I also cleaned up the configuration a bit.
Quoted 6 lines
Note that Poulsbo and Cedartrail is still there and will remain. With the MID platforms gone, there's actually a chance of cleaning up the code for the desktop chips.
I smoke tested the patchset by running Xorg and Weston on a Cedartrail system.
Quoted 6 lines
Hi Thomas,
It is correct that Moorestown platform support is removed in the kernel but Oaktrail and Moorestown aren't interchangeable. They share the same CPU/GPU but not platform. I still have an Oaktrail device (Minnowboard v1) which needs to be supported. Medfield on the other hand can go as far as I'm concerned.
I see. So patch 2 would have to be removed.
Best regards
Thomas
Quoted 6 lines
I'll have a closer look at the patches this afternoon.
Thanks
Patrik
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel