From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 10 Jun 2013 09:28:57 +0200 (CEST) Received: from mms1.broadcom.com ([216.31.210.17]:4305 "EHLO mms1.broadcom.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6817975Ab3FJH2ykPsGV (ORCPT ); Mon, 10 Jun 2013 09:28:54 +0200 Received: from [10.9.208.57] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Mon, 10 Jun 2013 00:25:02 -0700 X-Server-Uuid: 06151B78-6688-425E-9DE2-57CB27892261 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Mon, 10 Jun 2013 00:28:41 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.1.438.0; Mon, 10 Jun 2013 00:28:41 -0700 Received: from netl-snoppy.ban.broadcom.com ( netl-snoppy.ban.broadcom.com [10.132.128.129]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 28C53F2D73; Mon, 10 Jun 2013 00:28:39 -0700 (PDT) From: "Jayachandran C" To: linux-mips@linux-mips.org, ralf@linux-mips.org, ddaney.cavm@gmail.com cc: "Jayachandran C" Subject: [PATCH 0/5 v2] Cop2 save and restore for Netlogic XLP Date: Mon, 10 Jun 2013 12:59:59 +0530 Message-ID: <1370849404-4918-1-git-send-email-jchandra@broadcom.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-WSS-ID: 7DABA0C431W33899644-01-01 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 36767 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: jchandra@broadcom.com 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 This patchset is to generalize the COP2 save/restore implemented for Octeon and to use it for Netlogic XLP. Patch 1 and 2 of the series affects the Octeon platform as well, please let me know if there are any suggestions/comments. Thanks, JC. --- Changes in v2: - XLR support dropped, status register is readonly in XLR and cannot be restored - fix naming of COP2 registers Jayachandran C (5): MIPS: Move cop2 save/restore to switch_to() MIPS: Allow kernel to use coprocessor 2 MIPS: Netlogic: Fix nlm_read_c2_status() definition MIPS: Netlogic: rename nlm_cop2_save/restore MIPS: Netlogic: COP2 save/restore code arch/mips/include/asm/cop2.h | 29 ++++++++ arch/mips/include/asm/netlogic/xlr/fmn.h | 12 ++- arch/mips/include/asm/processor.h | 31 +++++--- arch/mips/include/asm/switch_to.h | 19 ++++- arch/mips/kernel/octeon_switch.S | 27 ------- arch/mips/kernel/traps.c | 15 ++-- arch/mips/netlogic/xlp/Makefile | 2 +- arch/mips/netlogic/xlp/cop2-ex.c | 118 ++++++++++++++++++++++++++++++ arch/mips/netlogic/xlr/fmn.c | 18 ++--- 9 files changed, 208 insertions(+), 63 deletions(-) create mode 100644 arch/mips/netlogic/xlp/cop2-ex.c -- 1.7.9.5