博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PCI SMMU parse in ACPI
阅读量:4026 次
发布时间:2019-05-24

本文共 1510 字,大约阅读时间需要 5 分钟。

pci smmu parse in acpi

-v0.1 2016.12.23 init Sherlock

This document shares a code analysis based on Linux-v4.9 about how to parse SMMU

information in ACPI IORT table, and how does a PCIe device get its SMMUv3 device.

1. acpi smmu parse

acpi_init    --> acpi_iort_init            /* parse the SMMU node in IORT table */        --> iort_init_platform_devices                /* create a platform_device for SMMU, and add it to platform_bus */            --> iort_add_smmu_platform_device                    /* why call this function here? */                --> acpi_dma_configure                    --> iort_iommu_configure            /* call functions in section: __iort_acpi_probe_table ~ __iort_acpi_probe_table_end */        --> acpi_probe_device_table(iort)

2. put arm_smmu_init in above section in compile phase

IORT_ACPI_DECLARE(arm_smmu_v3, ACPI_SIG_IORT, acpi_smmu_v3_init);arm_smmu_v3_init         /*         * add SMMU driver to platform_bus, this will trigger probe function to         * bind this driver and above SMMU platform_device.         */    --> platform_driver_register(&arm_smmu_driver)

3. PCIe device get its SMMU device

pci_device_add    --> pci_dma_configure(dev)        --> acpi_dma_configure(&dev->dev, attr)acpi_dma_configure       /* if dev is a pci device, first find related RC node in IORT table */    -->iommu = iort_iommu_configure             /* RC node */        --> node = iort_scan_node                /* parent here is SMMU node */            --> parent = iort_node_map_rid

转载地址:http://tfabi.baihongyu.com/

你可能感兴趣的文章
Vim日常使用
查看>>
计算机网络第一记:网络核心
查看>>
信息检索:基于知识图谱和深度学习的文本表示和搜索(Explicit and distributed semantics for text representation and retrieval)
查看>>
计算机网络第二记:协议层次
查看>>
计算机网络第三记:网络安全
查看>>
深度学习训练中如何处理NaNs
查看>>
机器学习与其他相似概念
查看>>
深度学习库提供了什么?
查看>>
Theano中如何只更新一部分权重,用法及理由。
查看>>
深度学习实践
查看>>
机器学习探索性数据分析的数据类型
查看>>
机器学习探索性数据分析的数据类型(补充)
查看>>
机器学习中典型工作流程
查看>>
数据挖掘十大算法 and 算法概述
查看>>
机器学习中样本数据预处理
查看>>
机器学习中样本缺失值的处理方法
查看>>
机器学习中样本比例不平衡的处理方法
查看>>
机器学习中的文本处理
查看>>
K近邻分类
查看>>
Java集合
查看>>