All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shannon Zhao <zhaoshenglong-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: a.motakis-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	kvmarm-FPEHb7Xf0XXUo1n7N8X6UoWGPAHP3yOg@public.gmane.org
Subject: Vfio-on-arm: the device tree does not contain the DMA device
Date: Wed, 18 Jun 2014 10:33:01 +0800	[thread overview]
Message-ID: <53A0FA5D.5090204@huawei.com> (raw)

Hi Antonios and all,

	Recently, I want to test vfio on ARM and refer to this document "http://www.virtualopensystems.com/en/solutions/guides/vfio-on-arm/" .
	Following is my test steps.

	1. Get kernel src
		git clone git://github.com/virtualopensystems/linux-kvm-arm.git
		cd linux-kvm-arm
		git checkout origin/vfio-platform-v4

	2. Get kernel config
		http://www.virtualopensystems.com/downloads/guides/kvm_on_arm/kernel-config > .config

	3. Make menuconfig the kernel
		enable the KVM, SMMU and VFIO configuration options for the host kernel

	4. Compile the kernel
		CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make zImage

	5. Build a device tree
		There isn't rtsm_ve-cortex_a15x4_a7x4.dts in the directory "arch/arm/boot/dts/".
		So I download it from this git "git://github.com/virtualopensystems/arm-dts.git".
		./scripts/dtc/dtc -O dtb -o host-a15.dtb ../arm-dts/fast_models/rtsm_ve-cortex_a15x4_a7x4.dts
		But the rtsm_ve-cortex_a15x4_a7x4.dts doesn't contain the DMA or SMMU device.

	6. Launch the model
		Following is the boot_model.sh.
			#!/bin/bash

			MODEL_PATH='/root/ARM/FastModelsPortfolio_8.2/examples/FVP_VE/Build_Cortex-A15x4-A7x4-MMU400-DMA330/Linux64-Debug-GCC-4.4'

			$MODEL_PATH/isim_system \
			-a coretile.cluster0.*=/home/vfio/linux-system-semi.axf \
			-a coretile.cluster1.*=/home/vfio/linux-system-semi.axf \
			-C motherboard.smsc_91c111.enabled=1 \
			-C motherboard.hostbridge.interfaceName="ARMroot" \
			-C coretile.cluster0.cpu0.semihosting-enable=1 \
			-C coretile.dmac0_int_base=64 \
			-C coretile.dmac1_int_base=96 \
			-C coretile.dmac2_int_base=128 \
			-C coretile.dmac3_int_base=168 \
			-C coretile.mmu400_dma330.dmac0.p_irq_nsecure="true" \
			-C coretile.mmu400_dma330.dmac1.p_irq_nsecure="true" \
			-C coretile.mmu400_dma330.dmac2.p_irq_nsecure="true" \
			-C coretile.mmu400_dma330.dmac3.p_irq_nsecure="true" \
			-C coretile.cluster0.cpu0.semihosting-cmd_line="\
			--kernel /home/vfio/zImage \
			--initrd /home/vfio/filesystem.cpio.gz \
			--dtb host-a15.dtb  -- earlyprintk console=ttyAMA0 mem=2048M "
		It launched successfully. There is "vfio_platform" in the directory, but I can't see any DMA decive in the directory "/sys/devices".

	PS: I also try to enable the kernel configuration option for DMA. "DMA Engine support --> DMA API Driver for PL330".
	Is there something I'm wrong? Is there any way I can get the right device tree and kernel config?
	Look forward to your reply.
-- 
Shannon

             reply	other threads:[~2014-06-18  2:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18  2:33 Shannon Zhao [this message]
     [not found] ` <53A0FA5D.5090204-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-18 13:24   ` Vfio-on-arm: the device tree does not contain the DMA device Alvise Rigo
     [not found]     ` <53A192FE.2070303-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-19  9:14       ` Shannon Zhao
     [not found]         ` <53A2AA0E.3060207-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-19  9:19           ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]             ` <a96a278c8fd04586b8120c48b78cb963-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-06-19  9:21               ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
2014-06-19  9:38               ` Shannon Zhao
     [not found]                 ` <53A2AF80.5080705-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-19 10:11                   ` Eric Auger
     [not found]                     ` <53A2B74C.1050201-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-06-19 10:15                       ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]                         ` <da0f46f9ae0e482b884f4e2298ab006e-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-06-19 10:18                           ` Eric Auger
     [not found]                             ` <53A2B8DB.4060904-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-06-19 10:47                               ` Alvise Rigo
2014-06-19 10:28                       ` Shannon Zhao
2014-06-19 10:47                   ` Alvise Rigo
     [not found]                     ` <53A2BFAA.2050507-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-19 11:11                       ` Shannon Zhao
     [not found]                         ` <53A2C57A.9050504-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-19 11:26                           ` Alvise Rigo
     [not found]                             ` <53A2C8D5.4070801-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-19 12:08                               ` Shannon Zhao
     [not found]                                 ` <53A2D2B2.2040902-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-19 12:12                                   ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]                                     ` <cf15be43f0964293a969c5a93f3c5d54-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-06-19 12:16                                       ` Shannon Zhao
     [not found]                                         ` <53A2D4A2.9070600-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-19 12:20                                           ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]                                             ` <a6fcdaa299594393a4274ed44d49ae46-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-06-20  2:57                                               ` Shannon Zhao
     [not found]                                                 ` <53A3A315.4010409-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-20  7:15                                                   ` Alvise Rigo
     [not found]                                                     ` <53A3DFA7.4060006-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-20  8:23                                                       ` Shannon Zhao
     [not found]                                                         ` <53A3EF9C.8040405-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-20  8:37                                                           ` Alvise Rigo
     [not found]                                                             ` <53A3F2CC.1030800-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-24  6:59                                                               ` Shannon Zhao
     [not found]                                                                 ` <53A921D7.9060306-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-24  7:05                                                                   ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]                                                                     ` <a161f9f0084f4b25b544db91cfd48dcc-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-06-24  7:45                                                                       ` Shannon Zhao
     [not found]                                                                         ` <53A92CB1.3010203-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-24  8:08                                                                           ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]                                                                             ` <343b7fe9d9d44a18b44ab031d8e00db6-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-06-24  9:00                                                                               ` Shannon Zhao
     [not found]                                                                                 ` <53A93E3B.4060802-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-24  9:14                                                                                   ` Alvise Rigo
     [not found]                                                                                     ` <53A94180.8080404-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-24 13:19                                                                                       ` Shannon Zhao
     [not found]                                                                                     ` <53A97ACC.2060300@huawei.c om>
     [not found]                                                                                       ` <53A97ACC.2060300-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-24 14:50                                                                                         ` Alvise Rigo
     [not found]                                                                                     ` <53A97ACC.2060300@huawei. com>
     [not found]                                                                                       ` <53A99030.4030901@virtualopensystems .com>
     [not found]                                                                                         ` <53A99030.4030901-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
2014-06-25  3:09                                                                                           ` Shannon Zhao
     [not found]                                                                                         ` <53AA3D85.5090800@huawei .com>
     [not found]                                                                                           ` <53AA3D85.5090800-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-06-25  8:12                                                                                             ` Alvise Rigo
2014-06-24  8:26                                                                   ` alvise rigo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53A0FA5D.5090204@huawei.com \
    --to=zhaoshenglong-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=a.motakis-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=kvmarm-FPEHb7Xf0XXUo1n7N8X6UoWGPAHP3yOg@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.