From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 4 19:11:56 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1DECBA34; Mon, 4 Feb 2013 19:11:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) by mx1.freebsd.org (Postfix) with ESMTP id 68824788; Mon, 4 Feb 2013 19:11:55 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id ds1so3411531wgb.0 for ; Mon, 04 Feb 2013 11:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=JeGMNOcLUBLJjNWwoyTTZsoQrUyjrvrqfr0VRW6Fgz8=; b=vRSnelNusgVW06L9n6uVw+MOFtQdbhcIN47Q/twAjHQTSQU2IFuslN+OqBLidB/Pgz Oj8oL/3BVaPGgxir84FA/vc+IR0M0crLmoXPM7a9n16+2xdgLSSt+hnCzu5PLZegxLjy /upf22RL1L7IaiTGwuahgG9BPO0juppxDvpczKs2gtVIimfJuMBAykKN3/0DPLoj5N8A s/j2vgfy8X/eyDAvx6W2Vg1Gyyh9G45ZWc44uC2XK6YryTeVH2/jxMd9N2T0vXCkxH16 X5Z07OgEETlDZuHrCUXBxahczSQ2q1PQXaZWJvjZka68DZ/wFYur1UGpB3fVYG4D6guM wZYQ== MIME-Version: 1.0 X-Received: by 10.194.108.101 with SMTP id hj5mr37410921wjb.6.1360005114422; Mon, 04 Feb 2013 11:11:54 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.236.88 with HTTP; Mon, 4 Feb 2013 11:11:54 -0800 (PST) In-Reply-To: <51098A9E.1080100@FreeBSD.org> References: <51068B74.2070808@FreeBSD.org> <51098A9E.1080100@FreeBSD.org> Date: Mon, 4 Feb 2013 11:11:54 -0800 X-Google-Sender-Auth: AeBYf7cPCER7RB8BNxSngbL5K_Q Message-ID: Subject: Re: [clang] NMI while trying to read acpi timer register From: Adrian Chadd To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 19:11:56 -0000 On 30 January 2013 13:03, Andriy Gapon wrote: > on 28/01/2013 16:30 Andriy Gapon said the following: >> is there any reasonable explanation for getting an NMI while trying to read acpi >> timer register? >> Note: this happens only after ACPI suspend/resume. > > An update. > This happens only with clang compiled kernel, gcc compiled kernel is OK. > Also, this happens only in the depth of fwohci driver (where it calls DELAY). > If firewire is not loaded, then there is no problem. > > I suspect that perhaps there is some miscompilation that results in some > incorrect I/O access that later leads to NMI. Too many unknowns and guesses > here, obviously. Do you have stack traces showing where it's happening? Posting that and the disassembly from those areas may shed a clue. Adrian