• Ofir Bitton's avatar
    habanalabs: add generic security module · e392d1bd
    Ofir Bitton authored
    As the ASICs become more complex and have many more registers, we need
    a better way to configure the security properties.
    
    As a reminder, we have two dedicated mechanisms for security:
    Range Registers and Protection bits. Those mechanisms protect sensitive
    memory and configuration areas inside the device.
    
    The generic module handles the low-level part of the configuration,
    because the configuration mechanism is identical in all ASICs. The
    difference is the address ranges and register names.
    
    Any ASIC that use this block should first block all the register
    blocks in the ASIC. Then, it should open only the registers that
    need to be accessed by the user (This is opposed to Goya and Gaudi,
    where we blocked only what should not be accesses by the user).
    
    The module contains several functions, to unblock single register,
    multiple registers, entire blocks, ranges, ranges with mask.
    Signed-off-by: default avatarOfir Bitton <obitton@habana.ai>
    Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
    Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
    e392d1bd
Makefile 556 Bytes