From: Greg KH <greg@kroah.com>
To: Chan Kim <ckim@etri.re.kr>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: how to debug... program hangs while downing for write a rwsem
Date: Wed, 21 Sep 2022 13:15:57 +0200 [thread overview]
Message-ID: <YyrybZL15DhOHaII@kroah.com> (raw)
In-Reply-To: <0ee901d8cda9$b1056ec0$13104c40$@etri.re.kr>
On Wed, Sep 21, 2022 at 08:02:50PM +0900, Chan Kim wrote:
> Hello kernel experts and users,
>
> I'm trying to boot linux-5.10.0-rc5 on our arm64 board (using neoverse-v1
> core).
5.10-rc5 is very very very old and obsolete, and not even a real
release. Why are you using that specific kernel version?
At the very least, use a released and supported 5.10.y tree, but even
better, use the latest 5.19.y release.
> After the shell comes up, when I press enter key at the prompt, it gives me
> another prompt.
> But when I press enter key again, it stops responding.
> After inspecting where the program hangs, I found it hangs in function
> tty_set_termios while downing the rwsem.
> Please see below where I marked "<===== this line "". (in file
> drivers/tty/tty_ioctl.c)
>
> int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios)
> {
> struct ktermios old_termios;
> struct tty_ldisc *ld;
>
> WARN_ON(tty->driver->type == TTY_DRIVER_TYPE_PTY &&
> tty->driver->subtype == PTY_TYPE_MASTER);
> /*
> * Perform the actual termios internal changes under lock.
> */
>
>
> /* FIXME: we need to decide on some locking/ordering semantics
> for the set_termios notification eventually */
> down_write(&tty->termios_rwsem); <====== this
> line
What serial driver are you using that is causing this problem?
thanks,
greg k-h
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2022-09-21 11:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-21 11:02 how to debug... program hangs while downing for write a rwsem Chan Kim
2022-09-21 11:15 ` Greg KH [this message]
2022-09-22 13:17 ` Chan Kim
2022-09-22 13:23 ` Chan Kim
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=YyrybZL15DhOHaII@kroah.com \
--to=greg@kroah.com \
--cc=ckim@etri.re.kr \
--cc=kernelnewbies@kernelnewbies.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).