Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1416124pxf; Fri, 19 Mar 2021 06:53:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZmvk28EFTTwZwfzxjK8ip7oeqpzbB4wQ7ONu/UuoKL4vFWnI+tUE0nmxuflGPyLOOQcDn X-Received: by 2002:a05:6402:1613:: with SMTP id f19mr9818753edv.222.1616161981898; Fri, 19 Mar 2021 06:53:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616161981; cv=pass; d=google.com; s=arc-20160816; b=GgYoTTb0g4S2Yocw1IYi3Wm2KSdiSywaLye3iGPj6GiBoADL2ljiynFQJC9JR5zn// /C583WpJQ8F2ABevmV2gpKrT4lDbF95j77eD1YDW1C2Iy6iAWNk9qWEfwnVeNRI5bD9i JUJFcjN/vD5uIFD9XNsfW66lpEf72fQV53Rm9ONkVyxelatMpHlHONGYUMZlH/pm3QSw XBy/1KHffLAUdTOX7XnIqxPNuWGg3ytxg9a4H0jFfDiBZr2TTMzP8dtGDDmeEy4nVFzV rsfQzjKJ+77M/Oxs+vhANTDerYfeI9yRGcKAOXM2yn6wg1ehht0u6+O0ZQi2KbjolY8C u8qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_justification:msip_labels:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=kb/BsPH8uX7QHsJ/cyYgNoToou7c0wdfmtQxYjQ5Txc=; b=YQiChJ0oGMJyQRqXe2A2GxquUinip6anQbTGZYQnAB2vS3XUyuygIdZvdlj4q+k7bd SdTf63Os3JoHjlKyGPRREgrOcPki3vP4xzd8sUNft9nzlQv+CtSaeNqtz4Oy2Q0OEaOo fD3mG9mCRgucfbUr5ANuRReTiA/UPl+tk7HoP+VqWi5j5VUrKTb/VqK5TRfQ6F5G+NrP teDyEUGTFkMVFXuT079S30Cquex4ef1oZZBirriOgzxx01kMHKTTEtHIAyGdMzExbyRz QpNom5U7HfJfznFeek9r267a4GuMzwQZ4yqoIvuh/8XLznVQ0/5Y9nwtYMMwtphxc0WV j9kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ZnJV7e9A; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si4288095eds.345.2021.03.19.06.52.39; Fri, 19 Mar 2021 06:53:01 -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=@amd.com header.s=selector1 header.b=ZnJV7e9A; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhCSNvm (ORCPT + 99 others); Fri, 19 Mar 2021 09:51:42 -0400 Received: from mail-bn8nam12on2048.outbound.protection.outlook.com ([40.107.237.48]:18305 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229785AbhCSNvN (ORCPT ); Fri, 19 Mar 2021 09:51:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LQsh/5uMB8lIr84OEBsvh6aAu+Gz7IBhVKEDCrtwcR7GLpnSBdirZ3jmrlhFAF1QGPQFd+SMvpr3QTueCoNN8te9tOJyyv4lfrZ79EVJyAuHv3ZqGtJP6IGDczmHgQxAC/+lNAbw+1jjbPlkP2UCFV9QkrvIjnJFL9KU4VbqirGDtvgErM7BTR9WPSaB9BpD5ahAzyuwD76VZmChRi0QpoemAzx0kFSMxqi4+kH3M4NdCyqXp/loSNnlg4LDuL+KKL96MjWCYcxUL1oco8NI4HS5fNhVAsfB201xP4m7SMot71nq4irdwmoxSb/Sl2au4QxGXmCIhCARrU0Mw4GKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kb/BsPH8uX7QHsJ/cyYgNoToou7c0wdfmtQxYjQ5Txc=; b=UXCY4lQXVFdfizCI4eIWNN32IXtdEAGN4Z9GP40iWLR5zOXG/ZgMbaV02bGkok91F4J9rbn2o//khU7sAwBmjkkM6BXtjDH9B7vhuQJHsbR5F8PLLE/NIxmoaBFvXaS+8Fd69tVlvniaeat9lRAhUgZxgrmr93n0Z3Gw5ZW+BKroeOTxW28V0h5zUYsp3x4/pAKdzanmVSQFgk8QvCTinrFwCTHIlVjAGdzI1W+A9iEpQsveMA9UF9r0qz/sTLxCI2mq6QrY4byKgm77UVXScVX8W6TxbrgnsS1acuLHrPs2scxG2fNZTYhq8TJGgosc/U77ttKku0UzR/fkKo5XTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kb/BsPH8uX7QHsJ/cyYgNoToou7c0wdfmtQxYjQ5Txc=; b=ZnJV7e9AyK38DZ8KjLQwC9xbSRoAv3ZdfypkyFhhg9zA9bJPigZNvvxyXRiiECtEd4LpcxFmRsKd5S4N8IUSaMMspVA99cfugBC8B/BJcLz7ZY93hYToI3/KVRpwsz/Vy29zyjSSNK0YJFAk5iET0H/BqZ5C9UdInbGoxNUtnH4= Received: from SN1PR12MB2352.namprd12.prod.outlook.com (2603:10b6:802:25::13) by SA0PR12MB4351.namprd12.prod.outlook.com (2603:10b6:806:71::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Fri, 19 Mar 2021 13:51:11 +0000 Received: from SN1PR12MB2352.namprd12.prod.outlook.com ([fe80::d1b:6232:d444:4330]) by SN1PR12MB2352.namprd12.prod.outlook.com ([fe80::d1b:6232:d444:4330%4]) with mapi id 15.20.3955.024; Fri, 19 Mar 2021 13:51:11 +0000 From: "Schroeder, Julian" To: Bjorn Helgaas , "S, Shirish" CC: Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Daniel Drake , Mika Westerberg Subject: RE: [PATCH] PCI: Add AMD RV2 based APUs, such as 3015Ce, to D3hot to D3 quirk table. Thread-Topic: [PATCH] PCI: Add AMD RV2 based APUs, such as 3015Ce, to D3hot to D3 quirk table. Thread-Index: AQHXFjDf5flW2OWgCk2cPUWWKvSWjqp+vqcAgAygzXA= Date: Fri, 19 Mar 2021 13:51:11 +0000 Message-ID: References: <20210311044135.119942-1-shirish.s@amd.com> <20210311125322.GA2122226@bjorn-Precision-5520> In-Reply-To: <20210311125322.GA2122226@bjorn-Precision-5520> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Enabled=true; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_SetDate=2021-03-19T13:50:53Z; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Method=Standard; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Name=Internal Use Only - Unrestricted; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_ActionId=2f0dc422-fd6c-4c8c-a58b-99120f3f941d; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_ContentBits=1 msip_justification: I confirm the recipients are approved for sharing this content authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=amd.com; x-originating-ip: [165.204.77.11] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: aeafdcfd-39dd-4340-dc7f-08d8eade0e3d x-ms-traffictypediagnostic: SA0PR12MB4351: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:747; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pqmy+5yzaAaFehGuYr7Rxxa8uhsAvUl6PDgzZLY8o6dQoRgGn1vGfBCiF0mLa7x5JiDvXxA1hmwrQGpOZMTYa+RQpNcqjoCHHZXAkh2Ki1qJH6VHwmH7rdbldmDC5IC3GCDZ/Rj0xNbqlD2x4oiluBT1pwWTghlRyNBDAM/4vrBVcnvYfquLMk6gp9zKPK+yuSmQtr+TtTO2rUgPH/C99jsOPpMeYh+hDcg+2dMp5V+HJQuAnWihP0fLwXx5sUeOFQiiP6aXMi1OkUXfc2iIVTWaH2aLtR7FgI4hvRM/Jz5OdQ+NvK/lcWU6DD0snZB7f3/0+rlil0QgJHtNiR5in57Hbbkh6RVMOdqxk66rRUF0KYCE+qOgjlj3KtQhem7f8sPu/abdUHYrQ+tlCcxX7K4Vca+9VCGXoLAe3GHkh+InJKqjn51exIRRPis9J/KK2z3/+gEy0w5e1Zfon+NKtWaBsR9pfoNxYMuLX53kLnAh1i+dzTBBYheqhUfDGUECjUZ1icaiD9jASm/qMMxXljKOJyftCq3Hj5YCOLFgjQREjlI35t9nqFyBIBjAYnoy8cyDliJh+Q49AffinH6SCtF5SuOBwPovmiE+Gqj+0e1Y94r0RfNETfIhW4i24CMd0A8T72pT6rUUKpVNLssRgYyWpcMlS19oRbKND/wMet/yeI4kWQZxg7sHtAcaeMjU/+D4M10mruXBycJow8pp0wLFf6M4RFAjxsZewEutWAT5B8KLt2+JwlC6NBKyksugOpB/5omMaVorGpMJs1JyxA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN1PR12MB2352.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(136003)(396003)(366004)(346002)(66946007)(8936002)(64756008)(186003)(66556008)(2906002)(33656002)(316002)(38100700001)(76116006)(9686003)(110136005)(54906003)(6636002)(66476007)(66446008)(45080400002)(26005)(7696005)(71200400001)(52536014)(966005)(8676002)(6506007)(86362001)(55016002)(478600001)(4326008)(53546011)(5660300002)(83380400001)(32563001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?z4oMH/+eVI6rNFniovsUHzGBYp/gUxUXSi2V29x14KnxEfUrSOFCgTbTa3xg?= =?us-ascii?Q?PDMGCoG+zmfaCNIfGF5/Q9NwjOCCqKTPS3QKD/MIjG52FRMY47VJVLaqnice?= =?us-ascii?Q?0vDvPlmA8cWOhbNSJWtXnKJ+4msdhLm6Zo2le6s7h2X8daKRSeihp24JmY1t?= =?us-ascii?Q?14P4wAOzZgKj+KllpzF3BSH50sQ3BYBZm4yO+4bPs58IFTHh6XPicwl+5xdm?= =?us-ascii?Q?5gFwQj+2/kEZv2H+UdGAVhQaHpjzDrn5SBlVhvgyr3EiL5bRxykYPstIwmuT?= =?us-ascii?Q?irWveKVbNVoUFK2RZhBF9gUu9vWoCnU/vmSSOhT7ubDcmo6egLv1RGmV3TUZ?=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IW4CI8/wsbaq2PLQvc7EU3rccqQnVRVA?= =?us-ascii?Q?KcdE/2/QIpD6B4DISAylAGNDxkuga5nzHMWkLa0XYTNor5pyFlP4WfY9RyL9?= =?us-ascii?Q?w8J+6DrjjJblUBEjDpa6GUM3?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN1PR12MB2352.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aeafdcfd-39dd-4340-dc7f-08d8eade0e3d X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2021 13:51:11.3800 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yElS6eFyBK2xN8HgTPNymW+LVaAZhZ5+mB5aiDUqExkeRPCw4/HOxGGVkM0RYJjRyh3FxiCoCzhkIRiJkyfdeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4351 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Official Use Only - Internal Distribution Only] I observed an issue with D3hot to D0 transition on 3015e APUs. Since the peripheral device IP of the APUs already covered by this quirk is= almost identical. I added the 3015e.=20 Further testing an a great many machines has not shown the issue occur agai= n. -----Original Message----- From: Bjorn Helgaas =20 Sent: Thursday, March 11, 2021 6:53 AM To: S, Shirish Cc: Bjorn Helgaas ; linux-pci@vger.kernel.org; linux-k= ernel@vger.kernel.org; Schroeder, Julian ; Daniel= Drake ; Mika Westerberg Subject: Re: [PATCH] PCI: Add AMD RV2 based APUs, such as 3015Ce, to D3hot = to D3 quirk table. [CAUTION: External Email] [+cc Daniel, Mika (author, reviewer of 3030df209aa8] On Thu, Mar 11, 2021 at 10:11:35AM +0530, Shirish S wrote: > From: Julian Schroeder > > This allows for an extra 10ms for the state transition. > Currently only AMD PCO based APUs are covered by this table. I'm really glad to see this coming straight from AMD. Is this a documented= erratum? Please provide a reference to that. The point is that quirks are for working around hardware defects. If the d= evice is not defective, and it is actually following the spec correctly, th= ere should be a way to fix this in a generic way that doesn't require quirk= s. That avoids the need to add more quirks for future devices. > WIP. Working on commit to kernel.org. I'm not sure what "WIP. Working on commit to kernel.org." means. Does it m= ean I should ignore this and wait for the final posting? I'm OCD enough that I like commits doing the same thing to have the same su= bject line. This is an extension of 3030df209aa8 ("PCI: Increase D3 delay for AMD Ryzen5/7 XHCI controllers"), so it should look li= ke that. > Signed-off-by: Julian Schroeder This appears to require an additional signoff from you, Shiresh; see [1]. Bjorn [1] https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit= .kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Ftre= e%2FDocumentation%2Fprocess%2Fsubmitting-patches.rst%23n356&data=3D04%7= C01%7Cjulian.schroeder%40amd.com%7C7fc41008b90e486b882008d8e48ca91c%7C3dd89= 61fe4884e608e11a82d994e183d%7C0%7C0%7C637510640444272647%7CUnknown%7CTWFpbG= Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C= 3000&sdata=3DnyJcTD5Vy%2BV1raz%2Fb7ZSiRdp7quMXcydjMdcD2FmQYs%3D&res= erved=3D0 > --- > drivers/pci/quirks.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index=20 > 653660e3ba9e..7d8f52524ada 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -1904,6 +1904,7 @@ static void quirk_ryzen_xhci_d3hot(struct=20 > pci_dev *dev) } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15e0,=20 > quirk_ryzen_xhci_d3hot); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD,=20 > 0x15e1, quirk_ryzen_xhci_d3hot); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15e5,=20 > +quirk_ryzen_xhci_d3hot); > > #ifdef CONFIG_X86_IO_APIC > static int dmi_disable_ioapicreroute(const struct dmi_system_id *d) > -- > 2.17.1 >