Suspend/resume to disk (hibernate) broken on 500 series drivers

The hibernate script I use works fine on 470.94 :

sync
echo 3 > /proc/sys/vm/drop_caches
echo -n disk >/sys/power/state

The machine hard crashes on resume on any 500 series driver (tested 515.65.01, 515.76,520.56.06)

I also tried adding the nvidia-sleep i.e.

sync
echo 3 > /proc/sys/vm/drop_caches
sh /usr/bin/nvidia-sleep.sh suspend
echo -n disk >/sys/power/state
sh /usr/bin/nvidia-sleep.sh resume

tested with and without
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/tmp

in /etc/modprobe.d

However this hard crashes same way (most likely the resume script needs to be run earlier in the resume stack than the script call but I don’t know how to do that, I don’t have systemd on my machine).

OS Slackware 15
GPU GTX 1070
Linux 5.15.71

Update. I found in another thread this similar problem. The workaround if you want to hibernate your machine and need 500 series for new vkd3d-proton 2.7 is to run driver version 510.54 which is the last 500 series release where hibernate to disk works correctly (verified to work on Linux 5.15.71/Slackware 15). This driver also supports new required vulkan extensions in recent vkd3d-proton 2.7 release.