• Ville Syrjälä's avatar
    drm/i915: Disable FDI RX before DDI_BUF_CTL · 5b421c57
    Ville Syrjälä authored
    Bspec is confused w.r.t. the HSW/BDW FDI disable sequence. It lists
    FDI RX disable both as step 13 and step 18 in the sequence. But I dug
    up an old BUN mail from Art that moved the FDI RX disable to happen
    before DDI_BUF_CTL disable. That BUN did not renumber the steps and just
    added a note:
    "Workaround: Disable PCH FDI Receiver before disabling DDI_BUF_CTL."
    
    The BUN described the symptoms of the fixed issue as:
    "PCH display underflow and a black screen on the analog CRT port that
    happened after a FDI re-train"
    
    I suppose later someone tried to renumber the steps to match, but forgot
    to remove the FDI RX disable from its old position in the sequence.
    
    They also forgot to update the note describing what should be done in
    case of an FDI training failure. Currently it says:
    "To retry FDI training, follow the Disable Sequence steps to Disable FDI,
    but skip the steps related to clocks and PLLs (16, 19, and 20), ..."
    
    It should really say "17, 20, and 21" with the current sequence because
    those are the steps that deal with PLLs and whatnot, after step 13 became
    FDI RX disable. And had the step 18 FDI RX disable been removed, as I
    suspect it should have, the note should actually say "17, 19, and 20".
    
    So, let's move the FDI RX disable to happen before DDI_BUF_CTL disable,
    as that would appear to be the correct order based on the BUN.
    
    Note that Art has since unconfused the spec, and so this patch should
    now match the steps listed in the spec.
    
    v2: Add a note that the spec is now correct
    
    Cc: Paulo Zanoni <przanoni@gmail.com>
    Cc: Art Runyan <arthur.j.runyan@intel.com>
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Link: http://patchwork.freedesktop.org/patch/msgid/1456841783-4779-1-git-send-email-ville.syrjala@linux.intel.comReviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    5b421c57
intel_ddi.c 63.5 KB