Skip to content
Snippets Groups Projects
  1. Feb 28, 2023
  2. Feb 22, 2023
  3. Feb 21, 2023
    • Thomas Zimmermann's avatar
      drm/fb-helper: Remove drm_fb_helper_unprepare() from drm_fb_helper_fini() · 3fb1f62f
      Thomas Zimmermann authored
      
      Move drm_fb_helper_unprepare() from drm_fb_helper_fini() into the
      calling fbdev implementation. Avoids a possible stale mutex with
      generic fbdev code.
      
      As indicated by its name, drm_fb_helper_prepare() prepares struct
      drm_fb_helper before setting up the fbdev support with a call to
      drm_fb_helper_init(). In legacy fbdev emulation, this happens next
      to each other. If successful, drm_fb_helper_fini() later tear down
      the fbdev device and also unprepare via drm_fb_helper_unprepare().
      
      Generic fbdev emulation prepares struct drm_fb_helper immediately
      after allocating the instance. It only calls drm_fb_helper_init()
      as part of processing a hotplug event. If the hotplug-handling fails,
      it runs drm_fb_helper_fini(). This unprepares the fb-helper instance
      and the next hotplug event runs on stale data.
      
      Solve this by moving drm_fb_helper_unprepare() from drm_fb_helper_fini()
      into the fbdev implementations. Call it right before freeing the
      fb-helper instance.
      
      Fixes: 643231b2 ("drm/fbdev-generic: Minimize hotplug error handling")
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Javier Martinez Canillas <javierm@redhat.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: David Airlie <airlied@gmail.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230216140620.17699-1-tzimmermann@suse.de
      3fb1f62f
  4. Feb 17, 2023
  5. Feb 16, 2023
  6. Feb 15, 2023
  7. Feb 13, 2023
  8. Feb 09, 2023
  9. Feb 07, 2023
    • Dmitry Baryshkov's avatar
      drm/probe_helper: sort out poll_running vs poll_enabled · a4e77172
      Dmitry Baryshkov authored
      
      There are two flags attemting to guard connector polling:
      poll_enabled and poll_running. While poll_enabled semantics is clearly
      defined and fully adhered (mark that drm_kms_helper_poll_init() was
      called and not finalized by the _fini() call), the poll_running flag
      doesn't have such clearliness.
      
      This flag is used only in drm_helper_probe_single_connector_modes() to
      guard calling of drm_kms_helper_poll_enable, it doesn't guard the
      drm_kms_helper_poll_fini(), etc. Change it to only be set if the polling
      is actually running. Tie HPD enablement to this flag.
      
      This fixes the following warning reported after merging the HPD series:
      
      Hot plug detection already enabled
      WARNING: CPU: 2 PID: 9 at drivers/gpu/drm/drm_bridge.c:1257 drm_bridge_hpd_enable+0x94/0x9c [drm]
      Modules linked in: videobuf2_memops snd_soc_simple_card snd_soc_simple_card_utils fsl_imx8_ddr_perf videobuf2_common snd_soc_imx_spdif adv7511 etnaviv imx8m_ddrc imx_dcss mc cec nwl_dsi gov
      CPU: 2 PID: 9 Comm: kworker/u8:0 Not tainted 6.2.0-rc2-15208-g25b283acd578 #6
      Hardware name: NXP i.MX8MQ EVK (DT)
      Workqueue: events_unbound deferred_probe_work_func
      pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      pc : drm_bridge_hpd_enable+0x94/0x9c [drm]
      lr : drm_bridge_hpd_enable+0x94/0x9c [drm]
      sp : ffff800009ef3740
      x29: ffff800009ef3740 x28: ffff000009331f00 x27: 0000000000001000
      x26: 0000000000000020 x25: ffff800001148ed8 x24: ffff00000a8fe000
      x23: 00000000fffffffd x22: ffff000005086348 x21: ffff800001133ee0
      x20: ffff00000550d800 x19: ffff000005086288 x18: 0000000000000006
      x17: 0000000000000000 x16: ffff8000096ef008 x15: 97ffff2891004260
      x14: 2a1403e194000000 x13: 97ffff2891004260 x12: 2a1403e194000000
      x11: 7100385f29400801 x10: 0000000000000aa0 x9 : ffff800008112744
      x8 : ffff000000250b00 x7 : 0000000000000003 x6 : 0000000000000011
      x5 : 0000000000000000 x4 : ffff0000bd986a48 x3 : 0000000000000001
      x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000000250000
      Call trace:
       drm_bridge_hpd_enable+0x94/0x9c [drm]
       drm_bridge_connector_enable_hpd+0x2c/0x3c [drm_kms_helper]
       drm_kms_helper_poll_enable+0x94/0x10c [drm_kms_helper]
       drm_helper_probe_single_connector_modes+0x1a8/0x510 [drm_kms_helper]
       drm_client_modeset_probe+0x204/0x1190 [drm]
       __drm_fb_helper_initial_config_and_unlock+0x5c/0x4a4 [drm_kms_helper]
       drm_fb_helper_initial_config+0x54/0x6c [drm_kms_helper]
       drm_fbdev_client_hotplug+0xd0/0x140 [drm_kms_helper]
       drm_fbdev_generic_setup+0x90/0x154 [drm_kms_helper]
       dcss_kms_attach+0x1c8/0x254 [imx_dcss]
       dcss_drv_platform_probe+0x90/0xfc [imx_dcss]
       platform_probe+0x70/0xcc
       really_probe+0xc4/0x2e0
       __driver_probe_device+0x80/0xf0
       driver_probe_device+0xe0/0x164
       __device_attach_driver+0xc0/0x13c
       bus_for_each_drv+0x84/0xe0
       __device_attach+0xa4/0x1a0
       device_initial_probe+0x1c/0x30
       bus_probe_device+0xa4/0xb0
       deferred_probe_work_func+0x90/0xd0
       process_one_work+0x200/0x474
       worker_thread+0x74/0x43c
       kthread+0xfc/0x110
       ret_from_fork+0x10/0x20
      ---[ end trace 0000000000000000 ]---
      
      Reported-by: default avatarLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
      Fixes: c8268795 ("drm/probe-helper: enable and disable HPD on connectors")
      Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Tested-by: default avatarChen-Yu Tsai <wenst@chromium.org>
      Acked-by: default avatarLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
      Tested-by: default avatarLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
      Tested-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230124104548.3234554-2-dmitry.baryshkov@linaro.org
      
      
      (cherry picked from commit d33a54e3991dfce88b4fc6d9c3360951c2c5660d)
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      a4e77172
    • Dmitry Baryshkov's avatar
      drm/probe_helper: extract two helper functions · 91f43949
      Dmitry Baryshkov authored
      
      Extract drm_kms_helper_enable_hpd() and drm_kms_helper_disable_hpd(),
      two helpers that enable and disable HPD handling on all device's
      connectors.
      
      Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230124104548.3234554-1-dmitry.baryshkov@linaro.org
      
      
      (cherry picked from commit cbf143b282c64e59559cc8351c0b5b1ab4bbdcbe)
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      91f43949
  10. Feb 06, 2023
  11. Feb 02, 2023
  12. Feb 01, 2023
  13. Jan 31, 2023
    • Daniel Vetter's avatar
      Merge v6.2-rc6 into drm-next · aebd8f0c
      Daniel Vetter authored
      
      Due to holidays we started -next with more -fixes in-flight than
      usual, and people have been asking where they are. Backmerge to get
      things better in sync.
      
      Conflicts:
      - Tiny conflict in drm_fbdev_generic.c between variable rename and
        missing error handling that got added.
      - Conflict in drm_fb_helper.c between the added call to vgaswitcheroo
        in drm_fb_helper_single_fb_probe and a refactor patch that extracted
        lots of helpers and incidentally removed the dev local variable.
        Readd it to make things compile.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      aebd8f0c
  14. Jan 30, 2023
  15. Jan 29, 2023
  16. Jan 28, 2023
    • Linus Torvalds's avatar
      Fix up more non-executable files marked executable · c9661827
      Linus Torvalds authored
      
      Joe found another DT file that shouldn't be executable, and that
      frustrated me enough that I went hunting with this script:
      
          git ls-files -s |
              grep '^100755' |
              cut -f2 |
              xargs grep -L '^#!'
      
      and that found another file that shouldn't have been marked executable
      either, despite being in the scripts directory.
      
      Maybe these two are the last ones at least for now.  But I'm sure we'll
      be back in a few years, fixing things up again.
      
      Fixes: 8c6789f4 ("ASoC: dt-bindings: Add Everest ES8326 audio CODEC")
      Fixes: 4d8e5cd2 ("locking/atomics: Fix scripts/atomic/ script permissions")
      Reported-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c9661827
    • Linus Torvalds's avatar
      Merge tag '6.2-rc5-ksmbd-server-fixes' of git://git.samba.org/ksmbd · 2543fdbd
      Linus Torvalds authored
      Pull ksmbd server fixes from Steve French:
       "Four smb3 server fixes, all also for stable:
      
         - fix for signing bug
      
         - fix to more strictly check packet length
      
         - add a max connections parm to limit simultaneous connections
      
         - fix error message flood that can occur with newer Samba xattr
           format"
      
      * tag '6.2-rc5-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: downgrade ndr version error message to debug
        ksmbd: limit pdu length size according to connection status
        ksmbd: do not sign response to session request for guest login
        ksmbd: add max connections parameter
      2543fdbd
Loading