All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Kernel Testers List <kernel-testers@vger.kernel.org>,
	Andi Kleen <andi@firstfloor.org>, Jeff Garzik <jeff@garzik.org>,
	torvalds@osdl.org
Subject: Re: [Bug #13185] New x86 warning
Date: Sun, 26 Apr 2009 16:49:18 +0200	[thread overview]
Message-ID: <20090426144918.GU13896@one.firstfloor.org> (raw)
In-Reply-To: <20090426093103.GA19267@elte.hu>

> > Handled-By	: Andi Kleen <andi@firstfloor.org>
> > Patch		: http://patchwork.kernel.org/patch/19330/
> > 		  http://patchwork.kernel.org/patch/19406/
> 
> This patch regresses on older GCC versions 

I don't think that's correct. There's been a demonstration that some gcc
versions don't inline as many memcpy as without the patch, but
that's not necessarily a pessimization. In fact 64bit used 
the same gcc based memcpy forever and there's no indication that
the 64bit kernel runs slower than the 32bit kernel because 
of this (in fact I have some indications that the 64bit kernel
runs faster)

Also the general trend in the kernel is to inline less
things because it has been demonstrated many times that
the function call overhead isn't that great, so I don't
see why memcpy should be different from all other
functions in this regard.

What Linus asked for was a demonstration that there's
no catastrophic regression (as in no trivial cases inlined anymore)
and I think that was demonstrated by the numbers.

Also the patch definitely shrunk the kernel and at least the
standard wisdom is that for micro optimizations icache optimizations
are the most useful one. In this sense the patch was a improvement.

> and doesnt really address 
> the GCC false positive warning either, it just removes the inline 
> function that triggers the warning.

Interesting sophistry.

Yes of course the patch doesn't fix gcc -- the goal is to remove the warning 
message (and also quite some ugly obsolete code) from the kernel build, not 
fix gcc.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

  parent reply	other threads:[~2009-04-26 14:49 UTC|newest]

Thread overview: 121+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25 19:22 2.6.30-rc3-git1: Reported regressions from 2.6.29 Rafael J. Wysocki
2009-04-25 19:22 ` Rafael J. Wysocki
2009-04-25 19:22 ` Rafael J. Wysocki
2009-04-25 19:22 ` [Bug #13048] /sys/class/backlight/acpi_video0/* is gone on vaio laptop with Intel GM45 Rafael J. Wysocki
2009-04-25 19:22   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13067] iwl3945: wlan0: beacon loss from AP - sending probe request Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13109] High latency on /sys/class/thermal Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13069] regression in 2.6.29-git3 on SH/Dreamcast Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13068] Lockdep warining in inotify_dev_queue_event Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-29  5:14   ` Sachin Sant
2009-04-29  5:14     ` Sachin Sant
     [not found]     ` <49F7E222.4050202-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org>
2009-04-29 19:51       ` Rafael J. Wysocki
2009-04-29 19:51         ` Rafael J. Wysocki
     [not found]         ` <200904292151.46107.rjw-KKrjLPT3xs0@public.gmane.org>
2009-04-29 21:10           ` Marcin Slusarz
2009-04-29 21:10             ` Marcin Slusarz
     [not found]             ` <49F8C255.2040301-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-04-29 21:40               ` Rafael J. Wysocki
2009-04-29 21:40                 ` Rafael J. Wysocki
     [not found]                 ` <200904292340.17071.rjw-KKrjLPT3xs0@public.gmane.org>
2009-04-30  3:54                   ` Andrew Morton
2009-04-30  3:54                     ` Andrew Morton
2009-04-25 19:31 ` [Bug #13101] BUG: scheduling while atomic: swapper/0/0x10000100 Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13108] 2.6.30-rc1: white screen during boot (regression) on spitz Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13107] LTP 20080131 causes defunct processes w/2.6.30-rc1 Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26  0:37   ` Sukadev Bhattiprolu
2009-04-26  0:37     ` Sukadev Bhattiprolu
2009-04-25 19:31 ` [Bug #13116] Can't boot with nosmp Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26 22:25   ` Dan Williams
2009-04-26 22:25     ` Dan Williams
     [not found]     ` <49F4DF40.50302-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2009-04-27  1:22       ` Stephen Hemminger
2009-04-28 22:14       ` David Rientjes
2009-04-28 22:14         ` David Rientjes
     [not found]         ` <alpine.DEB.2.00.0904281507240.30946-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-05-03 23:21           ` Dan Williams
2009-05-03 23:21             ` Dan Williams
2009-04-25 19:31 ` [Bug #13114] USB storage (usbstick) automount woes Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26 18:58   ` Alan Stern
2009-04-26 18:58     ` Alan Stern
2009-04-26 23:15     ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13111] Linux 2.6.30-rc1 tg3 endian issues with MAC addresses on BCM5701 Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26  1:10   ` David Miller
2009-04-26  1:10     ` David Miller
2009-04-26 12:07     ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13121] ACPI: Failed to switch the brightness - acer aspire 5720G Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13119] Trouble with make-install from a NFS mount Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13118] iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26  3:24   ` Jeff Chua
2009-04-26  3:24     ` Jeff Chua
2009-04-26 12:09     ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13124] ioatdma: DMA-API: device driver frees DMA memory with wrong function Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26 16:06   ` Alexander Beregalov
2009-04-26 17:46     ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13125] active uvcvideo breaks over suspend Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13122] reiserfs_delete_xattrs: Couldn't delete all xattrs (-13) Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13126] BUG: MAX_LOCKDEP_ENTRIES too low! when mounting rootfs Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13148] resume after suspend-to-ram broken on Sony Vaio VGN-SR19VN when sony-laptop driver present Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13136] possible circular locking dependency detected while suspending laptop to S3 Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13154] iwlagn soft lock-up Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13151] Warning about reiserfs Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13165] 2.6.30-rc3 : Regression: i915 , video Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13164] 2.6.30-rc2 soft lockups: ACPI? clock source problem? Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13156] keyboard backlight brightness up/down keys doesn't work Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13168] ath5k fails to associate with AP Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13171] 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-27 16:36   ` Jesse Barnes
2009-04-25 19:31 ` [Bug #13173] NULL pointer crash in early NMI handler Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13179] CD-R: wodim intermittent failures Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13185] New x86 warning Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26  9:31   ` Ingo Molnar
2009-04-26 12:11     ` Rafael J. Wysocki
2009-04-26 14:49     ` Andi Kleen [this message]
2009-04-26 16:47     ` Arjan van de Ven
2009-04-25 19:31 ` [Bug #13180] 2.6.30-rc2: WARNING at i915_gem.c for i915_gem_idle Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-27 16:38   ` Jesse Barnes
2009-04-27 20:10     ` Niel Lambrechts
2009-04-27 20:10       ` Niel Lambrechts
2009-04-27 20:18       ` Jesse Barnes
2009-04-25 19:31 ` [Bug #13176] IO-APIC + timer doesn't work! Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13177] 2.6.30-rc2-git7 build problem Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-27  8:33   ` Martin Knoblauch
2009-04-27  8:33     ` Martin Knoblauch
     [not found]     ` <906747.62115.qm-lSXk2nNw7cevuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2009-04-28 22:06       ` Rafael J. Wysocki
2009-04-28 22:06         ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13181] Crash in v2.6.30-rc3 (regression from 30-rc2) Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13187] garbled screen on video Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-25 19:31 ` [Bug #13188] horizontal strips of the screen frozen Rafael J. Wysocki
2009-04-25 19:31   ` Rafael J. Wysocki
2009-04-26  0:26   ` Justin Madru
2009-04-26  0:26     ` Justin Madru
2009-04-26 12:13     ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090426144918.GU13896@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=jeff@garzik.org \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rjw@sisk.pl \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.