Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12611303pxu; Sat, 2 Jan 2021 05:13:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzS45JPC5bpMLqy1Q1XiZkHEpOkOhuCTtCCidFRLNgz5/N6+ub42H/hmt9mLEB5Tend37eM X-Received: by 2002:a05:6402:50cf:: with SMTP id h15mr53962167edb.149.1609593205653; Sat, 02 Jan 2021 05:13:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609593205; cv=none; d=google.com; s=arc-20160816; b=eKhjDZK7E8D6eLdnCTZASULO+9FztDot/BRCIEMqmZYhvKqyOpU3t8Q5aAR52eCR+/ wKZK4MiC0H9YQ26ydXjxWIv7iUMDtogxL7vIv0IfojBFIy670u/VptP6giqjIPatOzB+ 9p9suFRT2WjRAKovQEPJPJ/ukV/eLM09HKpJCeexuc9FlTKPYWNnY5fN3mdzVIvDeVdV d+5sX8MlTr7KmQsNeIgw5v3b88onRdG0BNL6SiqYp06Lj5Zz2Lp0y7nnc+Jwlj6zJkJn iredUvJR+XYgPKVFE+mB94NLVMMbovZ4jdXJ4RyI1+zu3udZuDPWOh41gS4X+rq4cFCt xWwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=fOBlA4nmgbYcLbjWcHo5UvnezZZmpodZaYFnX7DjUAo=; b=AU9RQ0iiQI3UbWsKq1phVBbsxltr6laO1ecjaakkL4K3+fWl+IlfwZVSNzOdbxBps+ dJGbqg3MmTMac0HdW1ZU4aTQgBSGrf2VWUWst6ulvXWJw3GEXlYHv24BYVxRqe+WZEUl UHtSal0oz60JUUnxnf/p8BrsSjxa+l7e9lsyLimQzHeDHm+qLr5sboNYGalZJr4HgyAY l6y00yivmmDEL3jmiczUxv73luZHxtfXmf5yW7ryEaeJWGWXjTqxLXdDY/agiCTmeydS 22r8ZWyTHOu+0GA7bgwdwgD4xEsYOGfed6SJA/5I8F1ObzdAP9n+9MEuxPFeoAGjsac6 9a2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si26058060ejw.42.2021.01.02.05.12.38; Sat, 02 Jan 2021 05:13:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbhABNKw (ORCPT + 99 others); Sat, 2 Jan 2021 08:10:52 -0500 Received: from mail-oi1-f171.google.com ([209.85.167.171]:35898 "EHLO mail-oi1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbhABNKv (ORCPT ); Sat, 2 Jan 2021 08:10:51 -0500 Received: by mail-oi1-f171.google.com with SMTP id 9so26806548oiq.3 for ; Sat, 02 Jan 2021 05:10:36 -0800 (PST) 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=fOBlA4nmgbYcLbjWcHo5UvnezZZmpodZaYFnX7DjUAo=; b=apQ4uLOiSFg3vKSXhB+7kL6AVzsTECvD3iyhqBxy59Md9TVo6xX5T9cW8HU55uoN0/ 8KwolkikdFrv64URYVSJRW6V2HGdHtrX3ihFjSKXsImZRYWtZ+x4bdX4v/R64GKmhBIi fo8M/wy4yrFZsDffMOtAM4YFoeSeUTU2+czTa+NQiymSe98qwdlNBgNfTyiBMS0DJbDg jQuziVDx87AyFTRIhYehDVQIRzKoY4smlL0+8QyA5RF2/VQvn+ry1H1IU6e/X1MYugWP 4xEqt3xeNI1FEer8ltSwfVLCGdcmcR5LQYv5Ael2tlMQD2ZqPCfrusVhU/LP3QPgcNnT MM7g== X-Gm-Message-State: AOAM532eDvwBa5UFQXyE5SJsk8vV+LhKOaDnpwqKP7eHqOkI29T6pzAJ y5yasB1MvwgIOsnW5lYEMECQUuw88HNhQu2/sUG4sSBB X-Received: by 2002:aca:ec09:: with SMTP id k9mr13074888oih.153.1609593010883; Sat, 02 Jan 2021 05:10:10 -0800 (PST) MIME-Version: 1.0 References: <20201227091446.118437-1-joel@jms.id.au> <20210101061135.GA3106870@lianli.shorne-pla.net> In-Reply-To: <20210101061135.GA3106870@lianli.shorne-pla.net> From: Geert Uytterhoeven Date: Sat, 2 Jan 2021 14:10:00 +0100 Message-ID: Subject: Re: [PATCH] openrisc: restart: Call common handlers before hanging To: Stafford Horne Cc: Joel Stanley , Jonas Bonn , Stefan Kristiansson , Openrisc , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stafford, On Fri, Jan 1, 2021 at 7:11 AM Stafford Horne wrote: > On Sun, Dec 27, 2020 at 07:44:46PM +1030, Joel Stanley wrote: > > Currently openrisc will print a message and then hang in an infinite > > loop when rebooting. > > > > This patch adopts some code from ARM, which calls the common restart > > infrastructure and hangs after a small delay if the restart infra > > doesn't do anything. > > > > Signed-off-by: Joel Stanley > > --- > > Geert has a patch[1] for the litex soc code that adds a restart hander. > > Openrisc doesn't hit that code path, this patch fixes that. > > > > [1] https://github.com/geertu/linux/commit/7d09dc0797a8208a11eb7c0c2156c1a4c120180f > > + do_kernel_restart(cmd); > As you mentioned this depends on Geert's patch. Does he plan to submit it soon? Will do, once I have managed to escape from Xmas-and-NY mode ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds