From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eddie.linux-mips.org ([148.251.95.138]:58606 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbdFOJ7s (ORCPT ); Thu, 15 Jun 2017 05:59:48 -0400 Received: from localhost.localdomain ([127.0.0.1]:60664 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23992110AbdFOJ7qpjxST (ORCPT ); Thu, 15 Jun 2017 11:59:46 +0200 Date: Thu, 15 Jun 2017 11:59:38 +0200 From: Ralf Baechle To: Huacai Chen Cc: John Crispin , "Steven J . Hill" , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu , stable@vger.kernel.org Subject: Re: [PATCH V5 2/9] MIPS: c-r4k: Add r4k_blast_scache_node for Loongson-3 Message-ID: <20170615095938.GA1391@linux-mips.org> References: <1497492952-23877-1-git-send-email-chenhc@lemote.com> <1497492952-23877-3-git-send-email-chenhc@lemote.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1497492952-23877-3-git-send-email-chenhc@lemote.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Jun 15, 2017 at 10:15:45AM +0800, Huacai Chen wrote: > For multi-node Loongson-3 (NUMA configuration), r4k_blast_scache() can > only flush Node-0's scache. So we add r4k_blast_scache_node() by using > (CAC_BASE | (node_id << NODE_ADDRSPACE_SHIFT)) instead of CKSEG0 as the > start address. > > Maybe all MIPS CPUs need r4k_blast_scache_node() to support cc-NUMA, > but I don't know how to implement it for non-Loongson CPUs. There other MIPS ccNUMA systems handle caches in hardware fully transparent to software so no changes are required. These systems are SGI's SN (Origin, Onyx) and BCM1480 (ccNUMA support out of tree, but no sw support required)). Ralf