From owner-freebsd-questions@FreeBSD.ORG Mon Jun 22 08:10:23 2015 Return-Path: Delivered-To: freebsd-questions@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4C136786; Mon, 22 Jun 2015 08:10:23 +0000 (UTC) (envelope-from tuchalia@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5289E17; Mon, 22 Jun 2015 08:10:22 +0000 (UTC) (envelope-from tuchalia@gmail.com) Received: by lacny3 with SMTP id ny3so104739827lac.3; Mon, 22 Jun 2015 01:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=qNLFWYMuY2rZSMuMHk0gv70rFxxj41gTBYh5GX3zh/A=; b=CeBGPM6Fp+Xm8P0BZyDXPot5TWWVMA9q0CTmF+I8h8ToaAMFtUDGYbOOo70GvBTcWB i1Rtf5fuNHsqq0aEAab5iTPCa8GlbxV0942wah4OPE29jghKnBNyZrgGACvGjCA652/L ptHqf10WUVblk/slwW5oUZXZTv+uZQ0UG1u/Jb6FfbKZYgNP3zvIwMFWVu4yOkZBk8zs NJzPeZ7Yet15KDzcvzXHdJuyOeTOIlUaoAgumk4sfgRhgWcJwBlSkyxhh+y2Azi+pNyy x/JwB5trWvcZbMGsdmjBYBtQLc9JiMAUw+b2sRGw4fRsDEmcjll/y31xpEPn3GYKERRE yFgw== X-Received: by 10.152.239.131 with SMTP id vs3mr29503081lac.102.1434960620777; Mon, 22 Jun 2015 01:10:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Peyrolon Date: Mon, 22 Jun 2015 08:10:10 +0000 Message-ID: Subject: Re: How to test for memory corruption ? To: Pratik Singhal , freebsd-hackers , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2015 08:10:23 -0000 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 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