Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2007595rwn; Fri, 9 Sep 2022 07:19:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4viOXl+8yuscB+i00dP1pPSxk4hDzVdIOzRuDzBBH/JOkVGa3WOHPqsuqFGT5o7qSGaMAS X-Received: by 2002:a17:906:7007:b0:6ff:8028:42e with SMTP id n7-20020a170906700700b006ff8028042emr10058981ejj.278.1662733161554; Fri, 09 Sep 2022 07:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662733161; cv=none; d=google.com; s=arc-20160816; b=xts4HcrFjfQ/kh5PHKCNuw0YsRE+QTHsQV0MB20KkmtUGeM1jsDgfTqjCsdomb61ly Hs+FJgo7yA1hgZmsRpphfrEnAsW7lSc76tceIC7rpw5l04q8VXN8eVtNly7NHSszdIvi wVko5sYDqP0LNKGWuXsqhzLqZQ+NJrA40G1XG6ojVK9nGevu5uSpQWJu1pSEVGILtBY3 aGHgdA+8HqyJY5nXgiRWYC2TVSk4z2LosaoYfKYrTMSBwZp2jFgDJbHQkNhqH84BUGcr Z/trmU4+9mMmLeitHBEypv+bQQjF70jVOxN2tUcN9Yj6RGzafnj6vElw5DcZjT9cWsSq yljg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=+up5dkVlHRQQiD5Fr1e8E16CzSGEMK5NrequAPU/ffw=; b=j6kVcw79QEdmCb08SXv7Ar8YedKhC3D9vYI/bwLkdgNcbOnHjvMqIlw3r4K1NmZqO4 lERp4rlNZdzxC+SbfXGTxrNVnmsGfodJq4bDQzcDtCxpBm3rrNG5cGK+E/MzEONMoUCj S9ragUUnZX0iMAkqbFHgqdWPUqeTXEYjkSleQouMP5ScuTJZHYaWQQEDfXNS59mfNvBN prm6QhcTDQJYmbPCqbQDuDn+zpVL4aCNg9YN8cy6j56gaRuQv6n3JsVJmD8C3fCSOoSW e6D73Ya45APA526b20HWmz3CIO/NFH07mAiXoMW5YT4wJ7sjtsD866ndv026heribAdJ +07g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp15-20020a170906c14f00b0073d60665f53si630720ejc.493.2022.09.09.07.18.55; Fri, 09 Sep 2022 07:19:21 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbiIINsV (ORCPT + 99 others); Fri, 9 Sep 2022 09:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbiIINsN (ORCPT ); Fri, 9 Sep 2022 09:48:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82F37144091; Fri, 9 Sep 2022 06:47:51 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AFDDA165C; Fri, 9 Sep 2022 06:47:33 -0700 (PDT) Received: from [10.57.15.197] (unknown [10.57.15.197]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 917FB3F9AB; Fri, 9 Sep 2022 06:47:24 -0700 (PDT) Message-ID: <5bfd7d4d-d431-6321-89bc-663dcd36e930@arm.com> Date: Fri, 9 Sep 2022 14:47:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v5 2/2] PCI: dwc: Add support for 64-bit MSI target address Content-Language: en-GB To: Christoph Hellwig , Will McVicker Cc: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , kernel-team@android.com, Vidya Sagar , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot References: <20220825185026.3816331-1-willmcvicker@google.com> <20220825185026.3816331-3-willmcvicker@google.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 2022-09-09 14:29, Christoph Hellwig wrote: > 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. Eh, it's behind CONFIG_EXPERT, which makes it enough of a "I think I know what I'm doing and accept responsibility for picking up the pieces if it breaks" thing. Robin.