Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1333378rwb; Fri, 13 Jan 2023 10:46:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoc6Kh0Z34GsX40xbUF3yMDHbq9PEJ9I2w1WRqmV5n83WDsWYK2x3lhVt2+0PDTV6YhCsk X-Received: by 2002:a17:907:c298:b0:868:63f9:d2a7 with SMTP id tk24-20020a170907c29800b0086863f9d2a7mr4107170ejc.52.1673635603933; Fri, 13 Jan 2023 10:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673635603; cv=none; d=google.com; s=arc-20160816; b=m1PweyPsaIS7JctKEPUih+V8Cahf4FQENC/PK/5qv+meVmYJ4BDocHm0yg31PGzfRZ M4cOuwjvsKCk39L0B0uSI+VCr7S+Pf36caHE0Boa5WViRLWKk1mYycjK4YdyRWbvWLcV QpNO2RBZLkbdfnPURmjKpKNlthH66Ku7KUwrv0YNGYx9UofIIp+p5kjLfQnZ00ZYb3Fg DlNt2/rlZ/Cq3nop+bAXie++RsiMDuIzWYo1QEfVnFebeiARGDqpTI8fFKne6WDc/NtM 27Wzn5M3nLHTSfhKpGh3VI1TGvZ2ij0SS1zZQ5Ur4PknFOo+nqqs2POoEKmcKnvn2jJF PTrg== 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=Ms1s84zAFNtBgb8NGTnCe0dENA/JZE+nvA+p2rbZyps=; b=RD9miDdFKBKHvc4llYKO6J5p+uqdi6NIUOSLwafwSDWY77/wrTSRqK7VN9U4EXhFwW 47yUlD8zAcnu70z90Ti3ShipKIwYSdoh3JgpYikUt8FI6FU9LidLsUBZFw2fceGKP/sO 5p4mPmhmDhb6GjaNNsLPbLVTLuJx0OWRzfKtTUmRss/XHJgrkk+M/y/W5p/CwAGAAVI5 29MK4+BsyPdqUn1UcGFAsgMhJq8tWZBWQwj53Mx9A4O1vw80ccBp8Nj8YJrWHTuJgvTK Vxo120pKDEgxUSdMelznu95qXkSKD/rChq4FzDKK9kDxf02ZljP1YS55VT0yK2hcMaN2 AQcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZeW8ivH7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du8-20020a17090772c800b007c0a7b0c5b0si22856131ejc.761.2023.01.13.10.46.31; Fri, 13 Jan 2023 10:46:43 -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=@gmail.com header.s=20210112 header.b=ZeW8ivH7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231282AbjAMS2E (ORCPT + 51 others); Fri, 13 Jan 2023 13:28:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjAMS1W (ORCPT ); Fri, 13 Jan 2023 13:27:22 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 012B8164B3; Fri, 13 Jan 2023 10:23:24 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id y19so2005940ljq.7; Fri, 13 Jan 2023 10:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ms1s84zAFNtBgb8NGTnCe0dENA/JZE+nvA+p2rbZyps=; b=ZeW8ivH7MrEqmbMhE+lDqQKcFg1kQ6vtNjrMH20SYx2uJd5Nvkz5q7dfAxkkRl5Mhd 52moVFDM5MhdLEOtTL8amWm3O2Aend5OuVqhnNOvornlTtyoXcR5EjLTmeHFCJ4Dq8a1 zc/zADqOhEjEh0assvD2BgOpkh3hLSbI8/USYo/WuvxmqWdQM31gW9qkkebxg3sQpES8 tlEeySfoLQBASqXQpAQ7QCvQLwzpLWD1GYvTelXHJ5p7k+E+Quib0e0ho94SGfPuWuc6 fN2kVJFf/YmIK1Q8G/nLvgg3fYPbhM4Am1Jtk9BQ/fvLu0rUnomE/LU2wz5KErQL7fie 2+UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ms1s84zAFNtBgb8NGTnCe0dENA/JZE+nvA+p2rbZyps=; b=q7To/8BuvUTwCWzJiQgikRLn/TGDw8bWMUsxHN13xUtHw1M4AH8Ou1tpkzeSfb+kPI ijV5wrXSCKgYqmFF/v8W8svYB+sN7Dkd6MuAPovfXW0pEmfff7ISlE783cMU7RTeFfDm 62qe5aiEScMNLZEe02ev4buIso8KfhHFIOlyyPBPIRiAmTWV3CX+Q3Y4wSvDq9hXo3aZ mrUQVMqnHZxxuVL2b/+3Sv9PyDe9EL15mtCTwz54WACn0S8pTCZNCvME4cqE1YG97aeh /XP3RDm4ndOx6CcoNNxWD1E3qluiTY+0oN8vAt3jY/MeE72ke/GjEvvdiWJrHgl7dv+p W3lw== X-Gm-Message-State: AFqh2krUqHIbzBmFwOhs/SCpLft8722GRQCR50KvsIq0HaDcuz2Zifh0 JGEg82BKEUDt7M5hl8X1nq8= X-Received: by 2002:a05:651c:2399:b0:284:1bdc:4e96 with SMTP id bk25-20020a05651c239900b002841bdc4e96mr334852ljb.38.1673634203077; Fri, 13 Jan 2023 10:23:23 -0800 (PST) Received: from mobilestation ([95.79.133.202]) by smtp.gmail.com with ESMTPSA id h3-20020a2ea483000000b0027ff22d93a1sm2662372lji.1.2023.01.13.10.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 10:23:22 -0800 (PST) Date: Fri, 13 Jan 2023 21:23:20 +0300 From: Serge Semin To: Robin Murphy , Lorenzo Pieralisi Cc: Serge Semin , 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?= , 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: <20230113182320.fijxjjoobgnwdhjc@mobilestation> References: <20221214235305.31744-1-Sergey.Semin@baikalelectronics.ru> <20221214235305.31744-25-Sergey.Semin@baikalelectronics.ru> <8984a6ee-9066-bd2e-761f-96a8dd7875b6@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8984a6ee-9066-bd2e-761f-96a8dd7875b6@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Fri, Jan 13, 2023 at 05:40:38PM +0000, Robin Murphy wrote: > On 2023-01-13 12:04, Lorenzo Pieralisi wrote: > > 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. > > Yup, having gone and double-checked the context this seems fine too - I've > slightly lost track of all the circles we've been round in by now, but it > looks like the way things all end up after v8 (and now v9) should be > uncontentious. Yes, v9 has just been submitted with your Rb-tag preserved in the coherent-DMA-mask modification patch (patch #25/27). Please find the last version of the series here: https://lore.kernel.org/linux-pci/20230113171409.30470-1-Sergey.Semin@baikalelectronics.ru/ -Serge(y) > > Thanks, > Robin. > > > > > 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 > > > > > >