Cook the bacon in a large skillet over medium heat until crisp, 6 to 7 minutes. Drain on paper towels and crumble. Leave 2 tablespoons fat in the pan and cook the onion over medium-high heat about 6 minutes, until nearly soft.
Put the onion, broth and potatoes in a 6-quart Dutch oven, bring to a boil and simmer about 10 minutes, until the potatoes are very tender.
Wipe out the skillet, melt the butter over low heat and whisk in the flour. Cook 1 minute, then gradually whisk in 2 cups of the milk until smooth.
Pour this into the soup with the remaining milk, salt and pepper. Cook over medium heat, whisking constantly, until thickened and bubbling.
Stir in the ham, half the bacon, the sour cream, 2 cups of the cheese and 1/2 cup of the green onions. Heat until the cheese melts.
Ladle into bowls and top with the rest of the bacon, cheese and green onions.