From: Jaewon Kim <jaewon02.kim@samsung.com> To: Krzysztof Kozlowski <krzk@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Alim Akhtar <alim.akhtar@samsung.com>, Jiri Slaby <jirislaby@kernel.org>, linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Chanho Park <chanho61.park@samsung.com>, Jaewon Kim <jaewon02.kim@samsung.com> Subject: [PATCH v3 0/1] tty: serial: samsung: add spin_lock in console_write Date: Thu, 7 Apr 2022 16:16:18 +0900 [thread overview] Message-ID: <20220407071619.102249-1-jaewon02.kim@samsung.com> (raw) In-Reply-To: CGME20220407071223epcas2p2f25428844528dbd505d1b49e0778133d@epcas2p2.samsung.com When console and printk log are printed at the same time, they are called through tty driver and console driver concurrently. In this case, this could lead to potintial issue that data loss or fifo full. This issue also occurred with other drivers and has been fixed. "serial: amba-pl011: lock console writes against interrupts" - https://lkml.org/lkml/2012/2/1/495 --- Changes since v2: - value of lock is chanaged to true/false Changes since v1: - locked variable type changed bool from int - spin_lock() changed to spin_lock_irqsave() Jaewon Kim (1): tty: serial: samsung: add spin_lock for interrupt and console_write drivers/tty/serial/samsung_tty.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.35.1
WARNING: multiple messages have this Message-ID (diff)
From: Jaewon Kim <jaewon02.kim@samsung.com> To: Krzysztof Kozlowski <krzk@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Alim Akhtar <alim.akhtar@samsung.com>, Jiri Slaby <jirislaby@kernel.org>, linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Chanho Park <chanho61.park@samsung.com>, Jaewon Kim <jaewon02.kim@samsung.com> Subject: [PATCH v3 0/1] tty: serial: samsung: add spin_lock in console_write Date: Thu, 7 Apr 2022 16:16:18 +0900 [thread overview] Message-ID: <20220407071619.102249-1-jaewon02.kim@samsung.com> (raw) In-Reply-To: CGME20220407071223epcas2p2f25428844528dbd505d1b49e0778133d@epcas2p2.samsung.com When console and printk log are printed at the same time, they are called through tty driver and console driver concurrently. In this case, this could lead to potintial issue that data loss or fifo full. This issue also occurred with other drivers and has been fixed. "serial: amba-pl011: lock console writes against interrupts" - https://lkml.org/lkml/2012/2/1/495 --- Changes since v2: - value of lock is chanaged to true/false Changes since v1: - locked variable type changed bool from int - spin_lock() changed to spin_lock_irqsave() Jaewon Kim (1): tty: serial: samsung: add spin_lock for interrupt and console_write drivers/tty/serial/samsung_tty.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next parent reply other threads:[~2022-04-07 7:12 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <CGME20220407071223epcas2p2f25428844528dbd505d1b49e0778133d@epcas2p2.samsung.com> 2022-04-07 7:16 ` Jaewon Kim [this message] 2022-04-07 7:16 ` [PATCH v3 0/1] tty: serial: samsung: add spin_lock in console_write Jaewon Kim [not found] ` <CGME20220407071223epcas2p16bb11821a0894a3375e84d17c4ff0844@epcas2p1.samsung.com> 2022-04-07 7:16 ` [PATCH v3 1/1] tty: serial: samsung: add spin_lock for interrupt and console_write Jaewon Kim 2022-04-07 7:16 ` Jaewon Kim 2022-04-07 7:46 ` Jiri Slaby 2022-04-07 7:46 ` Jiri Slaby 2022-04-07 7:58 ` Krzysztof Kozlowski 2022-04-07 7:58 ` Krzysztof Kozlowski 2022-04-07 8:05 ` Jiri Slaby 2022-04-07 8:05 ` Jiri Slaby
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220407071619.102249-1-jaewon02.kim@samsung.com \ --to=jaewon02.kim@samsung.com \ --cc=alim.akhtar@samsung.com \ --cc=chanho61.park@samsung.com \ --cc=gregkh@linuxfoundation.org \ --cc=jirislaby@kernel.org \ --cc=krzk@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=linux-serial@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.