Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp666267pxb; Thu, 19 Nov 2020 10:37:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJySNHUazEkCA1iGAkvIhWqG7ISH9nG5r9QeihQgiPict0HcGrf+TEQIq2QLeZdH/E+xY8ZD X-Received: by 2002:a17:906:f05:: with SMTP id z5mr30724239eji.8.1605811077999; Thu, 19 Nov 2020 10:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605811077; cv=none; d=google.com; s=arc-20160816; b=hmGVvJjX+RfujF3DfvYCuDwCSX4Ur3pO5ExIQZ6RG2naHdxtqT0ZQcFrj94ULOYgwf dLDk2U4zVubb8YyNYExWQ7F5OMNCy4TNTW6suZ/rd5OH/LIAWQ559pjv0S0rubo8Ke0i Dtr+YjK7l9hELEygl+25+hYI2J/ScgiUKieFWc6cmkkEHPTQXbpfkl57V73ZTGMuDyD+ rV+upBzMv+Qgfg0D7fzRRzjR6M/gG6i4daJmOKhdWq7Iz0khrvqUY65sbIRTCcEPuxto 2DhxrIveqpJEfBxk+ysD6MxEL/RqhbbVRMMT2uRKzs4NXot/e0+JehLXaLrF+wWeVqHh Z/uA== 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=Im7zqTTS16Npb1wrMSoM4HNK/JKUU6sE8CGFzwgHfDU=; b=CPMhFiFEaoRyHd1vNnOAyHukhZyLsQ5Yw6F37Z3vb4t0bQNR+ZNI4eLDab1C+AwjHv aLaIDy0CCt1v2s61GL3z8Qz7gSPo1P+0KK3BsDZN095gD2jNtN3CIU9UHYpBTkGDI9de cEHn+wXguUEQ/oHrpFhHAOMSa47Peoh3u314fqywKYLTPcpmhTPC8Yo5X0xSxP9/lQna X4YEpzq5oQt+QAdUPOJSvt/chHoncCS5RnqyA8PNMClITIDZGycDiwui+MPZR/F65qnJ c5Fi7ho7qn0gwwyjXPmOwH25iQi2Xnn5ByXn8EufEszE3pPryPLR28i0bnKesY9yO63t SGfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MsWxETeb; 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 de7si301143edb.440.2020.11.19.10.37.32; Thu, 19 Nov 2020 10:37:57 -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=MsWxETeb; 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 S1729709AbgKSSfI (ORCPT + 99 others); Thu, 19 Nov 2020 13:35:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:55406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbgKSSfH (ORCPT ); Thu, 19 Nov 2020 13:35:07 -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 A391A22255; Thu, 19 Nov 2020 18:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605810906; bh=bJya95Z1CX+o+B+3wr8vb6PON5dqknScWdUZYecD8RY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MsWxETebIKzGKBcYQlrhF/UiDv9lka8MDJqESPfFYr1ZkyeaAtFqbYFpvvRifTpTi xuFCTTb4z7kiHp49CkkgbP2QlrpUvfzFF2sm33sokEQfeEX6pgqTbrN5/TDF+BsuZT niEt4Jjh9v4YLFrR6vrNHJbHEPJSFtBjLE7M/wJ4= 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 1kfols-00C36C-DX; Thu, 19 Nov 2020 18:35:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 19 Nov 2020 18:35:04 +0000 From: Marc Zyngier To: Jerome Brunet Cc: Guillaume Tucker , Neil Armstrong , kernelci-results@groups.io, Kevin Hilman , 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: <1jr1op8bbc.fsf@starbuckisacylon.baylibre.com> References: <5fb5e094.1c69fb81.a2014.2e62@mx.google.com> <630e00e83cdd07ee5a0eaba9d3479554@kernel.org> <3f54de27-0fef-c5a1-8991-0a0614c90667@baylibre.com> <1jr1op8bbc.fsf@starbuckisacylon.baylibre.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <00a10c12a4eb2a9cdd9f50e88a293c3f@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: jbrunet@baylibre.com, guillaume.tucker@collabora.com, narmstrong@baylibre.com, kernelci-results@groups.io, khilman@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 18:13, Jerome Brunet wrote: > On Thu 19 Nov 2020 at 19:04, Guillaume Tucker > wrote: > >> Hi Marc, >> >> On 19/11/2020 11:58, Marc Zyngier wrote: >>> 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 solution would be to revert and do some check in >>>> meson_dw_hdmi_init() to >>>> check if already enabled and do nothing. >>> >>> A better fix seems to be this, which makes it explicit that there is >>> a dependency between some of the registers accessed from >>> meson_dw_hdmi_init() >>> and the iahb clock. >>> >>> Guillaume, can you give this a go on your failing box? >> >> I confirm it solves the problem. Please add this to your fix >> patch if it's OK with you: >> >> Reported-by: "kernelci.org bot" >> Tested-by: Guillaume Tucker >> >> >> For the record, it passed all the tests when applied on top of >> the "bad" revision found by the bisection: >> >> >> http://lava.baylibre.com:10080/scheduler/alljobs?search=v5.10-rc3-1021-gb8668a2e5ea1 >> >> and the exact same test on the "bad" revision without the fix >> consistently showed the error: >> >> http://lava.baylibre.com:10080/scheduler/job/374176 >> >> >> Thanks, >> Guillaume >> >> >>> diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c >>> b/drivers/gpu/drm/meson/meson_dw_hdmi.c >>> index 7f8eea494147..52af8ba94311 100644 >>> --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c >>> +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c >>> @@ -146,6 +146,7 @@ struct meson_dw_hdmi { >>> struct reset_control *hdmitx_ctrl; >>> struct reset_control *hdmitx_phy; >>> struct clk *hdmi_pclk; >>> + struct clk *iahb_clk; >>> struct clk *venci_clk; >>> struct regulator *hdmi_supply; >>> u32 irq_stat; >>> @@ -1033,6 +1034,13 @@ static int meson_dw_hdmi_bind(struct device >>> *dev, struct device *master, >>> } >>> clk_prepare_enable(meson_dw_hdmi->hdmi_pclk); >>> >>> + meson_dw_hdmi->iahb_clk = devm_clk_get(dev, "iahb"); >>> + if (IS_ERR(meson_dw_hdmi->iahb_clk)) { >>> + dev_err(dev, "Unable to get iahb clk\n"); >>> + return PTR_ERR(meson_dw_hdmi->iahb_clk); >>> + } >>> + clk_prepare_enable(meson_dw_hdmi->iahb_clk); > > If you guys are going ahead with this fix, this call to > clk_prepare_enable() needs to be balanced with clk_disable_unprepare() > somehow Yup, good point. Although this driver *never* disables any clock it enables, and leaves it to the main DW driver, which I guess makes it leak references. So all 3 clocks need fixing. Thanks, M. -- Jazz is not dead. It just smells funny...