• Oded Gabbay's avatar
    habanalabs: ratelimit warnings at start of IOCTLs · 680cb399
    Oded Gabbay authored
    At the start of some IOCTLs we check if the device is disabled or in reset.
    If it is, we return -EBUSY and print a message to kernel log.
    
    Because these IOCTLs can be called at very high frequency, use ratelimit
    to avoid spamming the kernel log. Also use the same type of message -
    dev_warn - in all the relevant IOCTLs.
    Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
    680cb399
habanalabs_ioctl.c 5.88 KB