Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1821829imu; Sat, 26 Jan 2019 11:33:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN7VMBCvMdWupzAJzvthvsQc6AdQAwsI5i8zR2cPT4Q+TfgoCbdzrThRw+a2jfKBuMPOm2CJ X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr16036090plb.192.1548531191447; Sat, 26 Jan 2019 11:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548531191; cv=none; d=google.com; s=arc-20160816; b=jRhmm/7DFPUgxTPgepox52ijQilL9kR1NWmtvi951zlBVXlI/8tU++V6RhhOn9qFEV THxI7qbwIRUH1on/bMB/R2HBleCTZLvFRNLlAfSwfxjc8Xv1KCQCDvotYLKm4c7aM1FF j4KnDHGXENCXhCvBWzxMajiOuClsSY6mLXmmGnJmqr24ANZIrRKf+4k6W/J4rZLWPyCv P9cS1x0uQrOgzghGYTqU1rVcnmsCjuDB81e13M1O/lTM9xal4cZ9h9uXWJ/CCi7d8gTD 1zvXpqPnn156NolTBc5WUH6Ymv0slza2FX5V3UX9Z0IBdkoXPe8WZQxFb7mpoY/39iwu 0GQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Uwkip8Wbya1rcLsLOp4PFx2RZVRL78FTKAYH2T5nrwY=; b=Eu42HKKcuhAcE2BIHXAwX3H/Xo8uyxynMRFubKBHlu289hkMbNF8KB97zYyDGfAu+K jJShSd6ERa8Fn1KcFMo4FSIW5+5I67Sqr79GhrIYjYzK5P/HL4TI5U9LLPYYYeYsErMF r75B6z+AtB4nShyHVHJJUumGjO/GjyxXy4LaYEUtSVVebuc56uvSkT6vRTttmbnbAlS7 dgu4AdBD7ViqvS7kDNK4hkv16zk5dUUq76na/Vx/c7j1lhKWo0nSiE8V5DShrB0X6cMT sPghm63vS2xSK/xFkawFbZXpGgUB8gOvFvu6r9IW2O4Xe/Yuoegke4kmnWoBKanxfnql 3ihw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=poIrwlbq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si3386945plk.296.2019.01.26.11.32.56; Sat, 26 Jan 2019 11:33:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=poIrwlbq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726405AbfAZTcJ (ORCPT + 99 others); Sat, 26 Jan 2019 14:32:09 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.84]:30276 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfAZTcI (ORCPT ); Sat, 26 Jan 2019 14:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1548531124; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Uwkip8Wbya1rcLsLOp4PFx2RZVRL78FTKAYH2T5nrwY=; b=poIrwlbqOEhvI0HyD4mKQfn2uCIf8qSKgf0KxB19yppgol0+hYiW9GdjunrMzahSMb aH178+SgLpimBvri6U9y3zQXlK6PHeUTZJRo3b1xP3wbFGD8OugW2JbvTAxw1IAm/YPQ fHOyJio8HGkuimTXV2rsDOJKeHNiZwb/HbRVmPHblZYJEN8Zo7OJejBiaNcLKxk50LAQ +R65b+JfuBWyWnxJWxihiPClogJDvQFrrkH+LwP9fiC2bp+rkXQJsh5vGR+JOsVBfi0i 69qAawe758sgS9BKBqU3oiemg4aX39QGjgbd7YPXJB5w4EqOYXP7vhbfAQ1ppoXpmAub NxXQ== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/zswDuotw==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.9 DYNA|AUTH) with ESMTPSA id 608499v0QJVqspE (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 26 Jan 2019 20:31:52 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH 2/3] bus: ti-sysc: Fix timer handling with drop pm_runtime_irq_safe() From: "H. Nikolaus Schaller" In-Reply-To: <20190126194145.2b3484da@aktux> Date: Sat, 26 Jan 2019 20:31:51 +0100 Cc: LKML , linux-omap , linux-arm-kernel , Andy Shevchenko , Bartosz Golaszewski , Daniel Lezcano , Keerthy , Ladislav Michl , Pavel Machek , Sebastian Reichel , Tero Kristo , Thierry Reding , Thomas Gleixner , Andreas Kemnade Content-Transfer-Encoding: 7bit Message-Id: <2369C6FA-32A2-4F29-9DFB-60D576AB867F@goldelico.com> References: <20190122175717.13428-1-tony@atomide.com> <20190122175717.13428-3-tony@atomide.com> <20190126194145.2b3484da@aktux> To: Tony Lindgren X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 26.01.2019 um 19:41 schrieb Andreas Kemnade : > > On Tue, 22 Jan 2019 09:57:16 -0800 > Tony Lindgren wrote: > >> Commit 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe >> them with ti-sysc") started producing a warning for pwm-omap-dmtimer: >> >> WARNING: CPU: 0 PID: 77 at drivers/bus/omap_l3_noc.c:147 >> l3_interrupt_handler+0x2f8/0x388 >> 44000000.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Idle): >> Data Access in Supervisor mode during Functional access >> ... >> __pm_runtime_idle >> omap_dm_timer_disable >> pwm_omap_dmtimer_start >> pwm_omap_dmtimer_enable >> pwm_apply_state >> pwm_vibrator_start >> pwm_vibrator_play_work >> >> This is because the timer that pwm-omap-dmtimer is using is now being >> probed with ti-sysc interconnect target module instead of omap_device >> and the ti-sysc quirk for SYSC_QUIRK_LEGACY_IDLE is not fully >> compatible with what omap_device has been doing. >> >> We could fix this by reverting the timer changes and have the timer >> probe again with omap_device. Or we could add more quirk handling to >> ti-sysc driver. But as these options don't work nicely as longer term >> solutions, let's just make timers probe with ti-sysc without any >> quirks. >> >> To do this, all we need to do is remove quirks for timers for ti-sysc, >> and drop the bogus pm_runtime_irq_safe() flag for timer-ti-dm. >> >> We should not use pm_runtime_irq_safe() anyways for drivers as it will >> take a permanent use count on the parent device blocking the parent >> devices from idling and has been forcing ti-sysc driver to use a >> quirk flag. >> >> Note that we will move the timer data to DEBUG section later on in >> clean-up patches. >> > together with 1/3 it fixes things on pyra. > > Tested-By: Andreas Kemnade H. Nikolaus Schaller