All of lore.kernel.org
 help / color / mirror / Atom feed
* [gabbayo:amdkfd-next 19/28] drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:33:21: sparse: cast to restricted __le32
@ 2018-05-15 18:56 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-05-15 18:56 UTC (permalink / raw)
  To: Felix Kuehling; +Cc: Oak Zeng, kbuild-all, dri-devel, Shaoyun Liu

tree:   git://people.freedesktop.org/~gabbayo/linux amdkfd-next
head:   8feaccf71dd61f2201493068055e0d1d699014df
commit: ca750681bc4a897ffa7eed71a1e05762fb1f0a34 [19/28] drm/amdkfd: Add SOC15 interrupt processing support
reproduce:
        # apt-get install sparse
        git checkout ca750681bc4a897ffa7eed71a1e05762fb1f0a34
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:33:21: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:34:21: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:35:17: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:36:16: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:61:21: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:62:21: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:63:17: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:64:16: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:65:22: sparse: cast to restricted __le32

vim +33 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c

    26	
    27	
    28	static bool event_interrupt_isr_v9(struct kfd_dev *dev,
    29						const uint32_t *ih_ring_entry)
    30	{
    31		uint16_t source_id, client_id, pasid, vmid;
    32	
  > 33		source_id = SOC15_SOURCE_ID_FROM_IH_ENTRY(ih_ring_entry);
    34		client_id = SOC15_CLIENT_ID_FROM_IH_ENTRY(ih_ring_entry);
    35		pasid = SOC15_PASID_FROM_IH_ENTRY(ih_ring_entry);
    36		vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry);
    37	
    38		if (pasid) {
    39			const uint32_t *data = ih_ring_entry;
    40	
    41			pr_debug("client id 0x%x, source id %d, pasid 0x%x. raw data:\n",
    42				 client_id, source_id, pasid);
    43			pr_debug("%8X, %8X, %8X, %8X, %8X, %8X, %8X, %8X.\n",
    44				 data[0], data[1], data[2], data[3],
    45				 data[4], data[5], data[6], data[7]);
    46		}
    47	
    48		return (pasid != 0) &&
    49			(source_id == SOC15_INTSRC_CP_END_OF_PIPE ||
    50			 source_id == SOC15_INTSRC_SDMA_TRAP ||
    51			 source_id == SOC15_INTSRC_SQ_INTERRUPT_MSG ||
    52			 source_id == SOC15_INTSRC_CP_BAD_OPCODE);
    53	}
    54	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-15 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 18:56 [gabbayo:amdkfd-next 19/28] drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:33:21: sparse: cast to restricted __le32 kbuild test robot

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.