Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp881177ybg; Fri, 18 Oct 2019 08:43:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW6Fsoqus3dgpHjn5JFZadGrROsa/x0h6tjIq1qZQ95mieXD8CfRWhH5pd7P7htwWSm18J X-Received: by 2002:a50:fa8e:: with SMTP id w14mr10366741edr.285.1571413438800; Fri, 18 Oct 2019 08:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413438; cv=none; d=google.com; s=arc-20160816; b=iv6VMxmUyQKXaZLz4E61hwSlEZzG8T2V6VvFsTW4k1/Ds8xnqtTfBSmJehK5ifkn4G fUXK4KiFyRFdUltPnnaA7V3RBRg4HKs0JwJsK8cl56XfkGeQkLPB6UAlfcIAJz5dEkno H5EWu9D4mqpD+L2aEj2Sk9JQLPszXpCt9Jv7l3qF24Vo3CEFGcaTFBiJ83PVmeswxnss mDpvezWN3nLjuzLA5Nl4DTSp/bmjujgPeRJO+n6G4ZoDr4hxZkGBC+a4QDHVGY5Y7BVo OTObBLzsEh3rr3qhL0sRTU7Say+VdylCrmA6wn1aVLEnFvyQLdIEoG/QZYblaasrtSPh F6EQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v8LKBRBxcaymYywQC1yoyW7qk1pLqld/GOLoE3N0/Gk=; b=rLJGsBGO7C2G/nU79iLqT/8nrtNQqamA5SFkxL2wUoek6ii0Tmc/eB5vBUzFAtkF50 SKnMt0kc7lU9gKBE39oq7hTsx2v2mOTeA7fTpZD8sqdTHWn7DrRIMaIf6FhXnG5jIPm8 RecSAXZAAKrvFK6VrgpBiaNaD/ox4bYk7F07WQqPsxQMnV8uU9RkobdoMCLPzYt3Dmp7 aMQ40YePzxq0Pn6YOhecl9k97yBnOeJRSL2tM/LeVJKFN71AVGD9vTQq943hM/HgLhQb e8oUeELro70hv66P0JW1b9RXK8JSRkH/1H2RSUHdZB27GFXBVy/Fz55K/fS35Hh+VmU0 uJnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Y94hZcrB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si4155920eda.194.2019.10.18.08.43.35; Fri, 18 Oct 2019 08:43:58 -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=@rasmusvillemoes.dk header.s=google header.b=Y94hZcrB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409302AbfJQLtQ (ORCPT + 99 others); Thu, 17 Oct 2019 07:49:16 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37376 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405899AbfJQLtQ (ORCPT ); Thu, 17 Oct 2019 07:49:16 -0400 Received: by mail-lj1-f195.google.com with SMTP id l21so2221408lje.4 for ; Thu, 17 Oct 2019 04:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v8LKBRBxcaymYywQC1yoyW7qk1pLqld/GOLoE3N0/Gk=; b=Y94hZcrB1Y777DAYUOPKEcDZveCY0YSN4thc+ix3qgL9cYKMOVj69ctzDms1zp9Pck jt8E4tROWs+rMeMU4TR/buZTRzbxGNP4SpmvAyNhcttPsW8OXf3f21N6EyvoC2dhf+8l MMmTyDhdL9xm3opCRJRWwlpcbPUmnPAaUZ+As= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v8LKBRBxcaymYywQC1yoyW7qk1pLqld/GOLoE3N0/Gk=; b=s1OWA158tlRw8PqDLgilgs+upiDke9+QsoB+pEMT7S0Lpq9qU9YSKLcRoOaHLDfhiu SYgOthpEoHei/GeCQjX67A1dyotrvRE5d1/GvQvj/efKE2tgFJ3Y9J42UEoix9iiNCSO TUbI6pLrsKDQAsVu54/cjcsOhY7H3ML6QofqVYV+JTxOrD+hTgni2x5phWGGd4jSLRa1 gr3AB85MdlLKwkLUHvCWklRpAOlU8+HFkGlme0tN1c5CoUsaQROTLQyJQqyqdXZdpRXK 6t0LaduIxMCstHzdBIV+ZSlRGDgGYSSeV1gCmkNSMwKtmmRHvq/qTo50547VHmPPwGwn jXaw== X-Gm-Message-State: APjAAAUapRRDmPq7csL0ITa9cr+5/uCgSzoLmn3WXjdCK68qgs1+7XQI XfLJVrKrr/sQa6OjvW9lLlQwNA== X-Received: by 2002:a2e:8417:: with SMTP id z23mr2192660ljg.28.1571312953668; Thu, 17 Oct 2019 04:49:13 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id x30sm920772ljd.39.2019.10.17.04.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 04:49:13 -0700 (PDT) From: Rasmus Villemoes To: Masahiro Yamada , Andrew Morton , Gao Xiang Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , kernel@pengutronix.de, Rasmus Villemoes Subject: [RFC PATCH 1/3] decompress/keepalive.h: prepare for watchdog keepalive during kernel decompression Date: Thu, 17 Oct 2019 13:49:04 +0200 Message-Id: <20191017114906.30302-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017114906.30302-1-linux@rasmusvillemoes.dk> References: <20191017114906.30302-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some boards have a hardware watchdog that (a) cannot be disabled and (b) has a timeout short enough that there's no chance for the kernel to get through decompression, let alone reach the initialization of the appropriate watchdog device driver. In order to allow booting such boards, the decompression routine needs to service the watchdog in its main loop. This adds a header making it easy to wire up each decompressor - just include this header and add a decompress_keepalive() in the main loop. Outside of the pre-boot stage, this is always a no-op. Signed-off-by: Rasmus Villemoes --- include/linux/decompress/keepalive.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/linux/decompress/keepalive.h diff --git a/include/linux/decompress/keepalive.h b/include/linux/decompress/keepalive.h new file mode 100644 index 000000000000..39caa7693624 --- /dev/null +++ b/include/linux/decompress/keepalive.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef DECOMPRESS_KEEPALIVE_H +#define DECOMPRESS_KEEPALIVE_H + +#ifdef PREBOOT + +#endif + +#ifndef decompress_keepalive +#define decompress_keepalive() do { } while (0) +#endif + +#endif /* DECOMPRESS_KEEPALIVE_H */ -- 2.20.1