"Powdery mildew, a fungal disease that is prevalent in warm, dry weather, is one of the most common and easily recognized plant diseases. Almost no type of plant is immune, however, some are more susceptible than others. Lilacs, crab apples, phlox, monarda, roses, grapes, squash, and cucumbers are all likely targets for powdery mildew. [And cannabis obviously]
Recognizing Powdery Mildew
As the name implies, powdery mildew looks like powdery splotches of white or gray that appear on the leaves and stems of plants. There are actually several types of powdery mildew fungi, but they all look basically the same on your plants. You may not notice a problem until the top surfaces of the leaves turn powdery, but powdery mildew often starts on the undersides of leaves and can also take hold on the stems, flowers, buds, and even the fruit."
Source
Hard to get rid of for plants in flower. In veg, neem oil works great for me.
Diatomaceous Earth:
"Diatomite is of value as an insecticide, because of its abrasive and physico-sorptive properties. The fine powder adsorbs lipids from the waxy outer layer of the exoskeletons of many species of insects; this layer acts as a barrier that resists the loss of water vapour from the insect's body. Damaging the layer increases the evaporation of water from their bodies, so that they dehydrate, often fatally."
Source
It only works when it's dry, so on or in the soil will work sometimes. It's also can be used as a spray when mixed with water and applied to the undersides of leaves - also in veg. When it dries the powder stays on the leaves and kills crawling insects. Don't use DE in flower as it's not good for the lungs.