Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-qy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-qy
  • Repository
Switch branch/tag
  • linux-qy
  • drivers
  • gpu
  • drm
  • i915
  • display
  • intel_display_power.c
Find file BlameHistoryPermalink
  • Jani Nikula's avatar
    drm/i915: update rawclk also on resume · 2f216a85
    Jani Nikula authored Nov 01, 2019
    
    
    Since CNP it's possible for rawclk to have two different values, 19.2
    and 24 MHz. If the value indicated by SFUSE_STRAP register is different
    from the power on default for PCH_RAWCLK_FREQ, we'll end up having a
    mismatch between the rawclk hardware and software states after
    suspend/resume. On previous platforms this used to work by accident,
    because the power on defaults worked just fine.
    
    Update the rawclk also on resume. The natural place to do this would be
    intel_modeset_init_hw(), however VLV/CHV need it done before
    intel_power_domains_init_hw(). Thus put it there even if it feels
    slightly out of place.
    
    v2: Call intel_update_rawclck() in intel_power_domains_init_hw() for all
        platforms (Ville).
    
    Reported-by: default avatarShawn Lee <shawn.c.lee@intel.com>
    Cc: Shawn Lee <shawn.c.lee@intel.com>
    Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Tested-by: default avatarShawn Lee <shawn.c.lee@intel.com>
    Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20191101142024.13877-1-jani.nikula@intel.com
    (cherry picked from commit 59ed05cc
    
    )
    Cc: <stable@vger.kernel.org> # v4.15+
    Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
    2f216a85