Failure pset test and modesetting on amdgpu dc
Bonaire and later GPUs support atomic via AMD DC, available with kernel 4.15 and later.
With mesa 18.1.1 and 18.2.0-devel Android GUI fails to start because of an error due to unsupported AB24 format (RGBA_8888) which is propagated back by hwc-drm-display-compositor to hwc-drm-two (but same happened with hwc v1) and this prevents the correct modesetting.
The weird outcome is that bootanimation proceeds and the human user just sees text console.
In the drm_gralloc path there is a necessary workaround to lack of RGBA_8888 based on [1] and [2] which falls back to selection of EGL config based on a simpler query, which selects BGRA_8888, natively supported.
The purpose of this ticket is to assess if drm_hwcomposer needs changes or surfaceflinger HWcomposer code needs changes and proceed in solving the E2E problem affecting AMD DC.
Mauro Rossi
06-02 23:33:17.415 0 0 D : [drm:drm_atomic_check_only [drm]] AB24 little-endian (0x34324241), modifier 0x0
06-02 23:33:17.415 4922 4922 I hwc-drm-display-compositor: Commit test pset failed ret=-22
06-02 23:33:17.415 4922 4922 I hwc-drm-display-compositor: Commit test failed, squashing frame for display 0
06-02 23:33:17.415 4922 4922 E hwc-drm-display-compositor: Composite failed for display 0
06-02 23:33:17.415 4922 4922 E hwc-drm-two: Failed to apply the frame composition ret=-22
06-02 23:33:17.415 4922 4922 E HWComposer: presentAndGetReleaseFences: failed for display 0: BadParameter (4)