Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4340262pxj; Tue, 8 Jun 2021 11:55:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB7bXkZ6jscK2W6BuEiadNj7dJFhYYMpn59zvjtFiUE15sT0NhP+jm24+l4913LfQR2h8s X-Received: by 2002:a17:906:c316:: with SMTP id s22mr25426425ejz.17.1623178540133; Tue, 08 Jun 2021 11:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623178540; cv=none; d=google.com; s=arc-20160816; b=dGpMI504jy44KRJJ90R3p5mF/ltPMsM9Xo0zkskEaoOpc/a9zu1e76uSm1oftcng0B Mweq+XmYP9WwU873CgCbe5UuEGZkeXhGC7e6ri7UDquWyDnMSo7FS490vI3ZP6nBoFnZ 1Ak8Ssx2kJnshI6CV/LiMf9qp8Hn9VdAjsXgNNIN33YH5PzeUIJ6xAGGXtWn0sxrzrVA 1i7Ndl1eqSB9be6Ce0qdcmksxv8/0LDmo9Fa65R5jz5h21tLcgwgb1/16nZzqkwPWwgW 45dn1F0kzfYoErBS94cStFfhfJ1hFS02CTQYzslRqPe5lFXWdFVDY26Cn/MnocrKYa9i Iw4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ong6YIsSaEtGG45w/cbl0xwojrxaxWipK/hNm/vE3To=; b=fB/CFyPI+Imfm0/g8KipK5mPokN3olCTTxNjEncfqqs9wlNmWpCj5V9TdRg5QWz2J4 HOULUstgVTn1NSUn6cbLw/aBsiTKuAL7EpnlKsxVhY6yO4KBz9jnQogUwZVqU+nKTD09 xhqH/A459MUS/Agd99h1Eakm9qf7EI/SQzeZbByFobZw6h2+FLq74ykvnhT8aBee+f/8 jEfkqRdwuiYWGltolPbzoWpcQKziQNlap788JxtyrkbLuC0QphoWmQfkGEH7AH+WtqLl O5POBanTxNHqbE3Dd/OshzuijRhz6am4QjmtnlNScklRpdmAyYp/jufGBLbNEaFdH6dN 08cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pd8xhrNS; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si391033ejn.250.2021.06.08.11.55.16; Tue, 08 Jun 2021 11:55:40 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pd8xhrNS; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235151AbhFHSwt (ORCPT + 99 others); Tue, 8 Jun 2021 14:52:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:44090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235369AbhFHSqv (ORCPT ); Tue, 8 Jun 2021 14:46:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E712A61459; Tue, 8 Jun 2021 18:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177467; bh=VqxFuZpzm+BtdNoy7fehz+noqK2WuQlyyMKYKtQbR7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pd8xhrNSUsq5kJ8PUG5ng7ob5Ry80GsAF33i1gi89qOdTni4AUY5Cbg1yvDuwTqt2 nsdXGanjSgn+uxMK2XLnGYB4wxrYeyknhCZUURPvJ3KK8Yef9SSvt6hKBqc5XD0Q7X PNV8lG3723Lp2w3p0Gv98hKs9wOKL07m1GKgu3YA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Carl Philipp Klemm , Ivan Jelincic , Merlijn Wajer , Pavel Machek , Sebastian Reichel , "Sicelo A. Mhlongo" , Tony Lindgren , Sasha Levin Subject: [PATCH 5.4 35/78] bus: ti-sysc: Fix flakey idling of uarts and stop using swsup_sidle_act Date: Tue, 8 Jun 2021 20:27:04 +0200 Message-Id: <20210608175936.447943522@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175935.254388043@linuxfoundation.org> References: <20210608175935.254388043@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit c8692ad416dcc420ce1b403596a425c8f4c2720b ] Looks like the swsup_sidle_act quirk handling is unreliable for serial ports. The serial ports just eventually stop idling until woken up and re-idled again. As the serial port not idling blocks any deeper SoC idle states, it's adds an annoying random flakeyness for power management. Let's just switch to swsup_sidle quirk instead like we already do for omap3 uarts. This means we manually idle the port instead of trying to use the hardware autoidle features when not in use. For more details on why the serial ports have been using swsup_idle_act, see commit 66dde54e978a ("ARM: OMAP2+: hwmod-data: UART IP needs software control to manage sidle modes"). It seems that the swsup_idle_act quirk handling is not enough though, and for example the TI Android kernel changed to using swsup_sidle with commit 77c34c84e1e0 ("OMAP4: HWMOD: UART1: disable smart-idle."). Fixes: b4a9a7a38917 ("bus: ti-sysc: Handle swsup idle mode quirks") Cc: Carl Philipp Klemm Cc: Ivan Jelincic Cc: Merlijn Wajer Cc: Pavel Machek Cc: Sebastian Reichel Cc: Sicelo A. Mhlongo Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- drivers/bus/ti-sysc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index d59e1ca9990b..90053c4a8290 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1376,9 +1376,9 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_LEGACY_IDLE), /* Uarts on omap4 and later */ SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x50411e03, 0xffff00ff, - SYSC_QUIRK_SWSUP_SIDLE_ACT | SYSC_QUIRK_LEGACY_IDLE), + SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_LEGACY_IDLE), SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47422e03, 0xffffffff, - SYSC_QUIRK_SWSUP_SIDLE_ACT | SYSC_QUIRK_LEGACY_IDLE), + SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_LEGACY_IDLE), /* Quirks that need to be set based on the module address */ SYSC_QUIRK("mcpdm", 0x40132000, 0, 0x10, -ENODEV, 0x50000800, 0xffffffff, -- 2.30.2