All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai-3 creating debian packages
Date: Thu, 22 Jan 2015 14:57:41 +0100	[thread overview]
Message-ID: <54C101D5.1000900@siemens.com> (raw)
In-Reply-To: <1688017.JqQC0u81Pn@soho>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2015-01-22 14:53, Leopold Palomo-Avellaneda wrote:
> El Dijous, 22 de gener de 2015, a les 13:51:46, Jan Kiszka va
> escriure:
>> On 2015-01-22 12:59, Leopold Palomo-Avellaneda wrote:
>>> El Dijous, 22 de gener de 2015, a les 12:40:38, Gilles
>>> Chanteperdrix va
>>> 
>>> escriure:
>>>> On Thu, Jan 22, 2015 at 12:39:10PM +0100, Leopold
>>>> Palomo-Avellaneda
> wrote:
>>>>> El Dijous, 22 de gener de 2015, a les 12:31:05, Gilles
>>>>> Chanteperdrix va
>>>>> 
>>>>> escriure:
>>>>>> On Thu, Jan 22, 2015 at 12:17:15PM +0100, Leopold
>>>>>> Palomo-Avellaneda
>>> 
>>> wrote:
>>>>>>> I have renamed the subject according with the theme.
>>>>>>> 
>>>>>>> El Dijous, 22 de gener de 2015, a les 11:48:13, Gilles
>>>>>>> Chanteperdrix va
>>>>>>> 
>>>>>>> escriure:
>>>>>>>>>> Well, the fact that the compilation error happens
>>>>>>>>>> when trying to compile a Xenomai file would seem
>>>>>>>>>> to indicate that prepare-kernel.sh has put the
>>>>>>>>>> wrong link into init/Kconfig.
>>>>>>>>>> 
>>>>>>>>>> You pass --arch=x86 to prepare-kernel.sh, right,
>>>>>>>>>> not --arch=x86_64 ?
>>>>>>>>> 
>>>>>>>>> yes, I have tried both, but I put --arch=x86 or the
>>>>>>>>> default option as I said it in my email from
>>>>>>>>> yesterday ( :-P)
>>>>>>>> 
>>>>>>>> Well, maybe the default option does not work, so
>>>>>>>> please try specifying --arch=x86. The error you have
>>>>>>>> is not in the compiled files, but in the Kconfig
>>>>>>>> files. So, the fact that you can compile does not
>>>>>>>> really prove that prepare-kernel.sh did not fail.
>>>>>>> 
>>>>>>> Ok, from a clean sources I have run from the linux tree
>>>>>>> sources:
>>>>>>> 
>>>>>>> $ ../xenomai-3.git/scripts/prepare-kernel.sh --linux=.
>>>>>>> -- 
>>>>>>> ipipe=../xenomai-3.git/kernel/cobalt/arch/x86/patches/ipipe-core-3.16-
>>>>>>>
>>>>>>> 
x86-1.patch --arch=x86
>>>>>>> 
>>>>>>>> Now, prepare-kernel.sh adds the scripts/Kconfig.frag
>>>>>>>> file to
>>>>>>> 
>>>>>>>> init/Kconfig. Kconfig.frag contains:
>>>>>>> I don't understand that sentence. Yes, the
>>>>>>> Kconfig.frag now, contains this:
>>>>>>> 
>>>>>>> source "arch/$ARCH/xenomai/Kconfig"
>>>>>> 
>>>>>> Ah OK. Could you try to revert that commit ?
>>>>>> 
>>>>>> http://git.xenomai.org/xenomai-3.git/commit/scripts/Kconfig.frag?h=next
>>>>>>
>>>>>> 
&
>>>>>> id=2 6cc64313e2e695ac227e5a02992c5fe72df2e5f
>>>>> 
>>>>> Gilles, I did it. I explained it before. As I just run the
>>>>> script, I don't run any autoconf, so, I then have this part
>>>>> as @LINUX_ARCH@ so it doesn't work.
>>>>> 
>>>>> prepare-kernel script doesn't touch (substitute) that.
>>>> 
>>>> prepare-kernel.sh before that commit substitutes
>>>> @LINUX_ARCH@. You just need to revert the whole commit.
>>> 
>>> Ok, the whole commit touch also the prepare-kernel script. I
>>> have tested and now, I got in linux-tree/init/Kconfig:
>>> 
>>> if XENOMAI source "arch/x86/xenomai/Kconfig" endif
>>> 
>>> so, I'm sorry Jan, but I think that at least in debian
>>> platforms it wasn't a good change.
>> 
>> See 
>> http://git.xenomai.org/xenomai-jki.git/commit/?h=for-forge&id=5d104b1de84c8f
>>
>> 
4cbfb9d6b79cfaa633ef550e1c for the fix. The bug was the improper variable
>> use in the Kconfig fragment. You only had to revert the whole
>> commit as you were falling back to the obsolete prepare-time
>> patching then, which involved the script.
> 
> Ok, reverted and it works. Please, could you update it?
> 
>>> Now, the noapic issue, do you have some idea?
>> 
>> I provided some answers already.
>> 
> 
> Yes,
> 
>> Sounds like interrupt remapping is enabled for your system.
>> That's not supported by Xenomai / I-pipe so far (on my to-do
>> list, along with x2APIC support). Disable this via
>> "intel_iommu=off intremap=off" in the kernel command line or by
>> changing the kernel config to not include IOMMU / interrupt
>> remapping support.
> 
> I disable all IOMMU support, or just the intel IOMMU using DMA
> Remapping Devices and the Support for Interrupt Remapping?

To be save, disable IOMMU completely unless you need it (for KVM
etc.). It doesn't buy you much otherwise. The critical feature for
your issue is most likely interrupts remapping that should be turned
off via parameter or config switch (CONFIG_IRQ_REMAP).

Jan

- -- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlTBAdUACgkQitSsb3rl5xSVMgCgpNRa5ayXTlgLN1wXkS/tyOEV
nQYAoLmr6pjagO8qPs1siXmMY7exyIqv
=MerP
-----END PGP SIGNATURE-----


  reply	other threads:[~2015-01-22 13:57 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22  7:47 [Xenomai] Xenomai-3 booting problems Leopold Palomo-Avellaneda
2015-01-22  7:54 ` Gilles Chanteperdrix
2015-01-22  8:34   ` Leopold Palomo-Avellaneda
2015-01-22  8:57     ` Gilles Chanteperdrix
2015-01-22  9:52       ` Leopold Palomo-Avellaneda
2015-01-22  9:56         ` Gilles Chanteperdrix
2015-01-22 10:17           ` Leopold Palomo-Avellaneda
2015-01-22 10:24             ` Gilles Chanteperdrix
2015-01-22 10:40               ` Leopold Palomo-Avellaneda
2015-01-22 10:48                 ` Gilles Chanteperdrix
2015-01-22 11:17                   ` [Xenomai] Xenomai-3 creating debian packages (was: Re: Xenomai-3 booting problems) Leopold Palomo-Avellaneda
2015-01-22 11:31                     ` Gilles Chanteperdrix
2015-01-22 11:39                       ` Leopold Palomo-Avellaneda
2015-01-22 11:40                         ` Gilles Chanteperdrix
2015-01-22 11:59                           ` Leopold Palomo-Avellaneda
2015-01-22 12:51                             ` [Xenomai] Xenomai-3 creating debian packages Jan Kiszka
2015-01-22 13:44                               ` Gilles Chanteperdrix
2015-01-22 13:50                                 ` Jan Kiszka
2015-01-22 13:58                                   ` Gilles Chanteperdrix
2015-01-22 14:22                                     ` Jan Kiszka
2015-01-22 14:26                                       ` Gilles Chanteperdrix
2015-01-22 14:13                                   ` Gilles Chanteperdrix
2015-01-22 13:53                               ` Leopold Palomo-Avellaneda
2015-01-22 13:57                                 ` Jan Kiszka [this message]
2015-01-22 14:49                               ` Lennart Sorensen
2015-01-22 14:56                                 ` Gilles Chanteperdrix
2015-01-22 15:02                                   ` Jan Kiszka
2015-01-22 15:06                                     ` Gilles Chanteperdrix
2015-01-22 15:10                                       ` Jan Kiszka
2015-01-22 17:21                                   ` Lennart Sorensen
2015-01-22 19:16                                     ` Gilles Chanteperdrix
2015-01-22 19:27                                       ` Lennart Sorensen
2015-01-22 19:33                                         ` Gilles Chanteperdrix
2015-01-22 20:15                                           ` Lennart Sorensen
2015-01-22 11:39                       ` [Xenomai] Xenomai-3 creating debian packages (was: Re: Xenomai-3 booting problems) Gilles Chanteperdrix
2015-01-22 11:43                       ` [Xenomai] Xenomai-3 creating debian packages Jan Kiszka
2015-01-22 14:42     ` [Xenomai] Xenomai-3 booting problems Lennart Sorensen
2015-01-22 15:08       ` Jan Kiszka
2015-01-22 15:53         ` Gilles Chanteperdrix
2015-01-22  8:03 ` Jan Kiszka
2015-01-22  8:36   ` Leopold Palomo-Avellaneda

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=54C101D5.1000900@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=leo@alaxarxa.net \
    --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.