From owner-freebsd-arm@freebsd.org Tue Dec 1 11:28:38 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BFB3A3C1C8 for ; Tue, 1 Dec 2015 11:28:38 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (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 1A54B10DB for ; Tue, 1 Dec 2015 11:28:38 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: by lfs39 with SMTP id 39so3756994lfs.3 for ; Tue, 01 Dec 2015 03:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=93L3k9SnVGZoWpua91RiWuR5wmirImmRnaLUx0ENWh0=; b=jkEYyjLF3oYcJQrRDzJekmy75FJP8grOobFJbm5OLQKOlj5Wp8y70SUd67hGWKrqty dp/vi0rCI6F6H5vt88PQmM+vFbwkh5JS8yjLu2uFKJi2xIZIdSxOJI7oHn9spsibMYLu W821++lMJIxND67VZSYnQMHoi8vpQC7OHcPGQs6k04EkjFaNQV14N41y8cmYoLwkXJEJ EXOES5TSo0VvX/kWw6ay+UgIulEduc4q9waL73DyeHp/poeoFdKjXmQpAPKfrHhYuu/Q gP8RybbNXKMtDxp5k/c4xwgqT1kTaY1X1i4iH9xRFK5ve41vyxiCRpanWtyIpuQj1YGc T8eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=93L3k9SnVGZoWpua91RiWuR5wmirImmRnaLUx0ENWh0=; b=Rfpb2oowpa6jmMEYw5YcBB3oH7YsKy2I0GoO7b/bHRs6ZlpuYZhSjPCmt/u9aAV+zV N9Bo6AHqXHQ3oKK3zRSqSeEj02QF1hbjKGVaDjss1qBHoxsVCOh3GeyE7X9NKMIiQhjx XQizeWnQUxyYuOb2eCBgSHlxseV5jQ5K0K5lVaEN4umo/TdzSm/DmI8gktOxrCKeOC5g DDLm8NrqNuOrNhvJVswXGXv5K7LhCO5Xqvzw8n6CnZq28WYJeeVZq3vigxDEbYZwcKSM 6gyeT0CSri9tL7RQwopnLQYUayop6WYzesKOvZ1gc5Ld/2o16Sll2DM8KBxgse2U//Va zTbQ== X-Gm-Message-State: ALoCoQlDUOZ6OwJ7sUcBkUHj2GHfKqhOhYpFW+ROfdSKr0QXL6bvQ/7pAQLHsGkYQpEidKDuVmSI X-Received: by 10.112.147.9 with SMTP id tg9mr14399130lbb.38.1448969315939; Tue, 01 Dec 2015 03:28:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.76.65 with HTTP; Tue, 1 Dec 2015 03:28:16 -0800 (PST) In-Reply-To: References: From: Zbigniew Bodek Date: Tue, 1 Dec 2015 12:28:16 +0100 Message-ID: Subject: Re: RFC: HW watchpoints and single stepping for ARMv6/v7 To: Russell Haley Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 11:28:38 -0000 Hello Russell, That will be a good sign if it doesn't explode (if you see undefined instruction on boot then there's something wrong). More extended description what you can do with HW watchpoints is in this thread. For example you can check: https://lists.freebsd.org/pipermail/freebsd-arm/2015-November/012724.html Best regards zbb 2015-11-30 19:03 GMT+01:00 Russell Haley : > Cool. I have a hummingboard (iMX6). Do I need to know what I'm looking for > or am I just making sure it doesn't explode? > > Russ > > On Mon, Nov 30, 2015 at 6:41 AM, Zbigniew Bodek wrote: >> >> Hello again, >> >> It seems that this is the last chance to test this patch on other >> platforms than Rpi, Arndale and Pandaboard. >> Please check out this https://reviews.freebsd.org/D4037 >> I will be grateful if you had a chance to test this on something else >> than the above mentioned. >> >> Best regards >> zbb >> >> 2015-10-31 17:21 GMT+01:00 Zbigniew Bodek : >> > Hello again, >> > >> > I should have post some more information about testing this patch. Here >> > it goes: >> > ------------------------------------------------------------------ >> > One can enter kernel debugger by one of those: >> > >> > press: ~, ctrl + b >> > or >> > type: sysctl -w debug.kdb.enter=1 >> > >> > You can then set a HW watchpoint on any memory location at
>> > by invoking following command in KDB: >> > db> hwatch
, >> > >> > parameter is optional, the default is 4. >> > >> > To display watchpoints: >> > db> show watch >> > >> > To remove watchpoint: >> > db> dhwatch
>> > >> > Press "c" to continue. >> > >> > ------------------------------------------------------------------ >> > While in KDB you can step through the kernel code using "s" BUT you >> > need to apply a dependent patch: https://reviews.freebsd.org/D4036 >> > otherwise you will cause the kernel panic. >> > >> > Thanks again >> > zbb >> > >> > 2015-10-30 17:25 GMT+01:00 Zbigniew Bodek : >> >> Hello, >> >> >> >> We would like to add HW watchpoints and HW single step support to ARMv6 >> >> kernel. >> >> Please check this review: https://reviews.freebsd.org/D4037 >> >> >> >> Since there are differences between debug architectures on ARM (v6, >> >> v6.1, v7, v7.1) I would like to ask for some testing on your machines. >> >> I was able to test this on Pandaboard and Arndale but please check >> >> whether this works on your targets as well. >> >> >> >> Rise a red flag if you see any issues or in worst case scenario - >> >> "undefined instruction" error. >> >> >> >> Best regards >> >> zbb >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >