Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xNKtm3vZTzDrHf for ; Thu, 3 Aug 2017 16:30:40 +1000 (AEST) From: Michael Ellerman To: Suraj Jitindar Singh , linuxppc-dev@lists.ozlabs.org Cc: benh@kernel.crashing.org, paulus@samba.org, aneesh.kumar@linux.vnet.ibm.com, Suraj Jitindar Singh Subject: Re: [PATCH] powerpc/mm: Invalidate partition table cache on host proc tbl base update In-Reply-To: <20170803041551.7934-1-sjitindarsingh@gmail.com> References: <20170803041551.7934-1-sjitindarsingh@gmail.com> Date: Thu, 03 Aug 2017 16:30:39 +1000 Message-ID: <87h8xpqi28.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Suraj Jitindar Singh writes: > The host process table base is stored in the partition table by calling > the function native_register_process_table(). Currently this just sets > the entry in memory and is missing a proceeding cache invalidation > instruction. Any update to the partition table should be followed by a > cache invalidation instruction specifying invalidation of the caching of > any partition table entries (RIC = 2, PRS = 0). > > We already have a function to update the partition table with the > required cache invalidation instructions - mmu_partition_table_set_entry(). > Update the native_register_process_table() function to call > mmu_partition_table_set_entry(), this ensures all appropriate > invalidation will be performed. Without this patch the kernel will: [ ] work normally [ ] randomly crash [ ] catch fire ? cheers