From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 15:12:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 15:11:57 -0500 Received: from dsl254-112-233.nyc1.dsl.speakeasy.net ([216.254.112.233]:7553 "EHLO snark.thyrsus.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 15:11:53 -0500 Date: Wed, 16 Jan 2002 14:56:05 -0500 From: "Eric S. Raymond" To: linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: CML2-2.1.4 is available Message-ID: <20020116145605.A10792@thyrsus.com> Reply-To: esr@thyrsus.com Mail-Followup-To: "Eric S. Raymond" , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org The latest version is always available at . Release 2.1.4: Wed Jan 16 14:42:57 EST 2002 * Resync with 2.4.18-pre4 and 2.5.3-pre1. * Fixed a nasty little bug in property computation. * Fixed another nasty little bug in display of constraint violations. I fat-fingered some display code in 2.1.3 while trying to do a better job of passing rulesfile line number information back in error popups. This patch fixes that problem. The autoconfigurator is progressing nicely. It now generates a correct configuration in "Look, ma! No hands." mode on three different Intel boxes -- my all-PCI SCSI custom monster machine, an IDE-based IBM Thinkpad laptop, and a hybrid PCI/ISA VA box from late '97. -- Eric S. Raymond The conclusion is thus inescapable that the history, concept, and wording of the second amendment to the Constitution of the United States, as well as its interpretation by every major commentator and court in the first half-century after its ratification, indicates that what is protected is an individual right of a private citizen to own and carry firearms in a peaceful manner. -- Report of the Subcommittee On The Constitution of the Committee On The Judiciary, United States Senate, 97th Congress, second session (February, 1982), SuDoc# Y4.J 89/2: Ar 5/5 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 17:50:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 17:50:35 -0500 Received: from willow.seitz.com ([207.106.55.140]:12050 "EHLO willow.seitz.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 17:50:18 -0500 From: Ross Vandegrift Date: Wed, 16 Jan 2002 17:50:14 -0500 To: "Eric S. Raymond" , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.4 is available Message-ID: <20020116175014.A21277@willow.seitz.com> In-Reply-To: <20020116145605.A10792@thyrsus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020116145605.A10792@thyrsus.com>; from esr@thyrsus.com on Wed, Jan 16, 2002 at 02:56:05PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2002 at 02:56:05PM -0500, Eric S. Raymond wrote: > The latest version is always available at . > > Release 2.1.4: Wed Jan 16 14:42:57 EST 2002 I've verified that the lockup I reported earlier still happens with 2.1.4. Ross Vandegrift ross@willow.seitz.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 18:01:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 18:01:03 -0500 Received: from willow.seitz.com ([207.106.55.140]:18194 "EHLO willow.seitz.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 18:00:45 -0500 From: Ross Vandegrift Date: Wed, 16 Jan 2002 18:00:42 -0500 To: "Eric S. Raymond" , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.4 is available Message-ID: <20020116180042.A21447@willow.seitz.com> In-Reply-To: <20020116145605.A10792@thyrsus.com> <20020116175014.A21277@willow.seitz.com> <20020116174340.A16302@thyrsus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020116174340.A16302@thyrsus.com>; from esr@thyrsus.com on Wed, Jan 16, 2002 at 05:43:40PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2002 at 05:43:40PM -0500, Eric S. Raymond wrote: > Ross Vandegrift : > > On Wed, Jan 16, 2002 at 02:56:05PM -0500, Eric S. Raymond wrote: > > I've verified that the lockup I reported earlier still happens with 2.1.4. > > Keystroke sequence to reproduce, please? > -- > Eric S. Raymond > > "Taking my gun away because I might shoot someone is like cutting my tongue > out because I might yell `Fire!' in a crowded theater." > -- Peter Venetoklis From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 18:00:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 18:00:13 -0500 Received: from dsl254-112-233.nyc1.dsl.speakeasy.net ([216.254.112.233]:59009 "EHLO snark.thyrsus.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 18:00:03 -0500 Date: Wed, 16 Jan 2002 17:43:40 -0500 From: "Eric S. Raymond" To: Ross Vandegrift Cc: linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.4 is available Message-ID: <20020116174340.A16302@thyrsus.com> Reply-To: esr@thyrsus.com Mail-Followup-To: "Eric S. Raymond" , Ross Vandegrift , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net In-Reply-To: <20020116145605.A10792@thyrsus.com> <20020116175014.A21277@willow.seitz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020116175014.A21277@willow.seitz.com>; from ross@willow.seitz.com on Wed, Jan 16, 2002 at 05:50:14PM -0500 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ross Vandegrift : > On Wed, Jan 16, 2002 at 02:56:05PM -0500, Eric S. Raymond wrote: > I've verified that the lockup I reported earlier still happens with 2.1.4. Keystroke sequence to reproduce, please? -- Eric S. Raymond "Taking my gun away because I might shoot someone is like cutting my tongue out because I might yell `Fire!' in a crowded theater." -- Peter Venetoklis From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 18:19:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 18:18:43 -0500 Received: from dsl254-112-233.nyc1.dsl.speakeasy.net ([216.254.112.233]:65153 "EHLO snark.thyrsus.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 18:18:34 -0500 Date: Wed, 16 Jan 2002 18:01:12 -0500 From: "Eric S. Raymond" To: Ross Vandegrift Cc: linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.4 is available Message-ID: <20020116180112.C16592@thyrsus.com> Reply-To: esr@thyrsus.com Mail-Followup-To: "Eric S. Raymond" , Ross Vandegrift , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net In-Reply-To: <20020116145605.A10792@thyrsus.com> <20020116175014.A21277@willow.seitz.com> <20020116174340.A16302@thyrsus.com> <20020116180042.A21447@willow.seitz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020116180042.A21447@willow.seitz.com>; from ross@willow.seitz.com on Wed, Jan 16, 2002 at 06:00:42PM -0500 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ross Vandegrift : > On Wed, Jan 16, 2002 at 05:43:40PM -0500, Eric S. Raymond wrote: > > Ross Vandegrift : > > > On Wed, Jan 16, 2002 at 02:56:05PM -0500, Eric S. Raymond wrote: > > > I've verified that the lockup I reported earlier still happens with 2.1.4. > > > > Keystroke sequence to reproduce, please? > > On what screen? With the tool invoked how? -- Eric S. Raymond No matter how one approaches the figures, one is forced to the rather startling conclusion that the use of firearms in crime was very much less when there were no controls of any sort and when anyone, convicted criminal or lunatic, could buy any type of firearm without restriction. Half a century of strict controls on pistols has ended, perversely, with a far greater use of this weapon in crime than ever before. -- Colin Greenwood, in the study "Firearms Control", 1972 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 18:33:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 18:33:19 -0500 Received: from apogee.whack.org ([167.216.255.203]:61426 "EHLO mx1.whack.org") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 18:33:05 -0500 Date: Wed, 16 Jan 2002 15:33:04 -0800 (PST) From: Wilson Yeung To: linux-kernel@vger.kernel.org cc: linux-net@vger.kernel.org Subject: hires timestamps for netif_rx() In-Reply-To: <20020116180042.A21447@willow.seitz.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I'd love to have a run-time tuneable kernel parameter that lets me use do_gettimeofday() instead of get_fast_time for received packet timestamping. Does this seem reasonable? This is especially useful for me when I perform round trip time measurements (despite the affects of interrupt latency). Here's a patch against the 2.4.17. Modified files are include/linux/sysctl.h, net/core/dev.c, and net/core/sysctrl_net_core.c. The sysctl tuneable parameter is /proc/sys/net/core/hires_rx_timestamp, which is set to 0 by default. Feedback, advice would be appreciated. Patch follows: diff -urN -X dontdiff linux-2.4.17/include/linux/sysctl.h linux-2.4.17-wilson/include/linux/sysctl.h --- linux-2.4.17/include/linux/sysctl.h Mon Nov 26 05:29:17 2001 +++ linux-2.4.17-wilson/include/linux/sysctl.h Wed Jan 16 11:54:00 2002 @@ -204,7 +204,8 @@ NET_CORE_NO_CONG_THRESH=13, NET_CORE_NO_CONG=14, NET_CORE_LO_CONG=15, - NET_CORE_MOD_CONG=16 + NET_CORE_MOD_CONG=16, + NET_CORE_HIRES_RX_TIMESTAMP=17 }; /* /proc/sys/net/ethernet */ diff -urN -X dontdiff linux-2.4.17/net/core/dev.c linux-2.4.17-wilson/net/core/dev.c --- linux-2.4.17/net/core/dev.c Wed Nov 7 14:39:36 2001 +++ linux-2.4.17-wilson/net/core/dev.c Wed Jan 16 11:53:30 2002 @@ -1069,7 +1069,6 @@ /*======================================================================= Receiver routines =======================================================================*/ - int netdev_max_backlog = 300; /* These numbers are selected based on intuition and some * experimentatiom, if you have more scientific way of doing this @@ -1082,6 +1081,7 @@ struct netif_rx_stats netdev_rx_stat[NR_CPUS]; +int hires_rx_timestamp; #ifdef CONFIG_NET_HW_FLOWCONTROL atomic_t netdev_dropping = ATOMIC_INIT(0); @@ -1217,8 +1217,12 @@ struct softnet_data *queue; unsigned long flags; - if (skb->stamp.tv_sec == 0) - get_fast_time(&skb->stamp); + if (skb->stamp.tv_sec == 0) { + if (hires_rx_timestamp) + do_gettimeofday(&skb->stamp); + else + get_fast_time(&skb->stamp); + } /* The code is rearranged so that the path is the most short when CPU is congested, but is still operating. diff -urN -X dontdiff linux-2.4.17/net/core/sysctl_net_core.c linux-2.4.17-wilson/net/core/sysctl_net_core.c --- linux-2.4.17/net/core/sysctl_net_core.c Tue Oct 10 10:33:52 2000 +++ linux-2.4.17-wilson/net/core/sysctl_net_core.c Wed Jan 16 11:52:39 2002 @@ -19,6 +19,7 @@ extern int netdev_fastroute; extern int net_msg_cost; extern int net_msg_burst; +extern int hires_rx_timestamp; extern __u32 sysctl_wmem_max; extern __u32 sysctl_rmem_max; @@ -62,6 +63,9 @@ {NET_CORE_MOD_CONG, "mod_cong", &mod_cong, sizeof(int), 0644, NULL, &proc_dointvec}, + {NET_CORE_HIRES_RX_TIMESTAMP, "hires_rx_timestamp", + &hires_rx_timestamp, sizeof(int), 0644, NULL, + &proc_dointvec}, #ifdef CONFIG_NET_FASTROUTE {NET_CORE_FASTROUTE, "netdev_fastroute", &netdev_fastroute, sizeof(int), 0644, NULL, From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 19:19:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 19:19:23 -0500 Received: from pizda.ninka.net ([216.101.162.242]:9602 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 19:19:04 -0500 Date: Wed, 16 Jan 2002 16:17:59 -0800 (PST) Message-Id: <20020116.161759.68040363.davem@redhat.com> To: wilson@whack.org Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org Subject: Re: hires timestamps for netif_rx() From: "David S. Miller" In-Reply-To: In-Reply-To: <20020116180042.A21447@willow.seitz.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Wilson Yeung Date: Wed, 16 Jan 2002 15:33:04 -0800 (PST) I'd love to have a run-time tuneable kernel parameter that lets me use do_gettimeofday() instead of get_fast_time for received packet timestamping. Does this seem reasonable? Can you demonstrate a difference in accurace between these two routines on any architecture :-) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 20:03:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 20:02:56 -0500 Received: from willow.seitz.com ([207.106.55.140]:50706 "EHLO willow.seitz.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 20:02:44 -0500 From: Ross Vandegrift Date: Wed, 16 Jan 2002 20:02:40 -0500 To: "Eric S. Raymond" , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.4 is available Message-ID: <20020116200240.B22161@willow.seitz.com> In-Reply-To: <20020116145605.A10792@thyrsus.com> <20020116175014.A21277@willow.seitz.com> <20020116174340.A16302@thyrsus.com> <20020116180042.A21447@willow.seitz.com> <20020116180112.C16592@thyrsus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020116180112.C16592@thyrsus.com>; from esr@thyrsus.com on Wed, Jan 16, 2002 at 06:01:12PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > > > > I've verified that the lockup I reported earlier still happens with 2.1.4. > > > > > > Keystroke sequence to reproduce, please? > > > > > > On what screen? With the tool invoked how? Sorry, didn't mean to be so terse. Same as before - 'make config' or 'make menuconfig', press enter upon being shown the main menu while the default selection is "Intel or Processor type (FROZEN)". Ross Vandegrift ross@willow.seitz.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 20:04:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 20:04:18 -0500 Received: from apogee.whack.org ([167.216.255.203]:31481 "EHLO mx1.whack.org") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 20:04:04 -0500 Date: Wed, 16 Jan 2002 17:03:58 -0800 (PST) From: Wilson Yeung To: "David S. Miller" cc: linux-kernel@vger.kernel.org, Subject: Re: hires timestamps for netif_rx() In-Reply-To: <20020116.161759.68040363.davem@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jan 2002, David S. Miller wrote: > I'd love to have a run-time tuneable kernel parameter that lets me use > do_gettimeofday() instead of get_fast_time for received packet > timestamping. Does this seem reasonable? > > Can you demonstrate a difference in accurace between these two > routines on any architecture :-) The discreprency is that get_fast_time() returns the current value of xtime, while do_gettimeofday() may actually calculate the time and consider both xtime and the jiffies. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 20:10:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 20:10:07 -0500 Received: from pizda.ninka.net ([216.101.162.242]:49282 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 20:09:54 -0500 Date: Wed, 16 Jan 2002 17:08:52 -0800 (PST) Message-Id: <20020116.170852.91311984.davem@redhat.com> To: wilson@whack.org Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org Subject: Re: hires timestamps for netif_rx() From: "David S. Miller" In-Reply-To: In-Reply-To: <20020116.161759.68040363.davem@redhat.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Wilson Yeung Date: Wed, 16 Jan 2002 17:03:58 -0800 (PST) The discreprency is that get_fast_time() returns the current value of xtime, while do_gettimeofday() may actually calculate the time and consider both xtime and the jiffies. Look at the x86 implementation of do_fast_time, it equals do_gettimeofday() when TSC is present which is the only time that do_gettimeofday is going to be more accurate than xtime. Franks a lot, David S. Miller davem@redhat.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 20:24:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 20:24:20 -0500 Received: from ns.suse.de ([213.95.15.193]:46341 "HELO Cantor.suse.de") by vger.kernel.org with SMTP id ; Wed, 16 Jan 2002 20:24:03 -0500 Date: Thu, 17 Jan 2002 02:23:58 +0100 From: Andi Kleen To: Wilson Yeung Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org Subject: Re: hires timestamps for netif_rx() Message-ID: <20020117022358.B30053@wotan.suse.de> In-Reply-To: <20020116180042.A21447@willow.seitz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2002 at 03:33:04PM -0800, Wilson Yeung wrote: > I'd love to have a run-time tuneable kernel parameter that lets me use > do_gettimeofday() instead of get_fast_time for received packet > timestamping. Does this seem reasonable? Both functions should just access the TSC of your CPU and be equivalent. -Andi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 21:08:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 21:07:59 -0500 Received: from dsl254-112-233.nyc1.dsl.speakeasy.net ([216.254.112.233]:56194 "EHLO snark.thyrsus.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 21:07:43 -0500 Date: Wed, 16 Jan 2002 20:51:19 -0500 From: "Eric S. Raymond" To: Ross Vandegrift Cc: linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: [kbuild-devel] Re: CML2-2.1.4 is available Message-ID: <20020116205119.A23383@thyrsus.com> Reply-To: esr@thyrsus.com Mail-Followup-To: "Eric S. Raymond" , Ross Vandegrift , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net In-Reply-To: <20020116145605.A10792@thyrsus.com> <20020116175014.A21277@willow.seitz.com> <20020116174340.A16302@thyrsus.com> <20020116180042.A21447@willow.seitz.com> <20020116180112.C16592@thyrsus.com> <20020116200240.B22161@willow.seitz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020116200240.B22161@willow.seitz.com>; from ross@willow.seitz.com on Wed, Jan 16, 2002 at 08:02:40PM -0500 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ross Vandegrift : > Sorry, didn't mean to be so terse. Same as before - 'make config' or 'make > menuconfig', press enter upon being shown the main menu while the default > selection is "Intel or Processor type (FROZEN)". Got it. Looks like a bug I introduced when I filled someone else's request to make frozen symbols invisible two point releases ago. I should have it fixed tonight. -- Eric S. Raymond The danger (where there is any) from armed citizens, is only to the *government*, not to *society*; and as long as they have nothing to revenge in the government (which they cannot have while it is in their own hands) there are many advantages in their being accustomed to the use of arms, and no possible disadvantage. -- Joel Barlow, "Advice to the Privileged Orders", 1792-93 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 21:45:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 21:45:12 -0500 Received: from apogee.whack.org ([167.216.255.203]:48639 "EHLO mx1.whack.org") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 21:45:06 -0500 Date: Wed, 16 Jan 2002 18:45:02 -0800 (PST) From: Wilson Yeung To: "David S. Miller" cc: linux-kernel@vger.kernel.org Subject: Re: hires timestamps for netif_rx() In-Reply-To: <20020116.170852.91311984.davem@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Taking linux-net out of the distribution. On Wed, 16 Jan 2002, David S. Miller wrote: > From: Wilson Yeung > Date: Wed, 16 Jan 2002 17:03:58 -0800 (PST) > > The discreprency is that get_fast_time() returns the current value of > xtime, while do_gettimeofday() may actually calculate the time and > consider both xtime and the jiffies. > > Look at the x86 implementation of do_fast_time, it equals > do_gettimeofday() when TSC is present which is the only time > that do_gettimeofday is going to be more accurate than xtime. That's interesting, because when I call do_gettimeofday() instead of get_fast_time(), I get different kinds of results that imply that these are not equivalent. I'm running the kernel on a PIII. I'm looking at arch/i386/kernel/time.c, and I see the definition you're talking about. I'm also looking at kernel/time.c, and I'm not sure how these things are interacting yet. Anyway... I did a ping flood from a host on the LAN, and ran tcpdump. Here is a sequence of timestamps when netif_rx() uses do_gettimeofday() directly: 18:26:01.658704 18:26:01.658844 18:26:01.658851 18:26:01.658992 18:26:01.658998 Here is a sequence of timestamps when netif_rx() uses get_fast_time(): 18:40:17.614165 18:40:17.614165 18:40:17.614165 18:40:17.614165 18:40:17.614165 Notice that all the timestamps are the same, which led me to believe that xtime was being gotten directly. But if they're defined to be the same, then my call to do_gettimeofday() should have gotten similar results. Wilson From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 23:49:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 23:49:17 -0500 Received: from dsl254-112-233.nyc1.dsl.speakeasy.net ([216.254.112.233]:40835 "EHLO snark.thyrsus.com") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 23:49:08 -0500 Date: Wed, 16 Jan 2002 23:32:41 -0500 From: "Eric S. Raymond" To: Ross Vandegrift Cc: linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.4 is available Message-ID: <20020116233241.A29240@thyrsus.com> Reply-To: esr@thyrsus.com Mail-Followup-To: "Eric S. Raymond" , Ross Vandegrift , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net In-Reply-To: <20020116145605.A10792@thyrsus.com> <20020116175014.A21277@willow.seitz.com> <20020116174340.A16302@thyrsus.com> <20020116180042.A21447@willow.seitz.com> <20020116180112.C16592@thyrsus.com> <20020116200240.B22161@willow.seitz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020116200240.B22161@willow.seitz.com>; from ross@willow.seitz.com on Wed, Jan 16, 2002 at 08:02:40PM -0500 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ross Vandegrift : > Sorry, didn't mean to be so terse. Same as before - 'make config' or 'make > menuconfig', press enter upon being shown the main menu while the default > selection is "Intel or Processor type (FROZEN)". Thanks. Found and fixed. See 2.1.5 -- Eric S. Raymond What if you were an idiot, and what if you were a member of Congress? But I repeat myself. -- Mark Twain From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Jan 2002 00:14:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Jan 2002 00:14:03 -0500 Received: from pizda.ninka.net ([216.101.162.242]:25988 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id ; Thu, 17 Jan 2002 00:13:55 -0500 Date: Wed, 16 Jan 2002 21:12:51 -0800 (PST) Message-Id: <20020116.211251.35505694.davem@redhat.com> To: wilson@whack.org Cc: linux-kernel@vger.kernel.org Subject: Re: hires timestamps for netif_rx() From: "David S. Miller" In-Reply-To: In-Reply-To: <20020116.170852.91311984.davem@redhat.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Wilson Yeung Date: Wed, 16 Jan 2002 18:45:02 -0800 (PST) Notice that all the timestamps are the same, which led me to believe that xtime was being gotten directly. This is what happens only if your CPU lacks a timestamp counter (TSC on x86). What kind of CPU are you performing this experiment on? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Jan 2002 00:48:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Jan 2002 00:48:33 -0500 Received: from ftp.cbu.skyinet.net ([202.78.112.67]:17868 "HELO ftp1.cbu.skyinet.net") by vger.kernel.org with SMTP id ; Thu, 17 Jan 2002 00:48:19 -0500 Content-Type: text/plain; charset=US-ASCII From: vernie@skyinet.net Reply-To: vernie@skyinet.net To: linux-kernel@vger.kernel.org Subject: CM8338 hissing sound with linux kernel 2.4.6 to 2.4.17 Date: Thu, 17 Jan 2002 13:48:14 +0800 X-Mailer: KMail [version 1.3.2] In-Reply-To: <20020116.170852.91311984.davem@redhat.com> <20020116.211251.35505694.davem@redhat.com> In-Reply-To: <20020116.211251.35505694.davem@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: <20020117054825Z288185-13996+7371@vger.kernel.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Good day! I have the same problems with C-Media 8338A soundchip and the problem still exists with linux kerner 2.4.17 and even with 2.4.18-pre3. Only wav files can be played with no noise, mp3 and ogg files produce noisy hissing sound covering a somewhat delayed music. I believe this is a kernel related problem. Anybody find a solution to the problem? I found out that not only me have the same problem. I have tried testing several releases of the linux kernel hoping someone got it fixed with each release but still have hissing noise. I've tried the generic 2.4.17 linux kernel, one with rml and another with mjc patches and still have the same hissing noise every time I played mp3, ogg files using mpg123 or xmms. I can only play .wav files with no noise using xmms or the command line "play" program. The system is a PII 400MHz 440BX with an Audio Excel PCI soundcard (C-Media 8338A chip, using the cmpci kernel module), with bt848 tv tuner (works fine with it's own audio out), Mandrake 8.1 distribution (all required software by kernel to compile are installed). -- Vernie > From: CuPoTKa (cupotka@cupotka.dyn.ee) > Subject: Kernel 2.4.6 bug - problems with CM8338A soundchip. > Newsgroups: mlist.linux.kernel > Date: 2001-07-16 00:40:32 PST > > > Part of kernel.log: > kernel: cm: version $Revision: 5.64 $ time 01:44:06 Jul 16 2001 > kernel: PCI: Found IRQ 10 for device 00:0f.0 > kernel: cm: found CM8338A adapter at io 0xdc00 irq 10 > Problem: Sound isn't smooth. It makes strange noise instead music. > I use: > Linux version 2.4.6 (gcc version 2.95.4 20010703 (Debian prerelease)). > Debian testing/unstable linux. > Single PII, 400Mhz CPU. > M748MR PCCHIPS motherboard. > Usefull information: I compiled 2 kernels with CMedia 8338 chip support. > One is kernel 2.4.5 and another 2.4.6. It works with 2.4.5 and dosn't with > 2.4.6. > Thanks. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Jan 2002 14:16:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Jan 2002 14:16:26 -0500 Received: from tmr-02.dsl.thebiz.net ([216.238.38.204]:63500 "EHLO gatekeeper.tmr.com") by vger.kernel.org with ESMTP id ; Thu, 17 Jan 2002 14:16:14 -0500 Date: Thu, 17 Jan 2002 14:15:53 -0500 Message-Id: <200201171915.OAA02742@gatekeeper.tmr.com> To: davem@redhat.com Subject: Re: hires timestamps for netif_rx() Newsgroups: mail.linux-kernel In-Reply-To: <20020116.211251.35505694.davem@redhat.com> In-Reply-To: Organization: TMR Associates, Schenectady NY Cc: linux-kernel@vger.kernel.org From: davidsen@tmr.com (bill davidsen) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In article <20020116.211251.35505694.davem@redhat.com> you write: | From: Wilson Yeung | Date: Wed, 16 Jan 2002 18:45:02 -0800 (PST) | | Notice that all the timestamps are the same, which led me to believe that | xtime was being gotten directly. | | This is what happens only if your CPU lacks a timestamp counter | (TSC on x86). What kind of CPU are you performing this experiment | on? In the part of the message you snipped: > That's interesting, because when I call do_gettimeofday() instead of > get_fast_time(), I get different kinds of results that imply that these > are not equivalent. I'm running the kernel on a PIII. I would think that was short for "Pentium-III" which should have TSC. -- bill davidsen CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Jan 2002 15:53:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Jan 2002 15:52:59 -0500 Received: from smtp-out-4.wanadoo.fr ([193.252.19.23]:45755 "EHLO mel-rto4.wanadoo.fr") by vger.kernel.org with ESMTP id ; Thu, 17 Jan 2002 15:52:48 -0500 Subject: Re: CM8338 hissing sound with linux kernel 2.4.6 to 2.4.17 From: Thomas Cataldo To: vernie@skyinet.net Cc: linux-kernel@vger.kernel.org In-Reply-To: <20020117054825Z288185-13996+7371@vger.kernel.org> In-Reply-To: <20020116.170852.91311984.davem@redhat.com> <20020116.211251.35505694.davem@redhat.com> <20020117054825Z288185-13996+7371@vger.kernel.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Jan 2002 21:54:35 +0100 Message-Id: <1011300875.670.18.camel@buffy> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2002-01-17 at 06:48, vernie@skyinet.net wrote: > > > Good day! > > I have the same problems with C-Media 8338A soundchip and the problem still exists with > linux kerner 2.4.17 and even with 2.4.18-pre3. Only wav files can be played with > no noise, mp3 and ogg files produce noisy hissing sound covering a somewhat > delayed music. I believe this is a kernel related problem. Same problem here, the sound driver is completely unusable as the music (mp3) seems to play ten times slower than what it should. My workaround is to use the alsa driver. I think the driver broke near the beginning of the 2.4 stable series. 00:0c.0 Multimedia audio controller: C-Media Electronics Inc CM8338A (rev 10) Subsystem: C-Media Electronics Inc CMI8338/C3DX PCI Audio Device Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR-