1. 02 3月, 2022 1 次提交
  2. 02 11月, 2021 1 次提交
  3. 14 10月, 2021 2 次提交
  4. 12 10月, 2021 1 次提交
    • R
      drm/connector: fix all kernel-doc warnings · f85d9e59
      Randy Dunlap 提交于
      Clean up all of the kernel-doc issues in drm_connector.c:
      
      drivers/gpu/drm/drm_connector.c:2611: warning: Excess function parameter 'connector' description in 'drm_connector_oob_hotplug_event'
      drivers/gpu/drm/drm_connector.c:2611: warning: Function parameter or member 'connector_fwnode' not described in 'drm_connector_oob_hotplug_event'
      
      drm_connector.c:630: warning: No description found for return value of 'drm_get_connector_status_name'
      drm_connector.c:715: warning: No description found for return value of 'drm_connector_list_iter_next'
      drm_connector.c:785: warning: No description found for return value of 'drm_get_subpixel_order_name'
      drm_connector.c:816: warning: No description found for return value of 'drm_display_info_set_bus_formats'
      drm_connector.c:1331: warning: No description found for return value of 'drm_mode_create_dvi_i_properties'
      drm_connector.c:1412: warning: No description found for return value of 'drm_connector_attach_content_type_property'
      drm_connector.c:1492: warning: No description found for return value of 'drm_mode_create_tv_margin_properties'
      drm_connector.c:1534: warning: No description found for return value of 'drm_mode_create_tv_properties'
      drm_connector.c:1627: warning: No description found for return value of 'drm_mode_create_scaling_mode_property'
      drm_connector.c:1944: warning: No description found for return value of 'drm_mode_create_suggested_offset_properties'
      
      drm_connector.c:2315: warning: missing initial short description on line:
       * drm_connector_set_panel_orientation_with_quirk -
      
      [The last warning listed is probably a quirk/bug in scripts/kernel-doc.]
      
      Fixes: 613051da ("drm: locking&new iterators for connector_list")
      Fixes: 52217195 ("drm: Extract drm_connector.[hc]")
      Fixes: b3c6c8bf ("drm: document drm_display_info")
      Fixes: 50525c33 ("drm: content-type property for HDMI connector")
      Fixes: 6c4f52dc ("drm/connector: Allow creation of margin props alone")
      Fixes: 69654c63 ("drm/connector: Split out orientation quirk detection (v2)")
      Fixes: 72ad4968 ("drm/connector: Add support for out-of-band hotplug notification (v3)")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: dri-devel@lists.freedesktop.org
      Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Derek Basehore <dbasehore@chromium.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20211010224459.3603-1-rdunlap@infradead.org
      f85d9e59
  5. 07 10月, 2021 1 次提交
  6. 23 9月, 2021 1 次提交
  7. 20 8月, 2021 3 次提交
  8. 21 7月, 2021 1 次提交
    • D
      drm: avoid circular locks in drm_mode_getconnector · 869e76f7
      Desmond Cheong Zhi Xi 提交于
      In preparation for a future patch to take a lock on
      drm_device.master_mutex inside drm_is_current_master(), we first move
      the call to drm_is_current_master() in drm_mode_getconnector out from the
      section locked by &dev->mode_config.mutex. This avoids creating a
      circular lock dependency.
      
      Failing to avoid this lock dependency produces the following lockdep
      splat:
      
      ======================================================
      WARNING: possible circular locking dependency detected
      5.13.0-rc7-CI-CI_DRM_10254+ #1 Not tainted
      ------------------------------------------------------
      kms_frontbuffer/1087 is trying to acquire lock:
      ffff88810dcd01a8 (&dev->master_mutex){+.+.}-{3:3}, at: drm_is_current_master+0x1b/0x40
      but task is already holding lock:
      ffff88810dcd0488 (&dev->mode_config.mutex){+.+.}-{3:3}, at: drm_mode_getconnector+0x1c6/0x4a0
      which lock already depends on the new lock.
      the existing dependency chain (in reverse order) is:
      -> #2 (&dev->mode_config.mutex){+.+.}-{3:3}:
             __mutex_lock+0xab/0x970
             drm_client_modeset_probe+0x22e/0xca0
             __drm_fb_helper_initial_config_and_unlock+0x42/0x540
             intel_fbdev_initial_config+0xf/0x20 [i915]
             async_run_entry_fn+0x28/0x130
             process_one_work+0x26d/0x5c0
             worker_thread+0x37/0x380
             kthread+0x144/0x170
             ret_from_fork+0x1f/0x30
      -> #1 (&client->modeset_mutex){+.+.}-{3:3}:
             __mutex_lock+0xab/0x970
             drm_client_modeset_commit_locked+0x1c/0x180
             drm_client_modeset_commit+0x1c/0x40
             __drm_fb_helper_restore_fbdev_mode_unlocked+0x88/0xb0
             drm_fb_helper_set_par+0x34/0x40
             intel_fbdev_set_par+0x11/0x40 [i915]
             fbcon_init+0x270/0x4f0
             visual_init+0xc6/0x130
             do_bind_con_driver+0x1e5/0x2d0
             do_take_over_console+0x10e/0x180
             do_fbcon_takeover+0x53/0xb0
             register_framebuffer+0x22d/0x310
             __drm_fb_helper_initial_config_and_unlock+0x36c/0x540
             intel_fbdev_initial_config+0xf/0x20 [i915]
             async_run_entry_fn+0x28/0x130
             process_one_work+0x26d/0x5c0
             worker_thread+0x37/0x380
             kthread+0x144/0x170
             ret_from_fork+0x1f/0x30
      -> #0 (&dev->master_mutex){+.+.}-{3:3}:
             __lock_acquire+0x151e/0x2590
             lock_acquire+0xd1/0x3d0
             __mutex_lock+0xab/0x970
             drm_is_current_master+0x1b/0x40
             drm_mode_getconnector+0x37e/0x4a0
             drm_ioctl_kernel+0xa8/0xf0
             drm_ioctl+0x1e8/0x390
             __x64_sys_ioctl+0x6a/0xa0
             do_syscall_64+0x39/0xb0
             entry_SYSCALL_64_after_hwframe+0x44/0xae
      other info that might help us debug this:
      Chain exists of: &dev->master_mutex --> &client->modeset_mutex --> &dev->mode_config.mutex
       Possible unsafe locking scenario:
             CPU0                    CPU1
             ----                    ----
        lock(&dev->mode_config.mutex);
                                     lock(&client->modeset_mutex);
                                     lock(&dev->mode_config.mutex);
        lock(&dev->master_mutex);
      *** DEADLOCK ***
      1 lock held by kms_frontbuffer/1087:
       #0: ffff88810dcd0488 (&dev->mode_config.mutex){+.+.}-{3:3}, at: drm_mode_getconnector+0x1c6/0x4a0
      stack backtrace:
      CPU: 7 PID: 1087 Comm: kms_frontbuffer Not tainted 5.13.0-rc7-CI-CI_DRM_10254+ #1
      Hardware name: Intel Corporation Ice Lake Client Platform/IceLake U DDR4 SODIMM PD RVP TLC, BIOS ICLSFWR1.R00.3234.A01.1906141750 06/14/2019
      Call Trace:
       dump_stack+0x7f/0xad
       check_noncircular+0x12e/0x150
       __lock_acquire+0x151e/0x2590
       lock_acquire+0xd1/0x3d0
       __mutex_lock+0xab/0x970
       drm_is_current_master+0x1b/0x40
       drm_mode_getconnector+0x37e/0x4a0
       drm_ioctl_kernel+0xa8/0xf0
       drm_ioctl+0x1e8/0x390
       __x64_sys_ioctl+0x6a/0xa0
       do_syscall_64+0x39/0xb0
       entry_SYSCALL_64_after_hwframe+0x44/0xae
      Reported-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDesmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
      Reviewed-by: NEmil Velikov <emil.l.velikov@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210712043508.11584-2-desmondcheongzx@gmail.com
      869e76f7
  9. 07 5月, 2021 3 次提交
  10. 03 5月, 2021 1 次提交
  11. 22 4月, 2021 2 次提交
  12. 16 3月, 2021 1 次提交
  13. 17 11月, 2020 1 次提交
  14. 22 10月, 2020 1 次提交
  15. 01 9月, 2020 1 次提交
    • V
      drm: Replace mode->export_head with a boolean · 8445e2c5
      Ville Syrjälä 提交于
      In order to shrink drm_display_mode below the magic two cacheline
      mark in 64bit we need to shrink it by another 8 bytes. The easiest
      thing to eliminate is the 'export_head' list head which is only
      used during the getconnector ioctl to temporarly track which modes
      on the connector's mode list are to be exposed and which are to
      remain hidden.
      
      We can simply replace the list head with a boolean which we use
      to tag the modes that are to be exposed. If we make sure to clear
      the tags after we're done with them we don't even need an extra
      loop over the modes to reset the tags at the start of the
      getconnector ioctl.
      
      Conveniently we already have a hole for the boolean left
      behind by the removal of mode->private_flags. The final size
      of the struct is now 112 bytes on 32bit and 120 bytes on 64bit.
      
      Another alternative would be a temp bitmask so we wouldn't have
      to have anything in the mode struct itself. The main issue is
      how large of a bitmask do we need? I guess we could allocate
      it dynamically but that means an extra kcalloc() and an extra
      loop through the modes to count them first (or grow the bitmask
      with krealloc() as needed).
      
      CC: Sam Ravnborg <sam@ravnborg.org>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Emil Velikov <emil.l.velikov@gmail.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200428171940.19552-17-ville.syrjala@linux.intel.comReviewed-by: NEmil Velikov <emil.velikov@collabora.com>
      8445e2c5
  16. 11 8月, 2020 1 次提交
  17. 02 7月, 2020 1 次提交
  18. 30 6月, 2020 1 次提交
  19. 29 6月, 2020 1 次提交
  20. 08 6月, 2020 1 次提交
  21. 03 6月, 2020 1 次提交
  22. 01 6月, 2020 1 次提交
  23. 18 3月, 2020 2 次提交
  24. 26 2月, 2020 1 次提交
  25. 11 1月, 2020 2 次提交
  26. 09 10月, 2019 1 次提交
    • Q
      locking/lockdep: Remove unused @nested argument from lock_release() · 5facae4f
      Qian Cai 提交于
      Since the following commit:
      
        b4adfe8e ("locking/lockdep: Remove unused argument in __lock_release")
      
      @nested is no longer used in lock_release(), so remove it from all
      lock_release() calls and friends.
      Signed-off-by: NQian Cai <cai@lca.pw>
      Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Acked-by: NWill Deacon <will@kernel.org>
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: airlied@linux.ie
      Cc: akpm@linux-foundation.org
      Cc: alexander.levin@microsoft.com
      Cc: daniel@iogearbox.net
      Cc: davem@davemloft.net
      Cc: dri-devel@lists.freedesktop.org
      Cc: duyuyang@gmail.com
      Cc: gregkh@linuxfoundation.org
      Cc: hannes@cmpxchg.org
      Cc: intel-gfx@lists.freedesktop.org
      Cc: jack@suse.com
      Cc: jlbec@evilplan.or
      Cc: joonas.lahtinen@linux.intel.com
      Cc: joseph.qi@linux.alibaba.com
      Cc: jslaby@suse.com
      Cc: juri.lelli@redhat.com
      Cc: maarten.lankhorst@linux.intel.com
      Cc: mark@fasheh.com
      Cc: mhocko@kernel.org
      Cc: mripard@kernel.org
      Cc: ocfs2-devel@oss.oracle.com
      Cc: rodrigo.vivi@intel.com
      Cc: sean@poorly.run
      Cc: st@kernel.org
      Cc: tj@kernel.org
      Cc: tytso@mit.edu
      Cc: vdavydov.dev@gmail.com
      Cc: vincent.guittot@linaro.org
      Cc: viro@zeniv.linux.org.uk
      Link: https://lkml.kernel.org/r/1568909380-32199-1-git-send-email-cai@lca.pwSigned-off-by: NIngo Molnar <mingo@kernel.org>
      5facae4f
  27. 20 9月, 2019 2 次提交
  28. 18 9月, 2019 1 次提交
  29. 17 9月, 2019 1 次提交
  30. 12 8月, 2019 1 次提交
    • S
      drm: Fix kerneldoc warns in connector-related docs · 12db36bc
      Sean Paul 提交于
      Fixes the following warnings:
      ../drivers/gpu/drm/drm_connector.c:989: WARNING: Unexpected indentation.
      ../drivers/gpu/drm/drm_connector.c:993: WARNING: Unexpected indentation.
      ../include/drm/drm_connector.h:544: WARNING: Inline interpreted text or phrase reference start-string without end-string.
      ../include/drm/drm_connector.h:544: WARNING: Inline interpreted text or phrase reference start-string without end-string.
      
      Changes in v2:
      - Use () instead of & for functions (Sam)
      
      Fixes: 1b27fbdd ("drm: Add drm_atomic_get_(old|new)_connector_for_encoder() helpers")
      Fixes: bb5a45d4 ("drm/hdcp: update content protection property with uevent")
      Cc: Ramalingam C <ramalingam.c@intel.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Pekka Paalanen <pekka.paalanen@collabora.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <maxime.ripard@bootlin.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Reviewed-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190812140112.6702-1-sean@poorly.run
      12db36bc
  31. 06 8月, 2019 1 次提交