Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1976915imm; Sun, 12 Aug 2018 04:08:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyW3OXozGedzwpLaCQY55yyiRUQm+5GHDw3o/jYauMKNbXHYzjKC1NuA+rl4jzAtH0nAha/ X-Received: by 2002:a17:902:6b46:: with SMTP id g6-v6mr12956017plt.251.1534072123249; Sun, 12 Aug 2018 04:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534072123; cv=none; d=google.com; s=arc-20160816; b=NqDXreZGo7NH51IfNACXlNPG9BGe7+I21utRAyv5XUhIGUR8he+15hXFCOv8wUcNdu R0R/ciUtu4P3rHzONivvCuu8WA43PQi16Sb7GIOrkYzEn1cRzu3JHSZiKaYFnmLfghGX RhU6iz+9XTuWU16eFsxSaTGfikeKVbnjHs8cboIc0LGHXUMQh7VesB9XO/uTeNQA+Wkf hisOgIESb339q+ZqpZ+tbZ9EZezZHQ2jfGiKdlpiImwF31eXOxjyhTZkagbCvWpMV1Yq ayd6bcbtqHr0XGwN6YDg4is8dxHVuPqZ8MIvPkLj+afyX0a+uFcvXYhvrNArSYOLlbYz B9+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=C5MC2N3v/A5kUwhXSk0dT76sAjMDzfv+vEt+Tsl0V9k=; b=BG8tKLetJo8CL8PTwXxW2O6bQekraQmZuo8bgJLbMYAsszwCE9NO68Zwmyal52GQ2T jLpGka3n1xDmnNvKXqhP1SwAqfw6FNJXc6UwF+MXCrxFPVEgSMsUqCr9dslsvakGvB8r v2z0wHcEGZbsBRWAKH6BUm35mOcZS8awIUUzptdrdAvnsnjzH7uIryimjidjKmDkUI+i C/8Tqwz0UfEIqUBZTrmLUJd4gyRDusbjgYVYFMD2gCNdXo6ON7az6PzC7SO25c1ZK586 Ib8MyzV/IrN/8uqZTa0oW89sa14B5fHH6qK6nsJ8q9gCbWoqQg0oZjAwYDiW9hSJ8S9J I9YQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37-v6si11625087plb.430.2018.08.12.04.08.28; Sun, 12 Aug 2018 04:08:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728155AbeHLNdn (ORCPT + 99 others); Sun, 12 Aug 2018 09:33:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55520 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727767AbeHLNdn (ORCPT ); Sun, 12 Aug 2018 09:33:43 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2EE6D4059FE1; Sun, 12 Aug 2018 10:56:05 +0000 (UTC) Received: from [10.72.12.110] (ovpn-12-110.pek2.redhat.com [10.72.12.110]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D713C2156712; Sun, 12 Aug 2018 10:56:01 +0000 (UTC) Subject: Re: Problems with uio_pci_generic in v4.18-rc8 To: "Harris, James R" , "gregkh@linuxfoundation.org" Cc: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Michael S. Tsirkin" , "Jiang, Dave" , "Walker, Benjamin" , "Wodkowski, PawelX" References: <21BF98B1-0EA5-46BC-BC68-196190880087@intel.com> From: Xiubo Li Message-ID: <7ac09d84-31bf-4d25-dba7-0a61effa2b04@redhat.com> Date: Sun, 12 Aug 2018 18:55:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <21BF98B1-0EA5-46BC-BC68-196190880087@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 12 Aug 2018 10:56:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 12 Aug 2018 10:56:05 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'xiubli@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Harris, Since the lock protection in uio irq handler is useless currently as discussed in the mail list, so I will revert this commit with small changes and now the testing based LIO/TCMU has been finished. Thanks, BRs On 2018/8/11 5:12, Harris, James R wrote: > Hi, > > Using Linux kernel v4.18-rc8, I am unable to bind a PCI device to uio_pci_generic.  This works fine with v4.18-rc4.  dmesg shows: > > [  336.221585] genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 33 > [  336.221681] uio_pci_generic: probe of 0000:04:00.0 failed with error -22 > > This problem has been reproduced on multiple systems. > > This seems to be related to commit 9421e45f5 (“uio: use request_threaded_irq instead”) which was merged in -rc5.  Reverting this commit fixes the issue (I also reverted 543af5861f and 57c5f4df0a which also touch uio.c - just to be safe). > > This seems like a serious regression to uio_pci_generic, but any tips or pointers would be appreciated. > > Thanks, > > Jim Harris >