#!/bin/sh

PATH=$PATH:/sbin:/usr/sbin

sync
sleep 1
sync

# Disable dram scrubbing
setpci -s 00:18.3 58.L=000F0F00

# scrub address and redirect clear
setpci -s 00:18.3 5C.L=0
setpci -s 00:18.3 60.L=0

# ECC and Chip-Kill off
setpci -s 00:18.3 44.L=00000040

