Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp803591rwb; Fri, 13 Jan 2023 04:30:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXv2Py4Kfe7pRcRx2kosnALndya6fAfs+6ypkgrLsmIujd5Zc3BvCrcstWRW6D3w/2gf6liw X-Received: by 2002:a17:907:98a9:b0:78d:f454:ba3d with SMTP id ju9-20020a17090798a900b0078df454ba3dmr2955957ejc.60.1673613007306; Fri, 13 Jan 2023 04:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673613007; cv=none; d=google.com; s=arc-20160816; b=ravx9iAOXsXT0w+KIOQPJ2E8rKDKBi/gOsIDnuean6UlTCaCWIwe7X9JBTft4siSXg bO/54eijc2/6IDX9g5RL3Y5Cu0TOuTesCNAEix31wJj1bF5v010SlG7mVuwnxpPbhlKk /qXUlllFApTd9CKIL5KwlzfkNYC05c1msGnTadOSDw1kS+NudlBCr/xmsmhyUnB4mKXf rZshi2b+OiQUEw3ruHd+bvDZmxI9QyNZTkIfg9xo0UVftx6ZT6x46agg+OKD7+0/W4K+ HAkZQTG5fUOvRaVh08PhdikLr7qGMo8ozQ/bO8U05W8zzf1mN1TkDLnmkQJ+XM2J2dYF 9a5A== 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=PPR4Rwb/8R5D1DriC3I8grghsKNsW/D3V/787pQPhAk=; b=inUuOsq2dPCwiEb8AFX4fEr2cJHw/U7aKVjKgbeCHv2WstSV1qsEuxReAQCZLDS6kE 3D0iyI/ATJZOpF/P73mbE3rNpT0UcvMbiKDcWXd6u+KWcJMTunOZmnms7zkNae/N6vGs 80ZAAj++ommZZI65J12/8KCU5rYHqdV6lsgEIfudZ8dwbmdYn+2xXEs4kcRew3HFEqD8 MWLWFhZur4JwbrdrUNNSadAwdlGDidppauYt0xqdknjsAq9zZWW3gxb+wkxCJRuCBazl k8xg7jhp6+DB3BNd901fa0NMO2DhJ59FWdL0MrCxMfHdXT7ATgBwt+ffJu88vYAVOZ/A LacQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g7FUc2QJ; 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 fy15-20020a1709069f0f00b007c0bc4924cbsi8310922ejc.963.2023.01.13.04.29.54; Fri, 13 Jan 2023 04:30:07 -0800 (PST) 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=g7FUc2QJ; 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 S241135AbjAMMMO (ORCPT + 51 others); Fri, 13 Jan 2023 07:12:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbjAMML3 (ORCPT ); Fri, 13 Jan 2023 07:11:29 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BF7A7A922; Fri, 13 Jan 2023 04:04:57 -0800 (PST) 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 DCCC261704; Fri, 13 Jan 2023 12:04:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2589AC433EF; Fri, 13 Jan 2023 12:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673611496; bh=nPr/NKAEqyB20pLfjVKLni1cuewC0KvKd5eN/llyWns=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g7FUc2QJpGJnlOx4rfsced8r/HOCpDzS3QQOaPDoQg9LADymB2vk3ARBxRiEnDBAA c1v6olylFVeJ+cOfFk81yvZOSlmF2KguuPIn3iuO/ApAj7coA573QYODJytEd/rtSa T5NBqscqDnPaf3aKS75mxwdn9XB2NfSp8jZOVeA2kBF/zZusEfbZ+vEWlIaoJ2j0pE ruJIgVvGtD28YOVFI9JJesKOCzZItINFs48c1v2ZRSr5GJs7GyPc4zqVq0bdcXvx2D xXGJ8YR8K8L35fjnQ/83kpeq6Q+l9xv0rZ1CRoKEDs/qQvt92Q6amL0FQoNZfWlIo4 BrOPwW5VlB4tQ== Date: Fri, 13 Jan 2023 13:04:46 +0100 From: Lorenzo Pieralisi To: Serge Semin , Robin Murphy Cc: Gustavo Pimentel , Vinod Koul , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Jingoo Han , Frank Li , Manivannan Sadhasivam , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Serge Semin , Alexey Malahov , Pavel Parkhomenko , caihuoqing , Yoshihiro Shimoda , linux-pci@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 24/25] PCI: bt1: Set 64-bit DMA-mask Message-ID: References: <20221214235305.31744-1-Sergey.Semin@baikalelectronics.ru> <20221214235305.31744-25-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214235305.31744-25-Sergey.Semin@baikalelectronics.ru> X-Spam-Status: No, score=-7.1 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 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, Dec 15, 2022 at 02:53:04AM +0300, Serge Semin wrote: > The DW PCIe RC IP-core is synthesized with the 64-bits AXI address bus. > Since the device is also equipped with the eDMA engine we need to > explicitly set the device DMA-mask so the DMA-engine clients would be able > to allocate the data buffers from the DMA-able memory space. > > Signed-off-by: Serge Semin > > --- > > Changelog v7: > - This is a new patch added on v7 stage of the series. (@Robin) > --- > drivers/pci/controller/dwc/pcie-bt1.c | 4 ++++ > 1 file changed, 4 insertions(+) Hi Robin, are you OK with this change ? I think that's the last (PCI) bit we need to take the series. Thanks, Lorenzo > diff --git a/drivers/pci/controller/dwc/pcie-bt1.c b/drivers/pci/controller/dwc/pcie-bt1.c > index 8b6c7d544d9a..04aa58348aa5 100644 > --- a/drivers/pci/controller/dwc/pcie-bt1.c > +++ b/drivers/pci/controller/dwc/pcie-bt1.c > @@ -583,6 +583,10 @@ static int bt1_pcie_add_port(struct bt1_pcie *btpci) > struct device *dev = &btpci->pdev->dev; > int ret; > > + ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); > + if (ret) > + return ret; > + > btpci->dw.version = DW_PCIE_VER_460A; > btpci->dw.dev = dev; > btpci->dw.ops = &bt1_pcie_ops; > -- > 2.38.1 > >