Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp884312ybg; Fri, 18 Oct 2019 08:46:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzedf2XTVU903qycKO22mESVVx7D1n2kuSrI18H4634ibom/Xk5SxedkGuXB4IaHAr4e+w6 X-Received: by 2002:a50:eb95:: with SMTP id y21mr10437826edr.155.1571413599939; Fri, 18 Oct 2019 08:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413599; cv=none; d=google.com; s=arc-20160816; b=Vr9Y+gomvSZrGrMSwRmWo4/IoAjsbDSzpEQY2TbmScC7xi3Pt1z5oQ/9upTh5aJry4 5UMY55aQYHzgsJg76kyTH77LwB6bvNNQ1rQ78lttc43KNN2jp6nd6XOdUUIFVoArFECw pADm4ftv4grCA4COT778XmogUUSSkE/NpwjjAnTiRzTiqUrL9By7jaGVuxHu5ogWub4m EOo6EHmSNmuYE1CdEaqAZQXFdPYdoZ41T13ESznYTJL13icMJTUGvfsXnXor6/7FNusU /QlmmgfgJ8MokPL9UchMd7PyfvW7chgsxkcRR4mHCbH4eVdrpwvpHUPgkX4jP77geeaK zrTQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uMFWZhVs3nOLCl7bSNvnSRRP4v3iwqBQaN+r4cGzM5w=; b=oCxzhQS8gfZgDu4ovUNdnIXLU4pNff0YQKwhCQpH6QYAxk70zPUgiJVER6GjoOvxOf s4asy8vxhbDu6TVM1KpQWFMEPGxsVlAic5sw4kExTr6mUoBZBlhxXQQNybIJ84T60ch7 qHMOwHMEOFyGck+wBqZVsG9gp+giqel9d5GxHFeHJakKaHHH3rWwCinbOlT8xmsW33Yp Gt923Qu14RMNP7SY3RTsUmf1aXlydJWZ7OnphP35Tg9/jMy7MA0zmJVQR2bOSq6Z94Lz okuaV6d7OqyRTcsR3DOpaqlrWAGQlDUeieBrUB1LJ+tfAomlNDfLmqBtso2gem+Ykg83 fQYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=i8IC+ybA; 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 z26si4072190edz.99.2019.10.18.08.46.16; Fri, 18 Oct 2019 08:46:39 -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=i8IC+ybA; 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 S2502381AbfJQMe4 (ORCPT + 99 others); Thu, 17 Oct 2019 08:34:56 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38521 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727291AbfJQMe4 (ORCPT ); Thu, 17 Oct 2019 08:34:56 -0400 Received: by mail-lf1-f68.google.com with SMTP id u28so1748764lfc.5 for ; Thu, 17 Oct 2019 05:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uMFWZhVs3nOLCl7bSNvnSRRP4v3iwqBQaN+r4cGzM5w=; b=i8IC+ybAH7Xu7kPM1yyi1ejpd2G+foax89r02+eIpDfbysN1/dJVRVOC1WXOjAP7R0 n7QEgIsfDwQaR6XPB6O7Opdti6NPjAKKHaInhfmR/TBpfvfblOvLNtWbf+AODqeB4c1/ M934EFwgtgZdAu3sspAjeymnEZ83UQyhEIU70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uMFWZhVs3nOLCl7bSNvnSRRP4v3iwqBQaN+r4cGzM5w=; b=ZmLUTgF7FSHvfsvDBbMcYLIzARKMI7OLKg71Bra6KQqUFP/U+ZGMVG15aHMhVIQ2bT piqtdn5BWI0UnzQC2/BFqiDv7AJ3a0PW/rfGnYmXYpW20CY0GaE2CEkkUwRNSkIvD/ls 9M0Bu9ZELgQ1yoVJn4HEzmhn9wCGnARXjK/qPxG9dC5pjD5T2MKfgdM8+/DMphQcH8DN Vc94VR2ZfLzFNf05rojnTeJX5TO1SxtfR344YAzRWsh+VXiNXys/KBf/lB9ViJwfo+mC jAie4OgSnLvlzZwTLLmPO9bgGxSbQSnZ+2qC9xP/JyONn2ubELqIsXTTORTTpcsJtp0X UKkg== X-Gm-Message-State: APjAAAVTebAGyxG2CwpK2PHxceyLrvLTEPJYCFU2Nsf3+C+yFRjX213u 9zZYpFVEPTJr4HWBzdAHpNDxgA== X-Received: by 2002:ac2:50c4:: with SMTP id h4mr1544119lfm.15.1571315694244; Thu, 17 Oct 2019 05:34:54 -0700 (PDT) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id y4sm1124965ljd.82.2019.10.17.05.34.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 05:34:53 -0700 (PDT) Subject: Re: [RFC PATCH 0/3] watchdog servicing during decompression To: Russell King - ARM Linux admin Cc: Masahiro Yamada , Andrew Morton , Gao Xiang , kernel@pengutronix.de, Linus Walleij , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20191017114906.30302-1-linux@rasmusvillemoes.dk> <20191017120310.GD25745@shell.armlinux.org.uk> From: Rasmus Villemoes Message-ID: Date: Thu, 17 Oct 2019 14:34:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191017120310.GD25745@shell.armlinux.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/10/2019 14.03, Russell King - ARM Linux admin wrote: > We used to have this on ARM - it was called from the decompressor > code via an arch_decomp_wdog() hook. > > That code got removed because it is entirely unsuitable for a multi- > platform kernel. This looks like it takes an address for the watchdog > from the Kconfig, and builds that into the decompressor, making the > decompressor specific to that board or platform. > > I'm not sure distros are going to like that given where we are with > multiplatform kernels. This is definitely not for multiplatform kernels or general distros, it's for kernels that are built as part of a BSP for a specific board - hence the "Say N unless you know you need this.". I didn't know it used to exist. But I do know that something like this is carried out-of-tree for lots of boards, so I thought I'd try to get upstream support. The first two patches, or something like them, would be nice on their own, as that would minimize the conflicts when forward-porting the board-specific patch. But such a half-implemented feature that requires out-of-tree patches to actually do anything useful of course won't fly. I'm not really a big fan of the third patch, even though it does work for all the cases I've encountered so far - I'm sure there would be boards where a much more complicated solution would be needed. Another method I thought of was to just supply a __weak no-op decompress_keepalive(), and then have a config option to point at an extra object file to link into the compressed/vmlinux (similar to the initramfs_source option that also points to some external resource). But if the mainline kernel doesn't want anything like this re-introduced, that's also fine, that just means a bit of job security. Rasmus