[drm-intel:for-linux-next 3/3] drivers/gpu/drm/i915/i915_gem_gtt.c:3317:3: error: implicit declaration of function 'wbinvd_on_all_cpus'; did you mean 'wrmsr_on_cpus'?
tree: git://anongit.freedesktop.org/drm-intel for-linux-next head: 64b95df91f44837f961321a6c555409885ca59c4 commit: 64b95df91f44837f961321a6c555409885ca59c4 [3/3] drm/i915: Assume exclusive access to objects inside resume config: x86_64-randconfig-f002-201933 (attached as .config) compiler: gcc-7 (Debian 7.4.0-10) 7.4.0 reproduce: git checkout 64b95df91f44837f961321a6c555409885ca59c4 # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot All errors (new ones prefixed by >>): drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'ggtt_restore_mappings': >> drivers/gpu/drm/i915/i915_gem_gtt.c:3317:3: error: implicit declaration of >> function 'wbinvd_on_all_cpus'; did you mean 'wrmsr_on_cpus'? >> [-Werror=implicit-function-declaration] wbinvd_on_all_cpus(); ^~ wrmsr_on_cpus Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64 Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64 Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD Cyclomatic Complexity 1 include/linux/list.h:__list_del Cyclomatic Complexity 1 include/linux/math64.h:div64_u64_rem Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order Cyclomatic Complexity 2 arch/x86/include/asm/jump_label.h:arch_static_branch Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_false Cyclomatic Complexity 1 arch/x86/include/asm/string_64.h:memset32 Cyclomatic Complexity 1 arch/x86/include/asm/string_64.h:memset64 Cyclomatic Complexity 1 include/linux/string.h:memset_p Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_set Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_add Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_sub Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec_and_test Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_add_return Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_sub_return Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_fetch_add Cyclomatic Complexity 2 arch/x86/include/asm/atomic.h:arch_atomic_try_cmpxchg Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_64.h:arch_atomic64_read Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_set Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_add Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_fetch_add Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_sub Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_sub_return Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_try_cmpxchg Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec_and_test Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_read Cyclomatic Complexity 1 include/linux/atomic-fallback.h:atomic_fetch_inc Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_read Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_save_fl Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_restore_fl Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_irq_disable Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_save_flags Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_restore Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_disable Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_save Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub Cyclomatic Complexity 1 include/linux/s
[drm-intel:for-linux-next 18/27] drivers/gpu//drm/i915/i915_gem_gtt.c:1087: error: 'iter' is used uninitialized in this function
tree: git://anongit.freedesktop.org/drm-intel for-linux-next head: a883241c3922000b21b58b5740c55badfe09940f commit: 0a03852e049af91da9ae70326c44bb5d9b0d377a [18/27] drm/i915: support 2M pages for the 48b PPGTT config: x86_64-randconfig-b0-10091604 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 0a03852e049af91da9ae70326c44bb5d9b0d377a # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): cc1: warnings being treated as errors drivers/gpu//drm/i915/i915_gem_gtt.c: In function 'intel_ppat_get': drivers/gpu//drm/i915/i915_gem_gtt.c:2969: error: 'entry' may be used uninitialized in this function drivers/gpu//drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_3lvl': drivers/gpu//drm/i915/i915_gem_gtt.c:1007: error: 'iter.sg' is used uninitialized in this function drivers/gpu//drm/i915/i915_gem_gtt.c:1008: error: 'iter.dma' may be used uninitialized in this function drivers/gpu//drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_4lvl': >> drivers/gpu//drm/i915/i915_gem_gtt.c:1087: error: 'iter' is used >> uninitialized in this function vim +/iter +1087 drivers/gpu//drm/i915/i915_gem_gtt.c 0a03852e0 Matthew Auld 2017-10-06 1078 894ccebee Chris Wilson 2017-02-15 1079 static void gen8_ppgtt_insert_4lvl(struct i915_address_space *vm, 4a234c5fa Matthew Auld 2017-06-22 1080 struct i915_vma *vma, 894ccebee Chris Wilson 2017-02-15 1081 enum i915_cache_level cache_level, 894ccebee Chris Wilson 2017-02-15 1082 u32 unused) 894ccebee Chris Wilson 2017-02-15 1083 { 894ccebee Chris Wilson 2017-02-15 1084 struct i915_hw_ppgtt *ppgtt = i915_vm_to_ppgtt(vm); 894ccebee Chris Wilson 2017-02-15 1085 struct sgt_dma iter = { 4a234c5fa Matthew Auld 2017-06-22 1086 .sg = vma->pages->sgl, 894ccebee Chris Wilson 2017-02-15 @1087 .dma = sg_dma_address(iter.sg), 894ccebee Chris Wilson 2017-02-15 1088 .max = iter.dma + iter.sg->length, 894ccebee Chris Wilson 2017-02-15 1089 }; 894ccebee Chris Wilson 2017-02-15 1090 struct i915_page_directory_pointer **pdps = ppgtt->pml4.pdps; 0a03852e0 Matthew Auld 2017-10-06 1091 0a03852e0 Matthew Auld 2017-10-06 1092 if (vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { 0a03852e0 Matthew Auld 2017-10-06 1093 gen8_ppgtt_insert_huge_entries(vma, pdps, , cache_level); 0a03852e0 Matthew Auld 2017-10-06 1094 } else { 4a234c5fa Matthew Auld 2017-06-22 1095 struct gen8_insert_pte idx = gen8_insert_pte(vma->node.start); 894ccebee Chris Wilson 2017-02-15 1096 0a03852e0 Matthew Auld 2017-10-06 1097 while (gen8_ppgtt_insert_pte_entries(ppgtt, pdps[idx.pml4e++], 0a03852e0 Matthew Auld 2017-10-06 1098 , , cache_level)) 9e89f9ee3 Chris Wilson 2017-02-25 1099 GEM_BUG_ON(idx.pml4e >= GEN8_PML4ES_PER_PML4); f9b5b782c Michel Thierry 2015-07-30 1100 } 0a03852e0 Matthew Auld 2017-10-06 1101 } f9b5b782c Michel Thierry 2015-07-30 1102 :: The code at line 1087 was first introduced by commit :: 894ccebee2b0e606ba9638d20dd87b33568482d7 drm/i915: Micro-optimise gen8_ppgtt_insert_entries() :: TO: Chris Wilson <ch...@chris-wilson.co.uk> :: CC: Chris Wilson <ch...@chris-wilson.co.uk> --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
[drm-intel:for-linux-next 18/27] drivers/gpu/drm/i915/i915_gem_gtt.c:1087: warning: 'iter' is used uninitialized in this function
tree: git://anongit.freedesktop.org/drm-intel for-linux-next head: a883241c3922000b21b58b5740c55badfe09940f commit: 0a03852e049af91da9ae70326c44bb5d9b0d377a [18/27] drm/i915: support 2M pages for the 48b PPGTT config: x86_64-randconfig-a0-10072329 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 0a03852e049af91da9ae70326c44bb5d9b0d377a # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_3lvl': drivers/gpu/drm/i915/i915_gem_gtt.c:1007: warning: 'iter.sg' is used uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c:1008: warning: 'iter.dma' is used uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_4lvl': >> drivers/gpu/drm/i915/i915_gem_gtt.c:1087: warning: 'iter' is used >> uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'intel_ppat_get': drivers/gpu/drm/i915/i915_gem_gtt.c:2969: warning: 'entry' may be used uninitialized in this function vim +/iter +1087 drivers/gpu/drm/i915/i915_gem_gtt.c 9df15b499 Ben Widawsky 2013-11-02 998 894ccebee Chris Wilson 2017-02-15 999 static void gen8_ppgtt_insert_3lvl(struct i915_address_space *vm, 4a234c5fa Matthew Auld 2017-06-22 1000 struct i915_vma *vma, f9b5b782c Michel Thierry 2015-07-30 1001 enum i915_cache_level cache_level, f9b5b782c Michel Thierry 2015-07-30 1002 u32 unused) f9b5b782c Michel Thierry 2015-07-30 1003 { 17369ba08 Chuanxiao Dong 2017-07-07 1004 struct i915_hw_ppgtt *ppgtt = i915_vm_to_ppgtt(vm); 894ccebee Chris Wilson 2017-02-15 1005 struct sgt_dma iter = { 4a234c5fa Matthew Auld 2017-06-22 1006 .sg = vma->pages->sgl, 894ccebee Chris Wilson 2017-02-15 @1007 .dma = sg_dma_address(iter.sg), 894ccebee Chris Wilson 2017-02-15 1008 .max = iter.dma + iter.sg->length, 894ccebee Chris Wilson 2017-02-15 1009 }; 4a234c5fa Matthew Auld 2017-06-22 1010 struct gen8_insert_pte idx = gen8_insert_pte(vma->node.start); de5ba8eb9 Michel Thierry 2015-08-03 1011 9e89f9ee3 Chris Wilson 2017-02-25 1012 gen8_ppgtt_insert_pte_entries(ppgtt, >pdp, , , 9e89f9ee3 Chris Wilson 2017-02-25 1013 cache_level); de5ba8eb9 Michel Thierry 2015-08-03 1014 } 894ccebee Chris Wilson 2017-02-15 1015 0a03852e0 Matthew Auld 2017-10-06 1016 static void gen8_ppgtt_insert_huge_entries(struct i915_vma *vma, 0a03852e0 Matthew Auld 2017-10-06 1017 struct i915_page_directory_pointer **pdps, 0a03852e0 Matthew Auld 2017-10-06 1018 struct sgt_dma *iter, 0a03852e0 Matthew Auld 2017-10-06 1019 enum i915_cache_level cache_level) 0a03852e0 Matthew Auld 2017-10-06 1020 { 0a03852e0 Matthew Auld 2017-10-06 1021 const gen8_pte_t pte_encode = gen8_pte_encode(0, cache_level); 0a03852e0 Matthew Auld 2017-10-06 1022 u64 start = vma->node.start; 0a03852e0 Matthew Auld 2017-10-06 1023 dma_addr_t rem = iter->sg->length; 0a03852e0 Matthew Auld 2017-10-06 1024 0a03852e0 Matthew Auld 2017-10-06 1025 do { 0a03852e0 Matthew Auld 2017-10-06 1026 struct gen8_insert_pte idx = gen8_insert_pte(start); 0a03852e0 Matthew Auld 2017-10-06 1027 struct i915_page_directory_pointer *pdp = pdps[idx.pml4e]; 0a03852e0 Matthew Auld 2017-10-06 1028 struct i915_page_directory *pd = pdp->page_directory[idx.pdpe]; 0a03852e0 Matthew Auld 2017-10-06 1029 unsigned int page_size; 0a03852e0 Matthew Auld 2017-10-06 1030 gen8_pte_t encode = pte_encode; 0a03852e0 Matthew Auld 2017-10-06 1031 gen8_pte_t *vaddr; 0a03852e0 Matthew Auld 2017-10-06 1032 u16 index, max; 0a03852e0 Matthew Auld 2017-10-06 1033 0a03852e0 Matthew Auld 2017-10-06 1034 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_2M && 0a03852e0 Matthew Auld 2017-10-06 1035 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && 0a03852e0 Matthew Auld 2017-10-06 1036 rem >= I915_GTT_PAGE_SIZE_2M && !idx.pte) { 0a03852e0 Matthew Auld 2017-10-06 1037 index = idx.pde; 0a03852e0 Matthew Auld 2017-10-06 1038 max = I915_PDES; 0a03852e0 Matthew Auld 2017-10-06 1039 page_size = I915_GTT_PAGE_SIZE_2M; 0a03852e0 Matthew Auld 2017-10-06 1040 0a03852e0 Matthew Auld 2017-10-06 1041 encode |=
[drm-intel:drm-intel-next-queued 3/23] drivers/gpu/drm/i915/i915_gem_gtt.c:964: error: 'iter.sg' is used uninitialized in this function
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued head: 75c7b0b8620ce5a672da02e721a775acb7863c64 commit: 894ccebee2b0e606ba9638d20dd87b33568482d7 [3/23] drm/i915: Micro-optimise gen8_ppgtt_insert_entries() config: x86_64-randconfig-a0-02190713 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 894ccebee2b0e606ba9638d20dd87b33568482d7 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): cc1: warnings being treated as errors drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_4lvl': >> drivers/gpu/drm/i915/i915_gem_gtt.c:964: error: 'iter.sg' is used >> uninitialized in this function >> drivers/gpu/drm/i915/i915_gem_gtt.c:965: error: 'iter.dma' is used >> uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_3lvl': drivers/gpu/drm/i915/i915_gem_gtt.c:947: error: 'iter.sg' is used uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c:948: error: 'iter.dma' is used uninitialized in this function vim +964 drivers/gpu/drm/i915/i915_gem_gtt.c 958 enum i915_cache_level cache_level, 959 u32 unused) 960 { 961 struct i915_hw_ppgtt *ppgtt = i915_vm_to_ppgtt(vm); 962 struct sgt_dma iter = { 963 .sg = pages->sgl, > 964 .dma = sg_dma_address(iter.sg), > 965 .max = iter.dma + iter.sg->length, 966 }; 967 struct i915_page_directory_pointer **pdps = ppgtt->pml4.pdps; 968 unsigned int pml4e = gen8_pml4e_index(start); --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
[drm-intel:drm-intel-next-queued 3/23] drivers/gpu/drm/i915/i915_gem_gtt.c:964: warning: 'iter.sg' is used uninitialized in this function
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued head: 75c7b0b8620ce5a672da02e721a775acb7863c64 commit: 894ccebee2b0e606ba9638d20dd87b33568482d7 [3/23] drm/i915: Micro-optimise gen8_ppgtt_insert_entries() config: x86_64-randconfig-v0-02151136 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 894ccebee2b0e606ba9638d20dd87b33568482d7 # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_4lvl': >> drivers/gpu/drm/i915/i915_gem_gtt.c:964: warning: 'iter.sg' is used >> uninitialized in this function >> drivers/gpu/drm/i915/i915_gem_gtt.c:965: warning: 'iter.dma' is used >> uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_3lvl': drivers/gpu/drm/i915/i915_gem_gtt.c:947: warning: 'iter.sg' is used uninitialized in this function drivers/gpu/drm/i915/i915_gem_gtt.c:948: warning: 'iter.dma' is used uninitialized in this function vim +964 drivers/gpu/drm/i915/i915_gem_gtt.c 958 enum i915_cache_level cache_level, 959 u32 unused) 960 { 961 struct i915_hw_ppgtt *ppgtt = i915_vm_to_ppgtt(vm); 962 struct sgt_dma iter = { 963 .sg = pages->sgl, > 964 .dma = sg_dma_address(iter.sg), > 965 .max = iter.dma + iter.sg->length, 966 }; 967 struct i915_page_directory_pointer **pdps = ppgtt->pml4.pdps; 968 unsigned int pml4e = gen8_pml4e_index(start); --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
[drm-intel:for-linux-next 2/4] htmldocs: drivers/gpu/drm/i915/i915_gem_gtt.c:3586: warning: No description found for parameter 'offset'
tree: git://anongit.freedesktop.org/drm-intel for-linux-next head: c781c978e784c50dcd7cb312fe17f5281923f55b commit: 625d988acc28f3fe1d44f3798426561c17387a59 [2/4] drm/i915: Extract reserving space in the GTT to a helper reproduce: make htmldocs All warnings (new ones prefixed by >>): make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. include/linux/init.h:1: warning: no structured comments found include/linux/kthread.h:26: warning: Excess function parameter '...' description in 'kthread_create' kernel/sys.c:1: warning: no structured comments found drivers/dma-buf/seqno-fence.c:1: warning: no structured comments found include/drm/drm_drv.h:441: warning: No description found for parameter 'firstopen' include/drm/drm_drv.h:441: warning: No description found for parameter 'open' include/drm/drm_drv.h:441: warning: No description found for parameter 'preclose' include/drm/drm_drv.h:441: warning: No description found for parameter 'postclose' include/drm/drm_drv.h:441: warning: No description found for parameter 'lastclose' include/drm/drm_drv.h:441: warning: No description found for parameter 'dma_ioctl' include/drm/drm_drv.h:441: warning: No description found for parameter 'dma_quiescent' include/drm/drm_drv.h:441: warning: No description found for parameter 'context_dtor' include/drm/drm_drv.h:441: warning: No description found for parameter 'set_busid' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_handler' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_preinstall' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_postinstall' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_uninstall' include/drm/drm_drv.h:441: warning: No description found for parameter 'debugfs_init' include/drm/drm_drv.h:441: warning: No description found for parameter 'debugfs_cleanup' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_open_object' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_close_object' include/drm/drm_drv.h:441: warning: No description found for parameter 'prime_handle_to_fd' include/drm/drm_drv.h:441: warning: No description found for parameter 'prime_fd_to_handle' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_export' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_import' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_pin' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_unpin' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_res_obj' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_get_sg_table' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_import_sg_table' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_vmap' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_vunmap' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_mmap' include/drm/drm_drv.h:441: warning: No description found for parameter 'vgaarb_irq' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_vm_ops' include/drm/drm_drv.h:441: warning: No description found for parameter 'major' include/drm/drm_drv.h:441: warning: No description found for parameter 'minor' include/drm/drm_drv.h:441: warning: No description found for parameter 'patchlevel' include/drm/drm_drv.h:441: warning: No description found for parameter 'name' include/drm/drm_drv.h:441: warning: No description found for parameter 'desc' include/drm/drm_drv.h:441: warning: No description found for parameter 'date' include/drm/drm_drv.h:441: warning: No description found for parameter 'driver_features' include/drm/drm_drv.h:441: warning: No description found for parameter 'dev_priv_size' include/drm/drm_drv.h:441: warning: No description found for parameter 'ioctls' include/drm/drm_drv.h:441: warning: No description found for parameter 'num_ioctls' include/drm/drm_drv.h:441: warning: No description found for parameter 'fops' include/drm/drm_drv.h:441: warning: No description found for parameter 'legacy_dev_list' drivers/gpu/drm/i915/i915_gem_gtt.c:3586: warning: No description found for parameter 'vm' drivers/gpu/drm/i915/i915_gem_gtt.c:3586: warning: No description found for parameter 'node' drivers/gpu/drm/i915/i915_gem_gtt.c:3586: warning: No description found for parameter 'size' >> drivers/gpu/drm/i915/i915_gem_gtt.c:3586: warning: No description found for >> parameter 'offset' drivers/gpu/drm/i915/i915_gem_g
[drm-intel:for-linux-next 1/4] htmldocs: drivers/gpu/drm/i915/i915_gem_gtt.c:3594: warning: No description found for parameter 'vm'
tree: git://anongit.freedesktop.org/drm-intel for-linux-next head: c781c978e784c50dcd7cb312fe17f5281923f55b commit: e007b19d7ba7424735fd4f17a355b145ae153e4c [1/4] drm/i915: Use the MRU stack search after evicting reproduce: make htmldocs All warnings (new ones prefixed by >>): make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. include/linux/init.h:1: warning: no structured comments found include/linux/kthread.h:26: warning: Excess function parameter '...' description in 'kthread_create' kernel/sys.c:1: warning: no structured comments found drivers/dma-buf/seqno-fence.c:1: warning: no structured comments found include/drm/drm_drv.h:441: warning: No description found for parameter 'firstopen' include/drm/drm_drv.h:441: warning: No description found for parameter 'open' include/drm/drm_drv.h:441: warning: No description found for parameter 'preclose' include/drm/drm_drv.h:441: warning: No description found for parameter 'postclose' include/drm/drm_drv.h:441: warning: No description found for parameter 'lastclose' include/drm/drm_drv.h:441: warning: No description found for parameter 'dma_ioctl' include/drm/drm_drv.h:441: warning: No description found for parameter 'dma_quiescent' include/drm/drm_drv.h:441: warning: No description found for parameter 'context_dtor' include/drm/drm_drv.h:441: warning: No description found for parameter 'set_busid' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_handler' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_preinstall' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_postinstall' include/drm/drm_drv.h:441: warning: No description found for parameter 'irq_uninstall' include/drm/drm_drv.h:441: warning: No description found for parameter 'debugfs_init' include/drm/drm_drv.h:441: warning: No description found for parameter 'debugfs_cleanup' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_open_object' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_close_object' include/drm/drm_drv.h:441: warning: No description found for parameter 'prime_handle_to_fd' include/drm/drm_drv.h:441: warning: No description found for parameter 'prime_fd_to_handle' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_export' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_import' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_pin' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_unpin' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_res_obj' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_get_sg_table' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_import_sg_table' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_vmap' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_vunmap' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_prime_mmap' include/drm/drm_drv.h:441: warning: No description found for parameter 'vgaarb_irq' include/drm/drm_drv.h:441: warning: No description found for parameter 'gem_vm_ops' include/drm/drm_drv.h:441: warning: No description found for parameter 'major' include/drm/drm_drv.h:441: warning: No description found for parameter 'minor' include/drm/drm_drv.h:441: warning: No description found for parameter 'patchlevel' include/drm/drm_drv.h:441: warning: No description found for parameter 'name' include/drm/drm_drv.h:441: warning: No description found for parameter 'desc' include/drm/drm_drv.h:441: warning: No description found for parameter 'date' include/drm/drm_drv.h:441: warning: No description found for parameter 'driver_features' include/drm/drm_drv.h:441: warning: No description found for parameter 'dev_priv_size' include/drm/drm_drv.h:441: warning: No description found for parameter 'ioctls' include/drm/drm_drv.h:441: warning: No description found for parameter 'num_ioctls' include/drm/drm_drv.h:441: warning: No description found for parameter 'fops' include/drm/drm_drv.h:441: warning: No description found for parameter 'legacy_dev_list' >> drivers/gpu/drm/i915/i915_gem_gtt.c:3594: warning: No description found for >> parameter 'vm' >> drivers/gpu/drm/i915/i915_gem_gtt.c:3594: warning: No description found for >> parameter 'node' >> drivers/gpu/drm/i915/i915_gem_gtt.c:3594: warning: No description found for >> parameter 'size' >> drivers/gpu/drm/i915/i915_gem_gtt.c:3594: warning: No description found for >> parameter 'alignment
[drm-intel:drm-intel-nightly 922/930] drivers/gpu/drm/i915/i915_gem_gtt.c:2732:9: note: in expansion of macro 'list_first_entry_or_null'
tree: git://anongit.freedesktop.org/drm-intel drm-intel-nightly head: ca1c03136b168816ac65c5945776908e464fca6b commit: 45b186f111f1623b257d183920cd4aab16a1acd5 [922/930] drm: Constify the drm_mm API config: i386-randconfig-x005-201650 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 45b186f111f1623b257d183920cd4aab16a1acd5 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): In file included from include/linux/mutex.h:14:0, from include/linux/seq_file.h:7, from drivers/gpu/drm/i915/i915_gem_gtt.c:26: drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'i915_gtt_color_adjust': >> include/linux/list.h:385:29: warning: initialization discards 'const' >> qualifier from pointer target type [-Wdiscarded-qualifiers] struct list_head *head__ = (ptr); \ ^ >> drivers/gpu/drm/i915/i915_gem_gtt.c:2732:9: note: in expansion of macro >> 'list_first_entry_or_null' node = list_first_entry_or_null(>node_list, ^~~~ vim +/list_first_entry_or_null +2732 drivers/gpu/drm/i915/i915_gem_gtt.c 307dc25b Chris Wilson 2016-08-05 2716/* Wait a bit, in hopes it avoids the hang */ 307dc25b Chris Wilson 2016-08-05 2717udelay(10); 307dc25b Chris Wilson 2016-08-05 2718} 307dc25b Chris Wilson 2016-08-05 2719} 5c042287 Ben Widawsky 2011-10-17 2720 03ac84f1 Chris Wilson 2016-10-28 2721dma_unmap_sg(kdev, pages->sgl, pages->nents, PCI_DMA_BIDIRECTIONAL); 7c2e6fdf Daniel Vetter 2010-11-06 2722 } 644ec02b Daniel Vetter 2012-03-26 2723 45b186f1 Chris Wilson 2016-12-16 2724 static void i915_gtt_color_adjust(const struct drm_mm_node *node, 42d6ab48 Chris Wilson 2012-07-26 2725 unsigned long color, 440fd528 Thierry Reding 2015-01-23 2726 u64 *start, 440fd528 Thierry Reding 2015-01-23 2727 u64 *end) 42d6ab48 Chris Wilson 2012-07-26 2728 { 42d6ab48 Chris Wilson 2012-07-26 2729if (node->color != color) 42d6ab48 Chris Wilson 2012-07-26 2730*start += 4096; 42d6ab48 Chris Wilson 2012-07-26 2731 2a1d7752 Chris Wilson 2016-07-26 @2732node = list_first_entry_or_null(>node_list, 42d6ab48 Chris Wilson 2012-07-26 2733 struct drm_mm_node, 42d6ab48 Chris Wilson 2012-07-26 2734 node_list); 2a1d7752 Chris Wilson 2016-07-26 2735if (node && node->allocated && node->color != color) 42d6ab48 Chris Wilson 2012-07-26 2736*end -= 4096; 42d6ab48 Chris Wilson 2012-07-26 2737 } fbe5d36e Ben Widawsky 2013-11-04 2738 f6b9d5ca Chris Wilson 2016-08-04 2739 int i915_gem_init_ggtt(struct drm_i915_private *dev_priv) 644ec02b Daniel Vetter 2012-03-26 2740 { :: The code at line 2732 was first introduced by commit :: 2a1d775201081c400d7e60ceb8e5ac887d11b1f7 drm/i915: Prefer list_first_entry_or_null :: TO: Chris Wilson :: CC: Chris Wilson --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- next part -- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 27868 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161216/41ebf35a/attachment-0001.gz>
[Intel-gfx] drivers/gpu/drm/i915/i915_gem_gtt.c
On Mon, May 25, 2015 at 7:32 AM, Jani Nikula wrote: >> I'm not sure what is the approved way of fixing this. Perhaps >> disabling CONFIG_DRM_I915_WERROR when CONFIG_COMPILE_TEST=y. > > Maybe the answer right now is to just drop that config. Daniel? Agreed, that little experiment doesn't seem to be worth the trouble. I've pushed/sent-out the revert. Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
[Intel-gfx] drivers/gpu/drm/i915/i915_gem_gtt.c
On Sat, 23 May 2015, Andrew Morton wrote: > On Sat, 23 May 2015 14:30:09 +0100 Damien Lespiau intel.com> wrote: > >> On Fri, May 22, 2015 at 02:17:32PM -0700, Andrew Morton wrote: >> > I'm not sure what's happened to the drm code in linux-next - it's >> > exploding all over the place. Did someone turn on -Werror without >> > doing anywhere near enough testing? >> > >> > Anyway, I don't know how to fix this i386 build error: >> >> Seems like you have CONFIG_DRM_I915_WERROR set? > > Yes. > >> We explicitely made sure to not enable -Werror by default, > > `make allmodconfig' enables CONFIG_DRM_I915_WERROR. Right. > I'm not sure what is the approved way of fixing this. Perhaps > disabling CONFIG_DRM_I915_WERROR when CONFIG_COMPILE_TEST=y. Maybe the answer right now is to just drop that config. Daniel? BR, Jani. -- Jani Nikula, Intel Open Source Technology Center
[Intel-gfx] drivers/gpu/drm/i915/i915_gem_gtt.c
On Fri, May 22, 2015 at 02:17:32PM -0700, Andrew Morton wrote: > I'm not sure what's happened to the drm code in linux-next - it's > exploding all over the place. Did someone turn on -Werror without > doing anywhere near enough testing? > > Anyway, I don't know how to fix this i386 build error: Seems like you have CONFIG_DRM_I915_WERROR set? We explicitely made sure to not enable -Werror by default, because different versions of gcc will generate different set of warnings making it roughly impossible to use -Werror by default (say, newer versions of gcc with more clever warnings trying to compile old commits while bisecting) -- Damien
[Intel-gfx] drivers/gpu/drm/i915/i915_gem_gtt.c
On Sat, 23 May 2015 14:30:09 +0100 Damien Lespiau wrote: > On Fri, May 22, 2015 at 02:17:32PM -0700, Andrew Morton wrote: > > I'm not sure what's happened to the drm code in linux-next - it's > > exploding all over the place. Did someone turn on -Werror without > > doing anywhere near enough testing? > > > > Anyway, I don't know how to fix this i386 build error: > > Seems like you have CONFIG_DRM_I915_WERROR set? Yes. > We explicitely made sure to not enable -Werror by default, `make allmodconfig' enables CONFIG_DRM_I915_WERROR. I'm not sure what is the approved way of fixing this. Perhaps disabling CONFIG_DRM_I915_WERROR when CONFIG_COMPILE_TEST=y.
drivers/gpu/drm/i915/i915_gem_gtt.c
I'm not sure what's happened to the drm code in linux-next - it's exploding all over the place. Did someone turn on -Werror without doing anywhere near enough testing? Anyway, I don't know how to fix this i386 build error: drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_init': drivers/gpu/drm/i915/i915_gem_gtt.c:954:2: error: large integer implicitly truncated to unsigned type [-Werror=overflow] ppgtt->base.total = 1ULL << 32; i915_address_space.total is a ulong: 32-bit.
[drm-intel:drm-intel-next-queued 255/259] drivers/gpu/drm/i915/i915_gem_gtt.c:366:36: sparse: dereference of noderef expression
Hi Ben, FYI, there are new sparse warnings show up in tree: git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-next-queued head: afef67fbc09aec8508c88aac1931661a36e91958 commit: a1e0e54668f41badfaf5e49cae9fc10b79635b25 [255/259] drm/i915: Stop using AGP layer for GEN6+ + drivers/gpu/drm/i915/i915_gem_gtt.c:366:36: sparse: dereference of noderef expression vim +366 drivers/gpu/drm/i915/i915_gem_gtt.c a1e0e546 Ben Widawsky 2012-11-04 350 { a1e0e546 Ben Widawsky 2012-11-04 351 struct drm_device *dev = obj->base.dev; a1e0e546 Ben Widawsky 2012-11-04 352 struct drm_i915_private *dev_priv = dev->dev_private; a1e0e546 Ben Widawsky 2012-11-04 353 struct sg_table *st = obj->pages; a1e0e546 Ben Widawsky 2012-11-04 354 struct scatterlist *sg = st->sgl; a1e0e546 Ben Widawsky 2012-11-04 355 const int first_entry = obj->gtt_space->start >> PAGE_SHIFT; a1e0e546 Ben Widawsky 2012-11-04 356 const int max_entries = dev_priv->mm.gtt->gtt_total_entries - first_entry; a1e0e546 Ben Widawsky 2012-11-04 357 gtt_pte_t __iomem *gtt_entries = dev_priv->mm.gtt->gtt + first_entry; a1e0e546 Ben Widawsky 2012-11-04 358 int unused, i = 0; a1e0e546 Ben Widawsky 2012-11-04 359 unsigned int len, m = 0; a1e0e546 Ben Widawsky 2012-11-04 360 dma_addr_t addr; a1e0e546 Ben Widawsky 2012-11-04 361 a1e0e546 Ben Widawsky 2012-11-04 362 for_each_sg(st->sgl, sg, st->nents, unused) { a1e0e546 Ben Widawsky 2012-11-04 363 len = sg_dma_len(sg) >> PAGE_SHIFT; a1e0e546 Ben Widawsky 2012-11-04 364 for (m = 0; m < len; m++) { a1e0e546 Ben Widawsky 2012-11-04 365 addr = sg_dma_address(sg) + (m << PAGE_SHIFT); a1e0e546 Ben Widawsky 2012-11-04 @366 gtt_entries[i] = pte_encode(dev, addr, level); a1e0e546 Ben Widawsky 2012-11-04 367 i++; a1e0e546 Ben Widawsky 2012-11-04 368 } a1e0e546 Ben Widawsky 2012-11-04 369 } a1e0e546 Ben Widawsky 2012-11-04 370 a1e0e546 Ben Widawsky 2012-11-04 371 BUG_ON(i > max_entries); a1e0e546 Ben Widawsky 2012-11-04 372 BUG_ON(i != obj->base.size / PAGE_SIZE); a1e0e546 Ben Widawsky 2012-11-04 373 a1e0e546 Ben Widawsky 2012-11-04 374 /* XXX: This serves as a posting read to make sure that the PTE has --- 0-DAY kernel build testing backend Open Source Technology Center Fengguang Wu, Yuanhan Liu Intel Corporation
[drm-intel:drm-intel-next-queued 255/259] drivers/gpu/drm/i915/i915_gem_gtt.c:366:36: sparse: dereference of noderef expression
Hi Ben, FYI, there are new sparse warnings show up in tree: git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-next-queued head: afef67fbc09aec8508c88aac1931661a36e91958 commit: a1e0e54668f41badfaf5e49cae9fc10b79635b25 [255/259] drm/i915: Stop using AGP layer for GEN6+ + drivers/gpu/drm/i915/i915_gem_gtt.c:366:36: sparse: dereference of noderef expression vim +366 drivers/gpu/drm/i915/i915_gem_gtt.c a1e0e546 Ben Widawsky 2012-11-04 350 { a1e0e546 Ben Widawsky 2012-11-04 351 struct drm_device *dev = obj-base.dev; a1e0e546 Ben Widawsky 2012-11-04 352 struct drm_i915_private *dev_priv = dev-dev_private; a1e0e546 Ben Widawsky 2012-11-04 353 struct sg_table *st = obj-pages; a1e0e546 Ben Widawsky 2012-11-04 354 struct scatterlist *sg = st-sgl; a1e0e546 Ben Widawsky 2012-11-04 355 const int first_entry = obj-gtt_space-start PAGE_SHIFT; a1e0e546 Ben Widawsky 2012-11-04 356 const int max_entries = dev_priv-mm.gtt-gtt_total_entries - first_entry; a1e0e546 Ben Widawsky 2012-11-04 357 gtt_pte_t __iomem *gtt_entries = dev_priv-mm.gtt-gtt + first_entry; a1e0e546 Ben Widawsky 2012-11-04 358 int unused, i = 0; a1e0e546 Ben Widawsky 2012-11-04 359 unsigned int len, m = 0; a1e0e546 Ben Widawsky 2012-11-04 360 dma_addr_t addr; a1e0e546 Ben Widawsky 2012-11-04 361 a1e0e546 Ben Widawsky 2012-11-04 362 for_each_sg(st-sgl, sg, st-nents, unused) { a1e0e546 Ben Widawsky 2012-11-04 363 len = sg_dma_len(sg) PAGE_SHIFT; a1e0e546 Ben Widawsky 2012-11-04 364 for (m = 0; m len; m++) { a1e0e546 Ben Widawsky 2012-11-04 365 addr = sg_dma_address(sg) + (m PAGE_SHIFT); a1e0e546 Ben Widawsky 2012-11-04 @366 gtt_entries[i] = pte_encode(dev, addr, level); a1e0e546 Ben Widawsky 2012-11-04 367 i++; a1e0e546 Ben Widawsky 2012-11-04 368 } a1e0e546 Ben Widawsky 2012-11-04 369 } a1e0e546 Ben Widawsky 2012-11-04 370 a1e0e546 Ben Widawsky 2012-11-04 371 BUG_ON(i max_entries); a1e0e546 Ben Widawsky 2012-11-04 372 BUG_ON(i != obj-base.size / PAGE_SIZE); a1e0e546 Ben Widawsky 2012-11-04 373 a1e0e546 Ben Widawsky 2012-11-04 374 /* XXX: This serves as a posting read to make sure that the PTE has --- 0-DAY kernel build testing backend Open Source Technology Center Fengguang Wu, Yuanhan Liu Intel Corporation ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel