Magnetic and superconducting phases of CePd2Si2