hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/infiniband/hw/hfi1/pio.h
....@@ -127,6 +127,8 @@
127127 volatile __le64 *hw_free; /* HW free counter */
128128 /* list for PIO waiters */
129129 struct list_head piowait ____cacheline_aligned_in_smp;
130
+ seqlock_t waitlock;
131
+
130132 spinlock_t credit_ctrl_lock ____cacheline_aligned_in_smp;
131133 u32 credit_intr_count; /* count of credit intr users */
132134 u64 credit_ctrl; /* cache for credit control */
....@@ -241,7 +243,7 @@
241243 */
242244 struct pio_map_elem {
243245 u32 mask;
244
- struct send_context *ksc[0];
246
+ struct send_context *ksc[];
245247 };
246248
247249 /*
....@@ -261,7 +263,7 @@
261263 u32 mask;
262264 u8 actual_vls;
263265 u8 vls;
264
- struct pio_map_elem *map[0];
266
+ struct pio_map_elem *map[];
265267 };
266268
267269 int pio_map_init(struct hfi1_devdata *dd, u8 port, u8 num_vls,
....@@ -329,4 +331,7 @@
329331 void seg_pio_copy_mid(struct pio_buf *pbuf, const void *from, size_t nbytes);
330332 void seg_pio_copy_end(struct pio_buf *pbuf);
331333
334
+void seqfile_dump_sci(struct seq_file *s, u32 i,
335
+ struct send_context_info *sci);
336
+
332337 #endif /* _PIO_H */