Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Remove the obsolete driver-tdfx

Commit 399516ab0fee ("MAINTAINERS: Add a bunch of legacy (UMS) DRM drivers")
marked tdfx driver obsolete 7 years ago.
And the mesa UMD of this drm driver already in deprecated list
in the link: https://docs.mesa3d.org/systems.html
3dfx Glide-->driver/gpu/drm/tdfx

It's time to remove this driver.

Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221203102502.3185-7-cai.huoqing@linux.dev

authored by

Cai Huoqing and committed by
Thomas Zimmermann
cfc8860e 20efabc2

-153
-7
drivers/gpu/drm/Kconfig
··· 398 398 399 399 if DRM_LEGACY 400 400 401 - config DRM_TDFX 402 - tristate "3dfx Banshee/Voodoo3+" 403 - depends on DRM && PCI 404 - help 405 - Choose this option if you have a 3dfx Banshee or Voodoo3 (or later), 406 - graphics card. If M is selected, the module will be called tdfx. 407 - 408 401 config DRM_VIA 409 402 tristate "Via unichrome video cards" 410 403 depends on DRM && PCI
-1
drivers/gpu/drm/Makefile
··· 133 133 obj-y += display/ 134 134 obj-$(CONFIG_DRM_TTM) += ttm/ 135 135 obj-$(CONFIG_DRM_SCHED) += scheduler/ 136 - obj-$(CONFIG_DRM_TDFX) += tdfx/ 137 136 obj-$(CONFIG_DRM_RADEON)+= radeon/ 138 137 obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/ 139 138 obj-$(CONFIG_DRM_I915) += i915/
-8
drivers/gpu/drm/tdfx/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - # 3 - # Makefile for the drm device driver. This driver provides support for the 4 - # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 5 - 6 - tdfx-y := tdfx_drv.o 7 - 8 - obj-$(CONFIG_DRM_TDFX) += tdfx.o
-90
drivers/gpu/drm/tdfx/tdfx_drv.c
··· 1 - /* tdfx_drv.c -- tdfx driver -*- linux-c -*- 2 - * Created: Thu Oct 7 10:38:32 1999 by faith@precisioninsight.com 3 - * 4 - * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 5 - * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 - * All Rights Reserved. 7 - * 8 - * Permission is hereby granted, free of charge, to any person obtaining a 9 - * copy of this software and associated documentation files (the "Software"), 10 - * to deal in the Software without restriction, including without limitation 11 - * the rights to use, copy, modify, merge, publish, distribute, sublicense, 12 - * and/or sell copies of the Software, and to permit persons to whom the 13 - * Software is furnished to do so, subject to the following conditions: 14 - * 15 - * The above copyright notice and this permission notice (including the next 16 - * paragraph) shall be included in all copies or substantial portions of the 17 - * Software. 18 - * 19 - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22 - * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 23 - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 24 - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 - * DEALINGS IN THE SOFTWARE. 26 - * 27 - * Authors: 28 - * Rickard E. (Rik) Faith <faith@valinux.com> 29 - * Daryll Strauss <daryll@valinux.com> 30 - * Gareth Hughes <gareth@valinux.com> 31 - */ 32 - 33 - #include <linux/module.h> 34 - #include <linux/pci.h> 35 - 36 - #include <drm/drm_drv.h> 37 - #include <drm/drm_file.h> 38 - #include <drm/drm_ioctl.h> 39 - #include <drm/drm_legacy.h> 40 - #include <drm/drm_pciids.h> 41 - 42 - #include "tdfx_drv.h" 43 - 44 - static struct pci_device_id pciidlist[] = { 45 - tdfx_PCI_IDS 46 - }; 47 - 48 - static const struct file_operations tdfx_driver_fops = { 49 - .owner = THIS_MODULE, 50 - .open = drm_open, 51 - .release = drm_release, 52 - .unlocked_ioctl = drm_ioctl, 53 - .mmap = drm_legacy_mmap, 54 - .poll = drm_poll, 55 - .compat_ioctl = drm_compat_ioctl, 56 - .llseek = noop_llseek, 57 - }; 58 - 59 - static const struct drm_driver driver = { 60 - .driver_features = DRIVER_LEGACY, 61 - .fops = &tdfx_driver_fops, 62 - .name = DRIVER_NAME, 63 - .desc = DRIVER_DESC, 64 - .date = DRIVER_DATE, 65 - .major = DRIVER_MAJOR, 66 - .minor = DRIVER_MINOR, 67 - .patchlevel = DRIVER_PATCHLEVEL, 68 - }; 69 - 70 - static struct pci_driver tdfx_pci_driver = { 71 - .name = DRIVER_NAME, 72 - .id_table = pciidlist, 73 - }; 74 - 75 - static int __init tdfx_init(void) 76 - { 77 - return drm_legacy_pci_init(&driver, &tdfx_pci_driver); 78 - } 79 - 80 - static void __exit tdfx_exit(void) 81 - { 82 - drm_legacy_pci_exit(&driver, &tdfx_pci_driver); 83 - } 84 - 85 - module_init(tdfx_init); 86 - module_exit(tdfx_exit); 87 - 88 - MODULE_AUTHOR(DRIVER_AUTHOR); 89 - MODULE_DESCRIPTION(DRIVER_DESC); 90 - MODULE_LICENSE("GPL and additional rights");
-47
drivers/gpu/drm/tdfx/tdfx_drv.h
··· 1 - /* tdfx.h -- 3dfx DRM template customization -*- linux-c -*- 2 - * Created: Wed Feb 14 12:32:32 2001 by gareth@valinux.com 3 - */ 4 - /* 5 - * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 - * All Rights Reserved. 7 - * 8 - * Permission is hereby granted, free of charge, to any person obtaining a 9 - * copy of this software and associated documentation files (the "Software"), 10 - * to deal in the Software without restriction, including without limitation 11 - * the rights to use, copy, modify, merge, publish, distribute, sublicense, 12 - * and/or sell copies of the Software, and to permit persons to whom the 13 - * Software is furnished to do so, subject to the following conditions: 14 - * 15 - * The above copyright notice and this permission notice (including the next 16 - * paragraph) shall be included in all copies or substantial portions of the 17 - * Software. 18 - * 19 - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22 - * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 23 - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 24 - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 25 - * OTHER DEALINGS IN THE SOFTWARE. 26 - * 27 - * Authors: 28 - * Gareth Hughes <gareth@valinux.com> 29 - */ 30 - 31 - #ifndef __TDFX_H__ 32 - #define __TDFX_H__ 33 - 34 - /* General customization: 35 - */ 36 - 37 - #define DRIVER_AUTHOR "VA Linux Systems Inc." 38 - 39 - #define DRIVER_NAME "tdfx" 40 - #define DRIVER_DESC "3dfx Banshee/Voodoo3+" 41 - #define DRIVER_DATE "20010216" 42 - 43 - #define DRIVER_MAJOR 1 44 - #define DRIVER_MINOR 0 45 - #define DRIVER_PATCHLEVEL 0 46 - 47 - #endif