From owner-freebsd-arm@freebsd.org Tue Dec 8 19:34:46 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 6E8029D59EC for ; Tue, 8 Dec 2015 19:34:46 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 EE0741B7A for ; Tue, 8 Dec 2015 19:34:45 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: by lfaz4 with SMTP id z4so19582383lfa.0 for ; Tue, 08 Dec 2015 11:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=X0AIALYU5l1p1QpHqctCXEk4UKwK5SrszpaTfb0zDPk=; b=vYtfV90JNQkOcyhesE2S6d2DEn37Ir5SZ6N/Ms/DHcdIBQkfHra6+HG94lEH1ohuBU zYpSCHLIOmTT4nvzsW+QMgoH59L69MiaXRtv1zN2AH7CKJCGwv0h/diDv7ZRPVZtMGzL sXT1bFEH6KTSZwseTuvfClzmzVUJHiGa525lPA16Wvm1Y8RL7RzVD5ywS2gidcmODHad OPcmCl6AbkgVq+o/G5i6jDdH0gj2YoVh2ngrp7hlEY7gjFmHqm9vDmF4c7z2HsrwqLvE 2P/qoXNhefy1+af2nudWPmt2pEisUcFZN5DQJGzJ/3XWF4z+/TNpxWSi7O+Kl+G/M630 ne+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-type; bh=X0AIALYU5l1p1QpHqctCXEk4UKwK5SrszpaTfb0zDPk=; b=aeQfL/FExg1q45pEEtOjFyF3YHZAA3AxQA0bbqwzaRJmvy/rGIe2bxXcCnpCt6l//x qiW+nugnmumie7SpuSNgV3JcbQBWJ0PWdgzELJOiX3VJQ7Xz8/TZ10A20Hoolus2ReT2 hWUhWBg9gy3YalJxE4/UtYeFZ4mEfkunkUSxuSIiAMZI8V6SbwX+73rNvG9Skyh51XOZ jxxWtPRD+HJ+MXdgdmB6PjumweMwB0HEBx8DuHO69hMrR2DQZyI1A5fmMUrDMEk5yUbW grzUNZbB/S0koPeQ1/UbNMmzvShcd0/YRiQZFMkZwbMbaEL+HnPzKaK7qvz7rMssDAjT DCEQ== X-Gm-Message-State: ALoCoQkTIkRAr2ULw36kBQcSQDMrX72yF4R4VPjNIiAottXRoyDKU9JddLDZhlErGm2GD2WomGfqft2uLPFmJWJswr/UZ7jK0A== X-Received: by 10.25.42.20 with SMTP id q20mr481358lfq.158.1449603283925; Tue, 08 Dec 2015 11:34:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.76.65 with HTTP; Tue, 8 Dec 2015 11:34:24 -0800 (PST) From: Zbigniew Bodek Date: Tue, 8 Dec 2015 20:34:24 +0100 Message-ID: Subject: Various panics while using HWPMC on ARM64 To: br@freebsd.org, Andrew Turner 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, 08 Dec 2015 19:34:46 -0000 Hello, I encountered some problems with FreeBSD on ARM64 while using hwpmc. Some of the errors that I found are listed below: * panic: Unknown kernel exception 0 esr_el1 2000000 * panic: data abort in critical section or under mutex * panic: VFP exception in the kernel * panic: Unknown kernel exception 21 esr_el1 86000006 Something is obviously broken. This can be easily reproduced by invoking for example: $ pmcstat -S CPU_CYCLES -O cpu_cycles.pmc wait ~30 seconds or more and hit ctrl + C Platform: ThunderX CRB (single socket) SVN rev: 291651 Kernel: GENERIC + "device hwpmc" - "some debugging options" (also verified that GENERIC + "device hwpmc" does the same) Logs + patch for GENERIC conf. + kernel binary + objdumped kernel: https://people.freebsd.org/~zbb/arm64/armv8_panic.tar.gz Kind regards