515e3608 | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: configure OCM page size
Enabled support for configurable OCM page size. A new device argument "ocm_page_size" is added to specify the page size for OCM management. Supported page sizes are
ml/cnxk: configure OCM page size
Enabled support for configurable OCM page size. A new device argument "ocm_page_size" is added to specify the page size for OCM management. Supported page sizes are 1KB, 2KB, 4KB, 8KB and 16KB. Default page size is 16KB.
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Shivah Shankar S <sshankarnara@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|
d646b82a | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: allow to use lock during JCMD enqueue
Added device argument "hw_queue_lock" to select the JCMDQ enqueue ROC function to be used in fast path.
hw_queue_lock:
0: Disable, use lock free vers
ml/cnxk: allow to use lock during JCMD enqueue
Added device argument "hw_queue_lock" to select the JCMDQ enqueue ROC function to be used in fast path.
hw_queue_lock:
0: Disable, use lock free version of JCMDQ enqueue ROC function for job queuing. To avoid race condition in request queuing to hardware, disabling hw_queue_lock restricts the number of queue-pairs supported by cnxk driver to 1.
1: Enable, (default) use spin-lock version of JCMDQ enqueue ROC function for job queuing. Enabling spinlock version would disable restrictions on the number of queue-pairs that can be created.
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|
783932ef | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: select OCM allocation mode
Added device argument "ocm_alloc_mode" to select OCM allocation method during model start. Two modes are supported by the driver.
Added implementation for ocm_al
ml/cnxk: select OCM allocation mode
Added device argument "ocm_alloc_mode" to select OCM allocation method during model start. Two modes are supported by the driver.
Added implementation for ocm_alloc_mode lowest as default.
ocm_alloc_mode: lowest: Allocate from first available free slot / lowest tile ID in OCM (default) largest: Allocate from a slot with maximum free memory
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|
5e2a82b9 | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: allow model data caching
Added device argument 'cache_model_data' to enable model data caching. An inference request would be executed with dummy data in synchronous mode during model start
ml/cnxk: allow model data caching
Added device argument 'cache_model_data' to enable model data caching. An inference request would be executed with dummy data in synchronous mode during model start stage. This run would cache the model weights and bias in the memory and result in improved inference throughput.
cache_model_data = 1, enable (default) cache_model_data = 0, disable
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|
4ff4ab8e | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: support extended statistics
Added support to handle ML device extended stats. Support is enabled to get xstats names and stats values and reset xstats. Supported xstats include avg, min and
ml/cnxk: support extended statistics
Added support to handle ML device extended stats. Support is enabled to get xstats names and stats values and reset xstats. Supported xstats include avg, min and max hardware and firmware latency.
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|
029732ad | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: support model stop
Implemented model stop driver function. A model stop job is enqueued through scratch registers and is checked for completion through polling in a synchronous mode. OCM pa
ml/cnxk: support model stop
Implemented model stop driver function. A model stop job is enqueued through scratch registers and is checked for completion through polling in a synchronous mode. OCM pages are released after model stop completion.
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|
34468620 | 07-Feb-2023 |
Srikanth Yalavarthi <syalavarthi@marvell.com> |
ml/cnxk: parse firmware path from devargs
Enabled parsing ML firmware path for cn10k. Default path is set as "/lib/firmware/mlip-fw.bin", when args are not provided. Added internal structures for ML
ml/cnxk: parse firmware path from devargs
Enabled parsing ML firmware path for cn10k. Default path is set as "/lib/firmware/mlip-fw.bin", when args are not provided. Added internal structures for ML firmware.
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com> Acked-by: Prince Takkar <ptakkar@marvell.com>
show more ...
|