Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 2015 08:10:10 +0000
From:      Daniel Peyrolon <tuchalia@gmail.com>
To:        Pratik Singhal <ps06756@gmail.com>, freebsd-hackers <freebsd-hackers@freebsd.org>,  FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to test for memory corruption ?
Message-ID:  <CA%2ByaQw_Ba50ik7sKAGuLE1nXU3ba_rmZ_xBgj%2ByY53tNbt8H6w@mail.gmail.com>
In-Reply-To: <CAGf2gkMkG6kpBfYnwL_MYrMGF6hKyEjGA2cHND6ZkyUkHWrnFQ@mail.gmail.com>
References:  <CAGf2gkMkG6kpBfYnwL_MYrMGF6hKyEjGA2cHND6ZkyUkHWrnFQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I have absolutely no idea, but maybe you can use DTrace for this?

You could also print the location for each memory write.

El s=C3=A1b., 20 de junio de 2015 9:20, Pratik Singhal <ps06756@gmail.com>
escribi=C3=B3:

> Hello, I have written code for adding support for DMA transfers for
> Allwinner A10 SoC (Cubieboard 1) in MMC driver/
>
> I have tried transferring files to/from mmc card and verified that files
> are copied fine.
> Although, many times the kernel panics suddenly, after I transfer files.
> This does not happen If I use PIO to transfer data (PIO's code is tested
> and already committed to ~HEAD). Panics don't occur in the statements
> written for DMA transfer.
>
> I am suspecting that the problem is that the DMA transfer apart from
> writing where it is required, is overwriting other parts of the memory
> also.
>
> Is there any way, I can verify that this is/this is not the case ?
>
> Thank you,
> Pratik Singhal
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>
--=20
Daniel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByaQw_Ba50ik7sKAGuLE1nXU3ba_rmZ_xBgj%2ByY53tNbt8H6w>