* mabe a bug in kernel 5.4 since patchlevel 159 - dma error because use ttynull?
@ 2022-10-13 10:48 Simon Lindhorst
2022-10-13 15:11 ` jim.cromie
0 siblings, 1 reply; 2+ messages in thread
From: Simon Lindhorst @ 2022-10-13 10:48 UTC (permalink / raw)
To: kernelnewbies
[-- Attachment #1.1: Type: text/plain, Size: 2255 bytes --]
Hello all,
when I updated my Kernel from version 5.4.155 to 5.4.215 I get an
strange xhci error:
/xhci-hcd f10f0000.usb3: ERROR unknown event type 37//
//xhci-hcd f10f0000.usb3: ERROR Transfer event TRB DMA ptr not part of
current TD ep_index 2 comp_code 13//
/
After a lot of this messages, my hardware makes a reboot without any
more outputs.
The error only occures when i add /console=null/ to my kernel bootargs.
When I add instead console=/ttyS0,115200/ no error occured.
Now I go back in kernelversions. The error occured first in version
5.4.159. Between patchlevel 158 and 159 there is a change:
/--- linux-5.4.158/kernel/printk/printk.c 2021-11-06
13:59:45.000000000 +0100//
//+++ linux-5.4.159/kernel/printk/printk.c 2021-11-12
14:43:05.000000000 +0100//
//@@ -2193,8 +2193,15 @@//
// char *s, *options, *brl_options = NULL;//
// int idx;//
////
//- if (str[0] == 0)//
//+ /*//
//+ * console="" or console=null have been suggested as a way to//
//+ * disable console output. Use ttynull that has been created//
//+ * for exacly this purpose.//
//+ *///
//+ if (str[0] == 0 || strcmp(str, "null") == 0) {//
//+ __add_preferred_console("ttynull", 0, NULL, NULL);//
// return 1;//
//+ }//
////
// if (_braille_console_setup(&str, &brl_options))//
// return 1;/
I checked my kernelconfig and found that I have no ttynull device
configured (/CONFIG_NULL_TTY=n/). Add /CONFIG_NULL_TTY=y/ to my
kernelconfig doesn't made a change.
When I undo the change above, everything works fine.
Does anybody know, what could be the main trigger for the error above?
Regards,
Sarah
-- Unsere Aussagen koennen Irrtuemer und Missverstaendnisse enthalten.
Bitte pruefen Sie die Aussagen fuer Ihren Fall, bevor Sie Entscheidungen
auf Grundlage dieser Aussagen treffen.
Wiesemann & Theis GmbH, Porschestr. 12, D-42279 Wuppertal
Geschaeftsfuehrer: Dipl.-Ing. Ruediger Theis
Registergericht: Amtsgericht Wuppertal, HRB 6377
Infos zum Datenschutz: https://www.wut.de/datenschutz
Tel. +49-202/2680-0, Fax +49-202/2680-265, https://www.wut.de
[-- Attachment #1.2: Type: text/html, Size: 3294 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mabe a bug in kernel 5.4 since patchlevel 159 - dma error because use ttynull?
2022-10-13 10:48 mabe a bug in kernel 5.4 since patchlevel 159 - dma error because use ttynull? Simon Lindhorst
@ 2022-10-13 15:11 ` jim.cromie
0 siblings, 0 replies; 2+ messages in thread
From: jim.cromie @ 2022-10-13 15:11 UTC (permalink / raw)
To: Simon Lindhorst; +Cc: kernelnewbies
On Thu, Oct 13, 2022 at 4:48 AM Simon Lindhorst <s.lindhorst@wut.de> wrote:
>
> Hello all,
>
>
> when I updated my Kernel from version 5.4.155 to 5.4.215 I get an strange xhci error:
>
> xhci-hcd f10f0000.usb3: ERROR unknown event type 37
> xhci-hcd f10f0000.usb3: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
>
> After a lot of this messages, my hardware makes a reboot without any more outputs.
>
> The error only occures when i add console=null to my kernel bootargs. When I add instead console=ttyS0,115200 no error occured.
>
> Now I go back in kernelversions. The error occured first in version 5.4.159. Between patchlevel 158 and 159 there is a change:
>
> --- linux-5.4.158/kernel/printk/printk.c 2021-11-06 13:59:45.000000000 +0100
> +++ linux-5.4.159/kernel/printk/printk.c 2021-11-12 14:43:05.000000000 +0100
> @@ -2193,8 +2193,15 @@
> char *s, *options, *brl_options = NULL;
> int idx;
>
> - if (str[0] == 0)
> + /*
> + * console="" or console=null have been suggested as a way to
> + * disable console output. Use ttynull that has been created
> + * for exacly this purpose.
> + */
> + if (str[0] == 0 || strcmp(str, "null") == 0) {
> + __add_preferred_console("ttynull", 0, NULL, NULL);
> return 1;
> + }
>
> if (_braille_console_setup(&str, &brl_options))
> return 1;
>
> I checked my kernelconfig and found that I have no ttynull device configured (CONFIG_NULL_TTY=n). Add CONFIG_NULL_TTY=y to my kernelconfig doesn't made a change.
>
> When I undo the change above, everything works fine.
>
>
> Does anybody know, what could be the main trigger for the error above?
>
while there have been lots of change to printk,
the code you cite is still there.
If that code is a candidate for the root-cause,
and you can re-create the error on master,
you are 1/2 the way to getting it fixed.
Also, note latest:
commit 3ef4ea3d84ca568dcd57816b9521e82e3bd94f08
Merge: 30d024b5058e 5eb17c1f458c
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Mar 23 10:54:27 2022 -0700
Merge tag 'printk-for-5.18' of
git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux
Pull printk updates from Petr Mladek:
- Make %pK behave the same as %p for kptr_restrict == 0 also with
no_hash_pointers parameter
- Ignore the default console in the device tree also when console=null
or console="" is used on the command line
- Document console=null and console="" behavior
that last one is pertinent.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-13 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13 10:48 mabe a bug in kernel 5.4 since patchlevel 159 - dma error because use ttynull? Simon Lindhorst
2022-10-13 15:11 ` jim.cromie
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.