• Adam Guerin's avatar
    crypto: qat - extend configuration for 4xxx · 50053275
    Adam Guerin authored
    A QAT GEN4 device can be currently configured for crypto (sym;asym) or
    compression (dc).
    
    This patch extends the configuration to support more variations of these
    services, download the correct FW images on the device and report the
    correct capabilities on the device based on the configured service.
    
    The device can now be configured with the following services:
    "sym", "asym", "dc", "sym;asym", "asym;sym", "sym;dc", "dc;sym",
    "asym;dc", "dc;asym".
    
    With this change, the configuration "sym", "asym", "sym;dc", "dc;sym",
    "asym;dc", "dc;asym" will be accessible only via userspace, i.e. the driver
    for those configurations will not register into the crypto framework.
    Support for such configurations in kernel will be enabled in a later
    patch.
    
    The pairs "sym;asym" and "asym;sym" result in identical device config.
    As do "sym;dc", "dc;sym", and "asym;dc", "dc;asym".
    Signed-off-by: default avatarAdam Guerin <adam.guerin@intel.com>
    Reviewed-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
    Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    50053275
adf_drv.c 11.6 KB