Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1003606imu; Tue, 20 Nov 2018 10:04:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/WZQGwBu42be3vNrnjMv6MgeaRgMIu4I72F8QnQMK48AteCjpaMiU3OIIl36J1awBN5cHzp X-Received: by 2002:a17:902:c5:: with SMTP id a63mr3037057pla.267.1542737096228; Tue, 20 Nov 2018 10:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542737096; cv=none; d=google.com; s=arc-20160816; b=0uC63L4hl6zXeaCiISmYFFMmX1X1pB/3Wi7Ss2mxh/KuEQ/rCYz2DEEOIfeewGVDB8 HyDM3wyi/GWQ7GuhmaVhk8/WjvaF6DarQH/T0NnhM6VTt2dbnuSr8Ok1hSG6qWdAVdjP x8E435a7TgP1+Z1AzwHn/trrandISYFSzCmTGhhH8SzsTdRrjKRYXsNRjUA+UNvohv7s 7mZtyWMSZbwycbnR7vibYPfCE+yo0yVpuGhFOa7XVSZhAh5ZBBFmrtwUKnNv4AT6K9Pl /fNfk1xMEbWuGK5smEltGJ52MYx5ygLC3jYPPtTVX7SLY/7ySQXIfvsM9J/sozNZ1PvL wcfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date; bh=xU4Nx7OdBMbiM00vsHAyw+irJSfQq+mtTFy2YsQ2HuU=; b=auS9SbailXltGa7sNxHoDhSfKHA8fkqg6qJyVO3NcWAJsmaMAdaN7yZyJB/ldajBQH 7Uw0wkFddnJlK5M12vXycV8ArCs4HWL+mpDWLUIYi4j5Myltxw2KUzOuAZK3IkNNStZH Zpn3qHfikt+02WYx9sqM4m5PjWOmNQXCRuDu0votQw83foIrK+PsnLU2F8zFLkscNxYx 5OqBOCdbzn1juq9SEczL9IgAaiwi1qUoYKUD/xlUzxLzVGxaGA9PHO+oowMYYoPBUTXl D4mLApJhpyJY6raddu5TrBgx3rEYLR2bB4azY/F3rrUVWn6GDE5bisFcOf8kIHASyIgI QVNA== ARC-Authentication-Results: i=1; mx.google.com; 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 e9si31704802plt.330.2018.11.20.10.04.28; Tue, 20 Nov 2018 10:04:56 -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; 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 S1729079AbeKUEUk (ORCPT + 99 others); Tue, 20 Nov 2018 23:20:40 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:46111 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbeKUEUk (ORCPT ); Tue, 20 Nov 2018 23:20:40 -0500 Received: from oxbaltgw04.schlund.de ([172.19.246.10]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MIxBc-1gAEre48Da-00KOw1; Tue, 20 Nov 2018 18:49:33 +0100 Date: Tue, 20 Nov 2018 18:49:31 +0100 (CET) From: Stefan Wahren To: Eric Anholt , Florian Fainelli , Rob Herring , Mark Rutland , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Message-ID: <1299453058.112996.1542736171394@email.ionos.de> In-Reply-To: <20181120172000.15102-1-eric@anholt.net> References: <20181120172000.15102-1-eric@anholt.net> Subject: Re: [PATCH 0/8] BCM2835 PM driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev46 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:KsSxJ0gAOjhP67rlh2xuwUvmHleWXmxCGRz23BuBi/5+vPOzrR5 8QzDI9uI3py43It0AOar2XHRRkX0ZFwKk3a+AVJEIxgTszPz/xySLR/qjYWg3lMqTPKNVRm BiKcrI4NAz9ICjqpOOKzvnw6vuUaWk2nD9haCPxhkSYFBMGRTS9Ar9n6FpsEv00LI3xWHqj z72Cnt1BZJeJCtdf73x2g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:PZ1ONvE14Qc=:gaTG8ja9PRAl9sDTOqBdsR QfdlHdDYw/Y+z+M8B3eFxfmN6V13K1EyygnxL3923lEbiVyLII6VYjfaphcJWW7lSO5gy6Ky/ Si8f7fAZ0tm+eLNRR8/RtpAQHK8gAYV83ZFy9sHBZqJFbjNmJPWgeYD/uloo4y6SoLslnDxpt vvY1BnbLs8Gr5yib8q1crrcq1NjecCij0rOg6X8UESSfpiAZzkukWfzHKLi/bDWaY7QJ+46o9 1d8XjT3T7uEDrcCWKQ7HBkG4RsOF6ClWRtDEZWLzvc2hiWUHR084pSQ7Ibs2iM/qLlH+Fx9/x 7OynLSgmBIcsJhXY6vxBPeCiVYU5LCa98oAp/rtIqPcbiGpTzP3+kooWjPr0I0gYUe01iW3ZA rGuWMRWlQnynXnVa5OVr6xpFqdmwOECrN2XQ5mZwWUY22nZMTnSuF7zrN4Zp9dgt+tozBMM+b WRvldPP/BoU1WIPvi4PZSgrxd8+tW0CLB/sGR88HRUZF6i9jcmgCy1+Bg54dOoOSZMLM33H2n LQ1rmXa/w+LY3o9ElqkA0awzrOFWFj6DY871zK5Vhn/vjaVL4X+zt7oXlFximYgYiD8M00c6z 6HQ+Noiv9eUf2JXpVQ4CT6AsyKktqP6/78Uus2ExTJChlyVd7EqhxhsIsy1P5EfdUGqkdx3t0 u9GTacd55EC+yIbcrbVDKfKBYUVjZ3NIpyeFAJzholBF+RvTkVk+4yrLAbmoOkvIx4Rxan7ga VL71XgVx0mYWcIIyV6qmaW7dUYOmx01eBVQlNWAr+zvSkIt+EnQKnefOLwMTVJ0CwqpBvvgVY ELZVLtOMqymqPsOyVZzf2DgOsEAJNmhA3aAgcgvA8d/q+y091A= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, > Eric Anholt hat am 20. November 2018 um 18:19 geschrieben: > > > This series moves the BCM2835 WDT driver that controls a fraction of > the PM block out to soc/ and adds most of the rest of its > functionality. My motivation has been to have V3D be functional > without firmware calls, probably improve its interactivity (since > we'll be able to power on/off without RPC to the firmware that may be > busy with other tasks), and (in a patch not submitted in this series) > extend its binding to use the reset controller instead of trying to > reset by toggling its power domain. > > I've tested V3D with a few hours of running a V3D test, sleep(1) (to > trigger PM domain off); running a GPU hang job (to trigger reset); > sleep(1). The non-hanging success-case job always passed, and dmesg > had no complaints from bcm2835-pm. The other power domains are not > tested, but I've done my best. > > This series will probably also be of interest to the > https://github.com/christinaa/rpi-open-firmware project for enabling USB. > apologize to give you my feedback after you send out the series. I know you won't be happy about it, but i think we need a little more complex but future proof solution for this power driver. According to the register definition of the PM block, we have multiple functions here (power domains, watchdog, pads/pinctrl, ...). Since this is common for ARM SoCs there is a subsystem called mfd (multi function device) [1] to abstract all resources of the IP block. This has the advantage that we don't need a monolithic driver which takes care of all functions. According to this approach we would have the following drivers: mfd/bcm2835.c soc/bcm/bcm2835-power.c watchdog/bcm2835_wdt.c Best regards Stefan [1] - http://events17.linuxfoundation.org/sites/events/files/slides/belloni-mfd-regmap-syscon_0.pdf