Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752365AbbKKIuw (ORCPT ); Wed, 11 Nov 2015 03:50:52 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:56306 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752285AbbKKIus (ORCPT ); Wed, 11 Nov 2015 03:50:48 -0500 X-AuditID: cbfee68f-f796f6d0000014a4-77-56430160b7d8 Date: Wed, 11 Nov 2015 08:50:40 +0000 (GMT) From: =?euc-kr?B?x+PBvri4?= Subject: [4.4 regression] 46a7fd8a : pcnet32: use pci_set_dma_mask insted of pci_dma_supported To: linux-kernel@vger.kernel.org, hch@lst.de, pcnet32@frontier.com Reply-to: jongman.heo@samsung.com MIME-version: 1.0 X-MTR: 20151111084309921@jongman.heo Msgkey: 20151111084309921@jongman.heo X-EPLocale: ko_KR.euc-kr X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20151111084309921@jongman.heo X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=euc-kr MIME-version: 1.0 Message-id: <651688554.823561447231840264.JavaMail.weblogic@ep2mlwas04d> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrIIsWRmVeSWpSXmKPExsWyRsSkQDeB0TnM4OBCSYvLu+awOTB6fN4k F8AYxWWTkpqTWZZapG+XwJUxr3sFe8ELw4rln7kbGA8YdDFycggJqEnc/HyIEcSWEDCR2Hyw nxXCFpO4cG89G0TNUkaJsy9DYGpWPn8LFZ/DKLH4ki2IzSKgKrHz50MmEJtNwEzi2PnfYDOF BeIkVnTMYQexRQRCJfY/WsUI0asocW3pYrA5vAKCEidnPmGBmK8i8bpjP1ANB1BcVeL4/hiI sITErOkXoE7jlZjR/hSqXE5i2tc1zBC2tMT5WRsYYc5f/P0xVJxf4tjtHU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FZDzPSSudWZMYJSZhSQzC0n3LCTdyGoWMLKsYhRNLUguKE5K rzDRK07MLS7NS9dLzs/dxAhONM+W7GBsuGB9iFGAg1GJh3eDnVOYEGtiWXFl7iFGCQ5mJRHe CT+AQrwpiZVVqUX58UWlOanFhxhNgfE0kVlKNDkfmATzSuINjY1NzExMLU0sDEzNlcR536Rr hAkJpCeWpGanphakFsH0MXFwSjUw+gT+esCW8iL8O2+lR06VkodYmdmdv4vXKszycpCxUEqZ dItt3x6lPyv3hX81/K2tpPeVxUr+uo/QbMHWrlPVs2tyS5fetvnX8Tyz8kFZL9cS0fTOJ5kb S1uz9/VO5X1woYnp2OkHxg4Z3Y+WOPIt522/unHvRqWXH37+3BMi0Zxm+Glxw+HJSizFGYmG WsxFxYkASQZpOkoDAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id tAB8p2Gb007023 Content-Length: 4723 Lines: 93 Hi, I'm using Fedora 23 Linux Guest on top of VMWare workstation (version 10), running on Windows 7 Host. After pulling Merge branch 'akpm' from latest Linus git, my ethernet interface doesn't work. >From dmesg, I can see that pcnet32 doesn't support 32bit PCI busmaster DMA, as follows. [ 1.616867] libphy: Fixed MDIO Bus: probed [ 1.616871] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de [ 1.617232] pcnet32: architecture does not support 32bit PCI busmaster DMA [ 1.617304] VMware vmxnet3 virtual NIC driver - version 1.4.3.0-k-NAPI Without the commit, pcnet32 ethernet is recognized correctly. [ 1.173395] libphy: Fixed MDIO Bus: probed [ 1.173399] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de [ 1.173637] pcnet32: PCnet/PCI II 79C970A at 0x2000, 00:0c:29:07:e2:51 assigned IRQ 19 [ 1.173746] pcnet32: eth0: registered as PCnet/PCI II 79C970A [ 1.173799] pcnet32: 1 cards_found [ 1.173802] VMware vmxnet3 virtual NIC driver - version 1.4.2.0-k-NAPI Below is git bisect log. 46a7fd8a9b302116b3263bc8e47f8f08c0d3a2ca is the first bad commit commit 46a7fd8a9b302116b3263bc8e47f8f08c0d3a2ca Author: Christoph Hellwig Date: Tue Nov 10 14:45:17 2015 -0800 pcnet32: use pci_set_dma_mask insted of pci_dma_supported All drivers should be using dma_set_mask / pci_set_dma_mask to try to set the dma mask instead of just querying it. Without that some iommu implementations may not work. pci_dma_supported is removed entirely, but dma_supported stays for dma_ops implementations for now. This patch (of 15): This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig Acked-by: Don Fry Cc: "David S. Miller" Cc: "James E.J. Bottomley" Cc: Alan Stern Cc: Alexandre Courbot Cc: Alexey Khoroshilov Cc: Ben Skeggs Cc: Christoph Hellwig Cc: Daniel Vetter Cc: Dave Airlie Cc: David Airlie Cc: Greg Kroah-Hartman Cc: Hans Verkuil Cc: Helge Deller Cc: Jiri Slaby Cc: Mauro Carvalho Chehab Cc: Pawel Osciak Cc: Sakari Ailus Cc: Sergey Kozlov Cc: Shradha Shah Cc: Solarflare linux maintainers Cc: Steven Toth Cc: Thierry Reding Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds :040000 040000 dd0a67b69180edc5243578c8504cd2bd5d4efe24 1f92cb3d86111d725f4cf6a84076e8d9eee04362 M drivers # git bisect log git bisect start # bad: [c5a37883f42be712a989e54d5d6c0159b0e56599] Merge branch 'akpm' (patches from Andrew) git bisect bad c5a37883f42be712a989e54d5d6c0159b0e56599 # good: [ae36ce07abbdde3521dc0ef7e32143b88718cd21] Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux git bisect good ae36ce07abbdde3521dc0ef7e32143b88718cd21 # good: [be596aaa74090f553c61505ad03bb7a7460e5d23] Add current selection check. git bisect good be596aaa74090f553c61505ad03bb7a7460e5d23 # good: [5dfe5b2c714a5bea0908c1e00da0e8e00535f55c] Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild git bisect good 5dfe5b2c714a5bea0908c1e00da0e8e00535f55c # bad: [111be8b28d87769dfbde901602d262902575805d] cx88: use pci_set_dma_mask insted of pci_dma_supported git bisect bad 111be8b28d87769dfbde901602d262902575805d # good: [3368e8fbcda539e4f9d6cdb750f23c25021698c9] lib/string.c: add ULL suffix to the constant definition git bisect good 3368e8fbcda539e4f9d6cdb750f23c25021698c9 # bad: [bad007bca7b7643fea786737071c86088ba2803b] tw68-core: use pci_set_dma_mask insted of pci_dma_supported git bisect bad bad007bca7b7643fea786737071c86088ba2803b # bad: [46a7fd8a9b302116b3263bc8e47f8f08c0d3a2ca] pcnet32: use pci_set_dma_mask insted of pci_dma_supported git bisect bad 46a7fd8a9b302116b3263bc8e47f8f08c0d3a2ca # first bad commit: [46a7fd8a9b302116b3263bc8e47f8f08c0d3a2ca] pcnet32: use pci_set_dma_mask insted of pci_dma_supported????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?