Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2095220rdf; Mon, 6 Nov 2023 04:47:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHt1fALi5YPK+oDd3Fd2o+wHWJv/15wasq0HZ6sLhNhMH/PW6CvDJZFkJIP1ywGe9INV0R9 X-Received: by 2002:a17:902:e54a:b0:1cc:70e4:28c7 with SMTP id n10-20020a170902e54a00b001cc70e428c7mr15554409plf.18.1699274838551; Mon, 06 Nov 2023 04:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699274838; cv=none; d=google.com; s=arc-20160816; b=LL05AGRBljbNeNerV2thWOv9kPsIRIWhu1hvEpGjEKbV5BtBjDcGlIpR8UHsq04W11 82F0QeKZLJN50gv7VRAukVnuu/xP9S74svO5aayB30Vr1bNf/2wZOQoK/T+Rs246vO7T 9Jtla5zZP3xkhmFVyYKGm0OmaSo+mazuyubOEypVg1pWZGEdHjTMFRhPiZuYmcQXfrET LGxutz+StsbMHZE0WRc/aeou++XSg1VCgLPa/cPBYeRc9pO1uPkBFjtMsheVIdYkOSnf Pz3g3GMCcFPyke3v5P5qFwEXtUQ6lnoKIchbOCE445pfiQy+AD6NzSvxJxKnNUm/o87D SPAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Kv5qXMtHe1RqB/IAdF3q285FqfuFYmP+L0xdtku424s=; fh=0I3LCnEgliAcL3UssW2rOoC6Xcza3AE942ixUlnxkeA=; b=D8iJniMVL8K8QqSZcEEGokmDxaNYy1dC+scKIEvXbMVjWhhWKsM02LHC8NjBaQCcxk uCqZW5dgy4G9AAFHvkN+xP2nfH2bfr4wrr8WvjvWTsuwAc5U+UAaSC5JYNzfiHvSI0EP glexRKWgK9xvW+9Lzj9gXnoDrNbhlkq874rTrb3dlPSzuSqFRwuiGtNcOvMAwOwQlRCH FpOhCrQi6UjGTw9y+eAl+TihtWHQWDX4Qhs3WQxNTELIQiaXP3F/lZWpfDBfKIdurcuU fccsKGfk7xOrm6A3760F+tbwetJTgHvxZic8/vHleApem6cl6VrHaeid/n4NUgSyjPlS jGMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ohC+2P6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l18-20020a170902e2d200b001c746bca05dsi7644389plc.69.2023.11.06.04.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 04:47:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ohC+2P6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 78003805E408; Mon, 6 Nov 2023 04:47:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232027AbjKFMqT (ORCPT + 99 others); Mon, 6 Nov 2023 07:46:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231927AbjKFMqE (ORCPT ); Mon, 6 Nov 2023 07:46:04 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB79410F7 for ; Mon, 6 Nov 2023 04:45:36 -0800 (PST) Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 95EBA40622 for ; Mon, 6 Nov 2023 12:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1699274734; bh=Kv5qXMtHe1RqB/IAdF3q285FqfuFYmP+L0xdtku424s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ohC+2P6eIz9UEIwqG6CI5nbi37GUpZWibYGKuK0mqBUXK9lqBp5dMM9a7qEAOh0WC bVy4uj2NJkOQ6aapoLUAQ8Y2RP9Eh+r8C39Hx/FHc6lBodK7R+0I9/EO3sccLQ8Z8d A6s8N/K5l1JZQb6ZBGDQpoMn3fvGvoZhgHRlKlZPFd8bEE8savuzluty0VK01QCcUx iABS0tlFpFUwOSPuPcZ+n+hoMJOCk92KxqdOGQKMgm0n94ojIVHrxaqGG/KWsLA4ty //OJNFdsOKy0vUjOfFxB+QBTVXEKChzZdQ+0AbRjUQdFTDl1xF8t81t2Sq96c+WCFJ /cZlw4R1v5k+Q== Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-5b95ee4ae94so2442926a12.0 for ; Mon, 06 Nov 2023 04:45:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699274732; x=1699879532; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kv5qXMtHe1RqB/IAdF3q285FqfuFYmP+L0xdtku424s=; b=nPP1KTTxxAK7RAbEDWdlr9aAph/ZDVm8G96WxezZMnLVMnbk2/93UxXfZlBSr3OrOr FJoX8l54RRUfzHNephqgxVmPaOJuoMkh4B/QbLyDF3ngEHWrirXWAA+0237Md7+ulMIm l62380IHmgu8xx9KBlI5wCkVQKIOpd+wj2oR1mAaqTUiHsqR9zxR+yzZnrTLmgyLLuiR QkGcRVi6cg7Ib8m+WSsHO/Ax4jOvabqBdJTthuAqBVP1Hw3hPHNVXe+yvuzTb/AZlJk2 TXdQy8D5XvUWI4tjg5QUl84vZLNfhzchFFiGtM3cLOn+QaaEDg+OV3qSkxRQCm3uAyEr 8VJw== X-Gm-Message-State: AOJu0YwYPY1dnzgrtWtmYZu5x6km+P6FqzQhsRhIe/TlW2xvHb5RQUvY vWBB+A4bx3n8pC9CS5+tNnCO1W83Pmd9b45YmzFBXL7z6PNqdTHEz9PdJVDFO4Nzgxd+0000wln wuwYwpxpvxjN3xPcRArKZ2W3sADGXV6gJ/woonWODiyz8SW6csVYtsjpkurFVPNbzv6fqq/4= X-Received: by 2002:a17:90a:319:b0:280:c7c:3069 with SMTP id 25-20020a17090a031900b002800c7c3069mr20802005pje.7.1699274732420; Mon, 06 Nov 2023 04:45:32 -0800 (PST) X-Received: by 2002:a17:90a:319:b0:280:c7c:3069 with SMTP id 25-20020a17090a031900b002800c7c3069mr20801988pje.7.1699274732095; Mon, 06 Nov 2023 04:45:32 -0800 (PST) MIME-Version: 1.0 References: <20231018103337.34622-1-victorshihgli@gmail.com> In-Reply-To: From: Kai-Heng Feng Date: Mon, 6 Nov 2023 14:45:18 +0200 Message-ID: Subject: Re: [PATCH V2] mmc: sdhci-pci-gli: GL975[05]: Mask the replay timer timeout of AER To: Adrian Hunter Cc: Victor Shih , ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, SeanHY.Chen@genesyslogic.com.tw, Victor Shih Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 04:47:13 -0800 (PST) On Mon, Nov 6, 2023 at 11:29=E2=80=AFAM Adrian Hunter wrote: > > On 18/10/23 13:33, Victor Shih wrote: > > From: Victor Shih > > > > Due to a flaw in the hardware design, the GL975x replay timer frequentl= y > > times out when ASPM is enabled. As a result, the warning messages that = will > > often appear in the system log when the system accesses the GL975x > > PCI config. Therefore, the replay timer timeout must be masked. > > > > Signed-off-by: Victor Shih > > Acked-by: Adrian Hunter Acked-by: Kai-Heng Feng I'll send another patch to address the issue I am seeing. Kai-Heng > > > --- > > > > Updates in V2: > > - Modify the commit message. > > > > --- > > > > drivers/mmc/host/sdhci-pci-gli.c | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/drivers/mmc/host/sdhci-pci-gli.c b/drivers/mmc/host/sdhci-= pci-gli.c > > index d83261e857a5..d8a991b349a8 100644 > > --- a/drivers/mmc/host/sdhci-pci-gli.c > > +++ b/drivers/mmc/host/sdhci-pci-gli.c > > @@ -28,6 +28,9 @@ > > #define PCI_GLI_9750_PM_CTRL 0xFC > > #define PCI_GLI_9750_PM_STATE GENMASK(1, 0) > > > > +#define PCI_GLI_9750_CORRERR_MASK 0x214 > > +#define PCI_GLI_9750_CORRERR_MASK_REPLAY_TIMER_TIMEOUT BIT(12) > > + > > #define SDHCI_GLI_9750_CFG2 0x848 > > #define SDHCI_GLI_9750_CFG2_L1DLY GENMASK(28, 24) > > #define GLI_9750_CFG2_L1DLY_VALUE 0x1F > > @@ -152,6 +155,9 @@ > > #define PCI_GLI_9755_PM_CTRL 0xFC > > #define PCI_GLI_9755_PM_STATE GENMASK(1, 0) > > > > +#define PCI_GLI_9755_CORRERR_MASK 0x214 > > +#define PCI_GLI_9755_CORRERR_MASK_REPLAY_TIMER_TIMEOUT BIT(12) > > + > > #define SDHCI_GLI_9767_GM_BURST_SIZE 0x510 > > #define SDHCI_GLI_9767_GM_BURST_SIZE_AXI_ALWAYS_SET BIT(8) > > > > @@ -561,6 +567,11 @@ static void gl9750_hw_setting(struct sdhci_host *h= ost) > > value &=3D ~PCI_GLI_9750_PM_STATE; > > pci_write_config_dword(pdev, PCI_GLI_9750_PM_CTRL, value); > > > > + /* mask the replay timer timeout of AER */ > > + pci_read_config_dword(pdev, PCI_GLI_9750_CORRERR_MASK, &value); > > + value |=3D PCI_GLI_9750_CORRERR_MASK_REPLAY_TIMER_TIMEOUT; > > + pci_write_config_dword(pdev, PCI_GLI_9750_CORRERR_MASK, value); > > + > > gl9750_wt_off(host); > > } > > > > @@ -770,6 +781,11 @@ static void gl9755_hw_setting(struct sdhci_pci_slo= t *slot) > > value &=3D ~PCI_GLI_9755_PM_STATE; > > pci_write_config_dword(pdev, PCI_GLI_9755_PM_CTRL, value); > > > > + /* mask the replay timer timeout of AER */ > > + pci_read_config_dword(pdev, PCI_GLI_9755_CORRERR_MASK, &value); > > + value |=3D PCI_GLI_9755_CORRERR_MASK_REPLAY_TIMER_TIMEOUT; > > + pci_write_config_dword(pdev, PCI_GLI_9755_CORRERR_MASK, value); > > + > > gl9755_wt_off(pdev); > > } > > >