CGB: modify set_global_rings and extend_ring_with_aux to fix the bug when dealing with dp and Dp