public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v3 00/24] gpio: rework locking and object life-time control
@ 2024-04-19  7:03 Jiawen Wu
  2024-04-19 13:27 ` Andy Shevchenko
  2024-04-19 21:29 ` Bartosz Golaszewski
  0 siblings, 2 replies; 53+ messages in thread
From: Jiawen Wu @ 2024-04-19  7:03 UTC (permalink / raw)
  To: brgl
  Cc: andriy.shevchenko, bartosz.golaszewski, elder, geert+renesas,
	linus.walleij, linux-gpio, linux-kernel, paulmck, warthog618, wsa

Hi Bartosz Golaszewski,

I ran into a kernel crash problem when I pull the latest net-next.git, and
finally it was found that is caused by this patch series merged.

The kernel crashed because I got gpio=0 when I called irq_find_mapping()
and then struct irq_data *d=null, as my driver describes:

	int gpio = irq_find_mapping(gc->irq.domain, hwirq);
	struct irq_data *d = irq_get_irq_data(gpio);

	txgbe_gpio_irq_ack(d);

The deeper positioning is this line in __irq_resolve_mapping().

	data = rcu_dereference(domain->revmap[hwirq]);
		
So, is it the addition of SRCU infrastructure that causes this issue?


Thanks,
Jiawen


^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2024-04-22  8:38 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20240213120518eucas1p2d514aac6e6d1e29bbae05f32db6724db@eucas1p2.samsung.com>
2024-02-08  9:58 ` [PATCH v3 00/24] gpio: rework locking and object life-time control Bartosz Golaszewski
2024-02-08  9:58   ` [PATCH v3 01/24] gpio: protect the list of GPIO devices with SRCU Bartosz Golaszewski
2024-02-10 11:00     ` Hillf Danton
2024-02-10 11:07       ` Bartosz Golaszewski
2024-02-08  9:58   ` [PATCH v3 02/24] gpio: of: assign and read the hog pointer atomically Bartosz Golaszewski
2024-02-08  9:58   ` [PATCH v3 03/24] gpio: remove unused logging helpers Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 04/24] gpio: provide and use gpiod_get_label() Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 05/24] gpio: don't set label from irq helpers Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 06/24] gpio: add SRCU infrastructure to struct gpio_desc Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 07/24] gpio: protect the descriptor label with SRCU Bartosz Golaszewski
2024-02-12 14:56     ` kernel test robot
2024-02-13 21:16     ` Mark Brown
2024-02-13 22:07       ` Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 08/24] gpio: sysfs: use gpio_device_find() to iterate over existing devices Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 09/24] gpio: remove gpio_lock Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 10/24] gpio: reinforce desc->flags handling Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 11/24] gpio: remove unneeded code from gpio_device_get_desc() Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 12/24] gpio: sysfs: extend the critical section for unregistering sysfs devices Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 13/24] gpio: sysfs: pass the GPIO device - not chip - to sysfs callbacks Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 14/24] gpio: cdev: replace gpiochip_get_desc() with gpio_device_get_desc() Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 15/24] gpio: cdev: don't access gdev->chip if it's not needed Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 16/24] gpio: sysfs: " Bartosz Golaszewski
2024-02-08 12:20     ` Linus Walleij
2024-02-08  9:59   ` [PATCH v3 17/24] gpio: don't dereference gdev->chip in gpiochip_setup_dev() Bartosz Golaszewski
2024-02-08 12:21     ` Linus Walleij
2024-02-08  9:59   ` [PATCH v3 18/24] gpio: reduce the functionality of validate_desc() Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 19/24] gpio: remove unnecessary checks from gpiod_to_chip() Bartosz Golaszewski
2024-02-08 17:39     ` Andy Shevchenko
2024-02-08 19:17       ` Bartosz Golaszewski
2024-02-08 19:24         ` Andy Shevchenko
2024-02-08 19:34           ` Bartosz Golaszewski
2024-02-09 13:59             ` Andy Shevchenko
2024-02-08  9:59   ` [PATCH v3 20/24] gpio: add the can_sleep flag to struct gpio_device Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 21/24] gpio: add SRCU infrastructure " Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 22/24] gpio: protect the pointer to gpio_chip in gpio_device with SRCU Bartosz Golaszewski
2024-02-12 15:09     ` kernel test robot
2024-02-12 16:56       ` Bartosz Golaszewski
2024-02-12 21:20       ` Bartosz Golaszewski
2024-02-13  8:10         ` Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 23/24] gpio: remove the RW semaphore from the GPIO device Bartosz Golaszewski
2024-02-10  5:37     ` Kent Gibson
2024-02-12  9:53       ` Bartosz Golaszewski
2024-02-12  9:57         ` Kent Gibson
2024-02-12  9:59           ` Bartosz Golaszewski
2024-02-08  9:59   ` [PATCH v3 24/24] gpio: mark unsafe gpio_chip manipulators as deprecated Bartosz Golaszewski
2024-02-08 17:43   ` [PATCH v3 00/24] gpio: rework locking and object life-time control Andy Shevchenko
2024-02-12 10:07   ` Bartosz Golaszewski
2024-02-13 12:05   ` Marek Szyprowski
2024-02-13 12:08     ` Bartosz Golaszewski
2024-04-19  7:03 Jiawen Wu
2024-04-19 13:27 ` Andy Shevchenko
2024-04-19 21:29 ` Bartosz Golaszewski
2024-04-22  8:38   ` Jiawen Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox