You can get some relief from this by using the ice-and-stretch routine on this web-site. You will get the best results by icing on the side of the base of the neck and stretching that area before trying to stretch the back of the base of the neck. After ice and stretch, try this routine of breathing to relieve upper back pain. the upper rib heads will often click loose and the trigger point will release.
This can be very tough to resolve yourself and it can take weeks and weeks to resolve on its own. See a trigger point specialist for lasting relief.