From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 30 Nov 2012 03:03:25 +0100 (CET) Received: from mail-pb0-f49.google.com ([209.85.160.49]:63013 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6829664Ab2K3CDYpIlDZ (ORCPT ); Fri, 30 Nov 2012 03:03:24 +0100 Received: by mail-pb0-f49.google.com with SMTP id un15so60007pbc.36 for ; Thu, 29 Nov 2012 18:03:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:cc:from:date:message-id:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=8KS1uFCLDTaAd0Wo5fak14Dv//yw4KY18dHptlp4wB8=; b=MhOTEr836q76GKyVMCvZ7l0JjI6b8aGuxOWLUMMAwVfDcP56rYiEVtN7ZIDv+VvUYE Tb3BuVT8WejqP5FL7VO044Q4AtrIluuQv38DmN32Umvi6oWq7XGwvFLrqu4apgVruWTI G/zEPQ5B4Fiurz4Msc3dAcvoRL9yYKih8aQshX+xXs7CXf1CLUC/3Yxw8i8R5xKG0YCl m5Uv7fJPaFvBdFRD4w4Mrdk7mH1GkIvPhw67IvDtM7zvLiSU69KIPMx4Qg3kWvOGQC6N 7avuEleg5lOoIGt8of4+8Sr2kQlVSlu+ms1ku8ufw0OtF6ZxMMrHTJp3BhZrO2/gaqEF TO+w== Received: by 10.68.245.169 with SMTP id xp9mr1109644pbc.142.1354240995469; Thu, 29 Nov 2012 18:03:15 -0800 (PST) Received: from localhost (c-67-168-183-230.hsd1.wa.comcast.net. [67.168.183.230]) by mx.google.com with ESMTPS id ay5sm1998007pab.1.2012.11.29.18.03.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Nov 2012 18:03:14 -0800 (PST) Subject: Patch "MPI: Fix compilation on MIPS with GCC 4.4 and newer" has been added to the 3.4-stable tree To: manuel.lauss@gmail.com, dmitry.kasatkin@intel.com, gregkh@linuxfoundation.org, jmorris@namei.org, linux-mips@linux-mips.org, ralf@linux-mips.org, shuah.khan@hp.com Cc: , From: Date: Thu, 29 Nov 2012 18:03:03 -0800 Message-ID: <13542409833804@kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ASCII Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlc5oSCqnbt0U/lrq5n0Xh01Caneu0A5KPlgKlauMcgR8bTO4ZZAc3/pq6fdHBHWeFU6JV0 X-archive-position: 35155 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: gregkh@linuxfoundation.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Return-Path: This is a note to let you know that I've just added the patch titled MPI: Fix compilation on MIPS with GCC 4.4 and newer to the 3.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mpi-fix-compilation-on-mips-with-gcc-4.4-and-newer.patch and it can be found in the queue-3.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From a3cea9894157c20a5b1ec08b7e0b5f2019740c10 Mon Sep 17 00:00:00 2001 From: Manuel Lauss Date: Thu, 22 Nov 2012 11:58:22 +0100 Subject: MPI: Fix compilation on MIPS with GCC 4.4 and newer From: Manuel Lauss commit a3cea9894157c20a5b1ec08b7e0b5f2019740c10 upstream. Since 4.4 GCC on MIPS no longer recognizes the "h" constraint, leading to this build failure: CC lib/mpi/generic_mpih-mul1.o lib/mpi/generic_mpih-mul1.c: In function 'mpihelp_mul_1': lib/mpi/generic_mpih-mul1.c:50:3: error: impossible constraint in 'asm' This patch updates MPI with the latest umul_ppm implementations for MIPS. Signed-off-by: Manuel Lauss Cc: Linux-MIPS Cc: Dmitry Kasatkin Cc: James Morris Patchwork: https://patchwork.linux-mips.org/patch/4612/ Signed-off-by: Ralf Baechle Cc: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- lib/mpi/longlong.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h @@ -703,7 +703,14 @@ do { \ ************** MIPS ***************** ***************************************/ #if defined(__mips__) && W_TYPE_SIZE == 32 -#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 +#define umul_ppmm(w1, w0, u, v) \ +do { \ + UDItype __ll = (UDItype)(u) * (v); \ + w1 = __ll >> 32; \ + w0 = __ll; \ +} while (0) +#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7 #define umul_ppmm(w1, w0, u, v) \ __asm__ ("multu %2,%3" \ : "=l" ((USItype)(w0)), \ @@ -728,7 +735,15 @@ do { \ ************** MIPS/64 ************** ***************************************/ #if (defined(__mips) && __mips >= 3) && W_TYPE_SIZE == 64 -#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 +#define umul_ppmm(w1, w0, u, v) \ +do { \ + typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ + __ll_UTItype __ll = (__ll_UTItype)(u) * (v); \ + w1 = __ll >> 64; \ + w0 = __ll; \ +} while (0) +#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7 #define umul_ppmm(w1, w0, u, v) \ __asm__ ("dmultu %2,%3" \ : "=l" ((UDItype)(w0)), \ Patches currently in stable-queue which might be from manuel.lauss@gmail.com are queue-3.4/mpi-fix-compilation-on-mips-with-gcc-4.4-and-newer.patch From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pb0-f49.google.com ([209.85.160.49]:63013 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6829664Ab2K3CDYpIlDZ (ORCPT ); Fri, 30 Nov 2012 03:03:24 +0100 Received: by mail-pb0-f49.google.com with SMTP id un15so60007pbc.36 for ; Thu, 29 Nov 2012 18:03:15 -0800 (PST) Subject: Patch "MPI: Fix compilation on MIPS with GCC 4.4 and newer" has been added to the 3.4-stable tree From: Date: Thu, 29 Nov 2012 18:03:03 -0800 Message-ID: <13542409833804@kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ASCII Content-Transfer-Encoding: 8bit Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: Return-Path: To: manuel.lauss@gmail.com, dmitry.kasatkin@intel.com, gregkh@linuxfoundation.org, jmorris@namei.org, linux-mips@linux-mips.org, ralf@linux-mips.org, shuah.khan@hp.com Cc: stable@vger.kernel.org, stable-commits@vger.kernel.org Message-ID: <20121130020303.75s06ZO3z-G_xFvJB6fTFX5ElT1y6NsbLvjhxQ1rNK4@z> This is a note to let you know that I've just added the patch titled MPI: Fix compilation on MIPS with GCC 4.4 and newer to the 3.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mpi-fix-compilation-on-mips-with-gcc-4.4-and-newer.patch and it can be found in the queue-3.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From a3cea9894157c20a5b1ec08b7e0b5f2019740c10 Mon Sep 17 00:00:00 2001 From: Manuel Lauss Date: Thu, 22 Nov 2012 11:58:22 +0100 Subject: MPI: Fix compilation on MIPS with GCC 4.4 and newer From: Manuel Lauss commit a3cea9894157c20a5b1ec08b7e0b5f2019740c10 upstream. Since 4.4 GCC on MIPS no longer recognizes the "h" constraint, leading to this build failure: CC lib/mpi/generic_mpih-mul1.o lib/mpi/generic_mpih-mul1.c: In function 'mpihelp_mul_1': lib/mpi/generic_mpih-mul1.c:50:3: error: impossible constraint in 'asm' This patch updates MPI with the latest umul_ppm implementations for MIPS. Signed-off-by: Manuel Lauss Cc: Linux-MIPS Cc: Dmitry Kasatkin Cc: James Morris Patchwork: https://patchwork.linux-mips.org/patch/4612/ Signed-off-by: Ralf Baechle Cc: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- lib/mpi/longlong.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h @@ -703,7 +703,14 @@ do { \ ************** MIPS ***************** ***************************************/ #if defined(__mips__) && W_TYPE_SIZE == 32 -#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 +#define umul_ppmm(w1, w0, u, v) \ +do { \ + UDItype __ll = (UDItype)(u) * (v); \ + w1 = __ll >> 32; \ + w0 = __ll; \ +} while (0) +#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7 #define umul_ppmm(w1, w0, u, v) \ __asm__ ("multu %2,%3" \ : "=l" ((USItype)(w0)), \ @@ -728,7 +735,15 @@ do { \ ************** MIPS/64 ************** ***************************************/ #if (defined(__mips) && __mips >= 3) && W_TYPE_SIZE == 64 -#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 +#define umul_ppmm(w1, w0, u, v) \ +do { \ + typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ + __ll_UTItype __ll = (__ll_UTItype)(u) * (v); \ + w1 = __ll >> 64; \ + w0 = __ll; \ +} while (0) +#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7 #define umul_ppmm(w1, w0, u, v) \ __asm__ ("dmultu %2,%3" \ : "=l" ((UDItype)(w0)), \ Patches currently in stable-queue which might be from manuel.lauss@gmail.com are queue-3.4/mpi-fix-compilation-on-mips-with-gcc-4.4-and-newer.patch