Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp373081pxb; Thu, 19 Nov 2020 03:37:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkoKPSnFpCgn21Kbn4EKY1DRrteo8TVkDAYFBLwu7wqIOfSvv4VXVpCpEGukkXFmQomWgx X-Received: by 2002:a17:907:262d:: with SMTP id aq13mr27371563ejc.484.1605785837966; Thu, 19 Nov 2020 03:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605785837; cv=none; d=google.com; s=arc-20160816; b=S5tmGV1OsY/JLD1nPLE81BQFVciFpz8yODzs4vvliX6loxvixk3pPfoWRFU+8u1/mb irZVwjQ7xExGhNJngFjgmYotApKSoo2umVK4oAYuXiCgwxGzED+/xKiKzK5kqhnvn8ad QOX0kxt7vo5dgTdGvuq1siW/QjIbh4XHUjfWwDk5UjEXe4uP2HRT5X0inNQ6GHWk3efw gng69t1YuFk/La8XgDS3Z0JTG4cIhQDZFECaarDPa5dsJYP3YHBovN1FPhxPRXJmIlio TyxZOpMqWCq/y1YHMzhZCaFQK3TSB+a00LZGJuZ2mQbQK0dyuFDhfirlR8TY7FkMps70 68BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=1F6Gq10Qc1+o/dtQw63atZx2XeQiN4XNIJgCIQXoGlQ=; b=Pzb5UhzXHQbbTEsKUmxNP6OkEn0g9LIgXk3ALrEgECUk8vZPh9vFwzY3mmoRi9lJlM UlyH9WSwulkL7bjOevaYcMYrY3/EJ6RIAd0OAWdNWbBk/TEM4OMmOsPpcd2orTsPWbQm WUucd4A4EFbbImw3KjTC2tDEGthAFLoKvXuvfrslqEX00hmjdQXcInHcc/xC66+f5uVT DJ7Y3ouF8CefHjXXbgwsI0UebP9JzBfddBbpa+qOgHcmUIkdhY7SgixlQqzJda74Gk2L kbfVu33haT2QE/8LHdjORjv0QMcjk5R2C7Azcb42QFTGrREqajhK/TcnPcyAOdt2FX9E W46Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KSMYoLed; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk8si2163837ejb.654.2020.11.19.03.36.54; Thu, 19 Nov 2020 03:37:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KSMYoLed; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbgKSLdK (ORCPT + 99 others); Thu, 19 Nov 2020 06:33:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:38474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbgKSLdK (ORCPT ); Thu, 19 Nov 2020 06:33:10 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CBB7A20867; Thu, 19 Nov 2020 11:33:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605785589; bh=IwzuzZJdgwM/mSCg/YGq4DFiccAa0AMjMOfLhF3JG8I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KSMYoLedOZpStbTVjCff3VA/bScZg/ZBa6KN2hth62ft0nkMImZm0kHTF5TDUuxCj 8rQwrf/w655P5dRXoelEcF1FC8r9D+7nMXVCDEv3HaDhKKjvQJ9u9NmQg1lZbGu2BT Z8cIAWKKIxlLFh7MZ+3urSr8owbFL0odZfYyGCpI= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kfiBW-00Bw2g-MO; Thu, 19 Nov 2020 11:33:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 19 Nov 2020 11:33:06 +0000 From: Marc Zyngier To: Neil Armstrong Cc: Guillaume Tucker , kernelci-results@groups.io, Kevin Hilman , Jerome Brunet , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Martin Blumenstingl , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: next/master bisection: baseline.dmesg.emerg on meson-gxbb-p200 In-Reply-To: <3f54de27-0fef-c5a1-8991-0a0614c90667@baylibre.com> References: <5fb5e094.1c69fb81.a2014.2e62@mx.google.com> <630e00e83cdd07ee5a0eaba9d3479554@kernel.org> <3f54de27-0fef-c5a1-8991-0a0614c90667@baylibre.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <48731911dbbe869a6d3bdafd819fa9ff@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: narmstrong@baylibre.com, guillaume.tucker@collabora.com, kernelci-results@groups.io, khilman@baylibre.com, jbrunet@baylibre.com, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, martin.blumenstingl@googlemail.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-19 10:26, Neil Armstrong wrote: > On 19/11/2020 11:20, Marc Zyngier wrote: >> On 2020-11-19 08:50, Guillaume Tucker wrote: >>> Please see the automated bisection report below about some kernel >>> errors on meson-gxbb-p200. >>> >>> Reports aren't automatically sent to the public while we're >>> trialing new bisection features on kernelci.org, however this one >>> looks valid. >>> >>> The bisection started with next-20201118 but the errors are still >>> present in next-20201119.  Details for this regression: >>> >>>   https://kernelci.org/test/case/id/5fb6196bfd0127fd68d8d902/ >>> >>> The first error is: >>> >>>   [   14.757489] Internal error: synchronous external abort: 96000210 >>> [#1] PREEMPT SMP >> >> Looks like yet another clock ordering setup. I guess different Amlogic >> platforms have slightly different ordering requirements. >> >> Neil, do you have any idea of which platform requires which ordering? >> The variability in DT and platforms is pretty difficult to follow (and >> I don't think I have such board around). > > The requirements should be the same, here the init was done before > calling > dw_hdmi_probe to be sure the clocks and internals resets were > deasserted. > But since you boot from u-boot already enabling these, it's already > active. The crashing platform also boots with u-boot. What is the difference? No HDMI support? > The solution would be to revert and do some check in > meson_dw_hdmi_init() to > check if already enabled and do nothing. It looks more subtle than that, as it also depends on which DT is provided (an early meson_dw_hdmi_init() works with the kernel DT, and breaks with the u-boot DT). So whatever difference is between the two DTs causes havoc. u-boot obviously only uses its own DT, so we are looking at a kernel bug here. Not having this patch also breaks module reinsertion (HDMI clocks are disabled on unbind), so *something* has to be done late. So here are my questions: - What breaks in my config when I boot using u-boot's DT? - How to detect early that the registers are clocked or not? Thanks, M. -- Jazz is not dead. It just smells funny...