> From: Santosh Shukla [mailto:[email protected]]
> Sent: Thursday, August 31, 2017 4:26 AM
> To: [email protected]
> Cc: [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; Gonzalez Monroy, Sergio
> <[email protected]>; Richardson, Bruce
> <[email protected]>; [email protected];
> [email protected]; Burakov, Anatoly <[email protected]>;
> [email protected]; [email protected]; Santosh Shukla
> <[email protected]>
> 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 <[email protected]>
> Signed-off-by: Jerin Jacob <[email protected]>
> Reviewed-by: Maxime Coquelin <[email protected]>
> Acked-by: Hemant Agrawal <[email protected]>
> ---

Reviewed-by: Anatoly Burakov <[email protected]>



Reply via email to