Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1758733imu; Thu, 13 Dec 2018 23:25:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/X3FZxRQFX7BCQesrx93HQ0h/6qN97akXexiuirgCtuZplMh1YDH6DoKNNaBX7s+eYnF4t2 X-Received: by 2002:a63:e302:: with SMTP id f2mr1797745pgh.320.1544772342149; Thu, 13 Dec 2018 23:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544772342; cv=none; d=google.com; s=arc-20160816; b=zmrlVtsAm7TZPLum10jHhcqI2rX2cKF85ymDuQBZNPrURuy+A7tvZUQcF8kDDrXZkM 71jc72BitOJ8xSeOc5nghHJCEALuErT4VV4MPps4igiZUe3XAVzD5zbvm3OU45KxjO8B jmAUHG9fWNL47hJxQeCqVaXVuaYTytf+hrmSLUQaxbvRF6X3bl47nKuMThfZgV5V0jXv u3S9cLR7ds5bB9q8kogl8zTzAsnv1b4ZPwMae0HBUGOGPPt9txwbKBFxtlL3qv9LRAMG ixnG4APx70ywHszqRrP1S1IdQF6aOOq/q4kFlw2R3CVgb3HOFfh4ODGonAR2meQbtUBP mXXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=upTfiP7iEd12IBycGzRmU4Z0acUxwmT5c1yFIwWuYd0=; b=WCFlWzjQLLh4/rE9PE9KUH0gStewA6w7xCcZrqmz3/4UqGRjvmrlTZHKUIUd8I63E+ 3io6w+k8FpxI9BHcg8li0AMArhz/5p5YgIby0FEvb3XDHB7OdpHhO6oYlNzPq1+DXvIh 4sIfCHBXlbKrFMIURYJEeitynzElew4Jcz+LbQblX5IZD/M36oF+VwrbTk/mu97zNcmg qUl1j2akaw6z7gI2Z81gPJjkKzVeesSPYL/Yc6xlVaHryo3uthYVSUdWo8BwaFPEc373 LJOya3EDFOxqcsEOietJK5nk8Tbm9it2dLgM+PS3BpT7ZKTIek4hdUEOkmUORZ8j243b 032w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K8EIzMfC; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i63si662361pgc.116.2018.12.13.23.25.27; Thu, 13 Dec 2018 23:25:42 -0800 (PST) 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=@linaro.org header.s=google header.b=K8EIzMfC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727350AbeLNHYH (ORCPT + 99 others); Fri, 14 Dec 2018 02:24:07 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:44413 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbeLNHYF (ORCPT ); Fri, 14 Dec 2018 02:24:05 -0500 Received: by mail-io1-f66.google.com with SMTP id r200so3704017iod.11 for ; Thu, 13 Dec 2018 23:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=upTfiP7iEd12IBycGzRmU4Z0acUxwmT5c1yFIwWuYd0=; b=K8EIzMfCOqFIj4GuH6k/sz4MW9JRkeMr3UaFHSBl2LOp9dRwjtVZstHRthKyikRRVq 0QktT3jOQssB0Zk378XLCZ3CJnXLu2sM951yv3AlSQZkjJ1lRlcUkfH73z3bgUSj82Ab zdhjaXH9NlfNt+QoLb6FnUywZYJWX1l+VX76A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=upTfiP7iEd12IBycGzRmU4Z0acUxwmT5c1yFIwWuYd0=; b=EJ+rsmC+nMMdaxOJRsFdCa87ROMO7PgIgJQkyU7igVHfZHzwK0kQbUhV6ZREE7hp4O /Ui6UPUrZ5FdQ10t1OhDH9T66EkLM654gl8fLJ5dT1ebE4XFhPqhJh315hzRt4pVkmix 3gxwB//BdttAfz/YobRbGeEAGEi5z9yVQALIhouXnasbER1fUDzfPBJ9RuyZftcGtYOP x8ZMyXTOSVTkllI9vzKNB0d51t9zNu3NlPS5Ou8IBp4kcv7b2WxJIvMvuiqchPSv3Ps1 lcUwifSeL5mdvGTy+DJpAG79NXbv4VJs1ahmqdoMXLNPwk9NDpaMz42uyg/R5BE2Wg1K QvmQ== X-Gm-Message-State: AA+aEWZ4X1t7W/SMwvLsjf13IFFwKRwsxpMex4HkJqzGx2efz+6W0xpc 8sZAQsqx5y+Ss4wn+50ac0/8W/9nX7XJ+UQsorzO/g== X-Received: by 2002:a5e:cb0b:: with SMTP id p11mr1696773iom.60.1544772245087; Thu, 13 Dec 2018 23:24:05 -0800 (PST) MIME-Version: 1.0 References: <20181213052259.56352-1-cai@lca.pw> <20181214040819.58625-1-cai@lca.pw> In-Reply-To: <20181214040819.58625-1-cai@lca.pw> From: Ard Biesheuvel Date: Fri, 14 Dec 2018 08:23:54 +0100 Message-ID: Subject: Re: [PATCH v2] arm64: invalidate TLB just before turning MMU on To: Qian Cai Cc: Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , AKASHI Takahiro , linux-arm-kernel , Kexec Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Dec 2018 at 05:08, Qian Cai wrote: > Also tried to move the local TLB flush part around a bit inside > __cpu_setup(), although it did complete kdump some times, it did trigger > "Synchronous Exception" in EFI after a cold-reboot fairly often that > seems no way to recover remotely without reinstalling the OS. This doesn't make any sense to me. If the system gets into a weird state out of cold reboot, how could this code be the culprit? Please check your firmware, and try to reproduce the issue on a system that doesn't have such defects.