From patchwork Thu Jan 14 13:44:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Graeme Gregory X-Patchwork-Id: 8031971 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 250CC9F32E for ; Thu, 14 Jan 2016 13:44:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 228B72043C for ; Thu, 14 Jan 2016 13:44:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DDCC20430 for ; Thu, 14 Jan 2016 13:44:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754055AbcANNop (ORCPT ); Thu, 14 Jan 2016 08:44:45 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33237 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754035AbcANNoo (ORCPT ); Thu, 14 Jan 2016 08:44:44 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A44D220ABF for ; Thu, 14 Jan 2016 08:44:43 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 14 Jan 2016 08:44:43 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=slimlogic.co.uk; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=crSL1 2y4iGrl0xiajextRkUKzTA=; b=0OZZIKDIgvunLz0AruRed9f/PzMsJEd33QkG6 prEGRxPn/cJKldVyy6h0CtHwKtaqEbd92H7rMHSMsFhZi6/f/wtxqAltoCbSiZju hBh35FrAfHDryxmY/H8R1Xd5Tuxzs7yGGETytbc5Er04wnpk+LImrBjcxzfB7rbt 1bwJ3M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=crSL12y4iGrl0xiajextRkUKzTA=; b=IEPP1 NldADj5JcOV2ept6Zj1jsVsetp5lj56kTPF7QPkVTZUkp1bCV5XRQySmhx9+P4Yx kHiPdEy8nzrk7o1n4FwXf36xybi8blRHgk3L5CzmkqU2cSL1zATmumxSW1Iy/u2L SrwDLBNxNxJar4Vy3JZEq667isWYO/A29jGe88= X-Sasl-enc: 4b86LOCwzEdtjE6ql75h6t6JZ34X75GJhXNnJxfABY5J 1452779083 Received: from localhost (79-66-3-221.dynamic.dsl.as9105.com [79.66.3.221]) by mail.messagingengine.com (Postfix) with ESMTPA id E362AC013FE; Thu, 14 Jan 2016 08:44:42 -0500 (EST) Date: Thu, 14 Jan 2016 13:44:40 +0000 From: Graeme Gregory To: Tomasz Nowicki Cc: bhelgaas@google.com, arnd@arndb.de, will.deacon@arm.com, catalin.marinas@arm.com, rjw@rjwysocki.net, hanjun.guo@linaro.org, Lorenzo.Pieralisi@arm.com, okaya@codeaurora.org, jiang.liu@linux.intel.com, Stefano.Stabellini@eu.citrix.com, robert.richter@caviumnetworks.com, mw@semihalf.com, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, tglx@linutronix.de, wangyijing@huawei.com, Suravee.Suthikulpanit@amd.com, msalter@redhat.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, jchandra@broadcom.com, jcm@redhat.com Subject: Re: [PATCH V3 00/21] MMCONFIG refactoring and support for ARM64 PCI hostbridge init based on ACPI Message-ID: <20160114134440.GA8520@xora-haswell.xora.org.uk> References: <1452691267-32240-1-git-send-email-tn@semihalf.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1452691267-32240-1-git-send-email-tn@semihalf.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Jan 13, 2016 at 02:20:46PM +0100, Tomasz Nowicki wrote: > From the functionality point of view this series might be split into the > following logic parts: > 1. Make MMCONFIG code arch-agnostic which allows all architectures to collect > PCI config regions and used when necessary. > 2. Move non-arch specific bits to the core code. > 3. Use MMCONFIG code and implement generic ACPI based PCI host controller driver. > 4. Enable above driver on ARM64 > > Patches has been built on top of 4.4 and can be found here: > git@github.com:semihalf-nowicki-tomasz/linux.git (pci-acpi-v3) > > NOTE, this patch set depends on Matthew's patches: > http://www.spinics.net/lists/linux-pci/msg45950.html > https://github.com/Vality/linux/tree/pci-fixes > > This has been tested on Cavium ThunderX server and QEMU. > Any help in reviewing and testing is very appreciated. I have tested this on my AMD Overdrive so Tested-by: Graeme Gregory But to actually get my r8169 network card working I also need the following patch. I suspect we need to set coherent_dma_mask somewhere in the platform but I do not know where this should happen. Hopefully an ARM64 expert can help. Graeme --- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 2fbf840..40e24e2 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1717,7 +1717,7 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus) set_dev_node(&dev->dev, pcibus_to_node(bus)); dev->dev.dma_mask = &dev->dma_mask; dev->dev.dma_parms = &dev->dma_parms; - dev->dev.coherent_dma_mask = 0xffffffffull; + dev->dev.coherent_dma_mask = DMA_BIT_MASK(64); pci_dma_configure(dev); pci_set_dma_max_seg_size(dev, 65536);