OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94f2790
)
habanalabs/gaudi: use correct type in assignment
author
Oded Gabbay
<ogabbay@kernel.org>
Fri, 24 Jun 2022 13:05:59 +0000
(16:05 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:25 +0000
(09:09 +0300)
packets are defined as LE so we need to convert before assigning
values to them.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/gaudi/gaudi.c
b/drivers/misc/habanalabs/gaudi/gaudi.c
index
8cf3382
..
9ecae3d
100644
(file)
--- a/
drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/
drivers/misc/habanalabs/gaudi/gaudi.c
@@
-5772,7
+5772,7
@@
static void gaudi_add_end_of_cb_packets(struct hl_device *hdev, void *kernel_add
cq_pkt = kernel_address + len - (sizeof(struct packet_msg_prot) * 2);
while ((void *)cq_padding < (void *)cq_pkt) {
- cq_padding->ctl =
FIELD_PREP(GAUDI_PKT_CTL_OPCODE_MASK, PACKET_NOP
);
+ cq_padding->ctl =
cpu_to_le32(FIELD_PREP(GAUDI_PKT_CTL_OPCODE_MASK, PACKET_NOP)
);
cq_padding++;
}