Is the amd-pstate driver included in 5.17-rc1 kernel?

Kernel documentation states option for shared memory support is currently disabled to address a performance issue:

amd-pstate CPU Performance Scaling Driver — The Linux Kernel documentation

Kernel Module Options for amd-pstate

shared_mem Use a module param (shared_mem) to enable related processors manually with amd_pstate.shared_mem=1. Due to the performance issue on the processors with Shared Memory Support, so we disable it for the moment and will enable this by default once we address performance issue on this solution.

The way to check whether current processor is Full MSR Support or Shared Memory Support :

lscpu | grep cppc

If CPU Flags have cppc, then this processor supports Full MSR Support. Otherwise it supports Shared Memory Support.