Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2038691pxb; Mon, 12 Apr 2021 12:39:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjUDqO3g7AkehFvTC+YlUl88XEKjot+fTk0JEc+oC23eUV21xNCWHwPIUdMIHDAmdwCpJH X-Received: by 2002:aa7:df13:: with SMTP id c19mr30754110edy.370.1618256392454; Mon, 12 Apr 2021 12:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618256392; cv=none; d=google.com; s=arc-20160816; b=CAa7wpXtAkpgxjNrfHGJhAoy61jRlJDA7+3nObSVHx+Ke7gQ1G47yfeeY1kpwyIYI9 ZkvDRwcPJlBtVGHCb5OWdvAubZV8pcKVJ0cO5Vsq9RyshtZ8Zd1CbfLA9RsjRueVPBmh mFf+qwDhEuktYYNVQtkEm4w1xaNKVaj0YWHyXXGT0O2KJuJDGns+zS29Rsv044Dr8jtu nZ4yZtguvjuQOaUuIijCA5gYme2I9CD/ivFK8djx5E8Yh9a5QBsuLjFJTpDkNOPgsKY9 gEtO2wjZCurWu/6JFULx4uTxs330FjqLnYlPZ08xll7QkLzMJxQ3kK/rwNo56hvSRJH7 sbjQ== 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=pO3G9HGZ2qHyShJpDGK9PAzVuYQdneyz53gezhEGBw4=; b=mcqbCovaOSIIKGWl4yV/lC6X3ir+RLBMe/oky2plep/XvfBgxhm8PHStMqi2p7wcI1 D6/DXUl4VkhnTnqIPC/pewshC78SFTO0xDdRrlBoZRlQXwXaeddqSz+LUVqBrbHRW7wM XAErJ8xAuBhEr2R4Sx/qM9IKiRJQOS0XwXqLvltlHobZJnDvMimpHUllDC3puG3UHU9N B15bM8MBtti9Dy4Lu3cYhRJIsiqoETzPf6VyL5KTUqh8flGDZCHYz2imfjXxCMjF3M3Q y4O+FI3vhehuwcht0DpobBsV+K+03ONyr7KVsaYLf7eM09IA9NCw51VYCvazL4w4V31A 7Sag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MPyHG45p; 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 q8si8405449ejy.320.2021.04.12.12.39.29; Mon, 12 Apr 2021 12:39:52 -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=MPyHG45p; 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 S237912AbhDLIq1 (ORCPT + 99 others); Mon, 12 Apr 2021 04:46:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:37682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237721AbhDLIpQ (ORCPT ); Mon, 12 Apr 2021 04:45:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3DBBD611F0; Mon, 12 Apr 2021 08:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217098; bh=e1abmRRKQrNRlJ15b7+d8+mBQEDWGtuiizmhp4eKoIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MPyHG45phKN5snUWYPfstCQ4//6Fn0IuqSU6n2YSJUHRXBssDQbVo5UuUN+EHxy/P I7UN+RLYHxWMqZX/asqNWLLJyvKlX+FMF9+bhE8RJkuMP5wbkElDWYA6HMy06Lg7Xy BH5eMy0n8B4rZix4IDkmxqwMx/LtS0UTb6kMIYcs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shyam Sundar S K , Tom Lendacky , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 35/66] amd-xgbe: Update DMA coherency values Date: Mon, 12 Apr 2021 10:40:41 +0200 Message-Id: <20210412083959.257091759@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412083958.129944265@linuxfoundation.org> References: <20210412083958.129944265@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: Shyam Sundar S K [ Upstream commit d75135082698140a26a56defe1bbc1b06f26a41f ] Based on the IOMMU configuration, the current cache control settings can result in possible coherency issues. The hardware team has recommended new settings for the PCI device path to eliminate the issue. Fixes: 6f595959c095 ("amd-xgbe: Adjust register settings to improve performance") Signed-off-by: Shyam Sundar S K Acked-by: Tom Lendacky Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amd/xgbe/xgbe.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h index 47bcbcf58048..0c93a552b921 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe.h +++ b/drivers/net/ethernet/amd/xgbe/xgbe.h @@ -181,9 +181,9 @@ #define XGBE_DMA_SYS_AWCR 0x30303030 /* DMA cache settings - PCI device */ -#define XGBE_DMA_PCI_ARCR 0x00000003 -#define XGBE_DMA_PCI_AWCR 0x13131313 -#define XGBE_DMA_PCI_AWARCR 0x00000313 +#define XGBE_DMA_PCI_ARCR 0x000f0f0f +#define XGBE_DMA_PCI_AWCR 0x0f0f0f0f +#define XGBE_DMA_PCI_AWARCR 0x00000f0f /* DMA channel interrupt modes */ #define XGBE_IRQ_MODE_EDGE 0 -- 2.30.2