kernel 4.4.192 spinlock already unlocked

2020-09-29 Thread Ivan Grimaldi
Hi, during normal usage, system locked up, and the following messages appeared on the screen. where you can see from the log, the spinlock owner and CPU are -1. After this BUG the system restarts by WatchDog. Our CPU is arm Cortex A9 iMX6DL, with both cores active. Have you some idea, what the

Re: [BUG] mtd: blkdevs: fix deadlock

2016-11-18 Thread Ivan Grimaldi
On 11/17, Richard Weinberger wrote: > On Thu, Nov 17, 2016 at 10:15 PM, Ivan Grimaldi > wrote: > > I found this deadlock with kernel version 4.4.30, when insmod the ftl > > module, which register_mtd_blktrans. > > > > -> register_mtd_blktrans() >

[BUG] mtd: blkdevs: fix deadlock

2016-11-17 Thread Ivan Grimaldi
I found this deadlock with kernel version 4.4.30, when insmod the ftl module, which register_mtd_blktrans. -> register_mtd_blktrans() -> mutex_lock(&mtd_table_mutex) -> ftl_add_mtd() -> add_mtd_blktrans_dev() -> add_disk() -> register_disk() -> blkdev_get() -> __blkdev_get() -> blk

[BUG] mtd: blkdevs: fix deadlock

2016-11-17 Thread Ivan Grimaldi
I found this deadlock with kernel version 4.4.30, when insmod the ftl module, which register_mtd_blktrans. -> register_mtd_blktrans() -> mutex_lock(&mtd_table_mutex) -> ftl_add_mtd() -> add_mtd_blktrans_dev() -> add_disk() -> register_disk() -> blkdev_get() -> __blkdev_get() -> b

[PATCH v3 1/2] Fixed ds1390_get_reg returned value

2015-09-18 Thread Ivan Grimaldi
spi_write_then_read puts in rx_buf the received data starting from the first byte of the rx_buf Signed-off-by: Ivan Grimaldi --- drivers/rtc/rtc-ds1390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index e67bfcb

[PATCH v3 2/2] Added trickle charger device tree binding

2015-09-18 Thread Ivan Grimaldi
Introduce a device tree binding for specifying the trickle charger configuration for ds1339. Signed-off-by: Ivan Grimaldi --- .../devicetree/bindings/rtc/dallas,ds1390.txt | 18 +++ drivers/rtc/rtc-ds1390.c | 62 ++ 2 files changed, 80

[PATCH v3 2/2] Added trickle charger device tree binding

2015-09-18 Thread Ivan Grimaldi
Introduce a device tree binding for specifying the trickle charger configuration for ds1339. Signed-off-by: Ivan Grimaldi --- .../devicetree/bindings/rtc/dallas,ds1390.txt | 18 +++ drivers/rtc/rtc-ds1390.c | 62 ++ 2 files changed, 80

[PATCH v3 1/2] Fixed ds1390_get_reg returned value

2015-09-18 Thread Ivan Grimaldi
spi_write_then_read puts in rx_buf the received data starting from the first byte of the rx_buf Signed-off-by: Ivan Grimaldi --- drivers/rtc/rtc-ds1390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index e67bfcb

[PATCH v3 1/2] Fixed ds1390_get_reg returned value

2015-09-18 Thread Ivan Grimaldi
spi_write_then_read puts in rx_buf the received data starting from the first byte of the rx_buf Signed-off-by: Ivan Grimaldi --- drivers/rtc/rtc-ds1390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index e67bfcb

[PATCH v3 2/2] Added trickle charger device tree binding

2015-09-18 Thread Ivan Grimaldi
Introduce a device tree binding for specifying the trickle charger configuration for ds1339. Signed-off-by: Ivan Grimaldi --- .../devicetree/bindings/rtc/dallas,ds1390.txt | 18 +++ drivers/rtc/rtc-ds1390.c | 62 ++ 2 files changed, 80

[PATCH v2 1/2] Fixed ds1390_get_reg returned value

2015-09-18 Thread Ivan Grimaldi
spi_write_then_read puts in rx_buf the received data starting from the first byte of the rx_buf Signed-off-by: Ivan Grimaldi --- drivers/rtc/rtc-ds1390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index e67bfcb

[PATCH v2 2/2] Added trickle charger device tree binding

2015-09-18 Thread Ivan Grimaldi
Introduce a device tree binding for specifying the trickle charger configuration for ds1339. Signed-off-by: Ivan Grimaldi --- .../devicetree/bindings/rtc/dallas,ds1390.txt | 18 +++ drivers/rtc/rtc-ds1390.c | 63 ++ 2 files changed, 81

[PATCH] Fixed ds1390_get_reg returned value

2015-09-17 Thread Ivan Grimaldi
spi_write_then_read puts in rx_buf the received data starting from the first byte of the rx_buf Signed-off-by: Ivan Grimaldi --- drivers/rtc/rtc-ds1390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index e67bfcb