SHARE
TWEET

GPIO Name Support

a guest Jul 30th, 2015 241 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [  113.349395]
  2. [  113.351013] ======================================================
  3. [  113.357513] [ INFO: possible circular locking dependency detected ]
  4. [  113.364135] 4.2.0-rc4-custom-00009-g0f75576-dirty #35 Not tainted
  5. [  113.370574] -------------------------------------------------------
  6. [  113.377166] sh/1619 is trying to acquire lock:
  7. [  113.381866]  (s_active#138){++++.+}, at: [<c02032ac>] kernfs_remove_by_name_ns+0x4c/0x98
  8. [  113.390502]
  9. [  113.390502] but task is already holding lock:
  10. [  113.396636]  (sysfs_lock){+.+.+.}, at: [<c03cf360>] gpiod_unexport+0x28/0xc8
  11. [  113.404144]
  12. [  113.404144] which lock already depends on the new lock.
  13. [  113.404144]
  14. [  113.412780]
  15. [  113.412780] the existing dependency chain (in reverse order) is:
  16. [  113.420654]
  17. -> #1 (sysfs_lock){+.+.+.}:
  18. [  113.424926]        [<c06f09d4>] mutex_lock_nested+0x48/0x3e0
  19. [  113.430908]        [<c03ce6b4>] gpio_name_show+0x28/0x68
  20. [  113.436553]        [<c045e744>] dev_attr_show+0x2c/0x58
  21. [  113.442077]        [<c0204c38>] sysfs_kf_seq_show+0x98/0x10c
  22. [  113.448059]        [<c02034c8>] kernfs_seq_show+0x34/0x38
  23. [  113.453765]        [<c01b1454>] seq_read+0x1d0/0x4ac
  24. [  113.459045]        [<c0203e54>] kernfs_fop_read+0x12c/0x188
  25. [  113.464935]        [<c018a14c>] __vfs_read+0x38/0xe4
  26. [  113.470184]        [<c018aa10>] vfs_read+0x88/0x110
  27. [  113.475341]        [<c018b328>] SyS_read+0x54/0xb0
  28. [  113.480407]        [<c000fd80>] ret_fast_syscall+0x0/0x54
  29. [  113.486114]
  30. -> #0 (s_active#138){++++.+}:
  31. [  113.490600]        [<c009c2dc>] lock_acquire+0xac/0x124
  32. [  113.496124]        [<c02022bc>] __kernfs_remove+0x234/0x300
  33. [  113.502014]        [<c02032ac>] kernfs_remove_by_name_ns+0x4c/0x98
  34. [  113.508544]        [<c0205af0>] remove_files.isra.1+0x40/0x88
  35. [  113.514617]        [<c0205e68>] sysfs_remove_group+0x54/0xa8
  36. [  113.520629]        [<c0205ef0>] sysfs_remove_groups+0x34/0x44
  37. [  113.526702]        [<c045def8>] device_remove_attrs+0x4c/0x7c
  38. [  113.532775]        [<c045e980>] device_del+0x114/0x224
  39. [  113.538208]        [<c045eaac>] device_unregister+0x1c/0x30
  40. [  113.544097]        [<c03cf3a0>] gpiod_unexport+0x68/0xc8
  41. [  113.549713]        [<c03cb6f0>] __gpiod_free+0x1c/0xec
  42. [  113.555145]        [<c03cd69c>] gpiod_free+0x20/0x50
  43. [  113.560394]        [<c03cef68>] unexport_store+0xb0/0xe0
  44. [  113.566009]        [<c0463560>] class_attr_store+0x28/0x34
  45. [  113.571838]        [<c0204b04>] sysfs_kf_write+0x5c/0x60
  46. [  113.577453]        [<c0203c44>] kernfs_fop_write+0xcc/0x1b0
  47. [  113.583343]        [<c018a230>] __vfs_write+0x38/0xec
  48. [  113.588684]        [<c018ab38>] vfs_write+0xa0/0x174
  49. [  113.593933]        [<c018b3d8>] SyS_write+0x54/0xb0
  50. [  113.599090]        [<c000fd80>] ret_fast_syscall+0x0/0x54
  51. [  113.604797]
  52. [  113.604797] other info that might help us debug this:
  53. [  113.604797]
  54. [  113.613250]  Possible unsafe locking scenario:
  55. [  113.613250]
  56. [  113.619506]        CPU0                    CPU1
  57. [  113.624298]        ----                    ----
  58. [  113.629058]   lock(sysfs_lock);
  59. [  113.632385]                                lock(s_active#138);
  60. [  113.638580]                                lock(sysfs_lock);
  61. [  113.644561]   lock(s_active#138);
  62. [  113.648101]
  63. [  113.648101]  *** DEADLOCK ***
  64. [  113.648101]
  65. [  113.654357] 4 locks held by sh/1619:
  66. [  113.658111]  #0:  (sb_writers#4){.+.+.+}, at: [<c018abe4>] vfs_write+0x14c/0x174
  67. [  113.665985]  #1:  (&of->mutex){+.+.+.}, at: [<c0203bd4>] kernfs_fop_write+0x5c/0x1b0
  68. [  113.674224]  #2:  (s_active#143){.+.+.+}, at: [<c0203bdc>] kernfs_fop_write+0x64/0x1b0
  69. [  113.682647]  #3:  (sysfs_lock){+.+.+.}, at: [<c03cf360>] gpiod_unexport+0x28/0xc8
  70. [  113.690612]
  71. [  113.690612] stack backtrace:
  72. [  113.695220] CPU: 0 PID: 1619 Comm: sh Not tainted 4.2.0-rc4-custom-00009-g0f75576-dirty #35
  73. [  113.704010] Hardware name: Generic OMAP36xx (Flattened Device Tree)
  74. [  113.710662] [<c00188a4>] (unwind_backtrace) from [<c00141f8>] (show_stack+0x20/0x24)
  75. [  113.718841] [<c00141f8>] (show_stack) from [<c06ec9b4>] (dump_stack+0x8c/0xa4)
  76. [  113.726470] [<c06ec9b4>] (dump_stack) from [<c0097ccc>] (print_circular_bug+0x1d4/0x320)
  77. [  113.735015] [<c0097ccc>] (print_circular_bug) from [<c009b72c>] (__lock_acquire+0x1b88/0x1ed0)
  78. [  113.744140] [<c009b72c>] (__lock_acquire) from [<c009c2dc>] (lock_acquire+0xac/0x124)
  79. [  113.752410] [<c009c2dc>] (lock_acquire) from [<c02022bc>] (__kernfs_remove+0x234/0x300)
  80. [  113.760833] [<c02022bc>] (__kernfs_remove) from [<c02032ac>] (kernfs_remove_by_name_ns+0x4c/0x98)
  81. [  113.770233] [<c02032ac>] (kernfs_remove_by_name_ns) from [<c0205af0>] (remove_files.isra.1+0x40/0x88)
  82. [  113.779937] [<c0205af0>] (remove_files.isra.1) from [<c0205e68>] (sysfs_remove_group+0x54/0xa8)
  83. [  113.789123] [<c0205e68>] (sysfs_remove_group) from [<c0205ef0>] (sysfs_remove_groups+0x34/0x44)
  84. [  113.798339] [<c0205ef0>] (sysfs_remove_groups) from [<c045def8>] (device_remove_attrs+0x4c/0x7c)
  85. [  113.807617] [<c045def8>] (device_remove_attrs) from [<c045e980>] (device_del+0x114/0x224)
  86. [  113.816253] [<c045e980>] (device_del) from [<c045eaac>] (device_unregister+0x1c/0x30)
  87. [  113.824523] [<c045eaac>] (device_unregister) from [<c03cf3a0>] (gpiod_unexport+0x68/0xc8)
  88. [  113.833160] [<c03cf3a0>] (gpiod_unexport) from [<c03cb6f0>] (__gpiod_free+0x1c/0xec)
  89. [  113.841339] [<c03cb6f0>] (__gpiod_free) from [<c03cd69c>] (gpiod_free+0x20/0x50)
  90. [  113.849151] [<c03cd69c>] (gpiod_free) from [<c03cef68>] (unexport_store+0xb0/0xe0)
  91. [  113.857147] [<c03cef68>] (unexport_store) from [<c0463560>] (class_attr_store+0x28/0x34)
  92. [  113.865692] [<c0463560>] (class_attr_store) from [<c0204b04>] (sysfs_kf_write+0x5c/0x60)
  93. [  113.874237] [<c0204b04>] (sysfs_kf_write) from [<c0203c44>] (kernfs_fop_write+0xcc/0x1b0)
  94. [  113.882873] [<c0203c44>] (kernfs_fop_write) from [<c018a230>] (__vfs_write+0x38/0xec)
  95. [  113.891143] [<c018a230>] (__vfs_write) from [<c018ab38>] (vfs_write+0xa0/0x174)
  96. [  113.898864] [<c018ab38>] (vfs_write) from [<c018b3d8>] (SyS_write+0x54/0xb0)
  97. [  113.906311] [<c018b3d8>] (SyS_write) from [<c000fd80>] (ret_fast_syscall+0x0/0x54)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top