Repeatedly Changing AXI BAR 0 Address Register but Microblaze Keeps Reading from the Same Address

Hello,
I work on a project based on AXI PCIe Bridge.
What I am trying to do is access a userspace memory block directly from a Microblaze (or DMA).
So far, I use posix_memalign() to allocate a block of memory in the userspace which has the size of the page (4K).
Once I allocate this block of memory I fill it with data.
Then I pass its pointer to my kernel driver where I use get_user_pages() and a few other functions to create a scatter/gather list in order to get the physical addresses of my userspace pages (so far I get one physical address since I have allocated one page).
The next step is to write that physical address to the AXI BAR 0 address register.
I validate that the correct address is written at this register.
Then I ask the Microblaze to read the data from this physical address but I get different data.
After reading the data I ask the Microblaze to write new ones at this address.
I repeat all that procedure by allocating new memory block filled with different data in my userspace.
Then I pass the new physical address again at the AXI BAR 0 address register.
This time the Microblaze reads the last data it wrote itself.
It seems like the Microblaze always reads/writes from/to an unknown address even if I repeatedly give different physical address at the AXI BAR 0 address register.
Are there any suggestions?
Could this be a cache coherency issue?
Trying the "cache coherency issue" approach, though, did not solve the problem either.
I have, also, tried a different case which worked.
I used pci_alloc_consistent() in my kernel driver and I gave its physical address to the AXI BAR 0 address register.
Then the MIcroblaze writes and reads data from/to this block of memory correctly.
The kernel driver verified that the transfers are correct since it read the same data that the Microblaze previously wrote.
This approach always worked for every new allocated block of memory.
 

Hello,
I work on a project based on AXI PCIe Bridge.
What I am trying to do is access a userspace memory block directly from a Microblaze (or DMA).
So far, I use posix_memalign() to allocate a block of memory in the userspace which has the size of the page (4K).
Once I allocate this block of memory I fill it with data.
Then I pass its pointer to my kernel driver where I use get_user_pages() and a few other functions to create a scatter/gather list in order to get the physical addresses of my userspace pages (so far I get one physical address since I have allocated one page).
The next step is to write that physical address to the AXI BAR 0 address register.
I validate that the correct address is written at this register.
Then I ask the Microblaze to read the data from this physical address but I get different data.
After reading the data I ask the Microblaze to write new ones at this address.
I repeat all that procedure by allocating new memory block filled with different data in my userspace.
Then I pass the new physical address again at the AXI BAR 0 address register.
This time the Microblaze reads the last data it wrote itself.
It seems like the Microblaze always reads/writes from/to an unknown address even if I repeatedly give different physical address at the AXI BAR 0 address register.
Are there any suggestions?
Could this be a cache coherency issue?
Trying the "cache coherency issue" approach, though, did not solve the problem either.
I have, also, tried a different case which worked.
I used pci_alloc_consistent() in my kernel driver and I gave its physical address to the AXI BAR 0 address register.
Then the MIcroblaze writes and reads data from/to this block of memory correctly.
The kernel driver verified that the transfers are correct since it read the same data that the Microblaze previously wrote.
This approach always worked for every new allocated block of memory.
 

Similar Messages

  • When clicking websites my Avast 5.0 antivirus notifies me that a malicious URL is trying to access my system or that a Trojan has been prevented from access. The attempted Malware/Trojan is always from the same address:[Ticon.in/nte/kuz/.exe/xhdoe515bvo3

    suspicious Maleware / Trojan.
    == This happened ==
    Every time Firefox opened
    == I tried to access a website

    Hello "Morbus",
    Thank you for your quick and informative reply. First I would like to provide more information on this attempted Malware/Trojan. I have copied the full addresses for you and/or anyone who may have interest. It follows below.
    28.06.2010 07:38:00 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\program files\Mozilla Firefox\Firefox.exe ( 5436 ) ]
    28.06.2010 08:14:44 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 4476 ) ]
    28.06.2010 13:32:53 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 1988 ) ]
    28.06.2010 17:51:53 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 5400 ) ]
    29.06.2010 13:31:03 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 2444 ) ]
    29.06.2010 23:15:14 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 480 ) ]
    30.06.2010 09:36:22 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe/wHd0e51a5bV03006f36002Ra38dbe4f108T9ccfa9f8Q000002fe901801F0035010aJ14000601L656e2d55530000000000 [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 5164 ) ]
    30.06.2010 22:31:52 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe/wHd0e51a5bV03006f36002Ra38dbe4f108T9ccfa9f8Q000002fe901801F0035010aJ14000601L656e2d55530000000000 [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 3600 ) ]
    I had failed to mention in my previous comments that each time the attempted attacks took place, a blank Adobe PDF page appeared. As you suggested, I disabled the Adobe add-on and have had no further attacks. I am extremely dilligent in keeping my SuperAntiSpyware Pro, AvastAntiVirus 5.0, ThreatFire, Vista Firewall Control, Malewarebytes and Windows Defender up to date. However, after any attack I always run these in safe mode just as a precaution. I had suspected the Adobe drop-in may have been the culprit because of the page that appeared and your suggested fix has in fact fixed it!
    Thank you again for your unselfish time in coming to my rescue. "Deaf Dave"
    From: [email protected]
    Date: 7/1/2010 12:53:40 PM
    To: [email protected]
    Subject: Reply notification: when clicking websites my Avast 5.0 antivirus notifies me that a malicious URL is trying to access my system or that a Trojan has been prevented from access. The attempted Malware/Trojan is always from the same address:[ticon.in/nte/kuz/.exe/xhdoe515bvo38d
    "Morbus" has posted a reply to a thread you're watching.
    You can view the thread and reply at the following URL:
    https://support.mozilla.com/en-US/forum/1/714170#threadId714337
    Message:
    Hello Deaf Dave.
    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    Also, it's possible that your system is infected with malware. To scan for malware, install, update and run these programs ''in this order''. They are all free for personal use, but some have limited functionality in their "free mode", but the features you'll miss are not really needed to find and remove the problem you have. Remember that ''not all programs detect the same malware''!
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/ superantispyware.com]
    AdAware - [http://www.lavasoftusa.com/software/adaware/ lavasoftusa.com/software/adaware]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html safer-networking.org/en/index.html]
    Windows Defender - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx microsoft.com/windows/products/winfamily/defender/default.mspx]
    Dr. Web Cureit - [http://www.freedrweb.com/cureit/ freedrweb.com/cureit]
    If these don't find it or can't clear it, please tell me and I'll provide you with further assistance.
    Did this response solve your problem with Firefox?
    Yes, this solved my problem (click here):
    https://support.mozilla.com/tiki-feedback.php?id=714170&hash=6d5f163b3092b464aa15d04188b5cca2&type=forum_topic&feedback=Firefox%20Support%20Forum&commentId=714337
    No, this did not solve my problem (click here):
    https://support.mozilla.com/en-US/forum/1/714170?hash=6d5f163b3092b464aa15d04188b5cca2#form
    If you no longer wish to receive notifications for this thread,
    visit the following URL to cancel your subscription:
    https://support.mozilla.com/tiki-cancel_watch.php?section=forum&hash=6d5f163b3092b464aa15d04188b5cca2

  • Outgoing Mac Mail always send from the same address?

    Hey y'all -
    I use 3 gmail accounts through mac mail for 3 different purposes - all fine. But when I send mail, regardless of what account I send it from, recipients always recieve my emails from the same address? E.G. I send an email from addresses 1 or 2, but when they are received they are from address 3? I've also removed address 3 from mac mail, but recipients STILL see address 3 as the sender. Can anyone help? Would a reinstall of mail be appropriate, if so what would be the effective way to go about it?
    Thanks in advance,
    Stu

    SOLVED IT!
    Right, I had multiple email accounts, all gmail, address 1 2 & 3.
    All mail went to the right addresses, fine. But when I compose, lets say from address 1 or 2, it ALWAYS ends up being received the other end by address 3. I only find this out until I get a reply delivered to the wrong address.
    SO  go to preferences, select one of the problematic addresses, then outgoing mailserver (SMTP:) in this case it will say Gmail. Click it so you get the drop down and edit SMTP list. There is a tab that says advanced. This is where I noticed the problem. On my list of SMTP servers I had one for my microsoft account, and then one Gmail one for all 3 gmail accounts. And what did I find for authentication? the username and password of the problem address that ALL my gmail accounts were sending through. You need to create SEPERATE smtp servers for each and every account, especially when using multiple accounts of the same kind (e.g. 3 gmails!)
    This fixed the problem for me perfectly and now my emails send from the CORRECT selected address. HOORAH!
    ALSO...
    Regardless weather it by gmail or hotmail you compose from, mac defaults to using the next working server. Before setting up seperate smtp servers for each gmail I just deleted the one that was there and then it started sending from microsoft account etc... just to clarify that it works regardless of account type!

  • I am getting a pop up on my iPhone 4S asking password of my iCloud even though I feed the password but still keep on asking the same thing every second so I am not able to use my iPhone.

    I am getting a pop up on my iPhone 4S asking password of my iCloud even though I feed the password but still keep on asking the same thing every second so I am not able to use my iPhone.at various times it asks different passwords.

    Curretly, there is an iCloud blackout.  It started this morning around 2AM California time (Pacific), 5AM New York (Eastern).  A lot of people have been having issues all day, including me.  No iCloud services are online.  Even Find My iPhone is down.

  • HT3209 every time i try to buy anything an error box pops up that says my apple ID has expired and i try making a new one but it keeps telling me the same thing. what do i do?

    every time i try to buy anything an error box pops up that says my apple ID has expired and i try making a new one but it keeps telling me the same thing. i cant find an answer to my problem no mater what i do.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How Can I delete multiple messages from the same address in Mac Mail

    Hope this is in the correct Community.  Hope someone can help me to delete multiple email messages from the same email address.
    At the moment I can do it by holding down the Command key and highlighting each email, but that can be difficult with many messages
    to delete.  Is there a quicker way?
    Thanks for any help on this.

    Thanks for the reply, appreciate your input.  I did find another way of doing it and that is to highlight the first e-mail, hold down the shift key and click on the last one.  That highlights them all and then they can all be deleted.  Your ideas also work of course and I thank you for that.  Cheers.

  • I cant call to a mobile number since yesterday, but can receive call from the same number. I am using iphone 4s. Is there any setting error?

    I can't call to a mobile number since yesterday, but still can receive call from the same number. I am using iphone 4s. Is there any setting error?

    you have to make sure that CFWD Bridge Mode under the Line tab of the SPA9000 where the SPA400 is registered is set to ALL...include VMSP Bridge and XFER Bridge Mode as well..power cycle then check if you are still getting one-way audio
    | isolate! isolate! isolate! |

  • I have loaded new software and iMessages does not appear to be working.  All messages appear as in delivered but they will send to the same address on my iPhone.

    I messages does not appear to be working on iPad every time I type a message it comes up as in delivered but I can type the same message on my iPhone and it works straight away

    MMS is a carrier issue... contact Verizon and ensure your account is provisioned correctly.  I would think that someone would be intelligent enough to do that before buying a new device, but......
    iMessage could be an activation issue or a network issue.
    Have you tried Settings > General > Reset > Reset Network Settings?
    Does iMessage work consistently on Wi-Fi?

  • Getting e-mails from the same address onto two devices

    I am so cross.  My husband and I have used Blackberries for years and never had this problem before.  Last month, both our phones were stolen, so we replaced them with Curve 9360s.  He and I share a Yahoo e-mail account address.  However, on these new devices, we are not allowed to both use the address.  I can register the address onto my phone but as soon as I do so with his, the service vanishes from mine and vice versa. I have tried using the same Blackberry ID for both; I have tried setting up different IDs on each phone.  Doesn't work.  It's having the same e-address that is the sticking point.  I'm really really hacked off about this as we both rely on our phones for on-the-go e-mailing and it would seem we have just wasted £200 on phones that provide a lesser service than the old models we were using before.

    That certainly doesn't sound right. I've used the same email account on two different BlackBerrys.
    You said you tried it, but two different BBIDs on the different devices should do it.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I had to reset my computer and redownload Itunes. My iphone 5 will not connect to the new itunes i have trusted the computer but it keeps bringing up the same question each time i reconnect to the computer. How can i get my phone to connect to itunes

    I had to reset my computer because of a virus i had. When i re installed itunes my music was gone. I went to plug in my Iphone 5 and know my phone does not recognize the computer. I also have hit the trust button on my iphone but have to continue trusting the computer each time it gets plugged in. Still the phone wont connect to itunes at all to view what is on the phone. How do i fix this connection problem?

    Hey ebe301,
    Sorry to hear about your troubles with your PC. If you are not seeing your iPhone on your computer, then take a look at the link below to walk you through getting that working again. It will have you verify that drivers are installed and working as well as any third party software that may be causing conflicts. 
    iPhone, iPad, or iPod not recognized in iTunes for Windows
    https://support.apple.com/en-us/HT204095
    Take care,
    -Norm G.  

  • Reply from the same address the message was sent t...

    Hi,
    I have 2 email addresses synced into one gmail account (one regular gmail "[email protected]" and the other from my business school eg. [email protected] ). I receive emails addressed to any of the mentioned emails into regular gmail account.
    When I write my emails from a PC, the compose box gives me an option to let me select which email address will be displayed to the receiver ("send from" option.... [email protected] OR [email protected]).
    I want to figure out how can I get the same option on my 920 mailbox. It by default sends the emails from the regular gmail account even if the initial message has been replied to the london.edu email.
    Let me know if there is solution to this.
    Thanks.
    Solved!
    Go to Solution.

    Metromail may be good for you if you are looking for gmail features support
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Every time I plug my iPhone 5S to the USB port in my car, it asks if I "Trust this Computer."  I tell it to trust the computer, but it keeps asking me the same question every time I plug it into the car, which is getting annoying.

    Is there anything that can be done to fix this?

    Hi joy145,
    If you are having issues syncing and would like to manually manage your content, you may find the following article helpful:
    Apple Support: Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/HT1535
    If you are still having issues or continually prompted to erase and sync, you may want to try restoring your iPhone to factory settings before moving your data over (either via syncing or manually):
    Apple Support: Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    (Note: Restoring iOS software deletes all your data and content from your device, including songs, videos, contacts, photos, and calendar info.)
    Regards,
    - Brenden

  • Stopped Playing LBC Radio, but plays otherv stations from the same radio group!

    Hi,
    As well as mounting issues, when I access LBC via Google it will now will not play. Yet will play other stations, just not LBC.
    Crazy!
    Regards,
    Russ. 

    Did it works on another device ? check it first because it may have chance that they withdraw support for that.............

  • How do you handle multiple at the same address?

    My wife just got an iMac. She is using the Birthday feature in Address Book and iCal to track our friends and family birthdays and anniversaries.
    Question:
    How do you track it when multiple people are at the same address? For instance, our friends are a family of four, but they all live at the same address. Do you need to make a separate Address Book card for each of them, even the 1 year old baby? Or can you track multiple people in a single card with custom fields?
    If you do need to make multiple cards, then how do you handle mailing lists? For instance, if I make separate cards for all four of them, how do I make sure I only send on Christmas card when I use my Mac to print labels?
    Thanks for any advice.

    This is really an issue that you're going to have to resolve yourself since Apple's address book isn't really built with this in mind - darn it. For me there are three scenarios. First, a singleton. No problem. Second a family for which all members share the same information - acquantences to whom I don't send birthday greetings. These get one card and I'll put in both (or all) their names in the first name field (as in Bob and Jean). If there are children, in the last name field I'll add 'and Ken' or 'and the kids'. Third, a family for which some fields are different - perhaps cell phone number, birthday, etc.
    For mailing purposes, I create a holiday group and put the people I'll be sending cards to into the group.

  • Hi there, i am trying to download itunes to my laptop but it keeps freezing before the download finishes. it always stops at the same spot..

    hi there, i am trying to download itunes to my laptop but it keeps freezing at the same spot everytime.. i have been trying to do this for a couple of weeks but i'm not having much luck! Does anyone have any ideas on how to fix this please?????

    You can try using this tool to first remove all traces of Reader from your computer:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you can download the full offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

Maybe you are looking for