All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] drm/intel: add intel-display.ko kernel module
@ 2026-12-03 13:30 Jani Nikula
  2026-12-03 13:30 ` [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL Jani Nikula
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: jani.nikula

Convert drm/i915 and drm/xe shared display code into a dedicated
intel-display.ko kernel module.

This is still a bit of a draft for testing the IGT changes.


Test-with: 20261124044559.897167-1-jeevan.b@intel.com


Jani Nikula (6):
  drm/xe/display: remove xe display kunit tests
  drm/intel-display: introduce new kernel module for Intel display
  drm/intel-display: use intel_display for TRACE_SYSTEM
  drm/i915/display: remove ifdef I915
  drm/i915/display: highlight the places that still include from i915
  drm/xe: remove compat i915 headers

Ville Syrjälä (2):
  drm/xe: Enable unclaimed register detection on xe for pre-LNL
  drm/i915/de: Nuke driver_is_i915()

 drivers/gpu/drm/Kconfig                       |   1 +
 drivers/gpu/drm/Makefile                      |   1 +
 drivers/gpu/drm/i915/Kconfig                  |   1 +
 drivers/gpu/drm/i915/Makefile                 | 165 -----------------
 drivers/gpu/drm/i915/display/Kconfig          |  24 +++
 drivers/gpu/drm/i915/display/Makefile         | 169 ++++++++++++++++++
 drivers/gpu/drm/i915/display/g4x_dp.h         |  18 --
 drivers/gpu/drm/i915/display/g4x_hdmi.h       |  13 --
 drivers/gpu/drm/i915/display/hsw_ips.h        |  35 ----
 .../gpu/drm/i915/display/i9xx_display_sr.c    |   2 +
 drivers/gpu/drm/i915/display/i9xx_plane.h     |  27 ---
 drivers/gpu/drm/i915/display/i9xx_wm.h        |  17 --
 drivers/gpu/drm/i915/display/intel_crt.h      |  14 --
 drivers/gpu/drm/i915/display/intel_crtc.c     |   1 +
 drivers/gpu/drm/i915/display/intel_de.c       |  49 ++---
 drivers/gpu/drm/i915/display/intel_display.c  |   2 +
 .../drm/i915/display/intel_display_device.c   |   4 +
 .../drm/i915/display/intel_display_driver.c   |  29 +++
 .../gpu/drm/i915/display/intel_display_irq.c  |   8 +
 .../drm/i915/display/intel_display_power.c    |   3 +
 .../drm/i915/display/intel_display_reg_defs.h |   2 +-
 .../drm/i915/display/intel_display_reset.c    |   4 +
 .../gpu/drm/i915/display/intel_display_rps.c  |   2 +
 .../drm/i915/display/intel_display_snapshot.c |   3 +
 .../drm/i915/display/intel_display_trace.h    |   6 +-
 drivers/gpu/drm/i915/display/intel_dmc.c      |   2 +
 drivers/gpu/drm/i915/display/intel_dmc_wl.c   |   1 +
 .../gpu/drm/i915/display/intel_dp_link_caps.c |  10 --
 .../gpu/drm/i915/display/intel_dp_link_caps.h |   4 -
 .../drm/i915/display/intel_dp_link_training.c |  10 --
 .../drm/i915/display/intel_dp_link_training.h |   4 -
 .../gpu/drm/i915/display/intel_dp_tunnel.h    |   5 +-
 drivers/gpu/drm/i915/display/intel_dpio_phy.h | 104 -----------
 drivers/gpu/drm/i915/display/intel_dpt.c      |   2 +
 drivers/gpu/drm/i915/display/intel_dvo.h      |   6 -
 drivers/gpu/drm/i915/display/intel_fb.c       |   8 +
 drivers/gpu/drm/i915/display/intel_fbdev.c    |   1 +
 .../gpu/drm/i915/display/intel_frontbuffer.c  |   6 +
 drivers/gpu/drm/i915/display/intel_gmbus.c    |   1 +
 drivers/gpu/drm/i915/display/intel_hotplug.c  |   3 +
 .../gpu/drm/i915/display/intel_lpe_audio.h    |  18 --
 drivers/gpu/drm/i915/display/intel_lvds.h     |  19 --
 drivers/gpu/drm/i915/display/intel_opregion.c |   3 +
 drivers/gpu/drm/i915/display/intel_overlay.c  |   4 +
 .../gpu/drm/i915/display/intel_pch_display.h  |  53 ------
 .../gpu/drm/i915/display/intel_pch_refclk.c   |   1 +
 .../gpu/drm/i915/display/intel_pch_refclk.h   |  23 ---
 drivers/gpu/drm/i915/display/intel_pps.c      |   1 +
 drivers/gpu/drm/i915/display/intel_sbi.c      |   2 +
 drivers/gpu/drm/i915/display/intel_sdvo.h     |  13 --
 drivers/gpu/drm/i915/display/intel_sprite.h   |   8 -
 .../gpu/drm/i915/display/intel_sprite_uapi.c  |   1 +
 drivers/gpu/drm/i915/display/intel_tv.h       |   6 -
 drivers/gpu/drm/i915/display/intel_vblank.c   |  10 --
 .../i915/display/tests/intel_dp_link_test.c   |   5 -
 drivers/gpu/drm/i915/display/vlv_clock.c      |   2 +
 drivers/gpu/drm/i915/display/vlv_clock.h      |  23 ---
 drivers/gpu/drm/i915/display/vlv_dsi.h        |  13 --
 drivers/gpu/drm/i915/display/vlv_dsi_pll.h    |  14 --
 drivers/gpu/drm/i915/i915_module.c            |   2 +
 drivers/gpu/drm/i915/intel_gvt.c              |   2 +
 drivers/gpu/drm/xe/Kconfig                    |   2 +-
 drivers/gpu/drm/xe/Makefile                   | 141 +--------------
 .../xe/compat-i915-headers/i915_reg_defs.h    |   6 -
 drivers/gpu/drm/xe/display/tests/Makefile     |  13 --
 drivers/gpu/drm/xe/display/xe_display.c       |   2 +
 66 files changed, 319 insertions(+), 835 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/Kconfig
 create mode 100644 drivers/gpu/drm/i915/display/Makefile
 delete mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
 delete mode 100644 drivers/gpu/drm/xe/display/tests/Makefile


base-commit: 510efc2b4932f99250fd283990d633498e301ce2
-- 
2.47.3


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display
@ 2026-12-05  9:55 kernel test robot
  0 siblings, 0 replies; 15+ messages in thread
From: kernel test robot @ 2026-12-05  9:55 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <89d3ef4c53e7e69db6fc39f6a54631af4086c20b.1796304421.git.jani.nikula@intel.com>
References: <89d3ef4c53e7e69db6fc39f6a54631af4086c20b.1796304421.git.jani.nikula@intel.com>
TO: Jani Nikula <jani.nikula@intel.com>
TO: intel-gfx@lists.freedesktop.org
TO: intel-xe@lists.freedesktop.org
CC: jani.nikula@intel.com

Hi Jani,

kernel test robot noticed the following build errors:

[auto build test ERROR on 510efc2b4932f99250fd283990d633498e301ce2]

url:    https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-xe-Enable-unclaimed-register-detection-on-xe-for-pre-LNL/20261203-153053
base:   510efc2b4932f99250fd283990d633498e301ce2
patch link:    https://lore.kernel.org/r/89d3ef4c53e7e69db6fc39f6a54631af4086c20b.1796304421.git.jani.nikula%40intel.com
patch subject: [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20261205/20261205093229.sWt9L6g7-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 63b30c97f6082ebf34b31bdd81bb50df7672b67b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261205/20261205093229.sWt9L6g7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261205093229.sWt9L6g7-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/intel_cdclk.c:285:2: error: call to undeclared function 'pci_bus_read_config_word'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     285 |         pci_bus_read_config_word(pdev->bus,
         |         ^
   drivers/gpu/drm/i915/display/intel_cdclk.c:285:2: note: did you mean 'pci_read_config_word'?
   include/linux/pci.h:2162:1: note: 'pci_read_config_word' declared here
    2162 | _PCI_NOP_ALL(read, *)
         | ^
   include/linux/pci.h:2160:5: note: expanded from macro '_PCI_NOP_ALL'
    2160 |                                 _PCI_NOP(o, word, u16 x) \
         |                                 ^
   include/linux/pci.h:2155:20: note: expanded from macro '_PCI_NOP'
    2155 |         static inline int pci_##o##_config_##s(struct pci_dev *dev, \
         |                           ^
   <scratch space>:86:1: note: expanded from here
      86 | pci_read_config_word
         | ^
   1 error generated.
--
>> drivers/gpu/drm/i915/display/intel_rom.c:88:2: error: call to undeclared function 'pci_unmap_rom'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      88 |         pci_unmap_rom(rom->pdev, rom->oprom);
         |         ^
>> drivers/gpu/drm/i915/display/intel_rom.c:101:15: error: call to undeclared function 'pci_map_rom'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     101 |         rom->oprom = pci_map_rom(rom->pdev, &rom->size);
         |                      ^
>> drivers/gpu/drm/i915/display/intel_rom.c:101:13: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
     101 |         rom->oprom = pci_map_rom(rom->pdev, &rom->size);
         |                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
--
>> drivers/gpu/drm/i915/display/intel_vga.c:31:6: error: call to undeclared function 'pci_bus_read_config_word'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      31 |         if (pci_bus_read_config_word(pdev->bus, PCI_DEVFN(0, 0),
         |             ^
   drivers/gpu/drm/i915/display/intel_vga.c:31:6: note: did you mean 'pci_read_config_word'?
   include/linux/pci.h:2162:1: note: 'pci_read_config_word' declared here
    2162 | _PCI_NOP_ALL(read, *)
         | ^
   include/linux/pci.h:2160:5: note: expanded from macro '_PCI_NOP_ALL'
    2160 |                                 _PCI_NOP(o, word, u16 x) \
         |                                 ^
   include/linux/pci.h:2155:20: note: expanded from macro '_PCI_NOP'
    2155 |         static inline int pci_##o##_config_##s(struct pci_dev *dev, \
         |                           ^
   <scratch space>:21:1: note: expanded from here
      21 | pci_read_config_word
         | ^
   1 error generated.
--
>> drivers/gpu/drm/i915/display/intel_display_device.c:1534:9: error: call to undeclared function 'pci_iomap_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1534 |         addr = pci_iomap_range(pdev, 0, intel_reg_offset(GMD_ID_DISPLAY), sizeof(u32));
         |                ^
   drivers/gpu/drm/i915/display/intel_display_device.c:1534:9: note: did you mean 'pcim_iomap_range'?
   include/linux/pci.h:2567:15: note: 'pcim_iomap_range' declared here
    2567 | void __iomem *pcim_iomap_range(struct pci_dev *pdev, int bar,
         |               ^
>> drivers/gpu/drm/i915/display/intel_display_device.c:1534:7: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
    1534 |         addr = pci_iomap_range(pdev, 0, intel_reg_offset(GMD_ID_DISPLAY), sizeof(u32));
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/intel_display_device.c:1542:2: error: call to undeclared function 'pci_iounmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1542 |         pci_iounmap(pdev, addr);
         |         ^
   drivers/gpu/drm/i915/display/intel_display_device.c:1542:2: note: did you mean 'pcim_iounmap'?
   include/linux/pci.h:2563:6: note: 'pcim_iounmap' declared here
    2563 | void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr);
         |      ^
   3 errors generated.


vim +/pci_iomap_range +1534 drivers/gpu/drm/i915/display/intel_display_device.c

69d439818fe501e Matt Roper  2023-05-23  1524  
12e6f6dc78e4f4a Matt Roper  2023-05-23  1525  static const struct intel_display_device_info *
1a6330df069f90b Jani Nikula 2024-11-11  1526  probe_gmdid_display(struct intel_display *display, struct intel_display_ip_ver *ip_ver)
12e6f6dc78e4f4a Matt Roper  2023-05-23  1527  {
1a6330df069f90b Jani Nikula 2024-11-11  1528  	struct pci_dev *pdev = to_pci_dev(display->drm->dev);
fdf531b80345aa0 Jani Nikula 2024-05-22  1529  	struct intel_display_ip_ver gmd_id;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1530  	void __iomem *addr;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1531  	u32 val;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1532  	int i;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1533  
d1dc0c08e251728 Jani Nikula 2026-05-05 @1534  	addr = pci_iomap_range(pdev, 0, intel_reg_offset(GMD_ID_DISPLAY), sizeof(u32));
12e6f6dc78e4f4a Matt Roper  2023-05-23  1535  	if (!addr) {
1a6330df069f90b Jani Nikula 2024-11-11  1536  		drm_err(display->drm,
1a6330df069f90b Jani Nikula 2024-11-11  1537  			"Cannot map MMIO BAR to read display GMD_ID\n");
ae6daede02d2a31 Jani Nikula 2024-05-22  1538  		return NULL;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1539  	}
12e6f6dc78e4f4a Matt Roper  2023-05-23  1540  
12e6f6dc78e4f4a Matt Roper  2023-05-23  1541  	val = ioread32(addr);
12e6f6dc78e4f4a Matt Roper  2023-05-23 @1542  	pci_iounmap(pdev, addr);
12e6f6dc78e4f4a Matt Roper  2023-05-23  1543  
bf9e1bdaf125f8a Jani Nikula 2023-08-04  1544  	if (val == 0) {
1a6330df069f90b Jani Nikula 2024-11-11  1545  		drm_dbg_kms(display->drm, "Device doesn't have display\n");
ae6daede02d2a31 Jani Nikula 2024-05-22  1546  		return NULL;
bf9e1bdaf125f8a Jani Nikula 2023-08-04  1547  	}
12e6f6dc78e4f4a Matt Roper  2023-05-23  1548  
08b970ab01c94e9 Uma Shankar 2026-02-05  1549  	gmd_id.ver = REG_FIELD_GET(GMD_ID_DISPLAY_ARCH_MASK, val);
08b970ab01c94e9 Uma Shankar 2026-02-05  1550  	gmd_id.rel = REG_FIELD_GET(GMD_ID_DISPLAY_RELEASE_MASK, val);
08b970ab01c94e9 Uma Shankar 2026-02-05  1551  	gmd_id.step = REG_FIELD_GET(GMD_ID_DISPLAY_STEP, val);
12e6f6dc78e4f4a Matt Roper  2023-05-23  1552  
fdf531b80345aa0 Jani Nikula 2024-05-22  1553  	for (i = 0; i < ARRAY_SIZE(gmdid_display_map); i++) {
fdf531b80345aa0 Jani Nikula 2024-05-22  1554  		if (gmd_id.ver == gmdid_display_map[i].ver &&
fdf531b80345aa0 Jani Nikula 2024-05-22  1555  		    gmd_id.rel == gmdid_display_map[i].rel) {
fdf531b80345aa0 Jani Nikula 2024-05-22  1556  			*ip_ver = gmd_id;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1557  			return gmdid_display_map[i].display;
fdf531b80345aa0 Jani Nikula 2024-05-22  1558  		}
fdf531b80345aa0 Jani Nikula 2024-05-22  1559  	}
12e6f6dc78e4f4a Matt Roper  2023-05-23  1560  
1a6330df069f90b Jani Nikula 2024-11-11  1561  	drm_err(display->drm,
1a6330df069f90b Jani Nikula 2024-11-11  1562  		"Unrecognized display IP version %d.%02d; disabling display.\n",
fdf531b80345aa0 Jani Nikula 2024-05-22  1563  		gmd_id.ver, gmd_id.rel);
ae6daede02d2a31 Jani Nikula 2024-05-22  1564  	return NULL;
12e6f6dc78e4f4a Matt Roper  2023-05-23  1565  }
12e6f6dc78e4f4a Matt Roper  2023-05-23  1566  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display
@ 2026-12-05 17:30 kernel test robot
  0 siblings, 0 replies; 15+ messages in thread
From: kernel test robot @ 2026-12-05 17:30 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <89d3ef4c53e7e69db6fc39f6a54631af4086c20b.1796304421.git.jani.nikula@intel.com>
References: <89d3ef4c53e7e69db6fc39f6a54631af4086c20b.1796304421.git.jani.nikula@intel.com>
TO: Jani Nikula <jani.nikula@intel.com>
TO: intel-gfx@lists.freedesktop.org
TO: intel-xe@lists.freedesktop.org
CC: jani.nikula@intel.com

Hi Jani,

kernel test robot noticed the following build errors:

[auto build test ERROR on 510efc2b4932f99250fd283990d633498e301ce2]

url:    https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-xe-Enable-unclaimed-register-detection-on-xe-for-pre-LNL/20261203-153053
base:   510efc2b4932f99250fd283990d633498e301ce2
patch link:    https://lore.kernel.org/r/89d3ef4c53e7e69db6fc39f6a54631af4086c20b.1796304421.git.jani.nikula%40intel.com
patch subject: [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20261206/20261206012713.ECFGptVg-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261206/20261206012713.ECFGptVg-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261206012713.ECFGptVg-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/display/intel_cdclk.c: In function 'i85x_get_cdclk':
>> drivers/gpu/drm/i915/display/intel_cdclk.c:285:9: error: implicit declaration of function 'pci_bus_read_config_word'; did you mean 'pci_read_config_word'? [-Wimplicit-function-declaration]
     285 |         pci_bus_read_config_word(pdev->bus,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         pci_read_config_word
--
   drivers/gpu/drm/i915/display/intel_rom.c: In function 'pci_free':
>> drivers/gpu/drm/i915/display/intel_rom.c:88:9: error: implicit declaration of function 'pci_unmap_rom' [-Wimplicit-function-declaration]
      88 |         pci_unmap_rom(rom->pdev, rom->oprom);
         |         ^~~~~~~~~~~~~
   drivers/gpu/drm/i915/display/intel_rom.c: In function 'intel_rom_pci':
>> drivers/gpu/drm/i915/display/intel_rom.c:101:22: error: implicit declaration of function 'pci_map_rom'; did you mean 'pcie_caps_reg'? [-Wimplicit-function-declaration]
     101 |         rom->oprom = pci_map_rom(rom->pdev, &rom->size);
         |                      ^~~~~~~~~~~
         |                      pcie_caps_reg
>> drivers/gpu/drm/i915/display/intel_rom.c:101:20: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     101 |         rom->oprom = pci_map_rom(rom->pdev, &rom->size);
         |                    ^
--
   drivers/gpu/drm/i915/display/intel_vga.c: In function 'intel_vga_decode_is_enabled':
>> drivers/gpu/drm/i915/display/intel_vga.c:31:13: error: implicit declaration of function 'pci_bus_read_config_word'; did you mean 'pci_read_config_word'? [-Wimplicit-function-declaration]
      31 |         if (pci_bus_read_config_word(pdev->bus, PCI_DEVFN(0, 0),
         |             ^~~~~~~~~~~~~~~~~~~~~~~~
         |             pci_read_config_word


vim +285 drivers/gpu/drm/i915/display/intel_cdclk.c

7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  268  
d34927acff91501 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2024-09-06  269  static void i85x_get_cdclk(struct intel_display *display,
0bb94e03834eaa9 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2020-01-20  270  			   struct intel_cdclk_config *cdclk_config)
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  271  {
d34927acff91501 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2024-09-06  272  	struct pci_dev *pdev = to_pci_dev(display->drm->dev);
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  273  	u16 hpllcc = 0;
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  274  
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  275  	/*
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  276  	 * 852GM/852GMV only supports 133 MHz and the HPLLCC
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  277  	 * encoding is different :(
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  278  	 * FIXME is this the right way to detect 852GM/852GMV?
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  279  	 */
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  280  	if (pdev->revision == 0x1) {
0bb94e03834eaa9 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2020-01-20  281  		cdclk_config->cdclk = 133333;
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  282  		return;
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  283  	}
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  284  
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07 @285  	pci_bus_read_config_word(pdev->bus,
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  286  				 PCI_DEVFN(0, 3), HPLLCC, &hpllcc);
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  287  
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  288  	/* Assume that the hardware is in the high speed state.  This
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  289  	 * should be the default.
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  290  	 */
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  291  	switch (hpllcc & GC_CLOCK_CONTROL_MASK) {
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  292  	case GC_CLOCK_133_200:
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  293  	case GC_CLOCK_133_200_2:
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  294  	case GC_CLOCK_100_200:
0bb94e03834eaa9 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2020-01-20  295  		cdclk_config->cdclk = 200000;
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  296  		break;
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  297  	case GC_CLOCK_166_250:
0bb94e03834eaa9 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2020-01-20  298  		cdclk_config->cdclk = 250000;
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  299  		break;
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  300  	case GC_CLOCK_100_133:
0bb94e03834eaa9 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2020-01-20  301  		cdclk_config->cdclk = 133333;
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  302  		break;
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  303  	case GC_CLOCK_133_266:
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  304  	case GC_CLOCK_133_266_2:
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  305  	case GC_CLOCK_166_266:
0bb94e03834eaa9 drivers/gpu/drm/i915/display/intel_cdclk.c Ville Syrjälä 2020-01-20  306  		cdclk_config->cdclk = 266667;
49cd97a35d9041b drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  307  		break;
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  308  	}
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  309  }
7ff89ca2135814d drivers/gpu/drm/i915/intel_cdclk.c         Ville Syrjälä 2017-02-07  310  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-12-05 17:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
2026-12-03 13:30 ` [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL Jani Nikula
2026-12-03 13:30 ` [PATCH 2/8] drm/i915/de: Nuke driver_is_i915() Jani Nikula
2026-12-03 13:30 ` [PATCH 3/8] drm/xe/display: remove xe display kunit tests Jani Nikula
2026-12-03 13:30 ` [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display Jani Nikula
2026-12-05  9:55   ` kernel test robot
2026-12-05  9:55   ` kernel test robot
2026-12-03 13:30 ` [PATCH 5/8] drm/intel-display: use intel_display for TRACE_SYSTEM Jani Nikula
2026-12-03 13:30 ` [PATCH 6/8] drm/i915/display: remove ifdef I915 Jani Nikula
2026-12-03 13:30 ` [PATCH 7/8] drm/i915/display: highlight the places that still include from i915 Jani Nikula
2026-12-03 13:31 ` [PATCH 8/8] drm/xe: remove compat i915 headers Jani Nikula
2026-12-03 14:58 ` ✗ CI.checkpatch: warning for drm/intel: add intel-display.ko kernel module Patchwork
2026-12-03 14:59 ` ✗ CI.KUnit: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-12-05  9:55 [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display kernel test robot
2026-12-05 17:30 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.