Surgery. Surgical treatment becomes an option for severe cases. This includes when the joint has serious damage, or when medical treatment fails to relieve pain and you have major loss of function. Surgery may involve arthroscopy, repair of the joint done through small incisions (cuts). If the joint damage cannot be repaired, you may need a joint replacement..