From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750960AbdGMCUW (ORCPT ); Wed, 12 Jul 2017 22:20:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28898 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703AbdGMCUU (ORCPT ); Wed, 12 Jul 2017 22:20:20 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D38B2C04B321 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=mpatocka@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D38B2C04B321 Date: Wed, 12 Jul 2017 22:20:12 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Borislav Petkov cc: linux-tip-commits@vger.kernel.org, brgerst@gmail.com, dvlasenk@redhat.com, peterz@infradead.org, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, luto@kernel.org, jpoimboe@redhat.com, torvalds@linux-foundation.org, mingo@kernel.org Subject: Re: [tip:x86/urgent] x86/cpu: Use indirect call to measure performance in init_amd_k6() In-Reply-To: <20170712134844.GA20580@nazgul.tnic> Message-ID: References: <20170712134844.GA20580@nazgul.tnic> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 13 Jul 2017 02:20:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Jul 2017, Borislav Petkov wrote: > On Wed, Jul 12, 2017 at 06:09:57AM -0700, tip-bot for Mikulas Patocka wrote: > > Commit-ID: 429ed86b5c99b388543f6f7f6983b1230326f2bb > > Gitweb: http://git.kernel.org/tip/429ed86b5c99b388543f6f7f6983b1230326f2bb > > Author: Mikulas Patocka > > AuthorDate: Tue, 11 Jul 2017 07:44:05 -0400 > > Committer: Ingo Molnar > > CommitDate: Wed, 12 Jul 2017 10:42:32 +0200 > > > > x86/cpu: Use indirect call to measure performance in init_amd_k6() > > > > This old piece of code is supposed to measure the performance of indirect > > calls to determine if the processor is buggy or not, however the compiler > > optimizer turns it into a direct call. > > Are you booting on a real K6 or qemu? I tested it on K6-3 and it doesn't trigger the warning, the loop with the indirect call takes 9 million cycles (it took 4 million cycles with the direct call). I don't have the old K6 revision with the bug. Mikulas > -- > Regards/Gruss, > Boris. > > ECO tip #101: Trim your mails when you reply. > --