From owner-freebsd-questions@FreeBSD.ORG Sat Jun 20 07:19:52 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA5EE256; Sat, 20 Jun 2015 07:19:52 +0000 (UTC) (envelope-from ps06756@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (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 37D92C1D; Sat, 20 Jun 2015 07:19:52 +0000 (UTC) (envelope-from ps06756@gmail.com) Received: by lacny3 with SMTP id ny3so85422058lac.3; Sat, 20 Jun 2015 00:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=R+BNE4OCSTWmdvounUL0LNzM17qviEHsArs0ZmRPSDY=; b=tFbL01DFB1G+dnXbIp0sHfEXHK9dq6Rm/Nxwcycyaq62Gj1hfKEztP225OXNBdSwXE 5gp8S10xHqjCcv6pHeLwH3JjMrBOaGzMQfmthajhHMfgHpjZf2u/cqYWSFHdr6LL4uP1 A/hpIHT/orrAkYBfCT6cWARBHMpcYFo+coMzYy9Y5wP5Np+/UCNX48LNwY2PWSww5RT8 Dd2sspZRtQz+wemQJLk8Cr4ULej2vvmxOzFMUL6ke9kwvdRYTJIze1JvRQ1z3OkfOfUD dFeANo91azpBTl7ED0Gb/TWRVO1WFp5GJpw0gEQeHKMLQ5eYG2WbkcZLHgztz4T8lHYF t3jQ== X-Received: by 10.112.42.16 with SMTP id j16mr20767919lbl.98.1434784790179; Sat, 20 Jun 2015 00:19:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.61.199 with HTTP; Sat, 20 Jun 2015 00:19:29 -0700 (PDT) From: Pratik Singhal Date: Sat, 20 Jun 2015 12:49:29 +0530 Message-ID: Subject: How to test for memory corruption ? To: freebsd-hackers , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 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: Sat, 20 Jun 2015 07:19:52 -0000 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