Received: by 10.223.164.221 with SMTP id h29csp815268wrb; Fri, 27 Oct 2017 07:03:59 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RiSITFdFCxXDzCeRTSdEQrVBgdDr+v683HQ0dBl5hMmJUZA9x/uWH5W/B0vsn+UG8aySed X-Received: by 10.98.166.205 with SMTP id r74mr564754pfl.285.1509113039619; Fri, 27 Oct 2017 07:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509113039; cv=none; d=google.com; s=arc-20160816; b=qWTTFgke3ZIG5tBW+yM+qDneUKRPDlJNNUCJBT94DWlIPqIin39z0Gk4JDAskkvlq2 hbrVqnwpOQvwnlomheqqt2qWDJGNh2m+tefBw5JHxAZ5jFkaq+khpJX4tNegY/OdMa7v BX9uyphXUk0etmERQIGXCFU7CgWhLxVMshjKMsYbPBdhwA27t1rfM74Yp5C0CCcPwSm6 pESTqvYVLy/1R6p7V1KSVyoGGYSrHbNkq9o2YVsLUcNZ0MhQscL5tD+PoVyjykwV3yCT wwhpjhwkHwtW2HpRFmm+4/Io1ZA97hJkjT5VIHJA/yI0w4cGGCOs/X2spc6JdkeYX7g8 Dedg== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=uPUjrJLlf6XcncJZLstelN1zJYFoZR2OWWR8IC9/5jE=; b=f5NJ0YhYL9gzKoE95AogwPPFHPpAIThbfd71WAR0Ryj8l/Qc198ZIJ6cHSgqhotnNd ZpUeCzju4MP//1WiRhHsrLXce/GhntYNTNAoFExbWMVsdopu9b6MGEqYY+w2FTVKfjDE AecTl5knpYZhJ7S540W/B7AXTgI57xzogFxIfoeBymx8eSrNfYcNDCJ2LMq4yOQKqTta +g7cuq2b7xu5mIpGfLx/0Swp9Riz0Du1+4GHpkWOm/YMSbKWnHPI/SZaxQIDz8Y7KLgD CTX7jcpUuQoPISH6L7vgV7ECkcoivaqnw78WIYahKE+9ccLg/bKA1TIRTEVjVRWNtSwS /GrA== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21si5406140pfb.168.2017.10.27.07.03.45; Fri, 27 Oct 2017 07:03:59 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751460AbdJ0OCw convert rfc822-to-8bit (ORCPT + 99 others); Fri, 27 Oct 2017 10:02:52 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59309 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbdJ0OCs (ORCPT ); Fri, 27 Oct 2017 10:02:48 -0400 Received: from mail-qt0-f198.google.com ([209.85.216.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1e85Dj-0003H5-Ll for linux-kernel@vger.kernel.org; Fri, 27 Oct 2017 14:02:47 +0000 Received: by mail-qt0-f198.google.com with SMTP id y45so4686006qty.17 for ; Fri, 27 Oct 2017 07:02:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Vv3mXmUXH+uPCbTnFPxEfNsXNfJgZZfUtmzS6OYCNvA=; b=QGLHMEFiqS8KQBAi8BAjAAb5R7NlKmtGktesK3GRwYnj58CiX2O35Obl7mekVLhe/n EjkmimXFtU/bzBdu7xRmgWh6JtaTGgYEs/lVSaaJ/5LuMu39FjItSEfWEjFec23mxdyP VAzwckE6UfqD4AmTPOQyBJpEjqb0d0/v+Autn3dcFkuMzxzpTCiDbFxNUF6cz+4lO34l 4miLzQyQ0p46t4I+kTASJKYypZTimwJYNwuDzz7/nbc2MCuopkDH/lKOpLT/qaw6A5Xm TRe0asiQowlNh/6sKKBN0ilKgEAqLVuEtcX8vb7WU1RIOu6kjT1J5B3vdGjNrqgMfGeE Nfgw== X-Gm-Message-State: AMCzsaXHNdvyrYnQvmRylC4JflhQklO2aOzyO+Fd2YZnyBCk9D5DE55+ x2j0tr/H/xhESGgUh6vIWLGo6jyGJfNeHLQARwCKQy2Nn41P1CA0ps6srh8tSD4JrDJp/IZFA1j 72XradWG1Kaa/ylxJ7yhDdkdVmk98qVshI4QOaCe1OietLxLWokr5nGFRlw== X-Received: by 10.200.44.77 with SMTP id e13mr1032141qta.238.1509112966398; Fri, 27 Oct 2017 07:02:46 -0700 (PDT) X-Received: by 10.200.44.77 with SMTP id e13mr1032107qta.238.1509112966059; Fri, 27 Oct 2017 07:02:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.59.114 with HTTP; Fri, 27 Oct 2017 07:02:45 -0700 (PDT) In-Reply-To: References: <1ad520f6-a1d8-5ce7-ee74-83edfdbfd39b@suse.de> From: Gavin Guo Date: Fri, 27 Oct 2017 22:02:45 +0800 Message-ID: Subject: Re: mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware To: Hannes Reinecke Cc: linux-scsi@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hannes, Thank you for looking into the issue. If there is anything I can help to test the patch? I appreciate your help. Thank you. On Fri, Oct 6, 2017 at 9:08 AM, Gavin Guo wrote: > On Mon, Oct 2, 2017 at 10:32 PM, Hannes Reinecke wrote: >> On 09/27/2017 09:33 AM, Gavin Guo wrote: >>> There is a problem in the latest upstream kernel with the device: >>> >>> $ grep -i lsi lspci >>> 03:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios >>> Logic SAS1068 PCI-X Fusion-MPT SAS [1000:0054] (rev 01) >>> >>> The device is simulated by the VMware ESXi 5.5 >>> >>> When hotplugging a new disk to the Guest Ubuntu OS, the latest kernel >>> cannot automatically probe the disk. However, on the v3.19.0-80.88 >>> kernel, the disk can be dynamically probed and show the following >>> info message: >>> >>> mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 1, phy 1, >>> sas_addr 0x5000c29a6bdae0f5 >>> scsi 2:0:1:0: Direct-Access VMware Virtual disk 1.0 PQ: 0 >>> ANSI: 2 >>> sd 2:0:1:0: Attached scsi generic sg2 type 0 >>> sd 2:0:1:0: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB) >>> sd 2:0:1:0: [sdb] Write Protect is off >>> sd 2:0:1:0: [sdb] Mode Sense: 61 00 00 00 >>> sd 2:0:1:0: [sdb] Cache data unavailable >>> sd 2:0:1:0: [sdb] Assuming drive cache: write through >>> sdb: unknown partition table >>> sd 2:0:1:0: [sdb] Attached SCSI disk >>> >>> After looking up the message: >>> mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 1, phy 1, >>> sas_addr 0x5000c29a6bdae0f5 >>> >>> I found it comes from the path: >>> mptsas_firmware_event_work -> mptsas_send_sas_event -> >>> mptsas_hotplug_work -> mptsas_add_end_device >>> >>> I'll appreciate if anyone can give the idea: If it's possible that the >>> irq from the simulated LSI SAS controller didn't come in to trigger >>> the event? However, it can work on the v3.19 kernel so if there is >>> any driver implementation issue in the latest kernel. >>> >> This is an issue with the mptsas driver, who originally assumed that no >> system will have direct-attached SAS devices. >> VMWare chose to implement exactly that, so the hotplug detection logic >> is flawed here. >> I'll be sending a patch. >> >> Cheers, >> >> Hannes >> -- >> Dr. Hannes Reinecke Teamlead Storage & Networking >> hare@suse.de +49 911 74053 688 >> SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg >> GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton >> HRB 21284 (AG Nürnberg) > > Thank you in advance. Please add me to the CC list when you send out > the patch and I can help to verify that. From 1580468458747068756@xxx Fri Oct 06 01:09:36 +0000 2017 X-GM-THRID: 1579677274363332634 X-Gmail-Labels: Inbox,Category Forums