From owner-freebsd-stable@FreeBSD.ORG Wed Aug 29 19:40:32 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A28A81065675; Wed, 29 Aug 2012 19:40:32 +0000 (UTC) (envelope-from ayuzhaninov@openstat.ru) Received: from mail.openstat.ru (mail.openstat.ru [193.169.234.252]) by mx1.freebsd.org (Postfix) with ESMTP id 4F1208FC0A; Wed, 29 Aug 2012 19:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=openstat.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=eC7WIO5ozJ9aWy1FAKwbmIxZXNb4Qqy9nVZv1tFFw/k=; b=ilhfQ/XWSMtKq/u81UK/ZVlUCE0ABcywIRPt3YPBEokFNP+pjKtDJDhLwTKNaHyqxo5biiyj+PuGo4eINVNAR1mkLQ+0ofavWHz3qpOM2PeN5AnoIKAhaZ3zETiRB6uMPZDoGQ8l8cHO6/Y3Jz0YAfDIq/XacWBobxEd/DYIav0=; Received: from [178.214.34.160] (helo=[192.168.1.100]) by mail.openstat.ru with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80 (FreeBSD)) (envelope-from ) id 1T6o0I-000MzZ-0k; Wed, 29 Aug 2012 23:32:42 +0400 Message-ID: <503E6E59.2000600@openstat.ru> Date: Wed, 29 Aug 2012 23:32:41 +0400 From: Anton Yuzhanionov User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: John Baldwin References: <503DE2AB.6030702@citrin.ru> <201208290825.44198.jhb@freebsd.org> In-Reply-To: <201208290825.44198.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: ayuzhaninov X-Rspam-Status: skip_authenticated Cc: freebsd-stable@freebsd.org Subject: Re: Problem with IPMI KCS driver X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 19:40:32 -0000 On 29.08.2012 16:25, John Baldwin wrote: > Hmm. Can you try this: > > Index: kern/kern_clock.c > =================================================================== > --- kern/kern_clock.c (revision 239819) > +++ kern/kern_clock.c (working copy) > @@ -382,7 +382,7 @@ > int stathz; > int profhz; > int profprocs; > -int ticks; > +volatile int ticks; > int psratio; > With this patch if_cdce.c can't be compiled: /usr/src/sys/modules/usb/cdce/../../../dev/usb/net/if_cdce.c: In function 'cdce_attach': /usr/src/sys/modules/usb/cdce/../../../dev/usb/net/if_cdce.c:616: warning: passing argument 2 of 'memcpy' discards qualifiers from pointer target type *** Error code 1 memcpy(&sc->sc_ue.ue_eaddr[1], &ticks, sizeof(uint32_t)); As I understand, memcpy() don't accept pointers to volatile objects. May be some other source can be used for generated MAC address. I have installed patched kernel (without cdce) and need some time to check if the problem with IPMI KCS is reproduced. -- Anton Yuzhaninov