10 Sep, 2014

1 commit

  • Including headers somewhere else but at the top is ugly, deprecated and
    was used in early days only to speed up compile-times. Those days are
    over. Make headers independent and then move the inclusions to the top.

    Signed-off-by: David Herrmann
    Reviewed-by: Thierry Reding
    Signed-off-by: Dave Airlie

    David Herrmann
     

03 Sep, 2014

1 commit

  • drm-intel-next-2014-08-22:
    - basic code for execlist, which is the fancy new cmd submission on gen8. Still
    disabled by default (Ben, Oscar Mateo, Thomas Daniel et al)
    - remove the useless usage of console_lock for I915_FBDEV=n (Chris)
    - clean up relations between ctx and ppgtt
    - clean up ppgtt lifetime handling (Michel Thierry)
    - various cursor code improvements from Ville
    - execbuffer code cleanups and secure batch fixes (Chris)
    - prep work for dev -> dev_priv transition (Chris)
    - some of the prep patches for the seqno -> request object transition (Chris)
    - various small improvements all over

    * tag 'drm-intel-next-2014-09-01' of git://anongit.freedesktop.org/drm-intel: (86 commits)
    drm/i915: fix suspend/resume for GENs w/o runtime PM support
    drm/i915: Update DRIVER_DATE to 20140822
    drm: fix plane rotation when restoring fbdev configuration
    drm/i915/bdw: Disable execlists by default
    drm/i915/bdw: Enable Logical Ring Contexts (hence, Execlists)
    drm/i915/bdw: Document Logical Rings, LR contexts and Execlists
    drm/i915/bdw: Print context state in debugfs
    drm/i915/bdw: Display context backing obj & ringbuffer info in debugfs
    drm/i915/bdw: Display execlists info in debugfs
    drm/i915/bdw: Disable semaphores for Execlists
    drm/i915/bdw: Make sure gpu reset still works with Execlists
    drm/i915/bdw: Don't write PDP in the legacy way when using LRCs
    drm/i915: Track cursor changes as frontbuffer tracking flushes
    drm/i915/bdw: Help out the ctx switch interrupt handler
    drm/i915/bdw: Avoid non-lite-restore preemptions
    drm/i915/bdw: Handle context switch events
    drm/i915/bdw: Two-stage execlist submit process
    drm/i915/bdw: Write the tail pointer, LRC style
    drm/i915/bdw: Implement context switching (somewhat)
    drm/i915/bdw: Emission of requests with logical rings
    ...

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

    Dave Airlie
     

26 Aug, 2014

1 commit

  • - Setting dp M2/N2 values plus state checker support (Vandana Kannan)
    - chv power well support (Ville)
    - DP training pattern 3 support for chv (Ville)
    - cleanup of the hsw/bdw ddi pll code, prep work for skl (Damien)
    - dsi video burst mode support (Shobhit)
    - piles of other chv fixes all over (Ville et. al.)
    - cleanup of the ddi translation tables setup code (Damien)
    - 180 deg rotation support (Ville & Sonika Jindal)

    * tag 'drm-intel-next-2014-08-08' of git://anongit.freedesktop.org/drm-intel: (59 commits)
    drm/i915: Update DRIVER_DATE to 20140808
    drm/i915: No busy-loop wait_for in the ring init code
    drm/i915: Add sprite watermark programming for VLV and CHV
    drm/i915: Round-up clock and limit drain latency
    drm/i915: Generalize drain latency computation
    drm/i915: Free pending page flip events at .preclose()
    drm/i915: clean up PPGTT checking logic
    drm/i915: Polish the chv cmnlane resrt macros
    drm/i915: Hack to tie both common lanes together on chv
    drm/i915: Add cherryview_update_wm()
    drm/i915: Update DDL only for current CRTC
    drm/i915: Parametrize VLV_DDL registers
    drm/i915: Fill out the FWx watermark register defines
    drm: Resetting rotation property
    drm/i915: Add rotation property for sprites
    drm: Add rotation_property to mode_config
    drm/i915: Make intel_plane_restore() return an error
    drm/i915: Add 180 degree sprite rotation support
    drm/i915: Introduce a for_each_intel_encoder() macro
    drm/i915: Demote the DRRS messages to debug messages
    ...

    Dave Airlie
     

20 Aug, 2014

1 commit

  • Make sure plane rotation is reset correctly when restoring the fbdev
    configuration by using drm_mode_plane_set_obj_prop which calls the
    driver's set_property callback.

    The rotation reset feature was introduced in commit 9783de2 (drm:
    Resetting rotation property) and the callback issue was originally
    addressed in a previous version of the patch, but the fix was not
    present in the final version.

    v2: Fix documentation warning
    Add some more details to the commit message (Daniel Vetter)

    Testcase: igt/kms_rotation_crc
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82236
    Cc: Sonika Jindal
    Cc: Ville Syrjälä
    Cc: Dave Airlie
    Cc: Daniel Vetter
    Signed-off-by: Thomas Wood
    Signed-off-by: Daniel Vetter

    Thomas Wood
     

11 Aug, 2014

1 commit

  • In general having this can't hurt, and the atomic helpers will need
    it to be able to reset the state objects properly. The overall idea
    is to reset in the order pixels flow, so planes -> crtcs ->
    encoders -> connectors.

    v2: Squash in fixup from Ville to correctly deference struct drm_plane
    instead of drm_crtc when walking the plane list. Fixes an oops in
    driver init and resume.

    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

08 Aug, 2014

5 commits

  • Atomic implemenations for legacy ioctls must be able to drop locks.
    Which doesn't cause havoc since we only do that while constructing
    the new state, so no driver or hardware state change has happened.

    The only troubling bit is the fb refcounting the core does - if
    someone else has snuck in then it might potentially unref an
    outdated framebuffer. To fix that move the old_fb temporary storage
    into struct drm_plane for all ioctls, so that the atomic helpers can
    update it.

    v2: Fix up the error case handling as suggested by Matt Roper and just
    grab locks uncoditionally - there's no point in optimizing the locking
    for when userspace gets it wrong.

    Cc: Matt Roper
    Cc: Dave Airlie
    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • So drivers using the atomic interfaces expect that they can acquire
    additional locks internal to the driver as-needed. Examples would be
    locks to protect shared state like shared display PLLs.

    Unfortunately the legacy ioctls assume that all locking is fully done
    by the drm core. Now for those paths which grab all locks we already
    have to keep around an acquire context in dev->mode_config. Helper
    functions that implement legacy interfaces in terms of atomic support
    can therefore grab this acquire contexts and reuse it.

    The only interfaces left are the cursor and pageflip ioctls. So add
    functions to grab the crtc lock these need using an acquire context
    and preserve it for atomic drivers to reuse.

    v2:
    - Fixup comments&kerneldoc.
    - Drop the WARNING from modeset_lock_all_crtcs since that can be used
    in legacy paths with crtc locking.

    v3: Fix a type on the kerneldoc Dave spotted.

    Cc: Dave Airlie
    Reviewed-by: Dave Airlie
    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • Somehow we've forgotten about this little bit of OCD.

    Reviewed-by: Dave Airlie
    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • In the atomic state we'll have an array of states for crtcs, planes
    and connectors and need to be able to at them by their index. We
    already have a drm_crtc_index function so add the missing ones for
    planes and connectors.

    If it later on turns out that the list walking is too expensive we can
    add the index to the relevant modeset objects.

    Rob Clark doesn't like the loops too much, but we can always add an
    obj->idx parameter later on. And for now reiterating is actually safer
    since nowadays we have hotpluggable connectors (thanks to DP MST).

    v2: Fix embarrassing copypasta fail in kerneldoc and header
    declarations, spotted by Matt Roper.

    Cc: Matt Roper
    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • Signed-off-by: Sonika Jindal
    Reviewed-by: Ville Syrjälä
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Sonika Jindal
     

06 Aug, 2014

1 commit

  • i915.ko has a custom fbdev initialisation routine that aims to preserve
    the current mode set by the BIOS, unless overruled by the user. The
    user's wishes are determined by what, if any, mode is specified on the
    command line (via the video= parameter). However, that command line mode
    is first parsed by drm_fb_helper_initial_config() which is called after
    i915.ko's custom initial_config() as a fallback method. So in order for
    us to honour it, we need to move the cmdline parser earlier. If we
    perform the connector cmdline parsing as soon as we initialise the
    connector, that cmdline mode and forced status is then available even if
    the fbdev helper is not compiled in or never called.

    We also then expose the cmdline user mode in the connector mode lists.

    v2: Rebase after connector->name upheaval.

    v3: Adapt mga200 to look for the cmdline mode in the new place. Nicely
    simplifies things while at that.

    v4: Fix checkpatch.

    v5: Select FB_CMDLINE to adapt to the changed fbdev patch.

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73154
    Signed-off-by: Chris Wilson (v2)
    Cc: Jesse Barnes
    Cc: Ville Syrjälä
    Cc: Daniel Vetter
    Reviewed-by: Jesse Barnes (v2)
    Cc: dri-devel@lists.freedesktop.org
    Cc: Julia Lemire
    Cc: Dave Airlie
    Signed-off-by: Daniel Vetter

    Chris Wilson
     

30 Jul, 2014

1 commit


23 Jul, 2014

2 commits

  • Added a property to enable user space to set aspect ratio.
    This patch contains declaration of the property and code to create the
    property.

    v2: Thierry's review comments.
    - Made aspect ratio enum generic instead of HDMI/CEA specfic
    - Removed usage of temporary aspect_ratio variable

    v3: Thierry's review comments.
    - Fixed indentation

    v4: Thierry's review comments.
    - Return ENOMEM when property creation fails

    Signed-off-by: Vandana Kannan
    Cc: Thierry Reding
    Reviewed-by: Thierry Reding
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Vandana Kannan
     
  • Merge armada changes, I've confirmed the componenet changes are same as in Greg's tree.
    * 'drm-armada-devel' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
    drm/armada: register crtc with port
    drm/armada: permit CRTCs to be registered as separate devices
    dt-bindings: add Marvell Dove LCD controller documentation
    drm/armada: update Armada 510 (Dove) to use "ext_ref_clk1" as the clock
    drm/armada: convert to componentized support
    drm: add of_graph endpoint helper to find possible CRTCs
    component: fix bug with legacy API
    drm/armada: make variant a CRTC thing
    drm/armada: move variant initialisation to CRTC init
    drm/armada: use number of CRTCs registered
    drm/armada: move IRQ handling into CRTC
    component: add support for component match array
    component: ignore multiple additions of the same component
    component: fix missed cleanup in case of devres failure

    Dave Airlie
     

12 Jul, 2014

4 commits

  • drm_rotation_simplify() can be used to eliminate unsupported rotation
    flags. It will check if any unsupported flags are present, and if so
    it will modify the rotation to an alternate form by adding 180 degrees
    to rotation angle, and flipping the reflect x and y bits. The hope is
    that this identity transform will eliminate the unsupported flags.

    Of course that might not result in any more supported rotation, so
    the caller is still responsible for checking the result afterwards.

    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: Ville Syrjälä
    Reviewed-by: Imre Deak
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Ville Syrjälä
     
  • Add a function to create a standards compliant rotation property.

    Signed-off-by: Ville Syrjälä
    Reviewed-by: Imre Deak
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Ville Syrjälä
     
  • Make drm_property_create_bitmask() a bit more generic by allowing the
    caller to specify which bits are in fact supported. This allows multiple
    callers to use the same enum list, but still create different versions
    of the same property with different list of supported bits.

    v2: Populate values[] array as non-sparse
    Make supported_bits 64bit
    Fix up omapdrm call site (Rob)

    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: Ville Syrjälä
    Reviewed-by: Imre Deak
    Reviewed-by: Sagar Kamble
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Ville Syrjälä
     
  • The rotation property stuff should be standardized among all drivers.
    Move the bits to drm_crtc.h from omap_drv.h.

    Signed-off-by: Ville Syrjälä
    Reviewed-by: Imre Deak
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Ville Syrjälä
     

11 Jul, 2014

1 commit

  • Add a helper to allow encoders to find their possible CRTCs from the
    OF graph without having to re-implement this functionality. We add a
    device_node to drm_crtc which corresponds with the port node in the
    DT description of the CRTC device.

    We can then scan the DRM device list for CRTCs to find their index,
    matching the appropriate CRTC using the port device_node, thus building
    up the possible CRTC mask.

    Reviewed-by: Rob Clark
    Signed-off-by: Russell King

    Russell King
     

09 Jul, 2014

1 commit

  • - Accurate frontbuffer tracking and frontbuffer rendering invalidate, flush and
    flip events. This is prep work for proper PSR support and should also be
    useful for DRRS&fbc.
    - Runtime suspend hardware on system suspend to support the new SOix sleep
    states, from Jesse.
    - PSR updates for broadwell (Rodrigo)
    - Universal plane support for cursors (Matt Roper), including core drm patches.
    - Prefault gtt mappings (Chris)
    - baytrail write-enable pte bit support (Akash Goel)
    - mmio based flips (Sourab Gupta) instead of blitter ring flips
    - interrupt handling race fixes (Oscar Mateo)

    And old, not yet merged features from the previous round:
    - rps/turbo support for chv (Deepak)
    - some other straggling chv patches (Ville)
    - proper universal plane conversion for the primary plane (Matt Roper)
    - ppgtt on vlv from Jesse
    - pile of cleanups, little fixes for insane corner cases and improved debug
    support all over

    * tag 'drm-intel-next-2014-06-20' of git://anongit.freedesktop.org/drm-intel: (99 commits)
    drm/i915: Update DRIVER_DATE to 20140620
    drivers/i915: Fix unnoticed failure of init_ring_common()
    drm/i915: Track frontbuffer invalidation/flushing
    drm/i915: Use new frontbuffer bits to increase pll clock
    drm/i915: don't take runtime PM reference around freeze/thaw
    drm/i915: use runtime irq suspend/resume in freeze/thaw
    drm/i915: Properly track domain of the fbcon fb
    drm/i915: Print obj->frontbuffer_bits in debugfs output
    drm/i915: Introduce accurate frontbuffer tracking
    drm/i915: Drop schedule_back from psr_exit
    drm/i915: Ditch intel_edp_psr_update
    drm/i915: Drop unecessary complexity from psr_inactivate
    drm/i915: Remove ctx->last_ring
    drm/i915/chv: Ack interrupts before handling them (CHV)
    drm/i915/bdw: Ack interrupts before handling them (GEN8)
    drm/i915/vlv: Ack interrupts before handling them (VLV)
    drm/i915: Ack interrupts before handling them (GEN5 - GEN7)
    drm/i915: Don't BUG_ON in i915_gem_obj_offset
    drm/i915: Grab dev->struct_mutex in i915_gem_pageflip_info
    drm/i915: Add some L3 registers to the parser whitelist
    ...

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

    Dave Airlie
     

08 Jul, 2014

2 commits


19 Jun, 2014

3 commits

  • Add a file to debugfs for each connector to allow the EDID to be
    overridden.

    v2: Copy ubuf before accessing it and reject invalid length data. (David
    Herrmann)
    Ensure override_edid is reset when a new EDID value is written.
    (David Herrmann)
    Fix the debugfs file permissions. (David Herrmann)

    Signed-off-by: Thomas Wood
    Reviewed-by: Alex Deucher
    Signed-off-by: Daniel Vetter

    Thomas Wood
     
  • Add a file to debugfs for each connector to enable modification of the
    "force" connector attribute. This allows connectors to be enabled or
    disabled for testing and debugging purposes.

    v2: Add stricter value checking and clean up debugfs_entry if file
    creation fails in drm_debugfs_connector_add. (David Herrmann)

    Signed-off-by: Thomas Wood
    Reviewed-by: Alex Deucher
    Signed-off-by: Daniel Vetter

    Thomas Wood
     
  • Introduce generic functions to register and unregister connectors. This
    provides a common place to add and remove associated user space
    interfaces.

    Signed-off-by: Thomas Wood
    Reviewed-by: David Herrmann
    Signed-off-by: Daniel Vetter

    Thomas Wood
     

13 Jun, 2014

2 commits

  • Universal plane support had placeholders for cursor planes, but didn't
    actually do anything with them. Save the cursor plane reference inside
    the crtc and update the cursor plane parameter from void* to drm_plane.

    Reviewed-by: Daniel Vetter
    Signed-off-by: Matt Roper
    Reviewed-by: Pallavi G
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Matt Roper
     
  • If drivers support universal planes and have registered a cursor plane
    with the DRM core, we should use that universal plane support when
    handling legacy cursor ioctls. Drivers that transition to universal
    planes won't have to maintain separate legacy ioctl handling; drivers
    that don't transition to universal planes will continue to operate
    without any change to behavior.

    Note that there's a bit of a mismatch between the legacy cursor ioctls
    and the universal plane API's --- legacy ioctl's use driver buffer
    handles directly whereas the universal plane API takes drm_framebuffers.
    Since there's no way to recover the driver handle from a
    drm_framebuffer, we can implement legacy ioctl's in terms of universal
    plane interfaces, but cannot implement universal plane interfaces in
    terms of legacy ioctls. Specifically, there's no way to create a
    general cursor helper in the way we previously created a primary plane
    helper.

    It's important to land this patch before any patches that add universal
    cursor support to individual drivers so that drivers don't have to worry
    about juggling two different styles of reference counting for cursor
    buffers when userspace mixes and matches legacy and universal cursor
    calls. With this patch, a driver that switches to universal cursor
    support may assume that all cursor buffers are wrapped in a
    drm_framebuffer and can rely on framebuffer reference counting for all
    cursor operations.

    v4:
    - Add comments pointing out setplane_internal's reference-eating
    semantics.
    v3:
    - Drop drm_mode_rmfb() call that is no longer needed now that we're
    using setplane_internal(), which takes care of deref'ing the
    appropriate framebuffer.
    v2:
    - Use new add_framebuffer_internal() function to create framebuffer
    rather than trying to call directly into the ioctl interface and
    look up the handle returned.
    - Use new setplane_internal() function to update the cursor plane
    rather than calling through the ioctl interface. Note that since
    we're no longer looking up an fb_id, no extra reference will be
    taken here.
    - Grab extra reference to fb under lock in !BO case to avoid issues
    where racing userspace could cause the fb to be destroyed out from
    under us after we grab the fb pointer.

    Reviewed-by: Daniel Vetter
    Signed-off-by: Matt Roper
    Reviewed-by: Pallavi G
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter

    Matt Roper
     

10 Jun, 2014

1 commit


05 Jun, 2014

1 commit

  • For atomic, it will be quite necessary to not need to care so much
    about locking order. And 'state' gives us a convenient place to stash a
    ww_ctx for any sort of update that needs to grab multiple crtc locks.

    Because we will want to eventually make locking even more fine grained
    (giving locks to planes, connectors, etc), split out drm_modeset_lock
    and drm_modeset_acquire_ctx to track acquired locks.

    Atomic will use this to keep track of which locks have been acquired
    in a transaction.

    v1: original
    v2: remove a few things not needed until atomic, for now
    v3: update for v3 of connection_mutex patch..
    v4: squash in docbook
    v5: doc tweaks/fixes

    Signed-off-by: Rob Clark
    Reviewed-by: Daniel Vetter
    Signed-off-by: Dave Airlie

    Rob Clark
     

04 Jun, 2014

6 commits

  • After the split-out of crtc locks from the big mode_config.mutex
    there's still two major areas it protects:
    - Various connector probe states, like connector->status, EDID
    properties, probed mode lists and similar information.
    - The links from connector->encoder and encoder->crtc and other
    modeset-relevant connector state (e.g. properties which control the
    panel fitter).

    The later is used by modeset operations. But they don't really care
    about the former since it's allowed to e.g. enable a disconnected VGA
    output or with a mode not in the probed list.

    Thus far this hasn't been a problem, but for the atomic modeset
    conversion Rob Clark needs to convert all modeset relevant locks into
    w/w locks. This is required because the order of acquisition is
    determined by how userspace supplies the atomic modeset data. This has
    run into troubles in the detect path since the i915 load detect code
    needs _both_ protections offered by the mode_config.mutex: It updates
    probe state and it needs to change the modeset configuration to enable
    the temporary load detect pipe.

    The big deal here is that for the probe/detect users of this lock a
    plain mutex fits best, but for atomic modesets we really want a w/w
    mutex. To fix this lets split out a new connection_mutex lock for the
    modeset relevant parts.

    For simplicity I've decided to only add one additional lock for all
    connector/encoder links and modeset configuration states. We have
    piles of different modeset objects in addition to those (like bridges
    or panels), so adding per-object locks would be much more effort.

    Also, we're guaranteed (at least for now) to do a full modeset if we
    need to acquire this lock. Which means that fine-grained locking is
    fairly irrelevant compared to the amount of time the full modeset will
    take.

    I've done a full audit, and there's just a few things that justify
    special focus:
    - Locking in drm_sysfs.c is almost completely absent. We should
    sprinkle mode_config.connection_mutex over this file a bit, but
    since it already lacks mode_config.mutex this patch wont make the
    situation any worse. This is material for a follow-up patch.

    - omap has a omap_framebuffer_flush function which walks the
    connector->encoder->crtc links and is called from many contexts.
    Some look like they don't acquire mode_config.mutex, so this is
    already racy. Again fixing this is material for a separate patch.

    - The radeon hot_plug function to retrain DP links looks at
    connector->dpms. Currently this happens without any locking, so is
    already racy. I think radeon_hotplug_work_func should gain
    mutex_lock/unlock calls for the mode_config.connection_mutex.

    - Same applies to i915's intel_dp_hot_plug. But again, this is already
    racy.

    - i915 load_detect code needs to acquire this lock. Which means the
    w/w dance due to Rob's work will be nicely contained to _just_ this
    function.

    I've added fixme comments everywhere where it looks suspicious but in
    the sysfs code. After a quick irc discussion with Dave Airlie it
    sounds like the lack of locking in there is due to sysfs cleanup fun
    at module unload.

    v1: original (only compile tested)

    v2: missing mutex_init(), etc (from Rob Clark)

    v3: i915 needs more care in the conversion:
    - Protect the edp pp logic with the connection_mutex.
    - Use connection_mutex in the backlight code due to
    get_pipe_from_connector.
    - Use drm_modeset_lock_all in suspend/resume paths.
    - Update lock checks in the overlay code.

    Cc: Alex Deucher
    Cc: Rob Clark
    Signed-off-by: Daniel Vetter
    Reviewed-by: Rob Clark

    Daniel Vetter
     
  • Like range, but values are signed.

    Signed-off-by: Rob Clark
    Reviewed-by: David Herrmann

    Rob Clark
     
  • An object property is an id (idr) for a drm mode object. This
    will allow a property to be used set/get a framebuffer, CRTC, etc.

    Signed-off-by: Rob Clark
    Reviewed-by: Daniel Vetter

    Rob Clark
     
  • If we continue to use bitmask for type, we will quickly run out of room
    to add new types. Split this up so existing part of bitmask range
    continues to function as before, but reserve a chunk of the remaining
    space for an integer type-id. Wrap this all up in some type-check
    helpers to keep the backwards-compat uglyness contained.

    Signed-off-by: Rob Clark
    Reviewed-by: Daniel Vetter

    Rob Clark
     
  • Add a few more useful helpers to find mode objects.

    Signed-off-by: Rob Clark
    Reviewed-by: Daniel Vetter

    Rob Clark
     
  • No longer used or needed as the structs have a name field.

    Acked-by: David Herrmann
    Signed-off-by: Jani Nikula
    Signed-off-by: Dave Airlie

    Jani Nikula
     

30 May, 2014

2 commits


16 May, 2014

2 commits

  • Update pull request with drm core patches. Mostly some polish for the
    primary plane stuff and a pile of patches all over from Thierry. Has
    survived a few days in drm-intel-nightly without causing ill.

    I've frobbed my scripts a bit to also tag my topic branches so that you
    have something stable to pull - I've accidentally pushed a bunch more
    patches onto this branch before you've taken the old pull request.

    * tag 'topic/core-stuff-2014-05-05' of git://anongit.freedesktop.org/drm-intel:
    drm: Make drm_crtc_helper_disable() return void
    drm: Fix indentation of closing brace
    drm/dp: Fix typo in comment
    drm: Fixup flip-work kerneldoc
    drm/fb: Fix typos
    drm/edid: Cleanup kerneldoc
    drm/edid: Drop revision argument for drm_mode_std()
    drm: Try to acquire modeset lock on panic or sysrq
    drm: remove unused argument from drm_open_helper
    drm: Handle ->disable_plane failures correctly
    drm: Simplify fb refcounting rules around ->update_plane
    drm/crtc-helper: gc usless connector loop in disable_unused_functions
    drm/plane_helper: don't disable plane in destroy function
    drm/plane-helper: Fix primary plane scaling check
    drm: make mode_valid callback optional
    drm/edid: Fill PAR in AVI infoframe based on CEA mode list

    Dave Airlie
     
  • This mode group id_list was never being freed.

    v2: take David's suggestion to free in minor_free.

    Signed-off-by: Dave Airlie

    Dave Airlie
     

22 Apr, 2014

1 commit

  • Populate PAR in infoframe structure. If there is a user setting for PAR, then
    that value is set. Else, value is taken from CEA mode list if VIC is found.
    Else, PAR is calculated from resolution. If none of these conditions are
    satisfied, PAR is NONE as per initialization.

    v2: Removed the part which sets PAR according to user input, based on
    Daniel's review comments.

    A separate patch will be submitted to create a property that would enable a
    user space app to set aspect ratio for AVI infoframe.

    v2: Removed the part which sets PAR according to user input, based on
    Daniel's review comments.

    v3: Removed calculation of PAR for non-CEA modes as per discussion with
    Ville.

    A separate patch will be submitted to create a property that would enable a
    user space app to set aspect ratio for AVI infoframe.

    Signed-off-by: Vandana Kannan
    Cc: Jesse Barnes
    Cc: Vijay Purushothaman
    Cc: Ville Syrjälä
    Cc: intel-gfx@lists.freedesktop.org
    Reviewed-by: Jesse Barnes
    [danvet: Squash in fixup for htmldocs.]
    Signed-off-by: Daniel Vetter

    Vandana Kannan