1. 20 Apr, 2022 5 commits
  2. 19 Apr, 2022 13 commits
  3. 18 Apr, 2022 3 commits
  4. 14 Apr, 2022 17 commits
  5. 13 Apr, 2022 2 commits
    • Daniel Vetter's avatar
      fbcon: Fix delayed takeover locking · 9d797991
      Daniel Vetter authored
      I messed up the delayed takover path in the locking conversion in
      6e7da3af ("fbcon: Move console_lock for register/unlink/unregister").
      
      If CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is enabled, fbcon take-over
      doesn't take place when calling fbcon_fb_registered(). Instead, is deferred
      using a workqueue and its fbcon_register_existing_fbs() function calls to
      fbcon_fb_registered() again for each registered fbcon fb.
      
      This leads to the console_lock tried to be held twice, causing a deadlock.
      
      Fix it by re-extracting the lockless function and using it in the
      delayed takeover path, where we need to hold the lock already to
      iterate over the list of already registered fb. Well the current code
      still is broken in there (since the list is protected by a
      registration_lock, which we can't take here because it nests the other
      way round with console_lock), but in the future this will be a list
      protected by console_lock when this is all sorted out.
      
      While reviewing the broken commit I realized that I've left some
      outdated comments about the locking behind. Fix those too.
      
      v2: Improve commit message (Javier)
      Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
      Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Fixes: 6e7da3af ("fbcon: Move console_lock for register/unlink/unregister")
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Du Cheng <ducheng2@gmail.com>
      Cc: Claudio Suarez <cssk@net-c.es>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Zheyu Ma <zheyuma97@gmail.com>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Javier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220413082128.348186-1-daniel.vetter@ffwll.ch
      9d797991
    • Marek Vasut's avatar
      drm/panel: lvds: Use bus_flags from DT panel-timing property · 83c784e7
      Marek Vasut authored
      This driver currently rewrites bus_flags based solely on the value of
      DT property 'data-mirror' and ignores bus_flags which might have been
      set in DT panel-timing node. Specificaly, the 'de-active' DT property
      sets DRM_BUS_FLAG_DE_ bus_flags.
      
      Since of_get_drm_panel_display_mode() conveniently parses the bus_flags
      out of DT panel-timing property, just ORR them with bus_flags inferred
      from 'data-mirror' DT property and use the result as panel bus_flags.
      
      This fixes handling of panels with 'panel-timing { de-active = <1>; };'.
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested-by: default avatarChristoph Niedermaier <cniedermaier@dh-electronics.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Dmitry Osipenko <digetx@gmail.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Robert Foss <robert.foss@linaro.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      To: dri-devel@lists.freedesktop.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20220401162154.295152-2-marex@denx.de
      83c784e7