Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752182AbbHSP6W (ORCPT ); Wed, 19 Aug 2015 11:58:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45650 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbbHSP6V (ORCPT ); Wed, 19 Aug 2015 11:58:21 -0400 Date: Wed, 19 Aug 2015 17:58:17 +0200 From: Jiri Olsa To: Borislav Petkov Cc: Andy Lutomirski , "linux-kernel@vger.kernel.org" , X86 ML , Peter Zijlstra , Ingo Molnar , Robert Richter , "H. Peter Anvin" , Thomas Gleixner , Arnaldo Carvalho de Melo , Namhyung Kim , Jan Stancek , Suravee Suthikulpanit , Sherry Hurwitz Subject: Re: [BUG/RFC] perf test fails on AMD CPUs Message-ID: <20150819155817.GB9021@krava.brq.redhat.com> References: <20150816222956.GA14290@krava.brq.redhat.com> <20150817043603.GB9387@nazgul.tnic> <20150818101025.GA15340@krava.brq.redhat.com> <20150819035519.GA31385@nazgul.tnic> <20150819085546.GA5883@krava.local> <20150819154700.GA19622@nazgul.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150819154700.GA19622@nazgul.tnic> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 32 On Wed, Aug 19, 2015 at 05:47:00PM +0200, Borislav Petkov wrote: > On Wed, Aug 19, 2015 at 10:55:46AM +0200, Jiri Olsa wrote: > > this is the perf breakpoint address: > > 000000000045b260 : > > > > this is trace_printk output for NEW microcode 0x6000832: > > > > DEBUG EX > > perf-893 [003] d... 1358.053633: sync_regs: sync_regs eregs ffff88012ecc7f58, regs ffff8800c9f1bf58 > > perf-893 [003] d... 1358.053635: do_debug: do_debug-1 regs ffff8800c9f1bf58, eflags 217, rip 45b260 > > perf-893 [003] d.h. 1358.053641: do_debug: do_debug-2 eflags 10217, rip 45b260 > > perf-893 [003] d... 1358.053642: prepare_exit_to_usermode: prepare_exit_to_usermode1 regs ffff8800c9f1bf58, eflags 10217, rip 45b260 > > perf-893 [003] d... 1358.053643: prepare_exit_to_usermode: prepare_exit_to_usermode3 regs ffff8800c9f1bf58, eflags 10217, rip 45b260 > > Yikes! > > Something cleared EFLAGS.RF here. And the same thing doesn't happen with > the older ucode version. Are you sure nothing happens in-between > prepare_exit_to_usermode() and smp_irq_work_interrupt()? if anything happens there, I dont see it ;-) I was told RHEL7 went off and on several times with AMD microcode, now it's the period we actually install it.. I'll poke around to see who made that decissions, he/she might know more ;-) jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/