On Fri, 1 Mar 2024 at 01:00, Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> wrote: > > Protection domain mapper is a QMI service providing mapping between > 'protection domains' and services supported / allowed in these domains. > For example such mapping is required for loading of the WiFi firmware or > for properly starting up the UCSI / altmode / battery manager support. > > The existing userspace implementation has several issue. It doesn't play > well with CONFIG_EXTRA_FIRMWARE, it doesn't reread the JSON files if the > firmware location is changed (or if the firmware was not available at > the time pd-mapper was started but the corresponding directory is > mounted later), etc. > > However this configuration is largely static and common between > different platforms. Provide in-kernel service implementing static > per-platform data. > > NOTE: this is an RFC / RFC, the domain mapping data might be inaccurate > (especially for SM6xxx and SC7xxx platforms), which is reflected by > several TODO and FIXME comments in the code. > > Changes since RFC v1: > - Swapped num_domains / domains (Konrad) > - Fixed an issue with battery not working on sc8280xp After sending this RFC I have stumbled upon another issue on sc8280xp / X13s. I'll send v3 after finding a way to fix it. > - Added missing configuration for QCS404 >> Best regards, > -- > Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> > -- With best wishes Dmitry