/******************************************************************************
 *
 *   SPDX-License-Identifier: BSD-3-Clause
 *   Copyright(c) 2007-2026 Intel Corporation
 * 
 *  version: QAT.B.3.15.0-00012
 *   These contents may have been developed with support from one or more
 *   Intel-operated generative artificial intelligence solutions.
 *
 *****************************************************************************/

===============================================================================


Device Utilization(DU) overview
===============================
du_mgr tool is used to measure the utilization of cryptographic services
for a given physical or virtual function.

Enable RateLimiting Feature
===========================
RateLimiting feature is supported only in rate limiting firmware for
cryptographic services.
    * Install driver package in host with SRIOV enabled
    * Update physical function configuration file to set RateLimitingEnabled=1
      in [GENERAL] section
    * Set ServicesEnabled to cy or sym or asym
    * Perform qat_service shutdown and qat_service start

Device Utilization commands
===========================
Device Utilization execution tool is available in $ICP_ROOT/build/du_mgr after
the package is built and installed using ./configure; make install commands.

Below are the commands to perform DU operations

        Start or stop device measurement - ./du_mgr ( start | stop ) <pf_addr>
        Query utilization for physical function - ./du_mgr query <pf_addr> <service>
        Query utilization for virtual function - ./du_mgr query_vf <pf_addr> <vf_addr> <service>

Options:
        pf_addr     Physical address in bus:device.function(xx:xx.x) format
        vf_addr     Virtual address in bus:device.function(xx:xx.x) format
        service     Asym(=0) or Sym(=1) cryptographic services

NOTE:
      1. Duration between Start and Stop commands should be between 5 to 10 seconds.
         Duration of more than 10 seconds, may give inconsistent query results.
      2. Device utilization query and query_vf reports utilization between the last
         Start and Stop command.
      3. For a given physical or virtual function the device utilization reported
         would be against the maximum device capacity.
      4. Device Utilization is supported only for physical functions in FreeBSD.

Legal/Disclaimers
=================
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL(R) PRODUCTS.
NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL
PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S
TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY
WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO
SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING
TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY
PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are
not intended for use in medical, life saving, life sustaining, critical control
or safety systems, or in nuclear facility applications.

Intel may make changes to specifications and product descriptions at any time,
without notice.

(C) Intel Corporation 2008

* Other names and brands may be claimed as the property of others.

===============================================================================
