Hampshire have plenty of work to do to avoid relegation after they dismissed Warwickshire for 188 but were then rattled out for 116 themselves on an extraordinary second day of their Specsavers County Championship match at Edgbaston.