Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932371AbcLAOLA (ORCPT ); Thu, 1 Dec 2016 09:11:00 -0500 Received: from mail-by2nam03on0069.outbound.protection.outlook.com ([104.47.42.69]:6181 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758437AbcLAOK4 (ORCPT ); Thu, 1 Dec 2016 09:10:56 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Date: Thu, 1 Dec 2016 14:55:49 +0100 From: Robert Richter To: Tomasz Nowicki CC: Bjorn Helgaas , , , , , , , , , , , , , , , , , , , , , Christopher Covington Subject: Re: [PATCH V1 1/2] PCI: thunder: Enable ACPI PCI controller for ThunderX pass2.x silicon version Message-ID: <20161201135549.GP2213@rric.localdomain> References: <1479201298-25494-1-git-send-email-tn@semihalf.com> <1479201298-25494-2-git-send-email-tn@semihalf.com> <20161201002812.GB9409@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [92.229.92.207] X-ClientProxiedBy: VI1P194CA0017.EURP194.PROD.OUTLOOK.COM (10.175.178.27) To BL2PR07MB2338.namprd07.prod.outlook.com (10.167.101.16) X-MS-Office365-Filtering-Correlation-Id: 552cd38e-14db-403c-d981-08d419f1ce5a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BL2PR07MB2338; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2338;3:OeQMFdl6dFHFsugip/fi3nrV0Ay0kGuPSfD7x9s8k27rbJBJMIfOFBSJuZyIz/NpsMFFEgiEZxJ8rZ+0AVjQJE5k4nrRTaFLnK41GYX/OFDebIjyw8XcHnRImuBxdFlPk/AjvVIK84utm53QYonT7l8wlt7JKYwdyT1SC2Ph0ofF7nxF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zO7YS5JB9QjdexotrpVx1fJPcRRrnGggIdx9/d2wawzYQ3ieZqrJyjvpKmRvUDf06B5DyAebaNEuYgSSjF8E1UkWQ0piMYjLG8DviCrXmxj0gdXH/qs1JlY8U7ZhEzJYExKpbcV5/ljNE620MWKnoNrjCVH7+NoPICtUMF7F6YuGr8L8dG1shW4wtJzXWxUAQhb/0ugZb2enx3CenGEMr2L0jgwILcYVskzU5zLpOJxWHBbpkayWpyuwRKYR/SPG23jiSao4ydkUORYyAt2tMOkT+joRXOfWR50o9S+rLKaAQA9RUFndfdSWX251fFoZqIt9kNGW6HZDsLGuiXKgWSUwL3JvBhHBPlXP4a5t0HsjYAkJxM/rdZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123558021)(20161123562025)(20161123560025)(6072148);SRVR:BL2PR07MB2338;BCL:0;PCL:0;RULEID:;SRVR:BL2PR07MB2338; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2338;4:JqJ4HJ4O5sKh14012UwOq2DpQcwlQkzKUtU/T6nQDP520+WaiDnhE0SCC3ICfs3CEshLm/W5KGaPWWZ9jxzDqEPyUW6LLCqszwCBKT6P2qhPU5kU8HdFP+zRwU94+gjIff7F1VZcPmVdqqquBzuDUuxk6g/5FoTjhraA5PLpVLgU9Ta7YVUkXmKU/Hlxf/MztezjV9JuNYGsXk/bFaPZf25MV42he1OTozEfn/jmaYyhaSs7fSbp8MR+fRCvfbrBhnsrFO0ecSP7gw0aSjxxj8TwI9aKTcwg8K0LWNsYrWoD02kfgdY0LsK85NVdKs+zB8MY9HR9ycwFh+OxMQt36SzlX71xKPneRmNuulV+LpapR+kHJomSwfJik4y9F8GEdfwl84kNpaZVEsojiZyR0MlC1qa0+LHRckU6rELcpktPxpHZOeGfNeIvLtHY+p6Bh44vCj4S1EhwSN6a9P0f6Hf55ePk4IJNZ/BdiNA6/WGpj5TqQAsGrxMqjkpqMrRfpB5WjJh9siVg/NEIiu2IPfqWnuPCW/GatQTCMIXCTY+n6CkUIbt9gHVD8yXxDFVR3N9d2HKLaN4H6FHBXnAB6JJXBBHSeFmyoeHqPzq4Fd2qJla9N7V+Ez/8xRPGDFTK85gyeeYkWZKmchYuKA9t2w== X-Forefront-PRVS: 014304E855 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(24454002)(199003)(3846002)(575784001)(5660300001)(81156014)(86362001)(33656002)(50466002)(92566002)(23726003)(93886004)(81166006)(39450400002)(105586002)(106356001)(47776003)(39410400001)(9686002)(733004)(68736007)(6116002)(66066001)(1076002)(42186005)(4001350100001)(97756001)(6916009)(46406003)(2950100002)(38730400001)(83506001)(8676002)(101416001)(110136003)(229853002)(4326007)(2906002)(6666003)(189998001)(97736004)(76176999)(54356999)(7736002)(5890100001)(50986999)(7846002)(7416002)(305945005)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR07MB2338;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2338;23:hNOZu0pCd1qWYhhrKC2ElxaGHFfWT0So58zcz6B6C?= =?us-ascii?Q?6or0+pe9QXDEQEGClAKXQAOs5x0cGgud9T53wiL4mG8RIkATDPa4dRQnWC6t?= =?us-ascii?Q?9dqUF3sd/qHz6wWteffAIK4QbOtBVQNDF9o0sqR95ikT1yE1WMtTeUQHBoEs?= =?us-ascii?Q?5Fnzz7vztAZbrmQ6wqYn+MyeK3TZpFA9aB6QYHCyolQWXvJoKGgUkzv1XjXh?= =?us-ascii?Q?mHb/hzviZsxE0uJlTLZTxIUbgyna9W7uERLKdJLCdYmW9XPyKY4WReIb0Lab?= =?us-ascii?Q?+Snmh1KHohB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PvsQa+BFFv/kZxO2QHw7eU5U?= =?us-ascii?Q?UBHamOMAvfphqeQKVY2Tzy3KKPY8RRkRmFI6seM3iUozntYvka434OgR27sl?= =?us-ascii?Q?X10WuxrGWxNI9ApJ7Za1PdQjTPuwbR7+2jTLDZCHCt4Zd/Q2Q49qQ86JKaSX?= =?us-ascii?Q?/jxz/8aUboJjJBtYuUYe2U=3D?= X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2338;6://IxQ2shxruHlR7+DicSKgqvmUfMFcPjf/1X/YjDdaTHxu4VdZC+dBKt/J5ZwNTg7fnfpEor9yAFl3EQ7M2MSFu7GUenW1vWhwefcpDtL314auMvMGgw20kOvSlkWFWuw/RjaHSZ/5qvbFnPGrkuw7UPi7MSt0DoVlf/b0feEwO13Vh5PTqN+LEORTJZotiNVH9Vx54h+7wrgrTC61WAb1jR1R8Au++invGfBlmfvDiafEtGFuPEKQ2Gn8x7wyKm/ckBP4aNM9De1aC2JHLFVd1qc1J9IVCCx9XAG49nNkC/8KO2CS7oZW4tkzcWQyVM6SdUlp2zDoGhf/W/w6IwJ/1AU8wlZyvEC7zlRoFa+M60s6dRnpRLXHWyb8Am180w8BxYPLke3OhpI72fI7xKoFLO2RsMaPZv4h2ke4n7jaR6AsL1BDxPNIm/GmRNM+NwVWfhskTG8jdefWbRU9wMEA==;5:5Fok8GJ8bakdVPIoVXVNQuhIAtxEWeUcrYUW7TtiuCjpASWCLDU/0lP1G0jXt8E0VPUPSR39Gvii3Y55uGW5UDTtR+RYrF6c8X0OGJTjcz2Yq+717xCxJ4QtHy31pP082ZBy0jhfD8MpHSTv1nhfkpscooeS4iLKfnpsZcKtQpI=;24:D/X8lNrcM61WkyVUM6tnivSMiu/7+nEvOkKutPOqNjImLwRftX1I8JhAGYjlRNpoxHAhXr9GnCUE9cKTc4Mce/l6504zizyyxG40ULtqrZA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2338;7:25urLSsTCD2JFCcU4u8K7XhkeHyuKy0wVFEg11u2COQWw4w1wvatv+gnOXoJ47qXjqYhXXHcuqG2ozwPuwACEKpCpZqPjt4eokWVyU9ohhJar9GVZfZDNhW5arNj+pScuX4nz8X4WU58iBJpzDdPH0A1EWA03yeY8tPmE/iWGP//Oid5Yev+5zpk4YJmbvBL+0w54rWbeQm6vxFNgmbOUFHPzu/1L+FxPRt5KcV2Wx53YbikLSZ3EM6omJuvdIfNKZpDF+nwRY/VGzBFqBnC5l9rsglDkR20H6XxDECfOG2+rRAJ5YMqs1HTlrgfJb0AbbQKEKpiiDM+6nzo6LhBbvgRN6T0hav6B3GBmAj4pkwnSQ8pChzukROomsMoEUrZqt7Skxs5HktJVW4k5r9RSZODb1WQEi3BOCf/pahWjXQPTuy8mmUEf/8su2bl+uALQQ/MTTAy+5EUkZI3SW2gFQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2016 13:56:06.9666 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2338 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2425 Lines: 44 Tomasz, Bjorn, On 01.12.16 09:49:51, Tomasz Nowicki wrote: > I put the picture together here (on top of your pci/ecam branch): > [1] https://github.com/semihalf-nowicki-tomasz/linux/commits/pci-quirks-thunderx-v2 please note that acpi_* functions must be protected with acpi_disabled or something else to make sure an acpi enabled kernel does not break dt. See the crash below with above branch. -Robert [ 12.493028] Unable to handle kernel NULL pointer dereference at virtual address 00000018 [ 12.501113] pgd = ffff0000090a0000 [ 12.504511] [00000018] *pgd=0000010fffef0003[ 12.508602] , *pud=0000010fffef0003 , *pmd=0000010fffee0003[ 12.514093] , *pte=0000000000000000 [ 12.517575] [ 12.519064] Internal error: Oops: 96000005 [#1] SMP [ 12.523933] Modules linked in: [ 12.526987] CPU: 73 PID: 1 Comm: swapper/0 Tainted: G W 4.9.0-rc6.0.vanilla10-00019-g09abd2b6bbeb #135 [ 12.537409] Hardware name: Cavium ThunderX CRB/To be filled by O.E.M., BIOS 5.11 12/12/2012 [ 12.545748] task: ffff800fe85b8000 task.stack: ffff800ff4288000 [ 12.551674] PC is at acpi_ns_walk_namespace+0x68/0x1d4 [ 12.556803] LR is at acpi_get_devices+0x6c/0x94 ... [ 13.124920] [] acpi_ns_walk_namespace+0x68/0x1d4 [ 13.131090] [] acpi_get_devices+0x6c/0x94 [ 13.136663] [] acpi_resource_consumer+0x34/0x44 [ 13.142752] [] pci_ecam_create+0x80/0x228 [ 13.148314] [] pci_host_common_probe+0x294/0x348 [ 13.154486] [] thunder_ecam_probe+0x2c/0x38 [ 13.160226] [] platform_drv_probe+0x60/0xc8 [ 13.165970] [] driver_probe_device+0x26c/0x420 [ 13.171966] [] __driver_attach+0x124/0x128 [ 13.177615] [] bus_for_each_dev+0x70/0xb0 [ 13.183177] [] driver_attach+0x30/0x40 [ 13.188478] [] bus_add_driver+0x200/0x2b8 [ 13.194041] [] driver_register+0x68/0x100 [ 13.199602] [] __platform_driver_register+0x54/0x60 [ 13.206038] [] thunder_ecam_driver_init+0x18/0x20 [ 13.212296] [] do_one_initcall+0x44/0x138 [ 13.217862] [] kernel_init_freeable+0x1ac/0x24c [ 13.223950] [] kernel_init+0x18/0x110 [ 13.229165] [] ret_from_fork+0x10/0x20