Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2160908pxm; Fri, 4 Mar 2022 10:29:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPFlOIkojm9OcZrs8O2KErUL81td/VGFAd4pOwUroBarvPogEXMUqcLG/zki6uJ72J9sc4 X-Received: by 2002:a17:907:3e09:b0:6da:83e0:f2a4 with SMTP id hp9-20020a1709073e0900b006da83e0f2a4mr21319ejc.758.1646418563765; Fri, 04 Mar 2022 10:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646418563; cv=none; d=google.com; s=arc-20160816; b=ua5QiKnaZJeavTgzJY+0Jn6hUdFAPGsaCXKvU+w1dEvbkcc5nxJ+O3X3qTmGyTK791 WjnbMhFgEqfaKRyjjNmyil/CC14EnYkELm5qW7HhQm+jWN9ofnQBEXjC60pCCZiQYYG1 Ai3WKu9fAiGAJthSD4DKWUyvObOcNVdcBxhTlWTT9Yx0mPQMnTq7yqY4n2YKyS1XM66k Vt4so1fNZe1GB4Kd5rjgYcYIF+rcjPe33/8zWVF3tHIB6jUtI8I7msjig+lOHs+OiHW9 33edxJB7BScUBsTtS9NuzkL+L8Vb5xGKQsOItBAxp75A3YJE7kRJMKKRTuHvkWOB2m/D URrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V5nbFt1LWA85FHBfIJV2mdkXvx7kKnUB3QLf39i2vgo=; b=q5hneGkbws2ZtpVxiWQOA0OliuBHbwsp6fulHMXWajw6FzLS9k5og5XPMxj8WyxSy5 zPXmG+3rqoO0H+K1oT/gdhsRCkxCxhDrf5SZEfcZ/BRQ+HvBJf0m8BME/XXmn9LzLoWs dCO+1IIRqQv/coFE7wQstXiH3Jf+JmYAMRF9BgwgsBjWLJ2FSyz+kzTNtcHreis+VmuC k2Wns+y8SJRjsnZhKfxxVvebVjU5gOQjBXFsaXQLUolgocltZqiiPUU1tl+L58Q+qBbt g1j1IlES5B4P2uVu0n4QLaytqo5a6xqgWwULNDiNjGImsB2sc92cMM+gS/JpN7+wxZMQ 5m7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dfiW6zay; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a0564020f0b00b00410a8bd95f8si3955351eda.99.2022.03.04.10.29.00; Fri, 04 Mar 2022 10:29:23 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dfiW6zay; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239356AbiCDN6k (ORCPT + 99 others); Fri, 4 Mar 2022 08:58:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233952AbiCDN6g (ORCPT ); Fri, 4 Mar 2022 08:58:36 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE8A41987; Fri, 4 Mar 2022 05:57:48 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id c19so1091744ede.8; Fri, 04 Mar 2022 05:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V5nbFt1LWA85FHBfIJV2mdkXvx7kKnUB3QLf39i2vgo=; b=dfiW6zayWObNNgP6CwXoRoqBPxQY7wiOH6fO5BcJv1SFBtMs3lawe9zWEom/ZA7aBH 8Ibt2l4mhRmBTn/p4d2gZRjOjY9oW2lorwlH1iXI36zdras/b3tM2DgdZ8qiarVig7lw RRA0Kjmp8Pecerkq4FxYMdJRh02wGi6c2e5uv4u87MDqGuYJoQTRJkgI8ahBUUxoJezx 76fIf6aqcsk37nFQZhQhGoETN16DLwyp+zpFOXgGkFb8iedTs/zwYtzFakw0fu9wDK0S q2mk4Tz0Gkmv7tuD04DE7PXoZEO9+4ge3zHaMKEcpwFoiy2NxG51sf8pOrcnqwduqm5A ag4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V5nbFt1LWA85FHBfIJV2mdkXvx7kKnUB3QLf39i2vgo=; b=hchVs3naQ7eYZtNzOVEH5/bCkZXoxCZM5VHKbvqWnfNLuOED5AylYNfqqix/FH45C6 leapeLTS6F9stoU+CE0tz6DnTs3V2OJr+DUFaa/VY0ZowILCv60N/RU2x+einlR0+wUy Raash52/94dmi3g4yrTCOPAgKvvjvhv1wfg5BeVrr7k9LHLCgcfcTVswJ5lZGMnfsLeG RaM2E5N/PvZCSulsr1Yp2St+a6QequRMzaQYjQ2WnhB8iOQjahatEM+vp06QGvKlOvTg /oAxDjJ9ZNYVHJZFQ/6FEXD79wi2tcAqvUC6BFtjf4ZEZxlpPioAUU2NkJdp+BMYIuEI 9+6g== X-Gm-Message-State: AOAM530ymgHmQRE7ePqNznInA8ARQcYQ7LFUAdAdcIqPLoNppN4AV759 +CbKd1YpxtoGmWa5GemvDgAYJ4AYcw8F32JlC6k= X-Received: by 2002:aa7:d543:0:b0:416:13eb:6fec with SMTP id u3-20020aa7d543000000b0041613eb6fecmr550878edr.348.1646402266648; Fri, 04 Mar 2022 05:57:46 -0800 (PST) MIME-Version: 1.0 References: <20200221195256.54016-1-tony@atomide.com> <20200221195256.54016-7-tony@atomide.com> In-Reply-To: From: Adam Ford Date: Fri, 4 Mar 2022 07:57:35 -0600 Message-ID: Subject: Re: [PATCH 6/7] bus: ti-sysc: Implement SoC revision handling To: Tony Lindgren Cc: Linux-OMAP , "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , Linux Kernel Mailing List , arm-soc , =?UTF-8?Q?Andr=C3=A9_Hentschel?= , "H . Nikolaus Schaller" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 On Fri, Mar 4, 2022 at 12:57 AM Tony Lindgren wrote: > > Hi, > > * Adam Ford [220302 14:37]: > > I apologize for digging up an old thread, but I finally managed to get > > my hands on an OMAP3503. It seems like older kernels do not boot at > > all or hang somewhere in the boot process. I am still seeing a > > difference in behavior between OMAP3503 and OMAP3530, where 3505 > > throws a bunch of splat and a kernel panic, while the 3530 appears to > > boot happily. > > > > Using the latest 5.17-rc6, I had to remove some IVA and SGX references > > from omap_l3_smx.h to get the 3503 to stop crashing on boot. > > OK interesting, I did not know those registers are not accessible > on 3503. > > > Do you have any ideas how we can make the omap3_l3_app_bases and > > omap3_l3_debug_bases more cleanly remove the IVA and SGX references > > if/when OMAP3503 is detected? I assume the same algorithm would have > > to detect a AM3703 as well. I'm trying to get my hands on an AM3703 > > to see if there is similar behavior as what I'm seeing on the > > OMAP3503. > > As there are possibly multiple omap3 variants used on the same > boards, we need to rely on the runtime detection of the SoC. > So yeah soc_device_attribute is the way to go here. > > I don't recall any similar issues booting 3703 but it's been a while > so worth testing for sure. In addition to the OMAP3503, I managed to get an AM3703. From what I can tell, going back as far as kernel 4.9, the OMAP3503 does not boot at all. I haven't tried the 4.4 since it's marked EOL at this point. I have not started testing the AM3703 yet, but I think it would be a good idea to backport this to stable at some point, since it appears to fix a serious regression, not booting. I'm going to work on some experiments with both the AM3703 and OMAP3503 to see what works, what doesn't and I'm going try to come up with some ideas on how to address the omap3_l3_app changes, but if you have any ideas on how to do it cleanly, I'm open for suggestions. adam > > Regards, > > Tony