On 2016-07-15 15:16, Dube, Swaraj wrote:
> Could you kindly let me know what kind of board specifications would you be 
> interested in with respect to the problems I have been reporting so far?

Specifically with respect to UARTs (but we may need more later on):
chipset, available peripherals, accessible interfaces (external
connectors, sockets), extension cards - whatever you can grab /
reference in this regard.

Jan

> 
> Regards,
> Swaraj Dube.
> 
> -----Original Message-----
> From: Jan Kiszka [mailto:jan.kis...@siemens.com] 
> Sent: Friday, July 15, 2016 1:39 PM
> To: Dube, Swaraj <swaraj.d...@intel.com>; Valentine Sinitsyn 
> <valentine.sinit...@gmail.com>; Jailhouse <jailhouse-dev@googlegroups.com>
> Cc: Hii, Roland King Guan <roland.king.guan....@intel.com>
> Subject: Re: ioctl function not completing and hypervisor output
> 
> On 2016-07-15 13:32, Dube, Swaraj wrote:
>> I used the command : "dmesg | grep ttyS2" as that is the serial port on my 
>> board, it shows the MMIO address at 0x9222e000 however when I add that to 
>> debug_console.phys_start(originally 0x3f8) in my configs/myboard.c 
>> (attached) , I still get the same error(cpu stalls and no hypervisor output 
>> :(  ), again as I said I think there needs something else to be configured 
>> in this file as I don't think it is made up in a way such that it will get 
>> support from the hardware( board attached to my laptop ) especially the I/O 
>> else I am  unsure of what to change now in order to get this root cell 
>> running because I do not get any error message when the program looks for 
>> firmware and checks for memory allocated for jailhouse in the 
>> jailhouse_cmd_enable(); function , jailhouse.ko is also loaded properly 
>> (checked using 'lsmod' command ), intel_iommu is off during jailhouse enable 
>>  so I think the error has to be incorrect configuration file given that all 
>> of you do not find any problem with my OS , make and kernel version I 
>> specified in the first post on this topic. 
>>
>> Few things to clarify: during boot up of my board, the very last message I 
>> see is ttyS2 - failed to request DMA , should that be a problem? , there is 
>> no need for an ssh to get hypervisor output right since I am suing 
>> USB-Serial, yes for VGA we need but not for USB-Serial right? , Any 
>> questions you have in mind regarding my CPU configuration? 
> 
> Do you have some specification about your target platform to share?
> Datasheets etc.? We are stepping too much in the dark here to give helpful 
> advices.
> 
> Jan
> 
>>
>> Regards,
>> Swaraj Dube.
>>
>> -----Original Message-----
>> From: jailhouse-dev@googlegroups.com 
>> [mailto:jailhouse-dev@googlegroups.com] On Behalf Of Valentine 
>> Sinitsyn
>> Sent: Thursday, July 14, 2016 5:23 PM
>> To: Dube, Swaraj <swaraj.d...@intel.com>; Jan Kiszka 
>> <jan.kis...@siemens.com>; Jailhouse <jailhouse-dev@googlegroups.com>
>> Cc: Hii, Roland King Guan <roland.king.guan....@intel.com>
>> Subject: Re: ioctl function not completing and hypervisor output
>>
>> On 14.07.2016 14:16, Dube, Swaraj wrote:
>>> Hi,
>>>
>>> I just got to know that the board I am using uses MMIO, I will have to 
>>> confirm the base addresses in config/myboard.c with the team in that case 
>>> however should that be a problem?
>> IIRC debug port setting has no effect on MMIO. But I vaguely recall the 
>> details of how we handle this in Jailhouse; you'd have to check in 
>> arch/dbg-write.c.
>>
>> Valentine
>>
>>>
>>> Regards,
>>> Swaraj Dube.
>>>
>>> -----Original Message-----
>>> From: Valentine Sinitsyn [mailto:valentine.sinit...@gmail.com]
>>> Sent: Thursday, July 14, 2016 3:21 PM
>>> To: Dube, Swaraj <swaraj.d...@intel.com>; Jan Kiszka 
>>> <jan.kis...@siemens.com>; Jailhouse <jailhouse-dev@googlegroups.com>
>>> Subject: Re: ioctl function not completing and hypervisor output
>>>
>>> Hi,
>>>
>>> On 14.07.2016 11:02, Dube, Swaraj wrote:
>>>> Hi,
>>>>
>>>> Sounds like a good idea, firstly Valentine has a good point I also think 
>>>> there is something wrong with the I/O port access (if not then something 
>>>> else in the I/O) so I changed debug_console.phys_start points from 0x3f8 
>>>> to 0x3e8 in my configs/myboard.c and then make again to obtain a new 
>>>> myboard.cell file as I am using ttyS2 (I checked this in my 
>>>> /boot/EFI/BOOT/grub.cfg) and it's standard address is 0x3e8 but is that 
>>>> it?, I think I may have to change something else in myboard.c but I am 
>>>> unsure of what to change if any.
>>>>
>>>> I turned CPU 1 offline and tried enabling jailhouse and I get an Invalid 
>>>> argument error for JAILHOUSE_ENABLE obviously due to the return of -EINVAL 
>>>> from jailhouse_cmd_enable() function from driver/main.c due to the if 
>>>> conditions set but still no hypervisor output, I just see the printf(); 
>>>> messages I manually created, I then read about the article contributed by 
>>>> valentine on understanding the jailhouse hypervisor: 
>>>> https://lwn.net/Articles/578295/ that explains about the role of the 
>>>> functions and how calls are made. I realize that my program is not 
>>>> entering the entry(); or init_early(); function in hypervisor/setup.c file 
>>>> as this is the file which seems to be printing out the hypervisor output , 
>>>> may be the system is crashing before that ? , may be the information about 
>>>> the IO in configs/myboard.c still incorrect (my suspect) , Any suggestions?
>>> If having debug port wrong is really the culprit, check your BIOS/UEFI.
>>> Often you may view/change I/O ports for COMx there.
>>>
>>> Valentine
>>>
>>>>
>>>> Regards,
>>>> Swaraj Dube.
>>>>
>>>> -----Original Message-----
>>>> From: Jan Kiszka [mailto:jan.kis...@siemens.com]
>>>> Sent: Wednesday, July 13, 2016 11:15 PM
>>>> To: Dube, Swaraj <swaraj.d...@intel.com>; Valentine Sinitsyn 
>>>> <valentine.sinit...@gmail.com>; Jailhouse 
>>>> <jailhouse-dev@googlegroups.com>
>>>> Subject: Re: ioctl function not completing and hypervisor output
>>>>
>>>> On 2016-07-13 18:07, Dube, Swaraj wrote:
>>>>> Hi,
>>>>>
>>>>> Thanks for the reply, I think what you are referring to is the COM right 
>>>>> , I read about it, COM1-4 having I/O port addresses 0x3f8 , 0x2f8 , 0x3e8 
>>>>> and 0x2e8 respectively . Currently debug_console.phys_start in my 
>>>>> configs/myboard.c points to the address 0x3f8 which should be of standard 
>>>>> COM1 whereas I am using COM5 so I'll try finding the address of COM5, 
>>>>> hope I am getting it right, kindly correct me if I am getting it wrong.
>>>>
>>>> If you want to debug the UART output of Jailhouse without crashing 
>>>> your system every time: Take one of the configured cores offline 
>>>> (echo 0 >
>>>> /sys/devices/system/cpu/cpu1/online) before calling jailhouse enable.
>>>> That will make the hypervisor fail gracefully with -EINVAL, but you will 
>>>> see messages of it trying to enable the remaining CPUs - provided we do 
>>>> not crash even earlier in the setup.
>>>>
>>>> Jan
>>>>
>>>> --
>>>> Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate 
>>>> Competence Center Embedded Linux
>>>>
>>
>> --
>> С уважением,
>> Синицын Валентин
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Jailhouse" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jailhouse-dev+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> 
> 
> --
> Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence 
> Center Embedded Linux
> 


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

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to