Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4091584imm; Mon, 30 Jul 2018 08:31:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjDMTAH8xE26aYJhhCdR4hU8VwNkK5E/Aau6RWSKrGthxWN2N+pNvAzES2TWp0BvK4bsES X-Received: by 2002:a62:3545:: with SMTP id c66-v6mr18243853pfa.63.1532964697500; Mon, 30 Jul 2018 08:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532964697; cv=none; d=google.com; s=arc-20160816; b=IGKTVxAN4usM3nL+pEJa4wZwiQ7Ui1RbLkkmxPZwIt2YMQ/4T8HwYRD6BuEsxMzdqE VTqFwfa/owdZTzudd6PCR9SKbEXdEvgEq2xJ8BDzalEu3othy9AMEaol0UZACwR9MHcY bhRfmnDwxQKs7/zeaUwMBzZHEmvb9d19mi8P2aM8+dIzk62gCUVL0wM4BusVoXy4tuVx 7jB0CycUxAwVvqHkUFut6Gb16ScrYLFZ6KjeAt7Ezwxo5ckFxr+eoqdMdxLvW8FpkcDf bM6IEN6vzpIjr84bvW+dILCWV2QL8Os0yZ48TWHNzAlQI/m4JpY5Ae935/ria53XVZg7 g2hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=D7G2dXn34gMz/yeSkauvck5L6lAJWgUI8OeE+hMxDPE=; b=v1uhG9SCvetLH/HbMJuxSWEuBDBvFcMByND9pe34WB7ljdBw5ZpEwULjlpKdGOFTnR Ekzq/89cTPoGGKy1Ri9Rwutnp6/aQAWNkiEAfxOa3jP9vQo3CF3Yrg7UaGVSmrbGDkpJ mkQN2w3zs1xtK6vRq11PmSp778eut9frG8b44NjdFiZXEXBmc4biP3AmgN/r0doXVVZf PoMSUW6Y0N5VHwCv4UprhwL4CcblpVp84w6ld5II96KmB2c5WSAVpEfa9HIAcAzUzZ4O huc+oLL0/8KDTq+74cc6pXxE7c/jHurp54gRcVZlgQOPGCIKwgdCST8PJfcM+orS/RIN Dudw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=KuZJ2G1t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si9956406pll.10.2018.07.30.08.31.23; Mon, 30 Jul 2018 08:31:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=KuZJ2G1t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbeG3RFK (ORCPT + 99 others); Mon, 30 Jul 2018 13:05:10 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:46356 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbeG3RFK (ORCPT ); Mon, 30 Jul 2018 13:05:10 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6UFTMsC081663; Mon, 30 Jul 2018 15:29:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=D7G2dXn34gMz/yeSkauvck5L6lAJWgUI8OeE+hMxDPE=; b=KuZJ2G1tiS7heDcE7XBf8e3ockoo6Ui0hrlM4eWUMeZ1D8uKgDeONgTCDjx1jG6oJzzK BpahS4DyAQGe6NXjPsLDkDyplRdPjalSxqwHJNutLGN5ji6gXLKt6uxYS+l+JVXxtnEk Vuub8MfI2mPFKz5HPWlAklCPQF8dSN8wAS5kl8wRD5zOkZCxueS3Sbt7cPzmKqLBgkcX LaEXnJr+Xrybk2D+DnzIdv106iu8sbWqnOxJDS3ofjYoJWXuU8mnyCboN71ijvX9MRMF xFjy6lxcId2mzA7YRkI+x2lYpxA71Cpy6NzSwSXblcUaSKY0usN36meRseZCltFEjW7B bw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2kge0cw6d6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Jul 2018 15:29:22 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w6UFTMl3009593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Jul 2018 15:29:22 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6UFTLfc009651; Mon, 30 Jul 2018 15:29:21 GMT Received: from [192.168.1.93] (/99.156.91.244) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 30 Jul 2018 08:29:21 -0700 Subject: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range From: Dave Kleikamp To: linux-arm-kernel@lists.infradead.org Cc: AKASHI Takahiro , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org References: Openpgp: preference=signencrypt Message-ID: Date: Mon, 30 Jul 2018 10:29:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8969 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807300169 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org machine_kexec flushes the reboot_code_buffer from the icache after stopping the other cpus. Commit 3b8c9f1cdfc5 ("arm64: IPI each CPU after invalidating the I-cache for kernel mappings") added an IPI call to flush_icache_range, which causes a hang here, so replace the call with __flush_icache_range Signed-off-by: Dave Kleikamp Cc: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c index f62effc..e8c0283 100644 --- a/arch/arm64/kernel/machine_kexec.c +++ b/arch/arm64/kernel/machine_kexec.c @@ -184,7 +184,7 @@ void machine_kexec(struct kimage *kimage) /* Flush the reboot_code_buffer in preparation for its execution. */ __flush_dcache_area(reboot_code_buffer, arm64_relocate_new_kernel_size); - flush_icache_range((uintptr_t)reboot_code_buffer, + __flush_icache_range((uintptr_t)reboot_code_buffer, arm64_relocate_new_kernel_size); /* Flush the kimage list and its buffers. */ -- 1.8.3.1