Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2936424imm; Sun, 1 Jul 2018 08:44:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNMfFI+L6EgYq5dhMzAT3kio3yb0dSzVo2rtWFsuUhcCKmLppLc2WMQrT3IqAsLspQcnU0 X-Received: by 2002:a65:450a:: with SMTP id n10-v6mr13973304pgq.392.1530459842627; Sun, 01 Jul 2018 08:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530459842; cv=none; d=google.com; s=arc-20160816; b=cVerIDt9DQoHrGB9oL3+qIvFUA2P/oAc7rnYpL6WlXCg17bQGSURQx4Ay7Mgml0rKc vU+3XXvffkndciM6yqzMuwPEuEJvkjAP3RKsDJw7jAYXleXVZ7qtgtG4gPiw85aU0BH2 qUkgfK/TYSIohCo9UdHGAp5WHymTmoXb22Fx+G6MhUMoj6fB9M/BlvB3vC6OAKr3B7MH IGUlrQKjsg0PDNoqNTknFimQVAdIon5HDqvWawF+Wbd5csBHpkPRP1GKVzZ5adNN1lcL LyvKoa4AAkpSQOEkuvZCj2Ykk9Lj4ygOKH/2iUTDuZHnf++hGoX7Zco6zC5FOcFKGeD0 nWvA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=XkmGkOnKZf4dlJ9W+baorO4YrsQ6czOX5oe5FlHsAVI=; b=QEP8p+hi5xQWGlOHxwTI82lN1/2EQFpoDbzRQ4m0dXrhqmqByvLw31cmD9z8IQe/9h 6Dg4d9ERFT1dItJ5CC9ZcaDP1KQZAW84iW4tALsS3lE3E8/NeUG4MTtIs2f93Ow30+XJ wYrcyx9xM11eyxeRbTSTFgkQjsiJrmOUz+xSgUJgJgd/jyka5lV+gz0lUxE831/ROTfz XvcoUY/4JnSRrkEwXHk8jif6cDvhdPS3uEptqT3ZG5+VpAj/mpf7zG06nq1Qf6vsZI6I yt3LsagjqUOAaGMY2ym41kM+GvQ1nKQSDK9RBmPpenGBSUWDuZj+kN9FRuZ6iZBH8ljn oung== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W+jYFK+D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h68-v6si12520626pgc.429.2018.07.01.08.43.48; Sun, 01 Jul 2018 08:44:02 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W+jYFK+D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752475AbeGAPnE (ORCPT + 99 others); Sun, 1 Jul 2018 11:43:04 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:52804 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231AbeGAPnD (ORCPT ); Sun, 1 Jul 2018 11:43:03 -0400 Received: by mail-wm0-f67.google.com with SMTP id w16-v6so5911468wmc.2 for ; Sun, 01 Jul 2018 08:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XkmGkOnKZf4dlJ9W+baorO4YrsQ6czOX5oe5FlHsAVI=; b=W+jYFK+DSHZlVfWUwlGiyA7DjU/z8utnxbkJ/Boiw05IsHf9qgMnRHmQv9w4i9pyoE XExqtT44VDqpFoRJaaycPIvedMwbtvgdL/87YF+lPuYVNYDmCLzx2PlC0zg4akuU+I9b BOwbtcf0GZ2SJ1IT44SPfpFtb+Kij7iogCHvfNKrg8LqTWMZu1Mt4rAhxNkrYSF+IhYa /kUS37vL3NihaN9hmb4V4ZW+6mvDw0074btumAi4eeb+OEw/ngjA6EnanJPnEBzw3Ij3 wkOa3LBnzALZV/v3gmBW/vE39N2ewAnR3ol7lDndhhD51pOOvaoVE18lQsFQIRv9ysEd 9/wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XkmGkOnKZf4dlJ9W+baorO4YrsQ6czOX5oe5FlHsAVI=; b=WnN0Gfq4pc0hHXgta4NvR9f67sxWsA2DdppgRJoVncUz2tSovMKKQEKC8zOIaoehxp Cl9AkMeYnIyGwnirE/WaLGHo74hZqwCyqGZO0VONSdRy6WnVqzwZ+IFqBGfUMRCyG5SD HXnkvBRUXgBNBK0+keGjB8YFaTICzOGaSgncTUCZblxC5LrN0U8zRja71X1XQMkapDP5 m09TcPd6L20+Ti3U4ayH/yjmOa584tSrv+0xC6q+iUuqmK8ztLRr1UcBSlUrsBb09iOE wbaIak+RqMxmzfdiyR1Xy6hpr20msrOui8hMU9SwO83KRFfEyfp1k+/HyOnJ2+stjGoc Houw== X-Gm-Message-State: APt69E3VN6RBlMhRV88E1xX4M01ENgLSqiG8pUfe1zxOES9XTnNct7um YzarMmflUfNjT66HGcNHlduobqOn X-Received: by 2002:a1c:8312:: with SMTP id f18-v6mr6454996wmd.127.1530459781525; Sun, 01 Jul 2018 08:43:01 -0700 (PDT) Received: from hobbes.localnet (p2003006F8C519F687C36D93C7C7DD354.dip0.t-ipconnect.de. [2003:6f:8c51:9f68:7c36:d93c:7c7d:d354]) by smtp.gmail.com with ESMTPSA id u13-v6sm4999287wri.72.2018.07.01.08.42.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 08:43:00 -0700 (PDT) From: Fabio Coatti To: LKML Cc: Christoph Hellwig , Greg Kroah-Hartman Subject: iwlwifi problem with iommu/intel-iommu: Enable CONFIG_DMA_DIRECT_OPS=y and clean up intel_{alloc,free}_coherent() Date: Sun, 01 Jul 2018 17:42:59 +0200 Message-ID: <1537224.nkESeFtY4z@hobbes> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit 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 Hi all, since kernel 4.17 my laptop fails to enable wireless card (04:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a) ) with this error: Jul 01 09:34:36 hobbes kernel: iwlwifi: probe of 0000:04:00.0 failed with error -12 I bisected the issue to this result: d657c5c73ca987214a6f9436e435b34fc60f332a is the first bad commit commit d657c5c73ca987214a6f9436e435b34fc60f332a Author: Christoph Hellwig Date: Mon Mar 19 11:38:20 2018 +0100 iommu/intel-iommu: Enable CONFIG_DMA_DIRECT_OPS=y and clean up intel_{alloc,free}_coherent() Use the dma_direct_*() helpers and clean up the code flow. Tested-by: Tom Lendacky Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Gleixner Cc: David Woodhouse Cc: Joerg Roedel Cc: Jon Mason Cc: Konrad Rzeszutek Wilk Cc: Linus Torvalds Cc: Muli Ben-Yehuda Cc: Peter Zijlstra Cc: iommu@lists.linux-foundation.org Link: http://lkml.kernel.org/r/20180319103826.12853-9-hch@lst.de Signed-off-by: Ingo Molnar :040000 040000 9b907b7d761c6121d603c649421749ffd4e13999 2f396bd9e11c46e865a46107cd3cc9ef6f9ee6dd M drivers By reverting this commit the card works again, tested in 4.17.3 . I've noticed that the corresponding amd commit ( b468620f2a1dfdcfddfd6fa54367b8bcc1b51248) has been reverted in linus tree (e16c4790de39dc861b749674c2a9319507f6f64f), and 4.16.X stable tree iirc, but the intel one has not been reverted. hw: Lenovo P50 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz Please let me know if more details are needed, but CC: me as I'm not currently subscribed to LKML. many thanks.