Received: by 10.223.164.221 with SMTP id h29csp13865wrb; Fri, 3 Nov 2017 04:55:29 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Rz1k7uM7YndVQ+S6NIfZq9nUl41VrC/bZC2rQd9BZMFikh7VDtW1pOdnHPwPXJ9P+mEEnS X-Received: by 10.98.220.151 with SMTP id c23mr7464990pfl.126.1509710129602; Fri, 03 Nov 2017 04:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509710129; cv=none; d=google.com; s=arc-20160816; b=QC8LKWnr4khJFpoP0WggSvT7mjRKrUZODGrunJD3EvQVTWUbp0X9/ZddXgQ+VKPB5B 5uBULMoZ9Po8NSOPHyaHbARF2eBJBxFBtGooRglpjCB7Cz4ekFsQrhsZwMwpAss6o6zH WCIFPqkZj55T5AehpcAoUejY6JRKJY9gEeNyQwJtUxB6Vc8IQZVHRfdDX0fDeJRCBZgN KobDu+E7al/8ouwhaRtfCC73pfGLCccQ8SkyiB5ihPz+PAkwMQmx6EZ8YpqztSRhVWY/ +Gc5mFRLF72Z2LIsefo/RhNRSqebCL8fzmK3FMrl81A1r3uDzoqFedRqe/NkzOneo/0e k43w== 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=nmUsEd4/cc/j4BRBcyULx3WoNnk4GE3Yo7qgIsYReQo=; b=keMFRF+4IwAMLAy42HPFRciFD5FrLbdeenEPEptrSA3zG+Q2mhDUpNp4V4xrpY1L+x acTOur00RmSqgS1RsFzz3EW3WrVsiwHWiKLQLqZAGBgT2krKoGcmr2is6rTNBXVHTI9D N5fz+YKxxD8ksFgblvEFHJ7TF1ECxW76XjIRGy+G1hatbho2zPs+X9W8AZzYNAI77fq3 tFiIrsa8uZRplQ7uyvxyVEgEVsMv0xWvQ2jwAuoHHBQrnSeoIpkCDcKiqEY1fl8JUin6 kjiE0yD6WzwTBcvFIQPJ9tLk1TUSXbasjf2EKG7RE4uEuWa2KVPVGR/sAXgO7DkHclHv 8CBw== 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 s124si5685635pgc.364.2017.11.03.04.55.15; Fri, 03 Nov 2017 04:55:29 -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 S1756141AbdKCLy2 convert rfc822-to-8bit (ORCPT + 97 others); Fri, 3 Nov 2017 07:54:28 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:54789 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753007AbdKCLyZ (ORCPT ); Fri, 3 Nov 2017 07:54:25 -0400 Received: from mail-qk0-f200.google.com ([209.85.220.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1eAaYK-0005Gg-O5 for linux-kernel@vger.kernel.org; Fri, 03 Nov 2017 11:54:24 +0000 Received: by mail-qk0-f200.google.com with SMTP id d67so1806141qkg.3 for ; Fri, 03 Nov 2017 04:54:24 -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=6H/sG/WP7lC+cHD76VpAbNa6OFs4+5rPRkLnK48d66Q=; b=g383nmGwZnyuS3yY0Y4jTdDUz8IzrtIpCZTtefKsp9dyoVWylRbYoL36KSoI+B/0XS iGwMsun86KC5pvLws+DIKW5PUnlJipOQfZBJYFk5dyCWUPqMvz4Fik3UVvXolR1G69s/ jEFV8NgfWndpK+2imEGYg8k/ObVjiK6IS4IEciRtVyK/V/hpwaYFEar884Ce2RzLP7E/ M1qbZ0VvOiVp1Wuw0FKY3KAlQdEllqKHw+w/9MLoymTMoZXmYOJrcohNPUOTDhHuNSTQ seYWp5k738XOkxGA9dHL7VHCnOPk3MKZvkriZD/Yfpb8YGCDJ/IdWCh8dsJbMIm2r+b3 1Y7A== X-Gm-Message-State: AJaThX6eWpr+yirmCqK2sHrxvSaNFFyCQjIyCKHLgFeb1DPy0XMfgomU G5eq+yEu028jxLwYVp7Fzrcq7IZ1Q7ueNM3qlOddeATEmC6BUtmMIDSSGnRCJL5Bp1gPIWdOJYk NbJ357iqKmJ0xTv6IrgPz8J8KIYIN119ik0qpzWBbqYsCKeim/xpOZ13XWg== X-Received: by 10.55.93.135 with SMTP id r129mr9040258qkb.36.1509710063413; Fri, 03 Nov 2017 04:54:23 -0700 (PDT) X-Received: by 10.55.93.135 with SMTP id r129mr9040236qkb.36.1509710063126; Fri, 03 Nov 2017 04:54:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.59.114 with HTTP; Fri, 3 Nov 2017 04:54:21 -0700 (PDT) In-Reply-To: References: <1ad520f6-a1d8-5ce7-ee74-83edfdbfd39b@suse.de> <486fc58e-ac8f-cb48-4757-0b9a8e1c2121@suse.de> From: Gavin Guo Date: Fri, 3 Nov 2017 19:54:21 +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 On Fri, Nov 3, 2017 at 6:59 PM, Hannes Reinecke wrote: > On 11/03/2017 04:38 AM, Gavin Guo wrote: >> On Sat, Oct 28, 2017 at 11:35 AM, Gavin Guo wrote: >>> On Fri, Oct 27, 2017 at 10:53 PM, Hannes Reinecke wrote: >>>> On 10/27/2017 04:02 PM, Gavin Guo wrote: >>>>> 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. >>>>> >>>> If you had checked linux-scsi you would have found this patch: >>>> '[PATCH] mptsas: Fixup device hotplug for VMWare ESXi', which I guess is >>>> already scheduled for inclusion in 4.14. >>>> Anything else I could help you with? >>>> >>>> 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) >>> >>> Really appreciate your help. I will proceed the testing and keep you posted. >> >> Hello Hannes, >> >> I've tested the MPT SAS device controller, the patch works perfectly. >> However, the MPT SPI still cannot work with the hotplugging. The lspci >> of the LSI SPI device is listed: >> >> 00:10.0 SCSI storage controller [0100]: LSI Logic / Symbios Logic >> 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI [1000:0030] (rev 01) >> Subsystem: VMware LSI Logic Parallel SCSI Controller [15ad:1976] >> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- >> ParErr- Stepping- SERR- FastB2B- DisINTx- >> Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >>> TAbort- SERR- > Latency: 64 (1500ns min, 63750ns max) >> Interrupt: pin A routed to IRQ 17 >> Region 0: I/O ports at 1400 [size=256] >> Region 1: Memory at feba0000 (64-bit, non-prefetchable) [size=128K] >> Region 3: Memory at febc0000 (64-bit, non-prefetchable) [size=128K] >> [virtual] Expansion ROM at 40008000 [disabled] [size=16K] >> Kernel driver in use: mptspi >> >> The vendor id/device id[1000:0030] can also be found in the >> mptspi_pci_table(drivers/message/fusion/mptspi.c). >> >> PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_53C1030 >> >> If there is anything I missed in the testing? I appreciate your help. >> > Don't. Ever. Try. > > SCSI Parallel hotplugging is so loosely defined that essentially every > vendor can (and did!) implement their own thing, and _still_ be spec > compliant. > Plus there is no guarantee that we even see events when a hot-add > occurs. So any thingie we put in here has a really high chance of > breaking other installations. > I wouldn't even bother to attempt this; it's virtualized anyway so you > can as well switch to the SAS emulation here. > Or use a different SCSI parallel emulation like the Symbios/LSI 53c800 one. > > 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) Hello Hannes, I totally understood your concern and appreciate your help again on the hotplugging patch for MPT SAS controller. :) From 1583042338608200416@xxx Fri Nov 03 11:00:20 +0000 2017 X-GM-THRID: 1579677274363332634 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread