Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1521868pxb; Thu, 16 Sep 2021 09:10:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBu0C/LPPhgpjMHm2za91JKQa/FUmhwcWbJmh+WsSavbg0LFxsNsG7Wv/LAG3q3Rs3Ubzb X-Received: by 2002:a17:906:3fc1:: with SMTP id k1mr7309241ejj.44.1631808605123; Thu, 16 Sep 2021 09:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631808605; cv=none; d=google.com; s=arc-20160816; b=eWgpqRlvFJ87HD7VJ/rBpOG3hMgKBn/vvxUCMsIIiI6ADKwi+fMcKxUdm995yiVlOc 9mEbCH8FPH5Xb0Q/TH3AsJvTsB5E+fvArBhab3FEhCsF84fh0AShYBRXjiO9r6M0RkNM mq1dpR6x8MfkRnJRKRizwDqAr74OeieS97LInCzUD7IUNlHWThJGJeMAo/GOF7QPanpF DRzqS2SY4ihZKeOItP3zdv0nvTj7scrKQD7btccbrKyWn6qHCG6whOWAeTtH5D8IIYjQ XS+8o8ECtnpYt/ZrFDwmIEb/2ZzTrFeyQB5vT77ft1do8vnm/F7te8ag/X5Iq1tL3TVL 4ocA== 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=QQ/hVfZO5JCiIoyeY/JKFhqhWkVijn04glDeZJ47NyY=; b=R+NuArP31aHgbYkDFxRyIQ1OAbYWwHm5Uwsp37twlZB5aNZLl2PBxQRMpoCKLOUvsr lh+YZ31AgN3yQ5RAG3LlAjOQr7ikTTY7olxnkGbD+7DBjn3qrAAfKxEeFWmNzMYLngGw mxFo7t82miqWt74jwP8SVtqJ4pW+gTRszJvcdXIUNpXykTnh5jeP9u8xxUJBx2Ugjc6X jJPzfLA3HKkiIJqEPfD2C4rQIN6S2ymhv1pXRlEwFjRaX0exN4e4NdjFB6Kua5i6pPER tvSmDVGQ6AEIxNdUSCxEPqbxy3dlOHztgkDPSGaEONvga83bpqMUi2oM/HR18RSSKAI3 K5Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o7vxGuGL; 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 eb10si2927554edb.16.2021.09.16.09.09.40; Thu, 16 Sep 2021 09:10:05 -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=o7vxGuGL; 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 S235402AbhIPQIy (ORCPT + 99 others); Thu, 16 Sep 2021 12:08:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:46146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbhIPQGo (ORCPT ); Thu, 16 Sep 2021 12:06:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 644FD61260; Thu, 16 Sep 2021 16:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808323; bh=llqVRZepbp//01/uit09MPR+SKYoDSxTzpVAjo+o9ak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o7vxGuGLaDgbZeF/kz9JpQ73VWpxSGAFwmtskUyPhwBwPCfwenQqv8mw/iOhKfa3T 9SXTYt0ao4tHSKmLSWY0uxmZsQI2X56UNMp87GaQU1Y5xUDGTkoNb4BM4SkbF+R0Mj w0aiturshEp6/KqC9MzNm818tocvu6YxMSE4N8Ag= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?R=C3=B6tti?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Bjorn Helgaas , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH 5.10 047/306] PCI: Restrict ASMedia ASM1062 SATA Max Payload Size Supported Date: Thu, 16 Sep 2021 17:56:32 +0200 Message-Id: <20210916155755.552788582@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Marek Behún commit b12d93e9958e028856cbcb061b6e64728ca07755 upstream. The ASMedia ASM1062 SATA controller advertises Max_Payload_Size_Supported of 512, but in fact it cannot handle incoming TLPs with payload size of 512. We discovered this issue on PCIe controllers capable of MPS = 512 (Aardvark and DesignWare), where the issue presents itself as an External Abort. Bjorn Helgaas says: Probably ASM1062 reports a Malformed TLP error when it receives a data payload of 512 bytes, and Aardvark, DesignWare, etc convert this to an arm64 External Abort. [1] To avoid this problem, limit the ASM1062 Max Payload Size Supported to 256 bytes, so we set the Max Payload Size of devices that may send TLPs to the ASM1062 to 256 or less. [1] https://lore.kernel.org/linux-pci/20210601170907.GA1949035@bjorn-Precision-5520/ BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212695 Link: https://lore.kernel.org/r/20210624171418.27194-2-kabel@kernel.org Reported-by: Rötti Signed-off-by: Marek Behún Signed-off-by: Bjorn Helgaas Reviewed-by: Krzysztof Wilczyński Reviewed-by: Pali Rohár Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3252,6 +3252,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SO PCI_DEVICE_ID_SOLARFLARE_SFC4000A_1, fixup_mpss_256); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SOLARFLARE, PCI_DEVICE_ID_SOLARFLARE_SFC4000B, fixup_mpss_256); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ASMEDIA, 0x0612, fixup_mpss_256); /* * Intel 5000 and 5100 Memory controllers have an erratum with read completion