On 05.12.19 17:50, Marco Solieri wrote:
> On Tue, Dec 03, 2019 at 08:41:13AM +0000, Peng Fan wrote:
>>> On Mon, Dec 02, 2019 at 02:52:04AM +0000, Peng Fan wrote:
>>>>> I am reading the patchset, but this patchset could not resolve the
>>>>> cache contention between root cell Linux and inmate cell, right? It
>>>>> only address the cache contention inside the inmate cell, if I understand
>>> correctly.
>>>
>>> This is correct.  The documentation reads:
>>>
>>> | Since Jailhouse is currently lacking SMMU support, and since the
>>> | colored memory mapping must be provided to DMA devices to allow them a
>>> | coherent memory view, coloring for this kind of devices is not
>>> | available. This also explains why also coloring support for the Linux
>>> | root cell is not provided, although possible and tested with a simple hot
>>> | remapping procedure.
>>>
>>>>> Is there any v2 plan to address the upper issue?
>>>
>>> Forward porting to master and integration with SMMU support are the two
>>> most important task on my team TODO list. Once these steps are done, it will
>>> be very easy to also have root-cell colouring. I have planned the firsts for
>>> 20Q1.
>>
> 
>> NXP i.MX jailhouse has smmu-v2 support, but it currently conflicts with
>> smmu-v3 code in upstream. I have not find time to restructure v2 code. You
>> could refer if you need v2.
> 
> I know. Do you have plans to merge SMMU-v2 support in upstream? It is very
> important for colouring Linux, such as the root-cell. But I am sure that many
> others than me are waiting for it.
> 
> Also, since v3 support is only preliminary and the SMMU is not really usable, 
> as
> far as I understand, and since v3 devices are quite less common, perhaps the 
> v2
> support can be integrated easier and earlier than you think.

1-level translation is complete, 2-level translation is missing. The
latter is only needed when running CMA-requiring devices in a cell that
cannot be mapped into physically contiguous memory (e.g. via
pre-allocation). Due to the involved significant complexity increase, I
decided to not take this extension yet.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/f590e962-ab8c-ec84-abe5-65b7a3fa4377%40siemens.com.

Reply via email to