Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp10455ybv; Wed, 19 Feb 2020 15:20:44 -0800 (PST) X-Google-Smtp-Source: APXvYqy5q8enSeUIQsV4oRIC1lg3xAxXievS0KhdMYlFuOkCSf+KFEnMFC1eZ12Uxq1cQm3PCxmM X-Received: by 2002:a9d:842:: with SMTP id 60mr9547608oty.318.1582154444290; Wed, 19 Feb 2020 15:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582154444; cv=none; d=google.com; s=arc-20160816; b=GuXx2cbAm2Z4PDHaubfJTpKIBeb24MFaX0/BIbL3/qOEDGt1nNYRRZNlDzylzZh/6q mpd6AC/6Xi3UY5f6nz76o5gJbykDcQH1kNOlOkphgCdygS+3YFFA4SSJRwNJieGRSqrb G+lZ46gZrXvu47JRfdf/zh9NgDKlAJKylIAG4cJUe5PFEMWtF5SjSuJahVePS1Ly/2lc j6/WRByUzwHyJzLn7ptp41Ge/VP0DWLjoiFT6Ol29Nd88/+FBryVLLlcoASETdjs956p ry0sOPE0/tylQcOyzDDgq3aExdvPxsHTDcuQJbJn02hE36k5J6Ubn9ASHOAZeX7ECZfU sN0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zTjU5dQLnIByh50nZjXZubn4ZLHJkYRWG/8ptJLiRjw=; b=TEsDLafDNqNjTYW4586za6pS8bF5jeOPRLUrzPdhpudxpXm0wqq22Iq8jLCSj0sMB3 ZdvX6dcth/1TX1BWQQuDssFsP2cg7kqsmPuL3B4n8ArfcneXBjxfnRM/1laxwAuPcJ2h nCJyecGnw+TrBXOfkhZx0Fqu1ZFnjU5ghYVQHdErwR8XXde3iBldlxewTDGmnF5+lqx9 qd13KMnVm76dnEBnmXbz6h6qUw+4c73JxRKlYbiN6G2KUOsLhP8iX7heH/V/kTZJSBjn IQlQP5RCuInKjQH/ivVBfe8G/PWAWaB5aizUniypOR2OkDQweYtzis9UyKcKp/TuyTKh Zcag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZNuqnwZQ; 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 x197si9631155oix.174.2020.02.19.15.20.31; Wed, 19 Feb 2020 15:20:44 -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=fail header.i=@gmail.com header.s=20161025 header.b=ZNuqnwZQ; 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 S1726776AbgBSXUI (ORCPT + 99 others); Wed, 19 Feb 2020 18:20:08 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40120 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbgBSXUH (ORCPT ); Wed, 19 Feb 2020 18:20:07 -0500 Received: by mail-pg1-f193.google.com with SMTP id z7so886644pgk.7; Wed, 19 Feb 2020 15:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zTjU5dQLnIByh50nZjXZubn4ZLHJkYRWG/8ptJLiRjw=; b=ZNuqnwZQz4FPhaySnryBa1KYuR9FGehK5Ds+5qdR/Mxbf/TNvxEG6gCMYJpY95YbGu tDgSoBOnqu3J+MOmT3Oni8Oaa7G6kpcPeG8tLgTCPew/qXaDN1kBcEen5q87vMU3mUDT MEY+lzdNqwZW1NXv3qfo/ks6Jrh3K+/RVo5fu2LvTc74nnhH9W7hu6sOjDtnw+BfoGoZ wFj66S2w2RPqIFPoc3rF5M/PrgzforO1gMj8U+cgkywv4sCN2XM6vwJaiMWjPnw6gDJA 1HFW2mr8MX2G8mfnDhKGvCp8T10c5H4EtG1xeIQb7IfptUjhyrvWSg2rnD3+ACXcPKaL SqBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=zTjU5dQLnIByh50nZjXZubn4ZLHJkYRWG/8ptJLiRjw=; b=ab3+CnO63Eu6h9RbkVl5Pf96K1EDPWbMe3DVyawJOtFt+1/yaesDm//057XpGHYnzt IZ7V/p0lPE6ea73bkmY1G505yawDcWvg8lPnPq2t0+XmEUGbbgWEcxTA0rc49qODMF8f F1YX9gYSxVbwYTjCDmfZF8ulw4vOeKHH0qQWVAzYNQ+jlX4GnBpPUV7kNdAGx7QaHjA1 WQBzH/msjpw3+MbjRIar26thr/Ya6iCFcF+Q/aNsxoqmuxMpJHmJGxqUyrcFFid8M/wr a5Dr/93BeiA6ltWd2AkGixPnVE4thjLtE5kLvwbxL6DWCCUivGYXOg1zXGmEAus7765m vBUw== X-Gm-Message-State: APjAAAW2I8pWfrsntcOcwVo/yACl/lAc7QqkKWjo/Advb5loew6zRw1M 9JSDtDRbJZIA4Jokey/nx6c= X-Received: by 2002:a63:354b:: with SMTP id c72mr26575153pga.99.1582154406970; Wed, 19 Feb 2020 15:20:06 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d2sm832488pjv.18.2020.02.19.15.20.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Feb 2020 15:20:06 -0800 (PST) Date: Wed, 19 Feb 2020 15:20:05 -0800 From: Guenter Roeck To: Julius Werner Cc: Rob Herring , Evan Benn , LKML , devicetree@vger.kernel.org, "David S. Miller" , Jonathan Cameron , Mauro Carvalho Chehab , Wim Van Sebroeck , Greg Kroah-Hartman , Mark Rutland , linux-watchdog@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: watchdog: Add arm,smc-wdt watchdog arm,smc-wdt compatible Message-ID: <20200219232005.GA9737@roeck-us.net> References: <20200214062637.216209-1-evanbenn@chromium.org> <20200214172512.1.I02ebc5b8743b1a71e0e15f68ea77e506d4e6f840@changeid> <20200219223046.GA16537@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 03:04:54PM -0800, Julius Werner wrote: > > You are not the first 'watchdog in firmware accessed via an SMC call'. > > Is there some more detail about what implementation this is? Part of > > TF-A? Defined by some spec (I can dream)? > > This is just some random implementation written by me because we > needed one. I would like it to be the new generic implementation, but > it sounds like people here prefer the naming to be MediaTek specific > (at least for now). The other SMC watchdog we're aware of is > imx_sc_wdt but unfortunately that seems to hardcode platform-specific There is one more pending, for Meson SMC. https://patchwork.kernel.org/project/linux-watchdog/list/?series=227733 Unfortunately it uses Meson firmware API functions, though it has pretty much the same functionality since those ultimately end up calling arm_smccc_smc(). Guenter > details in the interface (at least in the pretimeout SMC) so we can't > just expand that. With this driver I tried to directly wrap the kernel > watchdog interface so it should be platform-agnostic and possible to > expand this driver to other platforms later if desired. The SMC > function ID would still always have to be platform-specific, > unfortunately (but we could pass it in through the device tree), since > the Arm SMC spec doesn't really leave any room for OS-generic SMCs > like this.