Diplay error with DVI-D monitor and S-Video

I am having problem getting the display working either using a HDMI-
DVI-D cable (to connect to an LCD) or using the s-vdieo cable to
connect to the TV.

I am able to boot the kernel image successfully. When I try to run the
diagnostic tests as per the document (both for DVI-D as well as for s-
video), I get "kernel panic error".

Can anyone help me out with this?