Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp126923pxa; Tue, 4 Aug 2020 01:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybXIDur6HIugsdHNSuWKxtPuxa+70eoGDTxXBrXzKsW4kBc3iOSkRtxBG4qxagjs/NjRkr X-Received: by 2002:aa7:da46:: with SMTP id w6mr15979034eds.7.1596528446322; Tue, 04 Aug 2020 01:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596528446; cv=none; d=google.com; s=arc-20160816; b=ZfxAuRicVTGxQBL/nabuToXJvLMu0tPvuphEbSjQ/fnztBqYcCdLLXScuQJoGaDl47 0AUZtekky6Cb+KrQCI3umCqC4vJK9j1/a3NQHnm3alWOp19VkZopDuNgdY1Lin+vrxca KsKRzVAAIvVc2srgM666ORL0ffdJ+Q5F6RQmyycTH3fczFU3EaWrl0AOexGbQVA0N+Uy lRyqyQwPuCtYT54aHakSQa+JkkQsmUMOIwYoUjtfWLjpgZ+ozHefBRnY3pZp/zRDikbm YJ/L9DppfllPHo+leanW0zT3DatuJdeMF2eArbfToS7RfBsP07KgpAeXj2KlA+PBzuMm VFuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tGBBlby4w3xxO1bLZ/MouIh1Zpb6PcRyg8L8SWGJexE=; b=FmDrftLjoCF80bLCzAHrgFrtkY/4oQpRC1GVOd9Ds70qN4dn6+cllC6yMCOG30A49+ vr9BBANOosZ3lE1saEojaCDxmrx60184tGbTW6mRvSCd2YVR2L7vUPQ5wO/boVuPyFyk 4riNGmG+cggwD7DDO+r/tHTDVPl4NUh4Csklh/oPLRzE9rzTjNEdg4IiOmTZaRBlijdu TXo7Rqxv7b5TnBnVSPiQR9jPThH69bw7JyjLVojyIsTjMafSFAOcxWxyS3DTqpgWLby0 h1Wgx63qIpKJG7wLjseeR7dqDQn4d05zQnNuwNml+tySAuzasIKR/HhrSOaf1GwhdMVd AfQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si1840306edx.535.2020.08.04.01.07.03; Tue, 04 Aug 2020 01:07:26 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726624AbgHDIGI (ORCPT + 99 others); Tue, 4 Aug 2020 04:06:08 -0400 Received: from foss.arm.com ([217.140.110.172]:41176 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbgHDIGH (ORCPT ); Tue, 4 Aug 2020 04:06:07 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D9E711FB; Tue, 4 Aug 2020 01:06:06 -0700 (PDT) Received: from [10.37.12.45] (unknown [10.37.12.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 312233F718; Tue, 4 Aug 2020 01:06:03 -0700 (PDT) Subject: Re: [PATCH v2 2/2] memory: samsung: exynos5422-dmc: Add module param to control IRQ mode To: Marek Szyprowski , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: willy.mh.wolff.ml@gmail.com, k.konieczny@samsung.com, cw00.choi@samsung.com, b.zolnierkie@samsung.com, krzk@kernel.org, chanwoo@kernel.org, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, s.nawrocki@samsung.com, kgene@kernel.org References: <20200710191122.11029-1-lukasz.luba@arm.com> <20200710191122.11029-3-lukasz.luba@arm.com> From: Lukasz Luba Message-ID: <92348c27-5c0e-56cc-82d5-9b22f190c7b3@arm.com> Date: Tue, 4 Aug 2020 09:06:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, On 8/3/20 4:35 PM, Marek Szyprowski wrote: > Hi All, > > On 03.08.2020 17:30, Marek Szyprowski wrote: >> On 10.07.2020 21:11, Lukasz Luba wrote: >>> The driver can operate in two modes relaying on devfreq monitoring >>> mechanism which periodically checks the device status or it can use >>> interrupts when they are provided by loaded Device Tree. The newly >>> introduced module parameter can be used to choose between devfreq >>> monitoring and internal interrupts without modifying the Device Tree. >>> It also sets devfreq monitoring as default when the parameter is not set >>> (also the case for default when the driver is not built as a module). >>> >>> Reported-by: Willy Wolff >>> Signed-off-by: Lukasz Luba >> >> I've got back from my holidays and noticed that in meantime this >> commit got merged as commit 4fc9a0470d2d. It revealed that there is a >> race between registering exynos5422-dmc driver and exynos-ppmu driver, >> which can be observed sometimes as the following message and freeze on >> Odroid XU3 with multi_v7_defconfig: >> >> [    8.767708] exynos5-dmc 10c20000.memory-controller: couldn't probe >> performance counters >> >> I will check this later why the EPROBE_DEFER error is not properly >> propagated and why it causes a freeze. > > It looks that simply propagating return value from > exynos5_counters_get() in exynos5_dmc_get_status() fixes the boot: > > # dmesg | grep dmc > [    8.838754] exynos-ppmu: new PPMU device registered 10d00000.ppmu > (ppmu-event3-dmc0_0) > [    8.861344] exynos-ppmu: new PPMU device registered 10d10000.ppmu > (ppmu-event3-dmc0_1) > [    8.868488] exynos5-dmc 10c20000.memory-controller: couldn't probe > performance counters > [    8.874417] exynos-ppmu: new PPMU device registered 10d60000.ppmu > (ppmu-event3-dmc1_0) > [    8.886612] exynos-ppmu: new PPMU device registered 10d70000.ppmu > (ppmu-event3-dmc1_1) > [    9.396769] exynos5-dmc 10c20000.memory-controller: DMC initialized, > in irq mode: 0 > > I'm still curious why it freezes if getting performance counters is not > possible. > > Best regards > Thank you for investigating this issue. Indeed, it's odd why it freezes. I've seen you patch with the fix. Regards, Lukasz