Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933095AbcJLOGs (ORCPT ); Wed, 12 Oct 2016 10:06:48 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33715 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932219AbcJLOGj (ORCPT ); Wed, 12 Oct 2016 10:06:39 -0400 Date: Wed, 12 Oct 2016 22:06:34 +0800 From: Simon Guo To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, Shuah Khan , Cyril Bur , Chris Smart , Suraj Jitindar Singh , Michael Neuling , Anshuman Khandual , Jack Miller , Rashmica Gupta , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v15 03/15] selftests/powerpc: Add ptrace tests for EBB Message-ID: <20161012140633.GA11846@simonLocalRHEL7.x64> References: <1475202784-5653-1-git-send-email-wei.guo.simon@gmail.com> <1475202784-5653-4-git-send-email-wei.guo.simon@gmail.com> <8760p5duen.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8760p5duen.fsf@concordia.ellerman.id.au> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 40 On Fri, Oct 07, 2016 at 08:44:48AM +1100, Michael Ellerman wrote: > wei.guo.simon@gmail.com writes: > > > From: Anshuman Khandual > > > > This patch adds ptrace interface test for EBB/PMU specific > > registers. This also adds some generic ptrace interface > > based helper functions to be used by other patches later > > on in the series. > > This is consistently failing for me on a P8 Tuleta (pvr 004b 0201): > > # ./ptrace-ebb > test: ptrace_ebb_pmu > tags: git_version:v4.8-rc5-176-g89cf1de0ae90 > EBBRR: 100059f8 > EBBHR: 100053cc; expected: 100053cc > BESCR: 8000000100000000 > SIAR: 100012d0 > SDAR: 3fff7e4cc000 > SIER: 3000000; expected: 2000000 > MMCR2: 0; expected: 0 > MMCR0: 180000080; expected: 180000080 > failure: ptrace_ebb_pmu > > cheers Michael, Yes.. SIER has different value in baremetal and virtual machine due to different MSR[HV] value. I will correct it. Originally I only tested in virtual BE/LE machines. Currently all tests cases (with fix) passed on one baremetal P8 machine with LE OS installed. And I will try to find another baremetal with BE OS installed to test. Thanks for indicating it. BR, Simon