Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp595912ybl; Mon, 2 Dec 2019 15:35:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwqxbJIdCDxjk2uBaGn00jdXRwHY6IGP/gj1A/p2TGrw24vOtiK+PQxpOZzqz4pzGUUCqXz X-Received: by 2002:a05:6808:906:: with SMTP id w6mr1348509oih.162.1575329712829; Mon, 02 Dec 2019 15:35:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575329712; cv=none; d=google.com; s=arc-20160816; b=UU57jIIY92NpjA8vT7VYXpCIjdwo1d8mPn+awd12/eJNCMRJzqNW6SkPy0qPsdaHQ4 9gYkku3Tdc7G1+ZKv4GRJPxD+Snz0Ov6YDaTEJBvODuQfUCSUUvatJgaOl4ydCwEIGl8 X/t6aWaHdc9XfWn2CcM3FukxQhIeAGs/ZdtQfYLQkRO3ORBAy8cFICFGpcO1O2lFWcb+ zQPISDWeZliEjrpHr9RdPEaGlkgrMM/kmu6SGtTPZeGW16xPUGCpkMSsiU+98g/nk0oK 78kXe4uoqLx5PAdr4FG6jIXboizBmOaz0siZ4oC2H+6SDSea5DCvokYBrM1WYQfH51og CiZA== 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:mime-version :message-id:to:cc:in-reply-to:subject:from:date:dkim-signature; bh=AuYdYQOqVjZOMTwcbGbtEItUVQpJS/UeiwXcdeGYymo=; b=IH0oN7v0TSBUwRfJiAY9cPtNCFoWIWmqs1gAdKI2TYP03qkYne32t6HmQsrl+gS7sq sOcoCXW8Vo7Ro8XFLOaaqxGzujqg0ylDBtNpNNwU0UDQuYra+HODklheou8PywlMWKqi GWdaNAck6e6vXyvUh91RedI6x+t1hJx9Dao7flpO+cbyJ47jxcNuuCqXNrC6nmEYjsd8 Aoct5Zhvi79G3AHHb07F6/KRNTGb99JCYP+iTV5nnIFVB7f3aEeGgU+wqtSugl05O9hS YCRg8frzkyODhWqrrSU1mZ/WOjpEeEa1IpHSS+oILs4ouxduEZ+sKI3adG+5WeYmOFYV 1Aww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PFNWfDDn; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si373987oip.142.2019.12.02.15.35.00; Mon, 02 Dec 2019 15:35:12 -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=@google.com header.s=20161025 header.b=PFNWfDDn; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbfLBXdE (ORCPT + 99 others); Mon, 2 Dec 2019 18:33:04 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45125 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfLBXcx (ORCPT ); Mon, 2 Dec 2019 18:32:53 -0500 Received: by mail-pf1-f193.google.com with SMTP id 2so639583pfg.12 for ; Mon, 02 Dec 2019 15:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:subject:in-reply-to:cc:to:message-id:mime-version :content-transfer-encoding; bh=AuYdYQOqVjZOMTwcbGbtEItUVQpJS/UeiwXcdeGYymo=; b=PFNWfDDnNNFEm2kwi9s7n16kEz6A210TtiSuJuZYIhrMhtnpoYmG71OxXcE1zDFjH5 SF4wAvHkndVHU1XEIFQUiktKEmf1Y8XfBc7ol07fHA7jcKuq0OfFtF7p8FVBLS5Oemxc Rf6hG1zkJXKBbHzt4+oCbrrUAR/Dsz1zahN3kNvIh+wpkb50ISe95QqkgTBkG9Kj2tNu C6PCIZuLVGMo6kA1pq1STe0cvjki2ZrsJvd6L8H+PEVTzmsiF4VfKb8G/kpgun8d+6rY 6lDMnmjVKR8w8byJ/JizyzpEvoYKS+X6KvuGfJYWhnSFUlPQwHzktiyFc5NG7hLI/JYf 3Nhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:in-reply-to:cc:to:message-id :mime-version:content-transfer-encoding; bh=AuYdYQOqVjZOMTwcbGbtEItUVQpJS/UeiwXcdeGYymo=; b=oSx/Mo04VYywxotMJW8KUYD4b7CXpk5eJpgLaZo9s3JE3m+oh/pJ2R/lrHFYu+A7YI L0q5NKnwIC2eCFmre5q3TkQuSEUrv4IN98rn1FaSgaTF4NNdGyInQUNvZOwpl4H/uX1Z wMELFqcMMS31xPyYWDiqWMxTTYjzsrmYw9MCmumLFsRs4boW0IAIwIJpW18QSeBhf+jQ KOarEWvSXO8ZwJdFgQ/e7SdENPc2wCQtQo0KCXYQMCBdBIBzPa9ft+Jl6JUVDcyoLpke b9WX4vjIljeXxXDTW78zS8ta6HE/bgvzvV94RlnHj3s47eRU2pV+gztMp6sd6D46Na2T QeCg== X-Gm-Message-State: APjAAAUN2PC2Ny+R3UArcmZkFKg0vU1pgFCW6uC2j9+kyYTJA55KLWrD uCG5TPykhcSLqwihP35fop9Aww== X-Received: by 2002:a65:6209:: with SMTP id d9mr1899204pgv.22.1575329572670; Mon, 02 Dec 2019 15:32:52 -0800 (PST) Received: from localhost ([2620:15c:211:200:12cb:e51e:cbf0:6e3f]) by smtp.gmail.com with ESMTPSA id e16sm580681pff.181.2019.12.02.15.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 15:32:52 -0800 (PST) Date: Mon, 02 Dec 2019 15:32:52 -0800 (PST) X-Google-Original-Date: Mon, 02 Dec 2019 15:27:26 PST (-0800) From: Palmer Dabbelt X-Google-Original-From: Palmer Dabbelt Subject: Re: [PATCH 3/4] RISC-V: Select SYSCON Reboot and Poweroff for QEMU virt machine In-Reply-To: <20191125132147.97111-4-anup.patel@wdc.com> CC: palmer@sifive.com, Paul Walmsley , aou@eecs.berkeley.edu, anup@brainfault.org, Anup Patel , linux-kernel@vger.kernel.org, Atish Patra , Alistair Francis , linux-riscv@lists.infradead.org, Christoph Hellwig To: Anup Patel Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Nov 2019 05:22:33 PST (-0800), Anup Patel wrote: > The SYSCON Reboot and Poweroff drivers can be used on QEMU virt machine > to reboot or poweroff the system hence we select these drivers using > QEMU virt machine kconfig option. > > Signed-off-by: Anup Patel > --- > arch/riscv/Kconfig.socs | 2 ++ > arch/riscv/configs/defconfig | 1 + > arch/riscv/configs/rv32_defconfig | 1 + > 3 files changed, 4 insertions(+) > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index 62383951bf2e..bae4907b4880 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -26,6 +26,8 @@ config SOC_VIRT > select RPMSG_VIRTIO > select CRYPTO_DEV_VIRTIO > select VIRTIO_INPUT > + select POWER_RESET_SYSCON > + select POWER_RESET_SYSCON_POWEROFF > select SIFIVE_PLIC > help > This enables support for QEMU Virt Machine. > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig > index 2515fe6417e1..bf33bd40ee07 100644 > --- a/arch/riscv/configs/defconfig > +++ b/arch/riscv/configs/defconfig > @@ -58,6 +58,7 @@ CONFIG_HW_RANDOM=y > CONFIG_SPI=y > CONFIG_SPI_SIFIVE=y > # CONFIG_PTP_1588_CLOCK is not set > +CONFIG_POWER_RESET=y > CONFIG_DRM=y > CONFIG_DRM_RADEON=y > CONFIG_FRAMEBUFFER_CONSOLE=y > diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig > index bbcf14fd6f40..234213b4ea74 100644 > --- a/arch/riscv/configs/rv32_defconfig > +++ b/arch/riscv/configs/rv32_defconfig > @@ -56,6 +56,7 @@ CONFIG_SERIAL_EARLYCON_RISCV_SBI=y > CONFIG_HVC_RISCV_SBI=y > CONFIG_HW_RANDOM=y > # CONFIG_PTP_1588_CLOCK is not set > +CONFIG_POWER_RESET=y > CONFIG_DRM=y > CONFIG_DRM_RADEON=y > CONFIG_FRAMEBUFFER_CONSOLE=y Reviewed-by: Palmer Dabbelt