Received: by 10.223.164.221 with SMTP id h29csp3230639wrb; Fri, 3 Nov 2017 04:00:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TwqDN1uA7k7AABEXzt4lrvpwlEU8ibUW/TAUUZkG7LrELUwq9v+PoilO+nDqJwvdcSLB6t X-Received: by 10.98.24.80 with SMTP id 77mr7355790pfy.195.1509706820222; Fri, 03 Nov 2017 04:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509706820; cv=none; d=google.com; s=arc-20160816; b=Qg53v6kwfuSmiaHJBlgD9Xxp4k0qAY0riys0KC6B2PK5cvKZlZRIlWk10ZxmhIWhoD 51JdxjH7oXmscungIhKKz6SDOGFJf7FbYC77gYKBvOADqFdsGvp8QKqx2LD4gye9loIh 5piqftxVSrIWDi18kEmi5vFGJncr1uq4bFbjzhzzFBzv0XkfaOQ/GAemzCr+Lmo1iySt gTJLq/Pjr4KsIXOm6qBvPSWBAkC6xMUgxKAPMv4K/uhqjzmxSAj452IJXqyp4sCaGlLa ZwqqCN/tja2ydt/2Q5XL7LnaNBtJDiGOHPutZPilxGX1IywJw7oJmljEGcIoW16LkPjI wDOQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=uDizgYtEuRE2NTmEgvoYKs7LGvsxdCw16D2fIo0k/IU=; b=NZChzhu0XYttqr0RVq657iBDZRuMt0CXNBxWTDmfHsswHtr4r2HHUGoIP3wMg8l8j0 ffSefgAtr3e3rCQXCBxQRLGrHQlaXcdySvqpx3Ne2iDk2MrqNe8aER/JtX/zrUGmHE4J lgPtOsuv6/0h7Pp2knUG36OgljuVs65c6Cmfv6JoLaQLUpcp1h2D4ji7q4gyC4L7uaSd DUXXKj0tEj4W68H0a55++fuq/zSTAULsqW5/5nR5v6WJbzS/Vsszpj+NCCvlPMcQ+izh dGUcjCKNKlEBiG9SWhBR0tZv0TFZSSmQquqt4ASorfBfUJy1c1/0UYPQ4cs3otIHPsWU 5MLA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si3874610plr.486.2017.11.03.04.00.06; Fri, 03 Nov 2017 04:00:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756071AbdKCK7R (ORCPT + 97 others); Fri, 3 Nov 2017 06:59:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:41732 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755967AbdKCK7P (ORCPT ); Fri, 3 Nov 2017 06:59:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 43B77AC77; Fri, 3 Nov 2017 10:59:14 +0000 (UTC) Subject: Re: mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware To: Gavin Guo Cc: linux-scsi@vger.kernel.org, linux-kernel References: <1ad520f6-a1d8-5ce7-ee74-83edfdbfd39b@suse.de> <486fc58e-ac8f-cb48-4757-0b9a8e1c2121@suse.de> From: Hannes Reinecke Message-ID: Date: Fri, 3 Nov 2017 11:59:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) From 1583014624689987804@xxx Fri Nov 03 03:39:50 +0000 2017 X-GM-THRID: 1579677274363332634 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread