Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2103759rwb; Fri, 12 Aug 2022 12:06:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BvqhtLAFLGFJt1Xt9JIKlEoNtpHW/lghSQdR6U5oyoC9cZ61ttczSOeDiyakZI4Gbw8aq X-Received: by 2002:a17:90b:1d0b:b0:1f5:6554:d556 with SMTP id on11-20020a17090b1d0b00b001f56554d556mr5592961pjb.168.1660331191912; Fri, 12 Aug 2022 12:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660331191; cv=none; d=google.com; s=arc-20160816; b=mxHbh/Q2PaGV1u1WbzR7chB3rkznyCTlQOAIai8XgNZhRVHiun+yeGS0O3kOqixDAO /6Jc/6cl1rh4SuDmlsRJgxUijt45EQTA3+vJA/xwPhaWPKyHtf9Xp7EpVCfas0zzsFrf LiWAs0wtHDLqG6JaTrtDFovo49bd8U/WvXSM1yR+U2U175Dw8xmXCKXWXXxgGxgyC6Pm jWd1bfoVO2LYI3128+Wp6yqvWP6vLLpQlbLraN8+SKHNCmn/kOVzBWJlzfmfFq7WnrcG EP21jC6RgW0xKJCQ4gFi6hUIihSzXLhyPVQcIhEw/kN96YP3PWacFE/IS/0PGRAfff6Y n1KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KvEyZ4FEThK1DjF6RvgWnWGQvnQgUw4+RiXhKfkMEec=; b=Im4Nh3qO/6ODfYSrliBSCyXXD5Qa0SznIihDEDyvyDcveWjsNMQ/780i4o3ArruDwy W8YF6ruHwcydbY6X+8jrOEBx6Ba7jF8U7sKgnXQd9t2zEU0jk0b9Ih/z1UgHMOYLEGhF NZ9dotuMp6y1f6MbOK69j3BKO83PxM0GK9CYkkxYBkBwsmNSN82YgLmnIa2AKIm3PvMI 8Q054MJ+kzr0fvEGF3daLLRUhRoPn6Bn1wzRwpneNIvxGHG6EAlaB6M/IcDFdDRJ+2o6 l3a4JmFRTQlU6hV2NMaTKtsZWzPYd4r4q7lLehA62XCiwqfCB5wMKQWlqkPrny0wc8UC 5T2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oWGKL3TX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a6384c8000000b0041bf784b050si3270135pgd.182.2022.08.12.12.06.20; Fri, 12 Aug 2022 12:06:31 -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=@kernel.org header.s=k20201202 header.b=oWGKL3TX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239090AbiHLSVU (ORCPT + 99 others); Fri, 12 Aug 2022 14:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiHLSVT (ORCPT ); Fri, 12 Aug 2022 14:21:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E18EB2DA1; Fri, 12 Aug 2022 11:21:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0970361336; Fri, 12 Aug 2022 18:21:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FE15C433D6; Fri, 12 Aug 2022 18:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660328477; bh=eiqOy+SxPsGO+aA2z0ZhN60jzp90jIs1wwhTjj/uyPs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oWGKL3TXV5p/wjnoeDVhwpS9Ojz6UgMWG1/5ucTazMa1w7DwDZTetOh49jbvs9XXF E5m9Bhtb00uJAJh9rc/o9hJiDEyFoRN90j4LCXol5Y1Rp14Ux82DcEsgADMCwL2Znr WXY7qk1V4hddY2AmjPyysbybCOulno1PfFFStFVBQzR7M2x7DVN2scfuEPegOyzgz/ aKUAM5samP5ggi3scQuER0CI6VudTItIaj/SZKKgV/LbEAy0X25AzRIq2i3H+3RLjH XX31WBBK58H92XzV9i4v3ck0BmaMbAZsw3YdDu7GMhwiJNxcctA0ibZG9ZaAIdVG9V sUJlelT1iYqpA== Received: by mail-vk1-f172.google.com with SMTP id w129so862395vkg.10; Fri, 12 Aug 2022 11:21:17 -0700 (PDT) X-Gm-Message-State: ACgBeo3bRu/r4qS05ZeFvuqYR+4w/TKMgPDrnnKp+lHMqxVOzzQE5mKV XpKBXKShwZd/gozxPvkIS9Tj81jwjCCM9z+7Eg== X-Received: by 2002:ac5:c959:0:b0:377:adad:62cb with SMTP id s25-20020ac5c959000000b00377adad62cbmr2446296vkm.26.1660328476406; Fri, 12 Aug 2022 11:21:16 -0700 (PDT) MIME-Version: 1.0 References: <20220812000327.3154251-1-willmcvicker@google.com> <20220812000327.3154251-2-willmcvicker@google.com> In-Reply-To: <20220812000327.3154251-2-willmcvicker@google.com> From: Rob Herring Date: Fri, 12 Aug 2022 12:21:05 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/2] PCI: dwc: Drop dependency on ZONE_DMA32 To: Will McVicker Cc: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , kernel-team@android.com, Vidya Sagar , Christoph Hellwig , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, "Isaac J . Manjarres" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 11, 2022 at 6:03 PM Will McVicker wrote: > > Re-work the msi_msg DMA allocation logic to use dmam_alloc_coherent() which > uses the coherent DMA mask to try to return an allocation within the DMA > mask limits. With that, we now can drop the msi_page parameter in struct > dw_pcie_rp. This allows kernel configurations that disable ZONE_DMA32 to > continue supporting a 32-bit DMA mask. Without this patch, the PCIe host > device will fail to probe when ZONE_DMA32 is disabled. > > Fixes: 35797e672ff0 ("PCI: dwc: Fix MSI msi_msg DMA mapping") > Reported-by: Isaac J. Manjarres > Signed-off-by: Will McVicker > --- > .../pci/controller/dwc/pcie-designware-host.c | 28 +++++-------------- > drivers/pci/controller/dwc/pcie-designware.h | 1 - > 2 files changed, 7 insertions(+), 22 deletions(-) Reviewed-by: Rob Herring