On Thu, Sep 27, 2018 at 9:06 PM Kps, Harish Krupo <harish.krupo.kps@intel.com> wrote:
> > - boot doesn't complete, stuck on android logo: similar CommitFrame error in
> > iahwcomposer (haven't tried your suggested hacks yet)
>
> Please try out those hacks.
>
> I will. For the record, I had tried the first one on O-MR1 and it didn't make any
> difference.
>

If the first one didn't work then please try both together.

So, I've applied the following patch. Graphics stack still doesn't start. The start of the logs for iahwcomposer and HWComposer are copied below.

=== PATCH ===

project vendor/intel/external/project-celadon/hwcomposer/
diff --git a/common/display/displayqueue.cpp b/common/display/displayqueue.cpp
index b1a1870..d7a24a8 100644
--- a/common/display/displayqueue.cpp
+++ b/common/display/displayqueue.cpp
@@ -662,8 +662,9 @@ bool DisplayQueue::QueueUpdate(std::vector<HwcLayer*>& source_layers,
   // If last commit failed, lets force full validation as
   // state might be all wrong in our side.
   bool idle_frame = tracker.RenderIdleMode();
-  bool validate_layers =
-      last_commit_failed_update_ || previous_plane_state_.empty();
+  //bool validate_layers =
+  //    last_commit_failed_update_ || previous_plane_state_.empty();
+  bool validate_layers = true;
   *retire_fence = -1;
 
   bool has_video_layer = false;
@@ -739,7 +740,8 @@ bool DisplayQueue::QueueUpdate(std::vector<HwcLayer*>& source_layers,
   }
 
   bool composition_passed = true;
-  bool disable_ovelays = state_ & kDisableOverlayUsage;
+  //bool disable_ovelays = state_ & kDisableOverlayUsage;
+  bool disable_ovelays = true;
   if (!validate_layers && tracker.RevalidateLayers()) {
     validate_layers = true;
   }

=== LOGS ===

09-28 14:39:33.292  1791  1791 I iahwcomposer: EXPLICIT SYNC support is enabled
09-28 14:39:33.292  1791  1791 I iahwcomposer: HWC Scaling Mode High Quality
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property CTM
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property CTM_POST_OFFSET
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property GAMMA_LUT
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectPropertyValue: Could not find property value GAMMA_LUT_SIZE
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property background_color
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property CTM
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property CTM_POST_OFFSET
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property GAMMA_LUT
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectPropertyValue: Could not find property value GAMMA_LUT_SIZE
09-28 14:39:33.294  1791  1791 E iahwcomposer: GetDrmObjectProperty: Could not find property background_color
09-28 14:39:33.297  1791  1791 E iahwcomposer: GetDrmHDCPObjectProperty: Could not find property Content Protection
09-28 14:39:33.298  1791  1791 E iahwcomposer: Initialize: Could not find property alpha
09-28 14:39:33.298  1791  1791 E iahwcomposer: Initialize: Could not get alpha property
09-28 14:39:33.299  1791  1791 E iahwcomposer: Initialize: Could not find property alpha
09-28 14:39:33.299  1791  1791 E iahwcomposer: Initialize: Could not get alpha property
09-28 14:39:33.300  1791  1791 E iahwcomposer: Initialize: Could not find property alpha
09-28 14:39:33.300  1791  1791 E iahwcomposer: Initialize: Could not get alpha property
09-28 14:39:33.300  1791  1791 E iahwcomposer: Initialize: Could not find property alpha
09-28 14:39:33.300  1791  1791 E iahwcomposer: Initialize: Could not get alpha property
09-28 14:39:33.310  1791  1791 I iahwcomposer: Hwc display config file is /vendor/etc/hwc_display.ini
09-28 14:39:33.310  1791  1791 I iahwcomposer: Failed to open /vendor/etc/hwc.lock file!
09-28 14:39:35.102  1800  1800 E HWComposer: getSupportedPerFrameMetadata: getSupportedPerFrameMetadata failed for display 0: Unsupported (8)
09-28 14:39:36.679  1791  1791 E iahwcomposer: ApplyPendingCTM: ctm_id_prop_ == 0
09-28 14:39:36.679  1791  1791 E iahwcomposer: CommitFrame: Failed to commit pset ret=Unknown error -22
09-28 14:39:36.679  1791  1791 E iahwcomposer: Commit: Failed to Commit layers.
09-28 14:39:36.679  1791  1791 E iahwcomposer: Failed to set layers in the composition
09-28 14:39:36.679  1800  1800 E HWComposer: presentAndGetReleaseFences: present failed for display 0: BadLayer (3)
09-28 14:39:36.686  1791  1791 E iahwcomposer: CommitFrame: Failed to commit pset ret=Unknown error -22
09-28 14:39:36.686  1791  1791 E iahwcomposer: Commit: Failed to Commit layers.
09-28 14:39:36.686  1791  1791 E iahwcomposer: Failed to set layers in the composition
09-28 14:39:36.686  1800  1800 E HWComposer: presentAndGetReleaseFences: present failed for display 0: BadLayer (3)