From patchwork Wed May 18 21:24:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Van Hensbergen X-Patchwork-Id: 96259 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id F1370100C9D for ; Thu, 19 May 2011 07:28:07 +1000 (EST) Received: from mail-yi0-f51.google.com (mail-yi0-f51.google.com [209.85.218.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 2B7A8B6F80 for ; Thu, 19 May 2011 07:25:26 +1000 (EST) Received: by yib2 with SMTP id 2so779095yib.38 for ; Wed, 18 May 2011 14:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=v/9T/xlIC63czCOtOeZNJ97VcfBYHLN6c9mIB3UdY5Y=; b=eq0Dw9zG89mtLg89Ks346weBsYBwbh7QvTsThJS7V05rNFgiw98qqddsNuMuy9vIeV hykGKOwNXqvmyvS6vQK19e2quXTblOzx7DJm9OhOzwdZFhCOMjBGseJX7x72kZiXtd1V b3acE4EWvgKMqpWdFV2E/V+CRQlRoaTBmmMNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=YrRXstibcaIzUktPoJClUBfYOifbYaBHTR8lq0JeE2ntWTTE28U4F4azMPaaa6mtaj RNfSo5pdycNAQ23Iml+wSDN0KX/E40lzOhs+ZpY+gXWIyjWsz3NDdSJ9VQa7wpf+R+4x /7xtGxd8QbX2FMQsaBoP54AO6xmG957Pfr/2c= Received: by 10.236.29.163 with SMTP id i23mr2607723yha.427.1305753922286; Wed, 18 May 2011 14:25:22 -0700 (PDT) Received: from localhost.localdomain ([32.97.110.63]) by mx.google.com with ESMTPS id t23sm864376yhm.52.2011.05.18.14.25.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 14:25:19 -0700 (PDT) From: Eric Van Hensbergen To: linux-kernel@vger.kernel.org Subject: [PATCH 5/7] [RFC] force 32-byte aligned kmallocs Date: Wed, 18 May 2011 16:24:53 -0500 Message-Id: <1305753895-24845-5-git-send-email-ericvh@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1305753895-24845-1-git-send-email-ericvh@gmail.com> References: <1305753895-24845-1-git-send-email-ericvh@gmail.com> Cc: linuxppc-dev@lists.ozlabs.org, bg-linux@lists.anl-external.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org For BGP, it is convenient for 'kmalloc' to come back with 32-byte aligned units for torus DMA Signed-off-by: Eric Van Hensbergen --- arch/powerpc/include/asm/page_32.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/page_32.h b/arch/powerpc/include/asm/page_32.h index 68d73b2..fb0a7ae 100644 --- a/arch/powerpc/include/asm/page_32.h +++ b/arch/powerpc/include/asm/page_32.h @@ -9,7 +9,7 @@ #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32 -#ifdef CONFIG_NOT_COHERENT_CACHE +#if defined(CONFIG_NOT_COHERENT_CACHE) || defined(CONFIG_BGP) #define ARCH_DMA_MINALIGN L1_CACHE_BYTES #endif