2007 GMC Yukon knocking sound

What codes is the vehicle showing?
What repairs were just done?
Why were those repairs done (What was the original concern?)

What engine is in this 2007 Yukon? Does the knocking go away as the engine warms up, or stay all the time?