Received: by 10.223.185.116 with SMTP id b49csp2625838wrg; Mon, 12 Feb 2018 12:54:27 -0800 (PST) X-Google-Smtp-Source: AH8x227NgvzghvhZukDgDnhIuUPPIkGY0TpsGMatcsirdg8vkgU265KDig5PvSUJl+7XaAhuAEz1 X-Received: by 10.101.85.143 with SMTP id j15mr3742452pgs.387.1518468867153; Mon, 12 Feb 2018 12:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518468867; cv=none; d=google.com; s=arc-20160816; b=WlNMS6wVaBQrcKc5En3PtEWeJbS0VzdCzO5JBCYJTE9M0c4SRgDUReHqQZAyDwt2Tv R0oA8CcfxuGk9P/vkN5ph3du6NgQzHECCwn0IhmAjnWAE2BpStl2VWvO8mAqdcoYegdr fCjS0LDqBMp2pcgGBhwn1N92/0gu4YbEVh8JhZ72MrcgQqrdMJxLHC2cnLZuzN2D6e4j LZ+4GEPhsx7nTkNVfwE+3oQKlQ4eEf/i1xT0WKIfnpi240AlJE4WQyuwAm8Lq+fe59SH jKeBpumnz9cGRI2kQQ2cUTVCwbohIQi9YowJXrvLv9rYSzfrwjpty8b9DerQ4r1/Q9r8 x5QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:arc-authentication-results; bh=e3wvrkNbzRuxwn9nMSI0WjjGB1bNy2ripnC+RZ1iTbs=; b=LBlt1p1RHCoVNXmp/xZtNptaFiWsA3BP3YklNC6rtQj91vQV9P+UrU4dSuTXh3VomP kxFcKXUiWdEsRoS1If4Ay7jtJHzl/F3jHU7zwEa/8nrbv/HHWNlX5BR0uXubEpwn2B94 CgsiLFv1PUo9aoiQw3NNSBKvmQe62sG8Hk6+Az3SYCE7tbLpt5pzhckgysJ4ndpuOPBQ IKs+nGxJfcPga6mwd9CXSyHxbGMNlVO6m2TsS9LCozYK9INUuUsqJLPWJvZbi39rC6eN px09SgMe1QSBAayTpZlu6Ei/RHnJtxXxvTPGFuygpgaL122K1CDKEtCUN8HzQEl+jwjV fqeA== 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 q9-v6si6451856plk.730.2018.02.12.12.54.12; Mon, 12 Feb 2018 12:54:27 -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 S1754046AbeBLUww (ORCPT + 99 others); Mon, 12 Feb 2018 15:52:52 -0500 Received: from smtp2.it.da.ut.ee ([193.40.5.67]:39993 "EHLO smtp2.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753817AbeBLUwu (ORCPT ); Mon, 12 Feb 2018 15:52:50 -0500 Received: from math.ut.ee (unknown [IPv6:2001:bb8:2002:2400:5054:ff:fe3b:8db9]) by smtp2.it.da.ut.ee (Postfix) with ESMTP id 8DD0473D935; Mon, 12 Feb 2018 22:52:48 +0200 (EET) Received: by math.ut.ee (Postfix, from userid 1014) id 4ECE0221E30; Mon, 12 Feb 2018 22:52:46 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by math.ut.ee (Postfix) with ESMTP id 58351221414; Mon, 12 Feb 2018 22:52:46 +0200 (EET) Date: Mon, 12 Feb 2018 22:52:46 +0200 (EET) From: Meelis Roos To: Christoph Hellwig cc: linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, Linux Kernel list Subject: pata-macio WARNING at dmam_alloc_coherent+0xec/0x110 Message-ID: User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I tested 4.16-rc1 on my PowerMac G4 and got the following warning from macio pata driver. Since pata-macio has no recent changes, dma-mapping.h changes seem to be related. [ 0.228408] MacIO PCI driver attached to Keylargo chipset [ 1.283931] pata-macio 0.0001f000:ata-4: Activating pata-macio chipset KeyLargo ATA-4, Apple bus ID 2 [ 1.284398] WARNING: CPU: 0 PID: 1 at ./include/linux/dma-mapping.h:516 dmam_alloc_coherent+0xec/0x110 [ 1.284689] Modules linked in: [ 1.284797] CPU: 0 PID: 1 Comm: swapper Not tainted 4.16.0-rc1 #60 [ 1.284991] NIP: c03259ec LR: c0325948 CTR: 00000000 [ 1.285150] REGS: ef047c10 TRAP: 0700 Not tainted (4.16.0-rc1) [ 1.285337] MSR: 00029032 CR: 24fff228 XER: 20000000 [ 1.285559] GPR00: c0325948 ef047cc0 ef048000 ef1321b0 00000000 00000000 ef1321bc 00000000 GPR08: 00000000 00000000 c04f1bd0 00000000 22fff884 00000000 c0004c80 00000000 GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 c0660000 c05f0960 GPR24: 00000007 c063d7a8 00000000 ef1e59ac 00001020 ef1321b0 ef135c18 014000c0 [ 1.303085] NIP [c03259ec] dmam_alloc_coherent+0xec/0x110 [ 1.308751] LR [c0325948] dmam_alloc_coherent+0x48/0x110 [ 1.314511] Call Trace: [ 1.320187] [ef047cc0] [c0325948] dmam_alloc_coherent+0x48/0x110 (unreliable) [ 1.326133] [ef047ce0] [c0370a90] pata_macio_port_start+0x44/0xb8 [ 1.332110] [ef047d00] [c0355ed4] ata_host_start.part.5+0x138/0x254 [ 1.338100] [ef047d30] [c035c1e8] ata_host_activate+0x84/0x1a0 [ 1.344007] [ef047d50] [c0371214] pata_macio_common_init+0x3b0/0x608 [ 1.349890] [ef047db0] [c0336f9c] macio_device_probe+0x60/0x120 [ 1.355761] [ef047dd0] [c031868c] driver_probe_device+0x25c/0x35c [ 1.361576] [ef047e00] [c031887c] __driver_attach+0xf0/0xf4 [ 1.367320] [ef047e20] [c0316340] bus_for_each_dev+0x80/0xc0 [ 1.373051] [ef047e50] [c031782c] bus_add_driver+0x144/0x258 [ 1.378805] [ef047e70] [c03190dc] driver_register+0x8c/0x140 [ 1.384580] [ef047e80] [c060ce14] pata_macio_init+0x5c/0x8c [ 1.390303] [ef047ea0] [c0004aa0] do_one_initcall+0x48/0x18c [ 1.396000] [ef047f00] [c05f1214] kernel_init_freeable+0x12c/0x1ec [ 1.401615] [ef047f30] [c0004c98] kernel_init+0x18/0x128 [ 1.407208] [ef047f40] [c00122e4] ret_from_kernel_thread+0x5c/0x64 [ 1.412829] Instruction dump: [ 1.418409] 939d0000 4bff6329 80010024 7fe3fb78 8361000c 83810010 7c0803a6 83a10014 [ 1.424201] 83c10018 83e1001c 38210020 4e800020 <0fe00000> 4bffff84 7fa3eb78 3be00000 [ 1.430020] ---[ end trace 89c0f4a91a110769 ]--- -- Meelis Roos (mroos@linux.ee)