All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Philippe Gerum <rpm@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] 4.9 for x86 issue
Date: Fri, 6 Apr 2018 18:09:31 +0200	[thread overview]
Message-ID: <1c2bccfb-8427-a366-34b4-7092e34ce0b3@siemens.com> (raw)
In-Reply-To: <1edf5dcb-bc63-2f53-f91b-f821b244563c@web.de>

On 2018-04-05 22:13, Jan Kiszka wrote:
> On 2018-03-27 15:12, Philippe Gerum wrote:
>> On 03/10/2018 11:06 PM, Jan Kiszka wrote:
>>> On 2018-03-09 08:51, Jan Kiszka wrote:
>>>> 4.9 requires more work, I've pushed the beginning to wip/4.9 in the same
>>>> repo.
>>>
>>> I started to patch further on this during my flight (wip/4.9 updated),
>>> noticed that the 4.14-wip queue will need a little bit sysentry tweaking
>>> as well (missing 64-bit syscall dispatching), and then had to find 4.9
>>> in a rather unfortunate state /wrt x86-64: CPUs are no longer idling
>>> properly. I went back to ipipe-core-4.9.24-x86-2, without a difference.
>>>
>>> If you should look into 4.9-x86 as you indicated, please check this.
>>
>> Both issues fixed in 4.9.90/x86 as pushed lately. The result has run
>> overnight in 64bit mode, and for a couple of hours in ia32emu mode. So
>> far so good.
> 
> Just trying 4.9.90-x86-6 in KVM, and I'm still finding 100% (virtual)
> CPU load. I also triggered this with stable-3.0.x:
> 
> [  237.455846] WARNING: CPU: 0 PID: 1055 at ../kernel/xenomai/posix/timerfd.c:57 timerfd_read+0x2a6/0x350
> [  237.460728] Modules linked in:
> [  237.461490] CPU: 0 PID: 1055 Comm: sampling-1052 Not tainted 4.9.90+ #11
> [  237.461490] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.11.1-0-g0551a4be2c-prebuilt.qemu-project.org 04/01/2014
> [  237.461490] I-pipe domain: Xenomai
> [  237.461490]  ffffc90001b7fdb0 ffffffff8145e395 0000000000000000 0000000000000000
> [  237.461490]  ffffc90001b7fdf0 ffffffff810e7261 000000393d61d170 ffffc900003e6008
> [  237.461490]  0000000000000003 0000000000000008 00007f513e8c2de8 0000000000026200
> [  237.461490] Call Trace:
> [  237.461490]  [<ffffffff8145e395>] dump_stack+0xb2/0xdd
> [  237.461490]  [<ffffffff810e7261>] __warn+0xd1/0xf0
> [  237.461490]  [<ffffffff810e734d>] warn_slowpath_null+0x1d/0x20
> [  237.461490]  [<ffffffff812423b6>] timerfd_read+0x2a6/0x350
> [  237.461490]  [<ffffffff812174ec>] rtdm_fd_read+0x13c/0x3b0
> [  237.461490]  [<ffffffff81220260>] ? CoBaLt_ioctl+0x20/0x20
> [  237.461490]  [<ffffffff8122026e>] CoBaLt_read+0xe/0x10
> [  237.461490]  [<ffffffff81235894>] handle_head_syscall+0x184/0x4b0
> [  237.461490]  [<ffffffff81236288>] ipipe_fastcall_hook+0x18/0x20
> [  237.461490]  [<ffffffff811a9054>] ipipe_handle_syscall+0x64/0x110
> [  237.461490]  [<ffffffff81002b33>] do_syscall_64+0x43/0x1c0
> [  237.461490]  [<ffffffff81840b43>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
> [  237.461490] ---[ end trace 9d2476a38b0c5379 ]---
> 

The WARN_ON is due to missing
http://git.xenomai.org/ipipe-jki.git/commit/?h=for-upstream/4.4-update&id=d95805a2f3448cf65e85897cf43f260b9ff3f9d0
in 4.9. I'm preparing a PR. I've also did a stable update for 4.9.

The idleness bug can be resolved by dropping ipipe_enter_idle_hook from
Xenomai until we have a better logic at hand. If someone wants the
current behavior, there is still idle=poll.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


  parent reply	other threads:[~2018-04-06 16:09 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-09 16:51 [Xenomai] [PULL] ipipe 4.4 updates Jan Kiszka
2018-03-10 22:06 ` [Xenomai] 4.9 for x86 issue (was: [PULL] ipipe 4.4 updates) Jan Kiszka
2018-03-19 16:54   ` [Xenomai] 4.9 for x86 issue Philippe Gerum
2018-03-20  3:42     ` Jan Kiszka
2018-03-20 14:22       ` Philippe Gerum
2018-03-19 16:59   ` Philippe Gerum
2018-03-20 15:05   ` Philippe Gerum
2018-03-21  7:46     ` [Xenomai] 4.9 for x86 sd card , gpio interrupt guide to system no responce Шевченко Тарас Григорьевич
2018-03-27 13:12   ` [Xenomai] 4.9 for x86 issue Philippe Gerum
2018-03-27 13:30     ` Шевченко Тарас Григорьевич
2018-03-27 16:42     ` Jan Kiszka
2018-04-05 20:13     ` Jan Kiszka
2018-04-06  6:54       ` Philippe Gerum
2018-04-06 13:38         ` Jan Kiszka
2018-04-06 14:11           ` Philippe Gerum
2018-04-06 15:11             ` Jan Kiszka
2018-04-06 15:52               ` Jan Kiszka
2018-04-07  7:25               ` Philippe Gerum
2018-04-07  9:42                 ` Jan Kiszka
2018-04-07 16:55                   ` Philippe Gerum
2018-04-07 16:58                     ` Jan Kiszka
2018-04-07 17:04                       ` Philippe Gerum
2018-04-07 17:10                         ` Jan Kiszka
2018-04-07 17:20                           ` Philippe Gerum
2018-04-07 17:33                             ` Jan Kiszka
2018-04-06 16:09       ` Jan Kiszka [this message]
2018-03-13 14:29 ` [Xenomai] [PULL] ipipe 4.4 updates Jan Kiszka
2018-03-19 16:45 ` Philippe Gerum
     [not found] <q17d41v98jmvc5qofdfiipjs.1522164993072@embeddedgreg.com>
     [not found] ` <289250163.8206221.1522165279222.JavaMail.zimbra@triolcorp.com.ua>
     [not found]   ` <1221098029.8207596.1522165832579.JavaMail.zimbra@triolcorp.com.ua>
     [not found]     ` <1320247074.8207767.1522165874048.JavaMail.zimbra@triolcorp.com.ua>
2018-03-28 14:40       ` [Xenomai] 4.9 for x86 issue Шевченко Тарас Григорьевич

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=1c2bccfb-8427-a366-34b4-7092e34ce0b3@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=rpm@xenomai.org \
    --cc=xenomai@xenomai.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 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.