Received: by 10.192.165.156 with SMTP id m28csp61726imm; Tue, 17 Apr 2018 06:35:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx48s3M+KBgfji04nZ7K0Mx9rbmxuheMQQe87EWVjtwSUPEZOTLBD7bKKosYOHKVVEDp2UDfj X-Received: by 10.98.36.76 with SMTP id r73mr2048156pfj.108.1523972159600; Tue, 17 Apr 2018 06:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523972159; cv=none; d=google.com; s=arc-20160816; b=WBJnxatxCMM2XVPczI2C9GYcRAh1wtMt4B1AOOJl69aGSpq11uiMLwo5cKTXOgwylK 3f7pN+IO3MuSdE2F+Afp86ACkyXZs9Cd+jEdSDSz6rZp5smyGAK+/17P6NLHcEfdiv3Q xFRx9tadou3iMSvc+J3Zux+ZMfmoN17q6T3TlJ4Dfe4DU8YUnRUbeBkjgjiZNNnRzwIg 2w6azvfwW+JHH9JiOTkh4K0md+VHAQ+OCEFtkNF9XTilECD1Ex/yPzxBo5yTwKoR+UEu kcImrW0MJx2dvdu8la9QJhqfoWu2/npQHEoKE0xl1xwEGxFuI8BpQLsboAB8OnaHlbAg uWyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=tA/l6KfmsoqbREfjfqbh9xKDHR+0/bJIZLFXn9jgeBs=; b=ZaXC/Kwm8BNFLSGX4+DqjFqWhKFRITsGU6zrDsMKJesMk/TvOK0GSfzbcJYyEh/TvU cGax4aQmIxf1uB39BcHeHuuLM2dPOvgMPgBTWAU1q2n7xuhdjSGLxilHvp7Li+TZgltO GDAvx94qYb/tVX//etkl4i9+bnBd1schf8Y/sUZf1fPkz0eyAQgzh4ngOuFr0DAEIwrz SpD4QXxjZXbUAsCQtt06OXWJvP8mpqUJO1tACFZO4ZW2oFbHD+9ibTz8fmp4h8+cWM1X dwNcIEC4E74vHp6eGFXiAPxt9/aZkDryvp6+dZdpfDOu9+beHFe7/EaOXIiYl9SSllWh 7EmQ== 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 k21-v6si10762890pll.299.2018.04.17.06.35.44; Tue, 17 Apr 2018 06:35: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 S1753324AbeDQNd2 (ORCPT + 99 others); Tue, 17 Apr 2018 09:33:28 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:56815 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099AbeDQNd1 (ORCPT ); Tue, 17 Apr 2018 09:33:27 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1f8QjM-0006y1-Pq; Tue, 17 Apr 2018 15:33:08 +0200 Date: Tue, 17 Apr 2018 15:33:08 +0200 (CEST) From: Thomas Gleixner To: 'Christoph Hellwig' cc: David Wang , 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 In-Reply-To: <20180417130040.GA9426@infradead.org> Message-ID: References: <000001d3d628$4e91a4c0$ebb4ee40$@zhaoxin.com> <20180417130040.GA9426@infradead.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Apr 2018, 'Christoph Hellwig' wrote: > 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. Sounds good.