Skip to content
Snippets Groups Projects
Select Git revision
6 results Searching

drm_connector.h

Blame
    • Shashank Sharma's avatar
      afa1c763
      drm/edid: detect SCDC support in HF-VSDB · afa1c763
      Shashank Sharma authored
      
      This patch does following:
      - Adds a new structure (drm_hdmi_info) in drm_display_info.
        This structure will be used to save and indicate if sink
        supports advanced HDMI 2.0 features
      - Adds another structure drm_scdc within drm_hdmi_info, to
        reflect scdc support and capabilities in connected HDMI 2.0 sink.
      - Checks the HF-VSDB block for presence of SCDC, and marks it
        in scdc structure
      - If SCDC is present, checks if sink is capable of generating
        SCDC read request, and marks it in scdc structure.
      
      V2: Addressed review comments
       Thierry:
       - Fix typos in commit message and make abbreviation consistent
         across the commit message.
       - Change structure object name from hdmi_info -> hdmi
       - Fix typos and abbreviations in description of structure drm_hdmi_info
         end the description with a full stop.
       - Create a structure drm_scdc, and keep all information related to SCDC
         register set (supported, read request supported) etc in it.
      
      Ville:
       - Change rr -> read_request
       - Call drm_detect_scrambling function drm_parse_hf_vsdb so that all
         of HF-VSDB parsing can be kept in same function, in incremental
         patches.
      
      V3: Rebase.
      V4: Rebase.
      V5: Rebase.
      V6: Rebase.
      V7: Added R-B from Jose.
      V8: Rebase.
      V9: Rebase.
      V10: Rebase.
      
      Signed-off-by: default avatarShashank Sharma <shashank.sharma@intel.com>
      Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
      Reviewed-by: default avatarJose Abreu <joabreu@synopsys.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1489404244-16608-4-git-send-email-shashank.sharma@intel.com
      afa1c763
      History
      drm/edid: detect SCDC support in HF-VSDB
      Shashank Sharma authored
      
      This patch does following:
      - Adds a new structure (drm_hdmi_info) in drm_display_info.
        This structure will be used to save and indicate if sink
        supports advanced HDMI 2.0 features
      - Adds another structure drm_scdc within drm_hdmi_info, to
        reflect scdc support and capabilities in connected HDMI 2.0 sink.
      - Checks the HF-VSDB block for presence of SCDC, and marks it
        in scdc structure
      - If SCDC is present, checks if sink is capable of generating
        SCDC read request, and marks it in scdc structure.
      
      V2: Addressed review comments
       Thierry:
       - Fix typos in commit message and make abbreviation consistent
         across the commit message.
       - Change structure object name from hdmi_info -> hdmi
       - Fix typos and abbreviations in description of structure drm_hdmi_info
         end the description with a full stop.
       - Create a structure drm_scdc, and keep all information related to SCDC
         register set (supported, read request supported) etc in it.
      
      Ville:
       - Change rr -> read_request
       - Call drm_detect_scrambling function drm_parse_hf_vsdb so that all
         of HF-VSDB parsing can be kept in same function, in incremental
         patches.
      
      V3: Rebase.
      V4: Rebase.
      V5: Rebase.
      V6: Rebase.
      V7: Added R-B from Jose.
      V8: Rebase.
      V9: Rebase.
      V10: Rebase.
      
      Signed-off-by: default avatarShashank Sharma <shashank.sharma@intel.com>
      Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
      Reviewed-by: default avatarJose Abreu <joabreu@synopsys.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1489404244-16608-4-git-send-email-shashank.sharma@intel.com
    cpu.c 60.48 KiB
    /* CPU control.
     * (C) 2001, 2002, 2003, 2004 Rusty Russell
     *
     * This code is licenced under the GPL.
     */
    #include <linux/proc_fs.h>
    #include <linux/smp.h>
    #include <linux/init.h>
    #include <linux/notifier.h>
    #include <linux/sched/signal.h>
    #include <linux/sched/hotplug.h>
    #include <linux/sched/isolation.h>
    #include <linux/sched/task.h>
    #include <linux/sched/smt.h>
    #include <linux/unistd.h>
    #include <linux/cpu.h>
    #include <linux/oom.h>
    #include <linux/rcupdate.h>
    #include <linux/export.h>
    #include <linux/bug.h>
    #include <linux/kthread.h>
    #include <linux/stop_machine.h>
    #include <linux/mutex.h>
    #include <linux/gfp.h>
    #include <linux/suspend.h>
    #include <linux/lockdep.h>
    #include <linux/tick.h>
    #include <linux/irq.h>
    #include <linux/nmi.h>
    #include <linux/smpboot.h>
    #include <linux/relay.h>
    #include <linux/slab.h>
    #include <linux/percpu-rwsem.h>
    
    #include <trace/events/power.h>
    #define CREATE_TRACE_POINTS
    #include <trace/events/cpuhp.h>
    
    #include "smpboot.h"
    
    /**
     * cpuhp_cpu_state - Per cpu hotplug state storage
     * @state:	The current cpu state
     * @target:	The target state
     * @thread:	Pointer to the hotplug thread
     * @should_run:	Thread should execute
     * @rollback:	Perform a rollback
     * @single:	Single callback invocation
     * @bringup:	Single callback bringup or teardown selector
     * @cb_state:	The state for a single callback (install/uninstall)
     * @result:	Result of the operation
     * @done_up:	Signal completion to the issuer of the task for cpu-up
     * @done_down:	Signal completion to the issuer of the task for cpu-down
     */
    struct cpuhp_cpu_state {
    	enum cpuhp_state	state;
    	enum cpuhp_state	target;
    	enum cpuhp_state	fail;
    #ifdef CONFIG_SMP
    	struct task_struct	*thread;
    	bool			should_run;
    	bool			rollback;
    	bool			single;
    	bool			bringup;
    	struct hlist_node	*node;
    	struct hlist_node	*last;
    	enum cpuhp_state	cb_state;
    	int			result;
    	struct completion	done_up;
    	struct completion	done_down;