All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: Re: [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display
Date: Sat, 5 Dec 2026 17:55:41 +0800	[thread overview]
Message-ID: <20261205093229.sWt9L6g7-lkp@intel.com> (raw)

:::::: 
:::::: 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

             reply	other threads:[~2026-12-05  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  9:55 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-12-05 17:30 [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display kernel test robot
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205093229.sWt9L6g7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.