Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1971175rwn; Fri, 9 Sep 2022 06:52:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4M2ZyQviRkbgKBltI2eepDcs3TzdxYdGcffvkosI3kvYgrXHjF34sbxFKHEvZnF8FS7nME X-Received: by 2002:a63:6bc5:0:b0:41c:26d2:81e2 with SMTP id g188-20020a636bc5000000b0041c26d281e2mr12119994pgc.522.1662731546617; Fri, 09 Sep 2022 06:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662731546; cv=none; d=google.com; s=arc-20160816; b=Mfgwh43JJxwf7bSPdtIVZ8UjMgsfZkmkNnY9Lcn1/NIOBfeGr92K4RLaB+1MSjkxVD dkvgYr5akGy3q1Fz8dreVBZHCf6l/WKaixpav/E/Z61U+0d1AtN76mZPYfML7znIpbut zS9zZHq7Tc1dbxcSDrVfVkCL87zRh/cXp/JikXKWW2GPNNZ4raZyZ6pUrnNn27acJ2f+ KM6TjFP+d3Y5bb+MOVJNQydvr0i/amXjoBGqy6/EauLUySTyxpGPlk9KWcvAw2+XiwsA KSw2SO3x3iiBKe6Hp5y9/0JMim1WQMLNjMYMhTUXG6qOhUzlmDFZgpRBYXlut091xjqk JuBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Kx+TNaYecUJWjiUooddG+MRPNpg5v1JBSWuk9TvbMJo=; b=NCdo6YOF1AB/pFZdhZ4MV+KWq8O3ZuR4Rw2C66L9taB72Odpra4dayw5bcB93kAk69 h6Z6Bnixfn7TBZ1pPF3PVh1mHCzKREKONajBK3CGqQl5xlLYGW8I7YSPcChXt7EtzEbw 9jumgxZSo8QF2bfE/RXL4uRHq7VLoRlgY+xhsSFczePBvuHcfAS45/TC6aOLpuIVl1Pk Uf1d6/cAjjItGdAh00uKGBnr8l2/mkxvDSA1hxEulv37Wp2vO1YVxvYBqyiuIHMn5aSL Vjyo/5DnD9cjU9DFG/J7erAvqeRljClvo+OGRO/Jsg9gjuk4F5zyLEqNrgTiN9cqLYaY laPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E8naW1LQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h192-20020a636cc9000000b00434d16db302si564721pgc.791.2022.09.09.06.52.13; Fri, 09 Sep 2022 06:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E8naW1LQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229456AbiIINaE (ORCPT + 99 others); Fri, 9 Sep 2022 09:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiIINaC (ORCPT ); Fri, 9 Sep 2022 09:30:02 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7F440E3A; Fri, 9 Sep 2022 06:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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; bh=Kx+TNaYecUJWjiUooddG+MRPNpg5v1JBSWuk9TvbMJo=; b=E8naW1LQ2i+cPCRyY9+a+NGZTu vGU4YhnCwg8ifoC4YYYDrmYe0yxjnAhR/O8HGe+HFf6QoSTilolUF1E++joJxGfDshNITZiOUGzB7 VC80cMSt/xdfsqyZ5fqsiPqqz/jBC0fL28FrEq6yhQoR1x7xOO/iXl0K/Qu8yLIAUMeNVhnzCyiK5 E6+CuN5TSQglIo13urnrFgz7420AKV2DvgUo4dbGI+XhIT06Jutwj2GajNF3iwWQqSeLutN+ZAcyY wrF/6pPmljzEBH3K7fiNsB5uLdL5BRGlozyw2wQUY4TgDeKvNou1y0FTiGDwCfOCcC3mx2kuAXp3J /5AzBSpw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWe4s-00GKZY-Jh; Fri, 09 Sep 2022 13:29:50 +0000 Date: Fri, 9 Sep 2022 06:29:50 -0700 From: Christoph Hellwig To: Will McVicker Cc: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , kernel-team@android.com, Vidya Sagar , Christoph Hellwig , Robin Murphy , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH v5 2/2] PCI: dwc: Add support for 64-bit MSI target address Message-ID: References: <20220825185026.3816331-1-willmcvicker@google.com> <20220825185026.3816331-3-willmcvicker@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825185026.3816331-3-willmcvicker@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 06:50:25PM +0000, Will McVicker wrote: > Since not all devices require a 32-bit MSI address, add support to the > PCIe host driver to allow setting the DMA mask to 64-bits if the 32-bit > allocation fails. This allows kernels to disable ZONE_DMA32 and bounce > buffering (swiotlb) without risking not being able to get a 32-bit address > during DMA allocation. Umm. You can't just disable ZONE_DMA32. Linux absolutely requires a 32-bit dma mask to work, it is in fact the implicit default.