From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965299AbcBQMl2 (ORCPT ); Wed, 17 Feb 2016 07:41:28 -0500 Received: from ozlabs.org ([103.22.144.67]:59303 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422724AbcBQMl1 (ORCPT ); Wed, 17 Feb 2016 07:41:27 -0500 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: e4f226b1580b36550727c324b404207f8d2f3b71 In-Reply-To: <20160210032405.GA8979@us.ibm.com> To: Sukadev Bhattiprolu From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [V2,1/1] powerpc/perf/hv-gpci: Increase request buffer size Message-Id: <20160217124125.A222E140556@ozlabs.org> Date: Wed, 17 Feb 2016 23:41:25 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2016-10-02 at 03:24:05 UTC, Sukadev Bhattiprolu wrote: > >From f1afe08fbc9797ff63adf03efe564a807a37cfe6 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Tue, 9 Feb 2016 02:47:45 -0500 > Subject: [PATCH V2 1/1] powerpc/perf/hv-gpci: Increase request buffer size > > The GPCI hcall allows for a 4K buffer but we limit the buffer to 1K. > The problem with a 1K buffer is if a request results in returning > more values than can be accomodated in the 1K buffer the request will > fail. > > The buffer we are using is currently allocated on the stack and hence > limited in size. Instead use a per-CPU 4K buffer like we do with 24x7 > counters (hv-24x7.c). > > While here, rename the macro GPCI_MAX_DATA_BYTES to HGPCI_MAX_DATA_BYTES > for consistency with 24x7 counters. > > Signed-off-by: Sukadev Bhattiprolu Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e4f226b1580b36550727c324b4 cheers