From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5FC9C47095 for ; Wed, 9 Jun 2021 06:20:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A4BEE61185 for ; Wed, 9 Jun 2021 06:20:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236749AbhFIGWg (ORCPT ); Wed, 9 Jun 2021 02:22:36 -0400 Received: from muru.com ([72.249.23.125]:39774 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbhFIGWg (ORCPT ); Wed, 9 Jun 2021 02:22:36 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4CFF08061; Wed, 9 Jun 2021 06:20:50 +0000 (UTC) Date: Wed, 9 Jun 2021 09:20:39 +0300 From: Tony Lindgren To: "Woodruff, Richard" Cc: David Russell , "linux-omap@vger.kernel.org" Subject: Re: [EXTERNAL] OMAP2430 kernel hangs on ioremap of IVA2.1 addresses Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi, * Woodruff, Richard [210607 15:40]: > Guess: this bit in JTAG script used for IVA tests probably is missing and needs to be worked in. The generic linux-omap clock code probably handles the IVA clock but maybe not the resets. > > /* Enable IVA-ss functional clock (set bit 0) */ > (*(int*)0x49006800) |= 0x1; > > /* Release l3s_idle_req */ > (*(int*)0x49006810) |= (1 << 1); > > /* Release L3S reset and power-on reset (clear bit 1) at the same time */ > (*(int*)0x49006850) &= ~(( 1 << 1)); Heh and I thought nobody is using 2430 any longer :) FYI, the current mainline kernel actually can deal with all that using reset driver and genpd, see for example commits: ae57d1558908 ("ARM: dts: Configure interconnect target module for dra7 iva") effe89e40037 ("soc: ti: omap-prm: Fix occasional abort on reset deassert for dra7 iva") Similar setup should also work for 2430 but needs the power domains configured for drivers/soc/ti/omap_prm.c at least for iva. David, I think what you're seeing is iva getting released from reset with an unconfigured MMU, and then the system will hang. Regards, Tony