From: kernel test robot <lkp@intel.com>
To: Dave Airlie <airlied@gmail.com>, dri-devel@lists.freedesktop.org
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
bskeggs@redhat.com, christian.koenig@amd.com
Subject: Re: [PATCH 3/4] drm/ttm: drop size from resource manager base class.
Date: Fri, 7 Aug 2020 11:50:46 +0800 [thread overview]
Message-ID: <202008071141.hwowJPK7%lkp@intel.com> (raw)
In-Reply-To: <20200806233459.4057784-4-airlied@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4526 bytes --]
Hi Dave,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next linus/master drm/drm-next drm-exynos/exynos-drm-next v5.8 next-20200806]
[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/Dave-Airlie/drm-amdgpu-ttm-move-vram-gtt-mgr-allocations-to-mman/20200807-083526
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a015-20200806 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project aa57cabae2fc5abc08ab3e17b45f2890fc7c9e42)
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/radeon/radeon_ttm.c:754:5: warning: no previous prototype for function 'radeon_ttm_init' [-Wmissing-prototypes]
int radeon_ttm_init(struct radeon_device *rdev)
^
drivers/gpu/drm/radeon/radeon_ttm.c:754:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int radeon_ttm_init(struct radeon_device *rdev)
^
static
drivers/gpu/drm/radeon/radeon_ttm.c:812:6: warning: no previous prototype for function 'radeon_ttm_fini' [-Wmissing-prototypes]
void radeon_ttm_fini(struct radeon_device *rdev)
^
drivers/gpu/drm/radeon/radeon_ttm.c:812:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void radeon_ttm_fini(struct radeon_device *rdev)
^
static
>> drivers/gpu/drm/radeon/radeon_ttm.c:845:28: warning: variable 'man' is uninitialized when used here [-Wuninitialized]
ttm_range_man_adjust_size(man, size >> PAGE_SHIFT);
^~~
drivers/gpu/drm/radeon/radeon_ttm.c:839:34: note: initialize the variable 'man' to silence this warning
struct ttm_resource_manager *man;
^
= NULL
drivers/gpu/drm/radeon/radeon_ttm.c:872:5: warning: no previous prototype for function 'radeon_mmap' [-Wmissing-prototypes]
int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
^
drivers/gpu/drm/radeon/radeon_ttm.c:872:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
^
static
4 warnings generated.
vim +/man +845 drivers/gpu/drm/radeon/radeon_ttm.c
811
> 812 void radeon_ttm_fini(struct radeon_device *rdev)
813 {
814 int r;
815
816 if (!rdev->mman.initialized)
817 return;
818 radeon_ttm_debugfs_fini(rdev);
819 if (rdev->stolen_vga_memory) {
820 r = radeon_bo_reserve(rdev->stolen_vga_memory, false);
821 if (r == 0) {
822 radeon_bo_unpin(rdev->stolen_vga_memory);
823 radeon_bo_unreserve(rdev->stolen_vga_memory);
824 }
825 radeon_bo_unref(&rdev->stolen_vga_memory);
826 }
827 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM);
828 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_TT);
829 ttm_bo_device_release(&rdev->mman.bdev);
830 radeon_gart_fini(rdev);
831 rdev->mman.initialized = false;
832 DRM_INFO("radeon: ttm finalized\n");
833 }
834
835 /* this should only be called at bootup or when userspace
836 * isn't running */
837 void radeon_ttm_set_active_vram_size(struct radeon_device *rdev, u64 size)
838 {
839 struct ttm_resource_manager *man;
840
841 if (!rdev->mman.initialized)
842 return;
843
844 /* this just adjusts TTM size idea, which sets lpfn to the correct value */
> 845 ttm_range_man_adjust_size(man, size >> PAGE_SHIFT);
846 }
847
---
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: 33791 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-08-07 3:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-06 23:34 further small ttm cleanups Dave Airlie
2020-08-06 23:34 ` [PATCH 1/4] drm/amdgpu/ttm: move vram/gtt mgr allocations to mman Dave Airlie
2020-08-07 9:17 ` Christian König
2020-08-06 23:34 ` [PATCH 2/4] drm/amdgpu/ttm: drop the adev link from vram mgr Dave Airlie
2020-08-07 9:18 ` Christian König
2020-08-06 23:34 ` [PATCH 3/4] drm/ttm: drop size from resource manager base class Dave Airlie
2020-08-07 3:50 ` kernel test robot [this message]
2020-08-07 4:46 ` kernel test robot
2020-08-07 7:17 ` kernel test robot
2020-08-07 9:22 ` Christian König
2020-08-06 23:34 ` [PATCH 4/4] drm/ttm/nouveau: move io_lru storage into driver Dave Airlie
2020-08-07 12:22 ` Christian König
2020-08-09 4:34 ` [drm/ttm/nouveau] c36a1cfe1b: BUG:kernel_NULL_pointer_dereference,address 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=202008071141.hwowJPK7%lkp@intel.com \
--to=lkp@intel.com \
--cc=airlied@gmail.com \
--cc=bskeggs@redhat.com \
--cc=christian.koenig@amd.com \
--cc=clang-built-linux@googlegroups.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kbuild-all@lists.01.org \
/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