From: kernel test robot <lkp@intel.com>
To: Tilak Tangudu <tilak.tangudu@intel.com>,
intel-gfx@lists.freedesktop.org, jon.ewins@intel.com,
rodrigo.vivi@intel.com, vinay.belgaumkar@intel.com,
chris.p.wilson@intel.com, ashutosh.dixit@intel.com,
badal.nilawar@intel.com, anshuman.gupta@intel.com,
matthew.d.roper@intel.com, saurabhg.gupta@intel.com,
Aravind.Iddamsetty@intel.com, Sujaritha.Sundaresan@intel.com
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [Intel-gfx] [PATCH 09/11] drm/i915: Add i915_save/load_pci_state helpers
Date: Wed, 22 Jun 2022 03:44:22 +0800 [thread overview]
Message-ID: <202206220303.UvbFJUZD-lkp@intel.com> (raw)
In-Reply-To: <20220621123516.370479-10-tilak.tangudu@intel.com>
Hi Tilak,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
url: https://github.com/intel-lab-lkp/linux/commits/Tilak-Tangudu/drm-i915-Add-D3Cold-Off-support-for-runtime-pm/20220621-202453
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220622/202206220303.UvbFJUZD-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/ad0aa2eb6293edc066466ecf3b82ce2e4e0a9636
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Tilak-Tangudu/drm-i915-Add-D3Cold-Off-support-for-runtime-pm/20220621-202453
git checkout ad0aa2eb6293edc066466ecf3b82ce2e4e0a9636
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_driver.c:108:6: warning: no previous prototype for function 'i915_save_pci_state' [-Wmissing-prototypes]
bool i915_save_pci_state(struct pci_dev *pdev)
^
drivers/gpu/drm/i915/i915_driver.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool i915_save_pci_state(struct pci_dev *pdev)
^
static
>> drivers/gpu/drm/i915/i915_driver.c:127:6: warning: no previous prototype for function 'i915_load_pci_state' [-Wmissing-prototypes]
void i915_load_pci_state(struct pci_dev *pdev)
^
drivers/gpu/drm/i915/i915_driver.c:127:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void i915_load_pci_state(struct pci_dev *pdev)
^
static
2 warnings generated.
vim +/i915_save_pci_state +108 drivers/gpu/drm/i915/i915_driver.c
107
> 108 bool i915_save_pci_state(struct pci_dev *pdev)
109 {
110 struct drm_i915_private *i915 = pci_get_drvdata(pdev);
111
112 if (pci_save_state(pdev))
113 return false;
114
115 kfree(i915->pci_state);
116
117 i915->pci_state = pci_store_saved_state(pdev);
118
119 if (!i915->pci_state) {
120 drm_err(&i915->drm, "Failed to store PCI saved state\n");
121 return false;
122 }
123
124 return true;
125 }
126
> 127 void i915_load_pci_state(struct pci_dev *pdev)
128 {
129 struct drm_i915_private *i915 = pci_get_drvdata(pdev);
130 int ret;
131
132 if (!i915->pci_state)
133 return;
134
135 ret = pci_load_saved_state(pdev, i915->pci_state);
136 if (!ret) {
137 pci_restore_state(pdev);
138 } else {
139 drm_warn(&i915->drm, "Failed to load PCI state, err:%d\n", ret);
140 }
141 }
142 static int i915_get_bridge_dev(struct drm_i915_private *dev_priv)
143 {
144 int domain = pci_domain_nr(to_pci_dev(dev_priv->drm.dev)->bus);
145
146 dev_priv->bridge_dev =
147 pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0));
148 if (!dev_priv->bridge_dev) {
149 drm_err(&dev_priv->drm, "bridge device not found\n");
150 return -EIO;
151 }
152 return 0;
153 }
154
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-06-21 19:45 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-21 12:35 [Intel-gfx] [PATCH 00/11] drm/i915: Add D3Cold-Off support for runtime-pm Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 01/11] drm/i915: Avoid rpm helpers in intel_guc_global_policies_update Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 02/11] drm/i915: Avoid rpm helpers in intel_guc_slpc_set_media_ratio_mode Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 03/11] drm/i915: Avoid rpm helpers in intel_gt_suspend_late Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 04/11] drm/i915: Added is_intel_rpm_allowed helper Tilak Tangudu
2022-06-21 14:16 ` Gupta, Anshuman
2022-06-21 14:22 ` Tangudu, Tilak
2022-06-22 12:55 ` Jani Nikula
2022-06-22 20:40 ` Rodrigo Vivi
2022-06-23 17:21 ` Tangudu, Tilak
2022-06-23 17:49 ` Jani Nikula
2022-06-21 12:35 ` [Intel-gfx] [PATCH 05/11] drm/i915: Guard rpm helpers in gt helpers functions Tilak Tangudu
2022-06-22 12:52 ` Jani Nikula
2022-06-21 12:35 ` [Intel-gfx] [PATCH 06/11] drm/i915: Avoid rpm helpers in try_context_registration Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 07/11] drm/i915: Guard rc6 helpers with is_intel_rpm_allowed Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 08/11] drm/i915: Guard rpm helpers in rpm_get/put Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 09/11] drm/i915: Add i915_save/load_pci_state helpers Tilak Tangudu
2022-06-21 16:30 ` kernel test robot
2022-06-21 19:44 ` kernel test robot [this message]
2022-06-21 22:57 ` kernel test robot
2022-06-22 8:35 ` kernel test robot
2022-06-21 12:35 ` [Intel-gfx] [PATCH 10/11] drm/i915: Guard rpm helpers at gt_park/unpark Tilak Tangudu
2022-06-21 12:35 ` [Intel-gfx] [PATCH 11/11] drm/i915 : Add D3COLD OFF support Tilak Tangudu
2022-06-21 13:15 ` Gupta, Anshuman
2022-06-21 13:24 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Add D3Cold-Off support for runtime-pm Patchwork
2022-06-23 17:35 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Add D3Cold-Off support for runtime-pm (rev2) Patchwork
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=202206220303.UvbFJUZD-lkp@intel.com \
--to=lkp@intel.com \
--cc=Aravind.Iddamsetty@intel.com \
--cc=Sujaritha.Sundaresan@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=badal.nilawar@intel.com \
--cc=chris.p.wilson@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jon.ewins@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=matthew.d.roper@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=saurabhg.gupta@intel.com \
--cc=tilak.tangudu@intel.com \
--cc=vinay.belgaumkar@intel.com \
/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.