> From: Santosh Shukla [mailto:santosh.shu...@caviumnetworks.com]
> Sent: Thursday, August 31, 2017 4:26 AM
> To: dev@dpdk.org
> Cc: tho...@monjalon.net; jerin.ja...@caviumnetworks.com;
> hemant.agra...@nxp.com; olivier.m...@6wind.com;
> maxime.coque...@redhat.com; Gonzalez Monroy, Sergio
> <sergio.gonzalez.mon...@intel.com>; Richardson, Bruce
> <bruce.richard...@intel.com>; shreyansh.j...@nxp.com;
> gaetan.ri...@6wind.com; Burakov, Anatoly <anatoly.bura...@intel.com>;
> step...@networkplumber.org; acon...@redhat.com; Santosh Shukla
> <santosh.shu...@caviumnetworks.com>
> Subject: [PATCH v7 4/9] bus: get iommu class
> 
> API(rte_bus_get_iommu_class) helps to automatically detect and select
> appropriate iova mapping scheme for iommu capable device on that bus.
> 
> Algorithm for iova scheme selection for bus:
> 0. Iterate through bus_list.
> 1. Collect each bus iova mode value and update into 'mode' var.
> 2. Mode selection scheme is:
> if mode == 0 then iova mode is _pa,
> if mode == 1 then iova mode is _pa,
> if mode == 2 then iova mode is _va,
> if mode == 3 then iova mode ia _pa.
> 
> So mode !=2  will be default iova mode (_pa).
> 
> Signed-off-by: Santosh Shukla <santosh.shu...@caviumnetworks.com>
> Signed-off-by: Jerin Jacob <jerin.ja...@caviumnetworks.com>
> Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
> Acked-by: Hemant Agrawal <hemant.agra...@nxp.com>
> ---

Reviewed-by: Anatoly Burakov <anatoly.bura...@intel.com>



Reply via email to