From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4023DDDDA1 for ; Tue, 10 Feb 2009 09:22:45 +1100 (EST) Subject: Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC From: Benjamin Herrenschmidt To: Ingo Molnar In-Reply-To: <20090209094014.GE7930@elte.hu> References: <20090209094014.GE7930@elte.hu> Content-Type: text/plain Date: Tue, 10 Feb 2009 09:21:59 +1100 Message-Id: <1234218119.31963.109.camel@pasglop> Mime-Version: 1.0 Cc: Arnd Bergmann , LKML , Steven Rostedt , linuxppc-dev@ozlabs.org, Paul Mackerras , Remis Lima Baima List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2009-02-09 at 10:40 +0100, Ingo Molnar wrote: > * Steven Rostedt wrote: > > > > > Paul, > > > > I found the bug that was causing large modules to fail in setting > > up dynamic ftrace. It wound up being a simple math error. To calculate > > the offset in the TOC, I had used an OR, but the bottom half was > > a signed extended short, and it should have been an addition. > > The fix is in my tree below, as well as posted here. > > Looks like a .29 candidate? Yup, I was planning to send it to Linus along with a handful of other powerpc fixes today, unless you prefer taking it yourself. Cheers, Ben. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755604AbZBIWXE (ORCPT ); Mon, 9 Feb 2009 17:23:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751415AbZBIWWv (ORCPT ); Mon, 9 Feb 2009 17:22:51 -0500 Received: from gate.crashing.org ([63.228.1.57]:37675 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753995AbZBIWWv (ORCPT ); Mon, 9 Feb 2009 17:22:51 -0500 Subject: Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC From: Benjamin Herrenschmidt To: Ingo Molnar Cc: Steven Rostedt , LKML , linuxppc-dev@ozlabs.org, Paul Mackerras , Arnd Bergmann , Geoff Levand , Remis Lima Baima In-Reply-To: <20090209094014.GE7930@elte.hu> References: <20090209094014.GE7930@elte.hu> Content-Type: text/plain Date: Tue, 10 Feb 2009 09:21:59 +1100 Message-Id: <1234218119.31963.109.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2009-02-09 at 10:40 +0100, Ingo Molnar wrote: > * Steven Rostedt wrote: > > > > > Paul, > > > > I found the bug that was causing large modules to fail in setting > > up dynamic ftrace. It wound up being a simple math error. To calculate > > the offset in the TOC, I had used an OR, but the bottom half was > > a signed extended short, and it should have been an addition. > > The fix is in my tree below, as well as posted here. > > Looks like a .29 candidate? Yup, I was planning to send it to Linus along with a handful of other powerpc fixes today, unless you prefer taking it yourself. Cheers, Ben.