Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2402525ybi; Mon, 1 Jul 2019 11:23:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg4PnzornUwsBIf1saomwMdBD+MXC2CkVd6zD1k5Lhvp4HWUf65JnSlJvSqg37q5bWs1fe X-Received: by 2002:a65:6406:: with SMTP id a6mr13738961pgv.393.1562005397426; Mon, 01 Jul 2019 11:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562005397; cv=none; d=google.com; s=arc-20160816; b=EmR25FV1n0IU5jGA7uxVr28ZB0rAz014VDvayvhzww89ynffacGKx6h+/n7bc625j9 feHlw0aCKumFSX4IBzl4iJoniBX4BPonXNqJrji6zZ5IKbNIrEvmub+t7ceMUrlFbKxM NThuK565Ez2GTcLlePFz+fF5iGVcYVdRpRgniBB3lSU/HQAGGsCKV5F4ySuzyKfHuTHV GO71hDcrBh4EsoOw54pp3qF8d6vYmWXC/gYgACgdNw4Ts6DjU9/fV8x2kyFt+JBVAU09 fiJWmB7xKY3A+kHrXh+1I1VWjqEFo7wu0gR+GQkZ+Iz1HF5zDEuxTEI7Yx/P0xSESV09 m16g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=K2tpItKwuKZOogitEmK5udMyyQM1691xM5APcPto608=; b=tVxt2BiUCl8Pz+K0nNiRGkt0q5kqfqaE6GyB6CpEkvSIZZIpzPyOVukvP+xEzIFPTA Jv0Y/mx9Ny3iVvBdEqb1d/SEcL18LHqfCA5BKJyMPhru2KcsKvTSiiLdRGbLOIStD8S2 /pHCxi7/8wlH/ywdqh8wt2o55PXoC6DAEZzeEl5Vi2IJKGLvQACidB7GBIVUbMitwdU0 RlcCafVV0Bd9saiBGvRSWQ5hmY9AXVYPYTzcySaCA/oSwon07cgWK4wrvud2BF1sHj2q 1q+ONZ9A7yHLswosh4HlrIDYpYeCdFncgsP8qMxY6h/9wXSXko4ON6yuKst+XBsqPixj 8eYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wfo6MybS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si10667974pla.73.2019.07.01.11.23.02; Mon, 01 Jul 2019 11:23:17 -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=@gmail.com header.s=20161025 header.b=Wfo6MybS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727055AbfGASDE (ORCPT + 99 others); Mon, 1 Jul 2019 14:03:04 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:35315 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbfGASDD (ORCPT ); Mon, 1 Jul 2019 14:03:03 -0400 Received: by mail-io1-f67.google.com with SMTP id m24so30905452ioo.2; Mon, 01 Jul 2019 11:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K2tpItKwuKZOogitEmK5udMyyQM1691xM5APcPto608=; b=Wfo6MybS7hH5DKgNXldkNyj/G7ZcAkedgRpXC1z/5iSm+HK5Xk1PMACgeewleePYHB MUxt71ZWh+8eRyEcTP5BZGIilgCuE5rPk/k6+4dUbg9Ob/3iTbU0/wnOsu7an/o1gSsK DrvnCo3rOf8Sua0uIWAlO2+0FLa0Mjd/F3LoyD5yZpsal9sso2OMfFoPyFNBLIE1ZdmS 9Y4V7SpcZMDLudhphdChqGcObQvCtDqvkWvqtK4UkMGbO0EF29Bdf68FvhqRa/Hz2a/5 xR4qAZvsrEQFIt16yYWSXChJ4kLjyVUkf6kd0eSNBhf+Qq68hpHGQGx/N9hSlHbdMDi6 YRvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K2tpItKwuKZOogitEmK5udMyyQM1691xM5APcPto608=; b=fHvo4ydlyBV+MIUkhqAltG0rFEPhzEXZNbsmyXRN1ndBUDxYyHkPpiXSJgPyCn3FL9 nqf0olVVPMEnexnKlG6rjJjgNFaDz4e4DFvn3q6ZNby3045CfhIgyYopBFsuFiEHE0gG QTNs6NCVGW0BKXd4oWH4vVlwMmGKqpjIxJbXv5OztHIvA3sq6SDlNH9rDpocLbRL/NRL +6WRc7fJe5mVGL/5+D0elCxq58v4sAkmB9yGZuQKLCW/oJ5o1XinMDt7OBFHMsbjCJFl sg6xsPKWqF4DdhbK3kFvgFGfYPmyL1l5/Brt6nGrBjfgFELqCtx9NnVoUWvK6ybJqpmV hwzQ== X-Gm-Message-State: APjAAAX3ohTcZo7T6413+l0MeTg5bmDVjWN5NiEuXR8MuJGmN7FSQAsv 93ICWwsEODu5CJEoHZ45GeVQi4iXMLuzyL0IZ/c= X-Received: by 2002:a6b:f607:: with SMTP id n7mr548056ioh.263.1562004182900; Mon, 01 Jul 2019 11:03:02 -0700 (PDT) MIME-Version: 1.0 References: <20190630150230.7878-1-robdclark@gmail.com> <20190630150230.7878-2-robdclark@gmail.com> In-Reply-To: <20190630150230.7878-2-robdclark@gmail.com> From: Jeffrey Hugo Date: Mon, 1 Jul 2019 12:02:52 -0600 Message-ID: Subject: Re: [Freedreno] [PATCH 1/5] clk: inherit clocks enabled by bootloader To: Rob Clark Cc: "open list:DRM PANEL DRIVERS" , MSM , Rob Clark , aarch64-laptops@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , Michael Turquette , lkml , Andy Gross , freedreno , linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 30, 2019 at 9:02 AM Rob Clark wrote: > > From: Rob Clark > > The goal here is to support inheriting a display setup by bootloader, > although there may also be some non-display related use-cases. > > Rough idea is to add a flag for clks and power domains that might > already be enabled when kernel starts, and which should not be > disabled at late_initcall if the kernel thinks they are "unused". > > If bootloader is enabling display, and kernel is using efifb before > real display driver is loaded (potentially from kernel module after > userspace starts, in a typical distro kernel), we don't want to kill > the clocks and power domains that are used by the display before > userspace starts. > > Signed-off-by: Rob Clark Seems sane to me. I'm curious what Stephen Boyd thinks. I'll try to give it a spin on one of the 835 laptops. Reviewed-by: Jeffrey Hugo