beautypg.com

Oading the, Ample, 2 loading the sample code – Lanner AV-ICE01 User Manual

Page 23

background image

Software User Manual Version 1.0.1

20

4.2 Loading the Sample Code

1. The acceleration kernel module must be installed and the software must be started

before attempting to execute the sample code. This can be verified by running the
following commands:

# lsmod | grep icp_qa_al

# service qat_service status

Typical output with two acceleration devices is:

There is 2 acceleration device(s) in the system:

icp_dev0 - type=dh89xxcc, inst_id=0, bsf=01:00:0, #accel=2, #engines=8, state=up

icp_dev1 - type=dh89xxcc, inst_id=1, bsf=02:00:0, #accel=2, #engines=8, state=up

Note: If the module is not returned from the first command, refer to 3.3

Starting/Stopping the Acceleration Software for additional information on

starting the Acceleration software.

2. The sample code is executed by installing the cpa_sample_code

kernel object for

kernel space, or by launching the application for user space.

The application allows the kernel parameters listed below.

Parameter Description

SignOfLife=v

Indicates shorter test run that verifies the
acceleration software is working. Thisparameter
executes a subset of sample tests. Details are
included in signOfLifeTests in next section.
(default=0)