mohitnegi Posted February 26, 2015 Report Posted February 26, 2015 hello , I have a virtual platform(versatilepb based) which I am using to validate my Universal flash subsystem(UFS) host controller TLM model.From OS, when it issue SCSI command, the underlying ufshcd driver make a data packet and put in in system memory. The system memory is allocated using dmam_alloc_coherent. The driver also write the starting address of this memory in UFS host controller register. You can see this driver in linux-3.17.2/drivers/scsi/ufs Now when in TLM model I read that register, I get the correct address bus when I try to access this address asuint8_t data1 = *( uint8_t *) (address);I am getting segmentation fault. My question is can I directly access system memory address in TLM model as I am doing above or I need to do something special. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.