Received: by 10.223.164.202 with SMTP id h10csp675708wrb; Thu, 9 Nov 2017 01:21:56 -0800 (PST) X-Google-Smtp-Source: ABhQp+SM9e3fwohJnt9RdqpMSiZOOJmtpXHo2W0aZtvt2OJ3hG3VGjYm9ZVqMlnegNl9b3Hr7O6U X-Received: by 10.84.160.226 with SMTP id v31mr3252442plg.302.1510219316700; Thu, 09 Nov 2017 01:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510219316; cv=none; d=google.com; s=arc-20160816; b=IpU966bZKEfxAzXMVIFMQLsIsZtaZPsN3EStqloqik6yqUM0jtO/xVNFDFh+29r1zd lXnY7wzEIdGBWK1TFsCKKDpkXuInQw04zfaRn5iqxqj+h+LU/yMdfToMuaR891pqDGVc hf63pv65q0udvkLvvQUTfSurboPWz5v8Q69ZoHUPJrpWdLaDiRF7JKonaF3S58/XHlLV jCE+rC/kPvqMEVyo1sIo0ifY6XmgyB9FJO+5eJYT35bf493k9C2NUAbhfIKJSNqANAs1 0LcQxxS7LfgKMyuQPshgMh0IYbOBesqk6mejiG1KiZ1Q1pSophss47T3LDv4eEGRa595 1sXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Yv1oxKCv7kj4Pc0co8BuGQ3Ay15iocgWlu6yjzaTrXM=; b=DO65d18e8mpgq+PjCrl/nTW83kY7Ru5SG6XkestqpmFxTbIm8RDgQguZzXuFO1NrE0 v3zbIa18xC/0oiCPdgn/q/otlvucGTdgMa2YK+tqA0xv2Wh3CX+9xQSv0lMrAVb1jz4u Jg9fEbWHeAoTnBHLi6zaOozLzAZLsLExnH74Q9blW2UDFW49LGpVlRDESaAjYvStDJ4N c/x+g0FQr7WtjRKBnobmCjSrfeABj4ZbOlzXFkOlImdlWFOXKc5cmJTz1k4n7HEXIlaz E3SxlVTeOjmooS34ZuTRfh3UM312svfU3NzUsqiNQPoYkam8dbYFV/kVvKoPVurKAG24 /MfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si5785282pld.541.2017.11.09.01.21.45; Thu, 09 Nov 2017 01:21:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753941AbdKIJVF (ORCPT + 82 others); Thu, 9 Nov 2017 04:21:05 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:55949 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753691AbdKIJVC (ORCPT ); Thu, 9 Nov 2017 04:21:02 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id D382D1882B; Thu, 9 Nov 2017 10:21:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id BpkQtWw_nXg6; Thu, 9 Nov 2017 10:20:59 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 1715218822; Thu, 9 Nov 2017 10:20:59 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8DD21E081; Thu, 9 Nov 2017 10:20:58 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9CE1B1E072; Thu, 9 Nov 2017 10:20:58 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Thu, 9 Nov 2017 10:20:58 +0100 (CET) Received: from XBOX02.axis.com (xbox02.axis.com [10.0.5.16]) by thoth.se.axis.com (Postfix) with ESMTP id 908BF2CD0; Thu, 9 Nov 2017 10:20:58 +0100 (CET) Received: from [10.88.4.10] (10.0.5.60) by XBOX02.axis.com (10.0.5.16) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Thu, 9 Nov 2017 10:20:58 +0100 Subject: Re: [PATCH v4 01/17] PCI: dwc: Use the DMA-API to get the MSI address To: Bjorn Helgaas , Joao Pinto CC: Jingoo Han , Bjorn Helgaas , , References: <20171103134722.5532-1-niklas.cassel@axis.com> <20171103134722.5532-2-niklas.cassel@axis.com> <20171108005614.GF22847@bhelgaas-glaptop.roam.corp.google.com> <1c059ad0-aa57-fca4-6d92-e68736ffad5f@synopsys.com> <20171108172745.GD28427@bhelgaas-glaptop.roam.corp.google.com> From: Niklas Cassel Message-ID: <7b41b35f-b815-d708-08ef-a13b172780c1@axis.com> Date: Thu, 9 Nov 2017 10:20:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171108172745.GD28427@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: XBOX02.axis.com (10.0.5.16) To XBOX02.axis.com (10.0.5.16) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/08/2017 06:27 PM, Bjorn Helgaas wrote: > On Wed, Nov 08, 2017 at 12:45:49PM +0000, Joao Pinto wrote: >> Hello to all, >> >> Às 12:56 AM de 11/8/2017, Bjorn Helgaas escreveu: >>> On Fri, Nov 03, 2017 at 02:47:05PM +0100, Niklas Cassel wrote: >>>> Use the DMA-API to get the MSI address. This address will be written to >>>> our PCI config space and to the register which determines which AXI >>>> address the DWC IP will spoof for incoming MSI irqs. >>>> >>>> Since it is a PCIe endpoint device, rather than the CPU, that is supposed >>>> to write to the MSI address, the proper way to get the MSI address is by >>>> using the DMA API, not by using virt_to_phys(). >>>> >>>> Using virt_to_phys() might work on some systems, but using the DMA API >>>> should work on all systems. >>>> >>>> This is essentially the same thing as allocating a buffer in a driver >>>> to which the endpoint will write to. To do this, we use the DMA API. >>>> >>>> Signed-off-by: Niklas Cassel >>> >>> I'm expecting Jingoo and/or Joao to chime in and ack the >>> DesignWare-related patches. I think all the others are in >>> pretty good shape. >>> >>>> --- >>>> drivers/pci/dwc/pcie-designware-host.c | 15 ++++++++++++--- >>>> drivers/pci/dwc/pcie-designware.h | 3 ++- >>>> 2 files changed, 14 insertions(+), 4 deletions(-) >>>> ... >> >> Let me test this patch-set in my setup first! >> I will give feedback until Friday. > > OK, thanks. This may push this series out until v4.16 because the > v4.15 merge window will probably open Sunday, and I don't like to add > code during the window and merge it immediately. > I suspected as much. The general rule seems to be that a patch has to be in linux-next for at least 2 weeks before sending it to Linus. No worries, there is not really a rush. Regards, Niklas From 1583519754802665867@xxx Wed Nov 08 17:28:39 +0000 2017 X-GM-THRID: 1583053296841603702 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread