Received: by 10.192.165.156 with SMTP id m28csp25810imm; Tue, 17 Apr 2018 06:03:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/czRjzTwUlVexLn0p/LiwhlVRn17z36GFFcowLzZNJKSNqUYX3U4EC7qMTBfVWkYUwv492 X-Received: by 2002:a17:902:bf04:: with SMTP id bi4-v6mr1958656plb.143.1523970182656; Tue, 17 Apr 2018 06:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523970182; cv=none; d=google.com; s=arc-20160816; b=CnwEzFmLbTvp/LOJlso9i50kMDQiRy7hYwyz5sTCQpqbnshZ05y+BlENI7oi5qyw29 RP4lMWU7TQ5jKbL3oAXjJA6YhLJHW8eN33NyKhjbXY7J+Lu1a275m9Nt7lGHt4VR1T7U ebkxNf3h94mFcsCXv77XnvsPQ5QUXkRL+K6QZ2frze/wIuMTcZrB1cHetELQOj5GPnWu fgjzfEvkSPSfMt12uO/Slq2CxlcncLbBM59BF5dR1z+Nj9oz3KsNVMuDGEgADgkG/yfW Z7gUhG32Dw23MxBJtSp3AnXKLlml556tYW3wd8XRqpi6NOcRuv3X3Fgzro/eQIgRYh6n w4Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=wNkpQkf9I/0o9gsqCau7bVLlimMLgvSnYja4kBOyRyQ=; b=GY1TTrwXjztscSl3zHfW0/vcw9PhbXF8i0bDRKRUSGLBAVXMWXAe+OpQMt/eKJjDrs IATG0iPCpY4o+4Z2MK1kSkCbm8ysi1D3e8fOTjP+31TrKzIaTUoRGEbJO7TnoYEgLhl6 OTT7HpgWyerZsJAJaZ4BdKQPXFWzmgNvhkM1yJ/sfSv7+LmgkJE6givf2SettX/Vx8x2 wZO5y4vc1jDgd4bp//I/MnJ4kN8rBCBHwKEcUZrDZ6Zo7FYtPrICQU3QcxZV765owvB8 ZPSyNJzXjoAE6D4iqgQVcVqa93DAdpw3/t20HYJY/reFRVZO+uVhfpB01dvHEgdKO0+W NpXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HuINp5SQ; 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 n190si571485pga.524.2018.04.17.06.02.37; Tue, 17 Apr 2018 06:03:02 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HuINp5SQ; 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 S1753501AbeDQNAy (ORCPT + 99 others); Tue, 17 Apr 2018 09:00:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43300 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbeDQNAw (ORCPT ); Tue, 17 Apr 2018 09:00:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wNkpQkf9I/0o9gsqCau7bVLlimMLgvSnYja4kBOyRyQ=; b=HuINp5SQPuZRszPrWwgaz4JLR eNTjIPwG+5Um5JWT9GzLvvmgOQ7VQp/RZBvTXKq3nrbKW9JRXzP1pQ1bEspuJXnDNs1AuND1s9ee8 +G9V2G8ziXZFSSqaZAczIu1zhwKMNu4+ib0iQDzaWw/ff1GzdjFIZ7Wf4WNzN8QqXf5F9egTH/Uvq i7+TkWBxPqGU2eXIAvwi9JiF6d2UeebKRxXIfk8ntegYiYuwDdwIuVKu45Tjmi6+BOT8sLdJLVmOa ha1bWkMEC4jB586LMMzfcLW36xnXuVNtGsZ1OyOL9f5E+3GHTqY12Ex2scDT3Rif6CfZKrTPiUrZP ZVsgIJIOA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8QDw-0005KG-Nr; Tue, 17 Apr 2018 13:00:40 +0000 Date: Tue, 17 Apr 2018 06:00:40 -0700 From: 'Christoph Hellwig' To: Thomas Gleixner Cc: David Wang , 'Christoph Hellwig' , 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 Subject: Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI bridges Message-ID: <20180417130040.GA9426@infradead.org> References: <000001d3d628$4e91a4c0$ebb4ee40$@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 10:54:37AM +0200, Thomas Gleixner wrote: > The question was rather to have a list of PCI IDs for those chipsets which > have the problem and set the 'disable' flag only for those. That makes a lot > more sense than making a list of new chips which disable the disable flag. Agreed. There are a few other things I'd like to do in this area while we're at it (I'm happy to do the work, not trying to offload it to David or Thomas): (1) make the nodac flag a per-device flag. Set for every device under one of the affected VIA bridges, or for all PCI devices if the nodac command line option is used (2) move that flag into the common struct device (or the to be designed dma struct hanging off it in the future) and make that bit handled in common code as there is a common Xilinx host bridge with a 32-bit dma limitation (3) kill of the forcesac option, which was a strange performance tweak back in plain PCI days, which probably didn't even work as expected to start with.