Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp613863pxb; Wed, 13 Apr 2022 08:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycXwAiB2Y9D2XaKMrxnUD3KfE/uKywTtQPqsG8Ihwh9CdgL6P/0nb9hM7Hc9Pocm/FYvb2 X-Received: by 2002:a05:6402:1d51:b0:41f:cf6c:35a5 with SMTP id dz17-20020a0564021d5100b0041fcf6c35a5mr2505584edb.25.1649864810075; Wed, 13 Apr 2022 08:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649864810; cv=none; d=google.com; s=arc-20160816; b=fo2Y8pReaph6fb56aVWtqFl9wXi1heDevDoR8nxx69QPt1hD1VGjVtT1zStOT8Wydn dQYTp9q0GjmPXsnoA9VcPKuldokYMoNn4XKgiixZk41SsNIzCoOZQU59CbNv+QCr5G6B QEYdllvbb1IlAEdUrCZe+v3Fh6ka8jGcDnc/r7LWN3hU+eKWIAu69IdZuzry4lBxzbQ1 LC0RfrBoIicZ0vI7505HEU8el5KT3j2rRDOfXrF+On6Gast/+UIWhDgRPklzlInOIoy4 DhNKs6jQIi0Yt7UZ4vLsQOk0CaqJjh6BxV5TuEu85ZYWHtTY17ATS9v20R6y9+Ps/+CC rJWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=L2onklDZIyWPixTWZbHa1R64rKi3x4PNw7AK6YKRDVk=; b=AAP61W4OSpoUhRYkJhvEurN65sOQMP7ZDfOYpgbTgVK4EcvizAZIQJut4JoalOkkOU 4Y5VVaudgYvRR9g9Uls88J2qLSDbyQZu1KwA2WKZDskOsGcD6c5y9HPcYV0TMasc4q/9 J2oggCIj+I4uDa+CR0ahLx8tWI4kbwX6/hyPeLsZWp8SyKa2ZwKst3F1md/uJSVyb0Z2 fdpd2BZpQDS5gqa5oueKrRbArBbD4Jm4iABzUfnbPQpn0yN1N4tBzzslUc78YuI4uWWr RPK5YQ/j8A2iHYw6hTIbg2Cd5lZ0dVcSRsgkDtuWXsToLWl5ojvHrxIJyToTRvl1Gi8j /ohQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a056402351400b00418c2b5be5asi2112959edd.316.2022.04.13.08.46.02; Wed, 13 Apr 2022 08:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232425AbiDMFfI (ORCPT + 99 others); Wed, 13 Apr 2022 01:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiDMFfF (ORCPT ); Wed, 13 Apr 2022 01:35:05 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E1AF2FFD6 for ; Tue, 12 Apr 2022 22:32:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id A84EE8061; Wed, 13 Apr 2022 05:30:07 +0000 (UTC) Date: Wed, 13 Apr 2022 08:32:40 +0300 From: Tony Lindgren To: Nishanth Menon Cc: Tomi Valkeinen , Devarsh Thakkar , linux-kernel@vger.kernel.org, jyri.sarha@iki.fi, tomba@kernel.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, a-bhatia1@ti.com, r-ravikumar@ti.com, nikhil.nd@ti.com, linux-arm-kernel@lists.infradead.org, vigneshr@ti.com, laurent.pinchart@ideasonboard.com Subject: Re: [PATCH] drm/tidss: Soft Reset DISPC on startup Message-ID: References: <20220314113739.18000-1-devarsht@ti.com> <86a07099-1074-e8d1-6d0e-1ce68414b627@ideasonboard.com> <20220412212049.gjnel7aubol56azk@earache> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412212049.gjnel7aubol56azk@earache> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Nishanth Menon [220412 21:18]: > On 17:24-20220412, Tomi Valkeinen wrote: > > Hi, > > > > On 14/03/2022 13:37, Devarsh Thakkar wrote: > > > Soft reset the display subsystem controller on startup and wait for > > > the reset to complete. This helps the scenario where display was > > > already in use by some other core before the linux was booted. > > > > The reason the omapdrm doesn't do a reset is that the PM features on some of > > the DSS registers were set and controlled outside dss driver, so the dss > > driver could not do a reset just like that. That design was carried to the > > tidss driver, although I'm not sure if the reason is valid on AM6 and J7 > > platforms. > > > > If that reasoning is not valid, this patch is ok and: > > > > Reviewed-by: Tomi Valkeinen Yeah seems OK to me for tidss, I don't think there's any other layer to do this in a generic way for k3 devices currently. The thing to check here is that the sysconfig register gets properly initialized to the right state after reset. For PM, likely the syconfig value after reset is not correct, but that can be reconfigured later on as needed. > Tony - sysc control for older omap devices still control this directly? Yes, for a reason. The reset affects the entire interconnect target module, and disabling clockdomain autoidle needs to be considered for enable. For omaps, the resets are handled in a generic way for all the TI devices by ti-sysc. With ti-sysc, the reset is done before probing dss devices on init in sysc_init_module(). The dss related quirk handling is done in sysc_pre_reset_quirk_dss(). If needed, we could add support for reset framework to ti-sysc for omapdrm to call. But so far there has not been much of a need for that, I think 8250_omap could use reset framework if available though. Anyways, sounds like there's no need to do a similar dss reset in omapdrm. Regards, Tony