Received: by 10.192.165.156 with SMTP id m28csp1587446imm; Tue, 17 Apr 2018 01:46:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+gC3pYF6oT9Xiiaq2qE09XP60sPwhxauMxCmC94aLen8H1LyGGht5S0TxfFyUCJ+eJ+Hl6 X-Received: by 2002:a17:902:a609:: with SMTP id u9-v6mr1265973plq.56.1523954819317; Tue, 17 Apr 2018 01:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523954819; cv=none; d=google.com; s=arc-20160816; b=M01wDnA0AlYdkW4wytfqyvNGhTG6is02zY+OEwFaQxLxhEom5+qMq4rJnwdoPTbKic AsnBnHRjvkW8MO2wOQXFfihn1ATp8dkQEX0edYsNFG+EBdDyqR/dJcIqVVUoSLZBGRRy v26j9bP44JzUVB1HQCjKiLPjFDGodUl7an5BHY0IU7s9abNdfeceHFVSjbIpGtDM+t+v L2ww7Rq4IIrka1Jsu+kpcU9hdIGw67NmXv1KQwRHb/1JSSn2m11B1/Jp6E6MgFxmnjPk ipdTnCuXX6v3ulhf/38JSneSNJbCbTmgQAU5FVIfetjJvkQlAynDWOHFLvCZCOSFlnLE 7m9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=eFAeGy84v38k4MyXgv1jp+RzVOrg+2WwF4gN51zYHls=; b=qjM6ZtaIqetfQJMku6HxsLcZYuhNXcrVWXtUFIj3MWzP+OA4wVnmgU2rQ+ZtPHkXS7 8BsbkQDY62W8HXvHOwM8/UVSJZcuUiY5Qx9H3BAeP245h6esasPwO4t9PAeEEWswBdZC NQJi1hROP/lvBRIknAl7EpUH1jmRVAOkNbmVKKmTpjruL19CXkB7ofaSyfOw0sxa5c0g wmt+cQ3QdsFDfkVmDpiNUPPwjK7QAfJJubSS0aE4wG/1M+3xxzU4zBm1bNt/GdCQurjZ sD983igUyhK/GPRhZwNo+dI3sB+BAyaVdni7JdJ7a6DtHrWHYp+MlBVJRWYXeif5ABS/ fzLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si3822480pfi.289.2018.04.17.01.46.44; Tue, 17 Apr 2018 01:46:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752199AbeDQIpN convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Apr 2018 04:45:13 -0400 Received: from zxshcas1.zhaoxin.com ([180.169.121.91]:34633 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752144AbeDQIpI (ORCPT ); Tue, 17 Apr 2018 04:45:08 -0400 Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 17 Apr 2018 16:45:02 +0800 Received: from TIMGUOE40 (10.29.8.18) by zxbjmbx3.zhaoxin.com (10.29.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 17 Apr 2018 16:45:00 +0800 From: David Wang To: 'Christoph Hellwig' CC: , , , , , , , , , , , Subject: Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI bridges Date: Tue, 17 Apr 2018 16:44:32 +0800 Message-ID: <000001d3d628$4e91a4c0$ebb4ee40$@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdPWJWP7w0EjoZkeTnm5pu211P7x3g== Content-Language: zh-cn X-Originating-IP: [10.29.8.18] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To zxbjmbx3.zhaoxin.com (10.29.252.165) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----?ʼ?ԭ??----- > ??????: Christoph Hellwig [mailto:hch@infradead.org] > ????ʱ??: 2018??4??16?? 20:34 > ?ռ???: David Wang > ????: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com; > gregkh@linuxfoundation.org; x86@kernel.org; linux- > kernel@vger.kernel.org; brucechang@via-alliance.com; > cooperyan@zhaoxin.com; qiyuanwang@zhaoxin.com; > benjaminpan@viatech.com; lukelin@viacpu.com; timguo@zhaoxin.com > ????: Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI > bridges > > On Mon, Apr 16, 2018 at 05:26:56PM +0800, David Wang wrote: > > PCI bridges integrated in new VIA chipset/SoC have no DAC issue. > > Enable DAC for the platforms with these chipset/SoC can improve DMA > > performance about 20% when DRAM size > 4GB. > > > > So we get an exception to an exception? Is there any way to figure out the > PCI IDs actually affected? Yes. Do you mean we should list the PCI IDs of the PCI bridges which have no DAC issue? There are lots of PCI bridges(PCIE root ports) in our new chipsets/SoCs. And no DMA issues found. So, we only want to recognize the chipset/SoC by reading VID/DID of Bus 0, Device 17, function 0. Thx. --- David