Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71112C00319 for ; Tue, 5 Mar 2019 13:43:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 421992082C for ; Tue, 5 Mar 2019 13:43:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KIXin3EN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 421992082C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=SjacBOARq9+PSlSeCRbK+k4tJZ+dj4pWlva9eyfp2u8=; b=KIXin3ENv7sNAT A/mOgTcirBSOvwRfLdIflKqmSSFmOSUu0wLTgvtHev/b1EAm70ujBxgTIFdx1PDdWWx9xdkpPdyvH 8kCr7NSSjgniDiDrFb72e58dzoyRBN4Blv4SXypAOj6OsomUFjsB7+66z5gX1zXagMGTX4jj9W74E VJcV3EXSI67ECxWazmCMzV6NnLNYDbmb7Mxh20JVXRDaT6PpKHbqf+lJBmyeuXEW3dlZZvu9OwAz5 93pUoZoQPa4SrqkwssdzySAeko6ptsmmCrNunWqcoUwYovvsMs5xbCKaE5z88ocsbqggE9OY2xW2R u+7UwMsG8G0vNynRie5w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1ALQ-0000uB-VP; Tue, 05 Mar 2019 13:42:56 +0000 Received: from szxga07-in.huawei.com ([45.249.212.35] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1ALG-0000lr-L5 for linux-arm-kernel@lists.infradead.org; Tue, 05 Mar 2019 13:42:49 +0000 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5FEE6F58D7B989057D90; Tue, 5 Mar 2019 21:42:35 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Tue, 5 Mar 2019 21:42:26 +0800 From: Hanjun Guo To: Catalin Marinas , Will Deacon Subject: [PATCH 0/2] Whitelist HiSilicon Taishan v110 CPUs for Meltdown Date: Tue, 5 Mar 2019 21:40:56 +0800 Message-ID: <1551793258-5095-1-git-send-email-guohanjun@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190305_054246_859664_27C84CDE X-CRM114-Status: UNSURE ( 7.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel , John Garry , linuxarm@huawei.com, Zhangshaokun , Hanjun Guo , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hanjun Guo We met boot stall on D06 which was: [ 3.832098] SMP: Total of 64 processors activated. [ 3.836907] CPU features: detected: GIC system register CPU interface [ 3.843383] CPU features: detected: Privileged Access Never [ 3.848978] CPU features: detected: User Access Override [ 3.854316] CPU features: detected: Common not Private translations [ 3.860609] CPU features: detected: RAS Extension Support [ 3.866027] CPU features: detected: CRC32 instructions [ 94.446811] CPU: All CPU(s) started at EL2 [ 94.451053] alternatives: patching kernel code [ 94.499913] devtmpfs: initialized It turns out that it stucks with the delay at boot for !KASLR kernels, D06 machine is based on HiSilicon Taishan v110 CPU, which is not susceptible to Meltdown, Will suggested that we can whitelist the MIDR in kpti_safe_list[] table [1]. [1]: http://lists.infradead.org/pipermail/linux-arm-kernel/2019-March/636314.html Hanjun Guo (2): arm64: Add MIDR encoding for HiSilicon Taishan CPUs arm64: kpti: Whitelist HiSilicon Taishan v110 CPUs arch/arm64/include/asm/cputype.h | 4 ++++ arch/arm64/kernel/cpufeature.c | 1 + 2 files changed, 5 insertions(+) -- 1.7.12.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel