amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andrey Grodzovsky <andrey.grodzovsky@amd.com>,
	dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
	linux-pci@vger.kernel.org, ckoenig.leichtzumerken@gmail.com,
	daniel.vetter@ffwll.ch, Harry.Wentland@amd.com
Cc: Alexander.Deucher@amd.com, gregkh@linuxfoundation.org,
	ppaalanen@gmail.com, helgaas@kernel.org, kbuild-all@lists.01.org
Subject: Re: [PATCH v6 03/16] drm/amdgpu: Split amdgpu_device_fini into early and late
Date: Tue, 11 May 2021 07:49:58 +0800	[thread overview]
Message-ID: <202105110740.CSkAj6m9-lkp@intel.com> (raw)
In-Reply-To: <20210510163625.407105-4-andrey.grodzovsky@amd.com>

[-- Attachment #1: Type: text/plain, Size: 5082 bytes --]

Hi Andrey,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.13-rc1 next-20210510]
[cannot apply to pci/next drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Andrey-Grodzovsky/RFC-Support-hot-device-unplug-in-amdgpu/20210511-003754
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a012-20210510 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 492173d42b32cb91d5d0d72d5ed84fcab80d059a)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/28901216b0a25add4057d60c10eb305d4a32535e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Andrey-Grodzovsky/RFC-Support-hot-device-unplug-in-amdgpu/20210511-003754
        git checkout 28901216b0a25add4057d60c10eb305d4a32535e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:444: warning: Function parameter or member 'sched_score' not described in 'amdgpu_fence_driver_init_ring'
>> drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:527: warning: expecting prototype for amdgpu_fence_driver_fini(). Prototype was for amdgpu_fence_driver_fini_hw() instead
--
>> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3652: warning: expecting prototype for amdgpu_device_fini(). Prototype was for amdgpu_device_fini_hw() instead
--
>> drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:376: warning: expecting prototype for amdgpu_irq_fini(). Prototype was for amdgpu_irq_fini_sw() instead


vim +527 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c

d38ceaf99ed015 Alex Deucher      2015-04-20  517  
d38ceaf99ed015 Alex Deucher      2015-04-20  518  /**
d38ceaf99ed015 Alex Deucher      2015-04-20  519   * amdgpu_fence_driver_fini - tear down the fence driver
d38ceaf99ed015 Alex Deucher      2015-04-20  520   * for all possible rings.
d38ceaf99ed015 Alex Deucher      2015-04-20  521   *
d38ceaf99ed015 Alex Deucher      2015-04-20  522   * @adev: amdgpu device pointer
d38ceaf99ed015 Alex Deucher      2015-04-20  523   *
d38ceaf99ed015 Alex Deucher      2015-04-20  524   * Tear down the fence driver for all possible rings (all asics).
d38ceaf99ed015 Alex Deucher      2015-04-20  525   */
28901216b0a25a Andrey Grodzovsky 2021-05-10  526  void amdgpu_fence_driver_fini_hw(struct amdgpu_device *adev)
d38ceaf99ed015 Alex Deucher      2015-04-20 @527  {
c89377d10a11e5 Christian König   2016-03-13  528  	unsigned i, j;
c89377d10a11e5 Christian König   2016-03-13  529  	int r;
d38ceaf99ed015 Alex Deucher      2015-04-20  530  
d38ceaf99ed015 Alex Deucher      2015-04-20  531  	for (i = 0; i < AMDGPU_MAX_RINGS; i++) {
d38ceaf99ed015 Alex Deucher      2015-04-20  532  		struct amdgpu_ring *ring = adev->rings[i];
c2776afe740db5 Christian König   2015-11-03  533  
d38ceaf99ed015 Alex Deucher      2015-04-20  534  		if (!ring || !ring->fence_drv.initialized)
d38ceaf99ed015 Alex Deucher      2015-04-20  535  			continue;
bb0cd09be45ea4 Emily Deng        2021-03-04  536  		if (!ring->no_scheduler)
bb0cd09be45ea4 Emily Deng        2021-03-04  537  			drm_sched_fini(&ring->sched);
d38ceaf99ed015 Alex Deucher      2015-04-20  538  		r = amdgpu_fence_wait_empty(ring);
d38ceaf99ed015 Alex Deucher      2015-04-20  539  		if (r) {
d38ceaf99ed015 Alex Deucher      2015-04-20  540  			/* no need to trigger GPU reset as we are unloading */
2f9d4084cac96a Monk Liu          2017-10-16  541  			amdgpu_fence_driver_force_completion(ring);
d38ceaf99ed015 Alex Deucher      2015-04-20  542  		}
55611b507fd645 Jack Xiao         2019-06-05  543  		if (ring->fence_drv.irq_src)
c6a4079badc2f0 Chunming Zhou     2015-06-01  544  			amdgpu_irq_put(adev, ring->fence_drv.irq_src,
c6a4079badc2f0 Chunming Zhou     2015-06-01  545  				       ring->fence_drv.irq_type);
bb0cd09be45ea4 Emily Deng        2021-03-04  546  
8c5e13ec6a2c26 Andrey Grodzovsky 2018-09-21  547  		del_timer_sync(&ring->fence_drv.fallback_timer);
28901216b0a25a Andrey Grodzovsky 2021-05-10  548  	}
28901216b0a25a Andrey Grodzovsky 2021-05-10  549  }
28901216b0a25a Andrey Grodzovsky 2021-05-10  550  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36692 bytes --]

[-- Attachment #3: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  reply	other threads:[~2021-05-10 23:51 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 16:36 [PATCH v6 00/16] RFC Support hot device unplug in amdgpu Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 01/16] drm/ttm: Remap all page faults to per process dummy page Andrey Grodzovsky
2021-05-11  6:38   ` Christian König
2021-05-11 14:44     ` Andrey Grodzovsky
2021-05-11 15:12       ` Christian König
2021-05-10 16:36 ` [PATCH v6 02/16] drm/ttm: Expose ttm_tt_unpopulate for driver use Andrey Grodzovsky
2021-05-10 18:27   ` Felix Kuehling
2021-05-10 18:32     ` Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 03/16] drm/amdgpu: Split amdgpu_device_fini into early and late Andrey Grodzovsky
2021-05-10 23:49   ` kernel test robot [this message]
2021-05-10 16:36 ` [PATCH v6 04/16] drm/amdkfd: Split kfd suspend from devie exit Andrey Grodzovsky
2021-05-11  6:40   ` Christian König
2021-05-11 14:52     ` Andrey Grodzovsky
2021-05-11 13:24   ` Deucher, Alexander
2021-05-10 16:36 ` [PATCH v6 05/16] drm/amdgpu: Add early fini callback Andrey Grodzovsky
2021-05-11  6:41   ` Christian König
2021-05-10 16:36 ` [PATCH v6 06/16] drm/amdgpu: Handle IOMMU enabled case Andrey Grodzovsky
2021-05-11  6:44   ` Christian König
2021-05-11 15:46     ` Andrey Grodzovsky
2021-05-11 15:56   ` Alex Deucher
2021-05-11 15:59     ` Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 07/16] drm/amdgpu: Remap all page faults to per process dummy page Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 08/16] PCI: Add support for dev_groups to struct pci_device_driver Andrey Grodzovsky
2021-05-10 20:56   ` Bjorn Helgaas
2021-05-10 16:36 ` [PATCH v6 09/16] drm/amdgpu: Convert driver sysfs attributes to static attributes Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 10/16] drm/amdgpu: Guard against write accesses after device removal Andrey Grodzovsky
2021-05-11  6:50   ` Christian König
2021-05-11 17:52     ` Andrey Grodzovsky
2021-05-12 14:01       ` Andrey Grodzovsky
2021-05-12 14:06         ` Christian König
2021-05-12 14:11           ` Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 11/16] drm/sched: Make timeout timer rearm conditional Andrey Grodzovsky
2021-05-11  6:52   ` Christian König
2021-05-10 16:36 ` [PATCH v6 12/16] drm/amdgpu: Prevent any job recoveries after device is unplugged Andrey Grodzovsky
2021-05-11  6:53   ` Christian König
2021-05-10 16:36 ` [PATCH v6 13/16] drm/amdgpu: Fix hang on device removal Andrey Grodzovsky
2021-05-11  6:54   ` Christian König
2021-05-10 16:36 ` [PATCH v6 14/16] drm/scheduler: Fix hang when sched_entity released Andrey Grodzovsky
2021-05-10 16:36 ` [PATCH v6 15/16] drm/amd/display: Remove superflous drm_mode_config_cleanup Andrey Grodzovsky
2021-05-10 21:38   ` Rodrigo Siqueira
2021-05-10 16:36 ` [PATCH v6 16/16] drm/amdgpu: Verify DMA opearations from device are done Andrey Grodzovsky
2021-05-11  6:56   ` Christian König

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=202105110740.CSkAj6m9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Harry.Wentland@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=andrey.grodzovsky@amd.com \
    --cc=ckoenig.leichtzumerken@gmail.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=helgaas@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=ppaalanen@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).