Merge tag 'v4.0-rc3' into drm-next
authorDave Airlie <airlied@redhat.com>
Mon, 9 Mar 2015 09:58:30 +0000 (19:58 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 9 Mar 2015 09:58:30 +0000 (19:58 +1000)
Linux 4.0-rc3 backmerge to fix two i915 conflicts, and get
some mainline bug fixes needed for my testing box

Conflicts:
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c

16 files changed:
1  2 
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_layer.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/msm/msm_atomic.c
drivers/gpu/drm/tegra/dc.c
include/drm/i915_pciids.h

index b81cea6baeea78032be6615e3abc0a3e6688017e,b3e3068c6ec07f8caa8bac6a4edc68e75741190d..d55c0c232e1d40c73520220d24a5ef2f5bc25488
@@@ -85,10 -153,10 +85,10 @@@ static void atmel_hlcdc_crtc_mode_set_n
                     (adj->crtc_hdisplay - 1) |
                     ((adj->crtc_vdisplay - 1) << 16));
  
-       cfg = ATMEL_HLCDC_CLKPOL;
+       cfg = 0;
  
        prate = clk_get_rate(crtc->dc->hlcdc->sys_clk);
 -      mode_rate = mode->crtc_clock * 1000;
 +      mode_rate = adj->crtc_clock * 1000;
        if ((prate / 2) < mode_rate) {
                prate *= 2;
                cfg |= ATMEL_HLCDC_CLKSEL;
Simple merge
Simple merge
Simple merge
index 2903090f25e5d193c1bef7f9ade1d0dfc73a43bb,8727086cf48ccce9e6548df8cf4e1d0df59012e7..ee5bc43dfc0bd4709818c9d3e4efef0ca0575966
@@@ -2027,9 -2140,17 +2030,18 @@@ struct drm_i915_gem_request 
        /** Position in the ringbuffer of the end of the whole request */
        u32 tail;
  
-       /** Context and ring buffer related to this request */
+       /**
 -       * Context related to this request
++       * Context and ring buffer related to this request
+        * Contexts are refcounted, so when this request is associated with a
+        * context, we must increment the context's refcount, to guarantee that
+        * it persists while any request is linked to it. Requests themselves
+        * are also refcounted, so the request will only be freed when the last
+        * reference to it is dismissed, and the code in
+        * i915_gem_request_free() will then decrement the refcount on the
+        * context.
+        */
        struct intel_context *ctx;
 +      struct intel_ringbuffer *ringbuf;
  
        /** Batch buffer related to this request if any */
        struct drm_i915_gem_object *batch_obj;
Simple merge
Simple merge
Simple merge
index dbd817928d0dfb3e45a4bf6ec7ce8e4023e9c115,e730789b53b7b0c141bada8400b398f67149275b..31f3b11589b99516b5a9b9e7e3db78126d8fef27
@@@ -2415,8 -2371,11 +2415,12 @@@ intel_alloc_plane_obj(struct intel_crt
        struct drm_device *dev = crtc->base.dev;
        struct drm_i915_gem_object *obj = NULL;
        struct drm_mode_fb_cmd2 mode_cmd = { 0 };
-       u32 base = plane_config->base;
 +      struct drm_framebuffer *fb = &plane_config->fb->base;
+       u32 base_aligned = round_down(plane_config->base, PAGE_SIZE);
+       u32 size_aligned = round_up(plane_config->base + plane_config->size,
+                                   PAGE_SIZE);
+       size_aligned -= base_aligned;
  
        if (plane_config->size == 0)
                return false;
@@@ -6752,10 -6640,9 +6767,10 @@@ i9xx_get_initial_plane_config(struct in
        fb->pitches[0] = val & 0xffffffc0;
  
        aligned_height = intel_fb_align_height(dev, fb->height,
 -                                             plane_config->tiling);
 +                                             fb->pixel_format,
 +                                             fb->modifier[0]);
  
-       plane_config->size = PAGE_ALIGN(fb->pitches[0] * aligned_height);
+       plane_config->size = fb->pitches[0] * aligned_height;
  
        DRM_DEBUG_KMS("pipe/plane %c/%d with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
                      pipe_name(pipe), plane, fb->width, fb->height,
@@@ -7801,10 -7677,9 +7816,10 @@@ skylake_get_initial_plane_config(struc
        fb->pitches[0] = (val & 0x3ff) * stride_mult;
  
        aligned_height = intel_fb_align_height(dev, fb->height,
 -                                             plane_config->tiling);
 +                                             fb->pixel_format,
 +                                             fb->modifier[0]);
  
-       plane_config->size = ALIGN(fb->pitches[0] * aligned_height, PAGE_SIZE);
+       plane_config->size = fb->pitches[0] * aligned_height;
  
        DRM_DEBUG_KMS("pipe %c with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
                      pipe_name(pipe), fb->width, fb->height,
@@@ -7898,10 -7768,9 +7913,10 @@@ ironlake_get_initial_plane_config(struc
        fb->pitches[0] = val & 0xffffffc0;
  
        aligned_height = intel_fb_align_height(dev, fb->height,
 -                                             plane_config->tiling);
 +                                             fb->pixel_format,
 +                                             fb->modifier[0]);
  
-       plane_config->size = PAGE_ALIGN(fb->pitches[0] * aligned_height);
+       plane_config->size = fb->pitches[0] * aligned_height;
  
        DRM_DEBUG_KMS("pipe %c with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
                      pipe_name(pipe), fb->width, fb->height,
Simple merge
Simple merge
Simple merge
Simple merge