Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f8b8398 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

Merge remote-tracking branch 'drm-intel/drm-intel-next-queued' into drm-intel-next-queued



Pull in patches Jani merged while I was at XDC.

Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
parents d1b9d039 a78695d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1137,6 +1137,10 @@ int i915_driver_unload(struct drm_device *dev)
		dev_priv->vbt.child_dev = NULL;
		dev_priv->vbt.child_dev = NULL;
		dev_priv->vbt.child_dev_num = 0;
		dev_priv->vbt.child_dev_num = 0;
	}
	}
	kfree(dev_priv->vbt.sdvo_lvds_vbt_mode);
	dev_priv->vbt.sdvo_lvds_vbt_mode = NULL;
	kfree(dev_priv->vbt.lfp_lvds_vbt_mode);
	dev_priv->vbt.lfp_lvds_vbt_mode = NULL;


	vga_switcheroo_unregister_client(dev->pdev);
	vga_switcheroo_unregister_client(dev->pdev);
	vga_client_register(dev->pdev, NULL, NULL, NULL);
	vga_client_register(dev->pdev, NULL, NULL, NULL);
+5 −5
Original line number Original line Diff line number Diff line
@@ -1713,8 +1713,8 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,


/**
/**
 * i915_gem_fault - fault a page into the GTT
 * i915_gem_fault - fault a page into the GTT
 * vma: VMA in question
 * @vma: VMA in question
 * vmf: fault info
 * @vmf: fault info
 *
 *
 * The fault handler is set up by drm_gem_mmap() when a object is GTT mapped
 * The fault handler is set up by drm_gem_mmap() when a object is GTT mapped
 * from userspace.  The fault handler takes care of binding the object to
 * from userspace.  The fault handler takes care of binding the object to
@@ -4985,9 +4985,9 @@ int i915_gem_open(struct drm_device *dev, struct drm_file *file)


/**
/**
 * i915_gem_track_fb - update frontbuffer tracking
 * i915_gem_track_fb - update frontbuffer tracking
 * old: current GEM buffer for the frontbuffer slots
 * @old: current GEM buffer for the frontbuffer slots
 * new: new GEM buffer for the frontbuffer slots
 * @new: new GEM buffer for the frontbuffer slots
 * frontbuffer_bits: bitmask of frontbuffer slots
 * @frontbuffer_bits: bitmask of frontbuffer slots
 *
 *
 * This updates the frontbuffer tracking bits @frontbuffer_bits by clearing them
 * This updates the frontbuffer tracking bits @frontbuffer_bits by clearing them
 * from @old and setting them in @new. Both @old and @new can be NULL.
 * from @old and setting them in @new. Both @old and @new can be NULL.
+13 −13
Original line number Original line Diff line number Diff line
@@ -17,8 +17,8 @@
/* pipe updates */
/* pipe updates */


TRACE_EVENT(i915_pipe_update_start,
TRACE_EVENT(i915_pipe_update_start,
	    TP_PROTO(struct intel_crtc *crtc, u32 min, u32 max),
	    TP_PROTO(struct intel_crtc *crtc),
	    TP_ARGS(crtc, min, max),
	    TP_ARGS(crtc),


	    TP_STRUCT__entry(
	    TP_STRUCT__entry(
			     __field(enum pipe, pipe)
			     __field(enum pipe, pipe)
@@ -33,8 +33,8 @@ TRACE_EVENT(i915_pipe_update_start,
			   __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
			   __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
										       crtc->pipe);
										       crtc->pipe);
			   __entry->scanline = intel_get_crtc_scanline(crtc);
			   __entry->scanline = intel_get_crtc_scanline(crtc);
			   __entry->min = min;
			   __entry->min = crtc->debug.min_vbl;
			   __entry->max = max;
			   __entry->max = crtc->debug.max_vbl;
			   ),
			   ),


	    TP_printk("pipe %c, frame=%u, scanline=%u, min=%u, max=%u",
	    TP_printk("pipe %c, frame=%u, scanline=%u, min=%u, max=%u",
@@ -43,8 +43,8 @@ TRACE_EVENT(i915_pipe_update_start,
);
);


TRACE_EVENT(i915_pipe_update_vblank_evaded,
TRACE_EVENT(i915_pipe_update_vblank_evaded,
	    TP_PROTO(struct intel_crtc *crtc, u32 min, u32 max, u32 frame),
	    TP_PROTO(struct intel_crtc *crtc),
	    TP_ARGS(crtc, min, max, frame),
	    TP_ARGS(crtc),


	    TP_STRUCT__entry(
	    TP_STRUCT__entry(
			     __field(enum pipe, pipe)
			     __field(enum pipe, pipe)
@@ -56,10 +56,10 @@ TRACE_EVENT(i915_pipe_update_vblank_evaded,


	    TP_fast_assign(
	    TP_fast_assign(
			   __entry->pipe = crtc->pipe;
			   __entry->pipe = crtc->pipe;
			   __entry->frame = frame;
			   __entry->frame = crtc->debug.start_vbl_count;
			   __entry->scanline = intel_get_crtc_scanline(crtc);
			   __entry->scanline = crtc->debug.scanline_start;
			   __entry->min = min;
			   __entry->min = crtc->debug.min_vbl;
			   __entry->max = max;
			   __entry->max = crtc->debug.max_vbl;
			   ),
			   ),


	    TP_printk("pipe %c, frame=%u, scanline=%u, min=%u, max=%u",
	    TP_printk("pipe %c, frame=%u, scanline=%u, min=%u, max=%u",
@@ -68,8 +68,8 @@ TRACE_EVENT(i915_pipe_update_vblank_evaded,
);
);


TRACE_EVENT(i915_pipe_update_end,
TRACE_EVENT(i915_pipe_update_end,
	    TP_PROTO(struct intel_crtc *crtc, u32 frame),
	    TP_PROTO(struct intel_crtc *crtc, u32 frame, int scanline_end),
	    TP_ARGS(crtc, frame),
	    TP_ARGS(crtc, frame, scanline_end),


	    TP_STRUCT__entry(
	    TP_STRUCT__entry(
			     __field(enum pipe, pipe)
			     __field(enum pipe, pipe)
@@ -80,7 +80,7 @@ TRACE_EVENT(i915_pipe_update_end,
	    TP_fast_assign(
	    TP_fast_assign(
			   __entry->pipe = crtc->pipe;
			   __entry->pipe = crtc->pipe;
			   __entry->frame = frame;
			   __entry->frame = frame;
			   __entry->scanline = intel_get_crtc_scanline(crtc);
			   __entry->scanline = scanline_end;
			   ),
			   ),


	    TP_printk("pipe %c, frame=%u, scanline=%u",
	    TP_printk("pipe %c, frame=%u, scanline=%u",
+1 −1
Original line number Original line Diff line number Diff line
@@ -2882,7 +2882,7 @@ static bool bxt_ddi_pll_get_hw_state(struct drm_i915_private *dev_priv,
	 * here just read out lanes 0/1 and output a note if lanes 2/3 differ.
	 * here just read out lanes 0/1 and output a note if lanes 2/3 differ.
	 */
	 */
	hw_state->pcsdw12 = I915_READ(BXT_PORT_PCS_DW12_LN01(port));
	hw_state->pcsdw12 = I915_READ(BXT_PORT_PCS_DW12_LN01(port));
	if (I915_READ(BXT_PORT_PCS_DW12_LN23(port) != hw_state->pcsdw12))
	if (I915_READ(BXT_PORT_PCS_DW12_LN23(port)) != hw_state->pcsdw12)
		DRM_DEBUG_DRIVER("lane stagger config different for lane 01 (%08x) and 23 (%08x)\n",
		DRM_DEBUG_DRIVER("lane stagger config different for lane 01 (%08x) and 23 (%08x)\n",
				 hw_state->pcsdw12,
				 hw_state->pcsdw12,
				 I915_READ(BXT_PORT_PCS_DW12_LN23(port)));
				 I915_READ(BXT_PORT_PCS_DW12_LN23(port)));
+3 −0
Original line number Original line Diff line number Diff line
@@ -4582,6 +4582,9 @@ static bool cpt_digital_port_connected(struct drm_i915_private *dev_priv,
	case PORT_D:
	case PORT_D:
		bit = SDE_PORTD_HOTPLUG_CPT;
		bit = SDE_PORTD_HOTPLUG_CPT;
		break;
		break;
	case PORT_E:
		bit = SDE_PORTE_HOTPLUG_SPT;
		break;
	default:
	default:
		MISSING_CASE(port->port);
		MISSING_CASE(port->port);
		return false;
		return false;
Loading