All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 08/15] habanalabs: add comments in uapi/misc/habanalabs.h
@ 2019-02-28  9:55 Oded Gabbay
  2019-02-28  9:55 ` [PATCH 11/15] habanalabs: print pointer using %p Oded Gabbay
  0 siblings, 1 reply; 9+ messages in thread
From: Oded Gabbay @ 2019-02-28  9:55 UTC (permalink / raw)
  To: gregkh, linux-kernel

Add comment about minimum and maximum size of command buffer.
Add some text about the expected input of CS IOCTL.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
---
Changes in v2:
  - Add changelog in the commit message
 
 include/uapi/misc/habanalabs.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h
index 23d6ad3459cb..7fd6f633534c 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -112,7 +112,9 @@ struct hl_cb_in {
 	__u64 cb_handle;
 	/* HL_CB_OP_* */
 	__u32 op;
-	/* Size of CB. Minimum requested size must be PAGE_SIZE */
+	/* Size of CB. Maximum size is 2MB. The minimum size that will be
+	 * allocated, regardless of this parameter's value, is PAGE_SIZE
+	 */
 	__u32 cb_size;
 	/* Context ID - Currently not in use */
 	__u32 ctx_id;
@@ -364,6 +366,12 @@ union hl_mem_args {
  * internal. The driver will get completion notifications from the device only
  * on JOBS which are enqueued in the external queues.
  *
+ * For jobs on external queues, the user needs to create command buffers
+ * through the CB ioctl and give the CB's handle to the CS ioctl. For jobs on
+ * internal queues, the user needs to prepare a "command buffer" with packets
+ * on either the SRAM or DRAM, and give the device address of that buffer to
+ * the CS ioctl.
+ *
  * This IOCTL is asynchronous in regard to the actual execution of the CS. This
  * means it returns immediately after ALL the JOBS were enqueued on their
  * relevant queues. Therefore, the user mustn't assume the CS has been completed
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 00/15] habanalabs fixes for merge window
@ 2019-02-28  8:46 Oded Gabbay
  2019-02-28  8:46 ` [PATCH 11/15] habanalabs: print pointer using %p Oded Gabbay
  0 siblings, 1 reply; 9+ messages in thread
From: Oded Gabbay @ 2019-02-28  8:46 UTC (permalink / raw)
  To: gregkh, linux-kernel

Hi Greg,

This patch-set contains only fixes for H/W, F/W and driver bugs that were
discovered and fixed since v5 of the habanalabs upstream patch-set.

In addition, the patch-set contains fixes to sparse warnings regarding
little-endian to/from cpu conversions (and to other sparse warnings).

Thanks,
Oded

Oded Gabbay (10):
  habanalabs: disable CPU access on timeouts
  habanalabs: fix mmu cache registers init
  habanalabs: fix validation of WREG32 to DMA completion
  habanalabs: set DMA0 completion to SOB 1007
  habanalabs: add comments in uapi/misc/habanalabs.h
  habanalabs: fix memory leak with CBs with unaligned size
  habanalabs: print pointer using %p
  habanalabs: soft-reset device if context-switch fails
  habanalabs: use NULL to initialize array of pointers
  habanalabs: fix little-endian<->cpu conversion warnings

Omer Shpigelman (3):
  habanalabs: add MMU DRAM default page mapping
  habanalabs: extend QMAN0 job timeout
  habanalabs: return correct error code on MMU mapping failure

Tomer Tayar (2):
  habanalabs: Dissociate RAZWI info from event types
  habanalabs: fix little-endian<->cpu conversion warnings

 drivers/misc/habanalabs/command_buffer.c      |   9 +-
 drivers/misc/habanalabs/command_submission.c  |  16 +-
 drivers/misc/habanalabs/debugfs.c             |  21 +-
 drivers/misc/habanalabs/device.c              |   2 +
 drivers/misc/habanalabs/goya/goya.c           | 667 +++++++++---------
 drivers/misc/habanalabs/goya/goyaP.h          |  29 +-
 drivers/misc/habanalabs/habanalabs.h          |  14 +-
 drivers/misc/habanalabs/habanalabs_ioctl.c    |   2 +-
 drivers/misc/habanalabs/hw_queue.c            |  23 +-
 drivers/misc/habanalabs/hwmon.c               |  54 +-
 .../include/goya/asic_reg/goya_regs.h         |   1 +
 .../include/hw_ip/mmu/mmu_general.h           |   1 +
 drivers/misc/habanalabs/irq.c                 |   8 +-
 drivers/misc/habanalabs/memory.c              |  12 +-
 drivers/misc/habanalabs/mmu.c                 | 287 +++++++-
 drivers/misc/habanalabs/sysfs.c               |  29 +-
 include/uapi/misc/habanalabs.h                |  10 +-
 17 files changed, 740 insertions(+), 445 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-03-02  9:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28  9:55 [PATCH v2 08/15] habanalabs: add comments in uapi/misc/habanalabs.h Oded Gabbay
2019-02-28  9:55 ` [PATCH 11/15] habanalabs: print pointer using %p Oded Gabbay
2019-02-28 12:01   ` Greg KH
2019-02-28 12:59     ` Oded Gabbay
2019-03-02  1:00   ` Joe Perches
2019-03-02  9:36     ` Oded Gabbay
  -- strict thread matches above, loose matches on Subject: below --
2019-02-28  8:46 [PATCH 00/15] habanalabs fixes for merge window Oded Gabbay
2019-02-28  8:46 ` [PATCH 11/15] habanalabs: print pointer using %p Oded Gabbay
2019-02-28  9:31   ` Greg KH
2019-02-28  9:47     ` Oded Gabbay

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.