Hard to picture what you described …
On most of my builds I have the landscape beds encircle the AC units, as best I can. On my personal home I have pea gravel on that entire 8’ section of the house.
Generally speaking your grade is typically set with compactable soil, and then topped with any number of material choice to control erosion. So if you have any current erosion of existing grade them you must fill that back in with compactable soil first. Compact it well, creating the right slope, after which you can top it off with mulch or gravel or pavers or whatever you prefer. (Fabric can work but also makes it hard for rock to dig into that soil and not slide off the slick surface.)
On most of my builds I have the landscape beds encircle the AC units, as best I can. On my personal home I have pea gravel on that entire 8’ section of the house.