tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: 617b0eb160a87ef4a61d6770f360c5e27e01c5ee commit: 22521895da6d53a4d6bbcf80dff76cb7d0a5fd48 [510/521] drm/amdgpu: Present amdgpu_task_info in VM_FAULTS. config: i386-randconfig-a1-201827 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 22521895da6d53a4d6bbcf80dff76cb7d0a5fd48 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/gpu//drm/amd/amdgpu/gmc_v8_0.c: In function 'gmc_v8_0_process_interrupt': >> drivers/gpu//drm/amd/amdgpu/gmc_v8_0.c:1449:10: warning: missing braces around initializer [-Wmissing-braces] struct amdgpu_task_info task_info = { 0 }; ^ drivers/gpu//drm/amd/amdgpu/gmc_v8_0.c:1449:10: warning: (near initialization for 'task_info.process_name') [-Wmissing-braces] -- drivers/gpu//drm/amd/amdgpu/gmc_v9_0.c: In function 'gmc_v9_0_process_interrupt': >> drivers/gpu//drm/amd/amdgpu/gmc_v9_0.c:260:10: warning: missing braces around initializer [-Wmissing-braces] struct amdgpu_task_info task_info = { 0 }; ^ drivers/gpu//drm/amd/amdgpu/gmc_v9_0.c:260:10: warning: (near initialization for 'task_info.process_name') [-Wmissing-braces] vim +1449 drivers/gpu//drm/amd/amdgpu/gmc_v8_0.c 1422 1423 static int gmc_v8_0_process_interrupt(struct amdgpu_device *adev, 1424 struct amdgpu_irq_src *source, 1425 struct amdgpu_iv_entry *entry) 1426 { 1427 u32 addr, status, mc_client; 1428 1429 if (amdgpu_sriov_vf(adev)) { 1430 dev_err(adev->dev, "GPU fault detected: %d 0x%08x\n", 1431 entry->src_id, entry->src_data[0]); 1432 dev_err(adev->dev, " Can't decode VM fault info here on SRIOV VF\n"); 1433 return 0; 1434 } 1435 1436 addr = RREG32(mmVM_CONTEXT1_PROTECTION_FAULT_ADDR); 1437 status = RREG32(mmVM_CONTEXT1_PROTECTION_FAULT_STATUS); 1438 mc_client = RREG32(mmVM_CONTEXT1_PROTECTION_FAULT_MCCLIENT); 1439 /* reset addr and status */ 1440 WREG32_P(mmVM_CONTEXT1_CNTL2, 1, ~1); 1441 1442 if (!addr && !status) 1443 return 0; 1444 1445 if (amdgpu_vm_fault_stop == AMDGPU_VM_FAULT_STOP_FIRST) 1446 gmc_v8_0_set_fault_enable_default(adev, false); 1447 1448 if (printk_ratelimit()) { > 1449 struct amdgpu_task_info task_info = { 0 }; 1450 1451 amdgpu_vm_get_task_info(adev, entry->pasid, &task_info); 1452 1453 dev_err(adev->dev, "GPU fault detected: %d 0x%08x for process %s pid %d thread %s pid %d\n", 1454 entry->src_id, entry->src_data[0], task_info.process_name, 1455 task_info.tgid, task_info.task_name, task_info.pid); 1456 dev_err(adev->dev, " VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x%08X\n", 1457 addr); 1458 dev_err(adev->dev, " VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n", 1459 status); 1460 gmc_v8_0_vm_decode_fault(adev, status, addr, mc_client, 1461 entry->pasid); 1462 } 1463 1464 return 0; 1465 } 1466 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel