Device Family: Intel® Arria® 10 GT, Intel® Arria® 10 GX, Intel® Arria® 10 SX, Arria® V GT, Arria® V GX, Arria® V GZ, Arria® V ST, Arria® V SX, Cyclone® V GT, Cyclone® V GX, Cyclone® V ST, Cyclone® V SX, Stratix® V GS, Stratix® V GT, Stratix® V GX

Type: Answers

Area: Component

IP Product: PCI Express 1/2/4/8 Lanes (x8)

ERROR: Failed to initialize the S5_CVP library: Failed to initialize the WDC library. Error 0x20000001 - Invalid handle


You may see this error if you are trying to configure your device using quartus_cvp on a Linux machine and the driver has failed to load.

A possible cause for the driver failing to load is that the kernel does not have a large enough virtual memory allocation.  You can confirm that there is a problem with virtual memory allocation by checking the kernel ring buffer messages using dmesg. If there is a problem with virtual memory allocation you will see the following message:   
vmap allocation for size 268439552 failed: use vmalloc=
to increase size.


If you are using the GRUB bootlaoder (used for Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6), to pass the vmalloc= parameter to the kernel, add it to the global kopt parameter in /boot/grub/menu.lst, which will look like this:
kopt=root=UUID=1029384-7e40-ffd2-9968-7a8b9e78f9g7s ro vmalloc=192M

You will need to increase vmalloc to > 512M.