Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7389452rwl; Mon, 9 Jan 2023 23:31:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXva9LCnIjdKEHMknZdz00Bu7lNjDihfruaxADHKtf2LP4K0kpCfl+bVIVUIOcD6lkFtaLgd X-Received: by 2002:a05:6a20:7d85:b0:a4:6eeb:91ae with SMTP id v5-20020a056a207d8500b000a46eeb91aemr104666335pzj.49.1673335908419; Mon, 09 Jan 2023 23:31:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673335908; cv=none; d=google.com; s=arc-20160816; b=m5GEZwNQVt2iRvJrRLHQHlX5RYwjfHmi6BGpLdgFcTwtjsDeG0GbJh7UZIxqRZq/ID v3HhXKbGNNKjv4LwBO2AY4OnU9WND7AE3yEoswOtSBJ8ONJs3/V5ICLOCrT+jmVsm0Nx rKWv5BEYXLfJEWDnG3dg7AlpSPV1m+Wl8L3WuUhzblMWFmc06qIMzyyqvW9aO8SEi/fa FwQcThtizPXotTMDHMeD3t/zU8C/FYzxbSsNL6fiR7Jvl596V0pzbiF2mGr2WDRHM6Gl MWK7zfrippJkKdYPp8yRwR9pFu17UWqDQzPT8USxgwwJBUgAKqrfSsPP1BDLHhD+oVyo bjoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=W4nO/4lVXs+Z/+CtXAWfDuRuw+5f+f3aHKUDFIb9ulY=; b=fkLQNYxsZFHiifAjskUfrxtV0v2eML0q0b7PZUHBpyfE1Cx24E6ngejq+I0eAYKoGk P+2FGQLo25tKbm/2cnbqrzsTUsv1DKH+QvhqtmQZKFOsqMoHRCuPL+y9OxODJDy6J+cx WsgvIczeMUYD21yQJhwP+EdXS/iKEVUm1Xch9QHWkN36xaaibvMSX1QIvGiZe7nDgrcu FAd7YqJMFE3hbfLdL71NkNbGnGMwOlsosLVdDGLpiSWQ0ATMu6uMRDXESvLzhLVpKvON 9Yh2156dWTQi+kHsUYnF+QYfZ7tFNRWNexR6BsYXm/0ABjS1yAOV9sAmQA87Te844YCn RRAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a63e811000000b004780e6f20adsi11221308pgh.522.2023.01.09.23.31.41; Mon, 09 Jan 2023 23:31:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbjAJHAu convert rfc822-to-8bit (ORCPT + 53 others); Tue, 10 Jan 2023 02:00:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjAJHAn (ORCPT ); Tue, 10 Jan 2023 02:00:43 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 941BE39F9F for ; Mon, 9 Jan 2023 23:00:40 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1A6B724E235; Tue, 10 Jan 2023 15:00:39 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 10 Jan 2023 15:00:39 +0800 Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 10 Jan 2023 15:00:38 +0800 Received: from EXMBX066.cuchost.com ([fe80::5947:9245:907e:339f]) by EXMBX066.cuchost.com ([fe80::5947:9245:907e:339f%17]) with mapi id 15.00.1497.044; Tue, 10 Jan 2023 15:00:38 +0800 From: JeeHeng Sia To: Conor Dooley , Andrew Jones CC: "paul.walmsley@sifive.com" , "palmer@dabbelt.com" , "aou@eecs.berkeley.edu" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leyfoon Tan , Mason Huo Subject: RE: [PATCH v2 3/3] RISC-V: Add arch functions to support hibernation/suspend-to-disk Thread-Topic: [PATCH v2 3/3] RISC-V: Add arch functions to support hibernation/suspend-to-disk Thread-Index: AQHZI/MH11WdbApPuUeV8qMdKhtSOK6V9U4AgAACswCAAT6ZMA== Date: Tue, 10 Jan 2023 07:00:38 +0000 Message-ID: References: <20230109062407.3235-1-jeeheng.sia@starfivetech.com> <20230109062407.3235-4-jeeheng.sia@starfivetech.com> <20230109193624.iiuguwgimpn7zbyw@orel> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [60.49.128.133] x-yovoleruleagent: yovoleflag Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Conor Dooley > Sent: Tuesday, 10 January, 2023 3:46 AM > To: Andrew Jones > Cc: JeeHeng Sia ; paul.walmsley@sifive.com; > palmer@dabbelt.com; aou@eecs.berkeley.edu; linux- > riscv@lists.infradead.org; linux-kernel@vger.kernel.org; Leyfoon Tan > ; Mason Huo > > Subject: Re: [PATCH v2 3/3] RISC-V: Add arch functions to support > hibernation/suspend-to-disk > > On Mon, Jan 09, 2023 at 08:36:24PM +0100, Andrew Jones wrote: > > On Mon, Jan 09, 2023 at 02:24:07PM +0800, Sia Jee Heng wrote: > > > > To enable hibernation/suspend to disk into RISCV, the below config > > > need to be enabled: > > > - CONFIG_ARCH_HIBERNATION_HEADER > > > - CONFIG_ARCH_HIBERNATION_POSSIBLE > > > - CONFIG_ARCH_RV64I > > > - CONFIG_64BIT > > > What's blocking this for being for both 32-bit and 64-bit? > > Just from checking with b4 diff, it's because I told them they broke the > rv32 build with their v1 implementation. > > I'd rather they fixed whatever the issue was with rv32 than ignored it. The main reason is because I don't have a rv32 system to verify the rv32 hibernation. I can submit another patch to support rv32 hibernation once I have the system or someone who has the rv32 system can submit the patch ontop. > > Thanks, > Conor.