Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4461942img; Tue, 26 Mar 2019 09:50:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyopvooyrfSdK+xFo7KQ3Hcpj3ngzl2xiPbT8fMo+STQY5awKqjRvOVofjc0sxUFVcvA23U X-Received: by 2002:a17:902:9893:: with SMTP id s19mr32425303plp.165.1553619026138; Tue, 26 Mar 2019 09:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553619026; cv=none; d=google.com; s=arc-20160816; b=i5CHqrG0DeuWanS4w1pf38DqaBmLdVozkAQAMbAvr8EVkcdIn/FpHptB7/F/G4is20 jKicISuf64W0rEqgm00NMcKJR7ojLl73a6s9psVZ3GjTGsw0zsQqgtVvV6BOdiX1usLo bYV1R58yuSYTH2iiQ/jMBH/U8PzE4fYlabsNJxd/Wd2V9AC235FsSO2Pom7J7xeK1xhG g1lVaBRVtmHOkkEkmC/7M+F/YB+A5UIhwuzQxGOby/L1fKgeKEaX21F2f4YZWxvt6+a6 xrHGsdGebFzPTyZlBKLITQ1IxNriSlK23MhQU6/cVxb/Tk3sN0p9uMZHBhX9xb1u57S/ fnFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:subject:cc:to:from:date:message-id :mime-version:dkim-signature; bh=dKjyO/FnSBGo51IMvNBbqDJzxKeQazWW9tRRvGN4jGg=; b=DVQgXqHhbBwZonKrQ6ij+9odHgoAFdOgd/Zuj11WNeTkrn5UCOf7mJWAWs2vj+INAL WU7xSxgSmaYmyon4PV9ZQiqm+qvEH6cj+1zkMZYwWTe6t9nH3tCQz6TsCRs2ZBWvbAr3 mfYb3OjcUsIJqHnk5+M1RtARynaB+POoDpfu4ECG1+PgZa6F+qyjMfWnWaIhT3SOU/YZ NapVcKTXbtUkT5kHiXwx5z8m+pBsBSgE/FXhcJyYQmWyTHSsEISEcm/KdD3rrSWHLRdI mwW2sfwKSwXowQhOMOU5luFZcues6aRNLXeDcs1IOBgUR56zFdy4DLEZM3bdduJerKCx 1QXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=yVZqQAMd; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si16364123pgh.273.2019.03.26.09.50.10; Tue, 26 Mar 2019 09:50:26 -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=@oracle.com header.s=corp-2018-07-02 header.b=yVZqQAMd; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731904AbfCZQsG (ORCPT + 99 others); Tue, 26 Mar 2019 12:48:06 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:38756 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731703AbfCZQsD (ORCPT ); Tue, 26 Mar 2019 12:48:03 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2QGdWkw001457; Tue, 26 Mar 2019 16:47:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : to : cc : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=dKjyO/FnSBGo51IMvNBbqDJzxKeQazWW9tRRvGN4jGg=; b=yVZqQAMduyM3DQtPFuoZmprJiv2vqyTSKgZFHqTrApqBttL6glO1OHHjQLZNnYBQnzam 54oODSAnp+FUj3yOGG53y5YTdekrbypGR/vXbtWpngf9QEv6u38LvNDMYACAKXzid9oD vMEzHzNRgk9VVIMu/kpp2qphJLtHe2UdFrCrG/frW8yBOVl4vo0Sl7NZkd+rlB8KdJwl VVxkWThvbyO69P/ITooiDjJgjPuomJ6aescXsjxWXfbOqd9aTEIF6DMG+nGUMbosTi9W TO9o6nkCb/b6A+LznZ1MkntpAtz1wL3pzJUjqn2TogY4Ik+GK+Xd1cVl++NSSE3r45Pf Qg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2re6g13n90-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Mar 2019 16:47:57 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2QGlpk3026262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Mar 2019 16:47:52 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2QGloUc032010; Tue, 26 Mar 2019 16:47:51 GMT MIME-Version: 1.0 Message-ID: <9c3849cf-86c6-4568-bff5-1050b445322d@default> Date: Tue, 26 Mar 2019 09:47:50 -0700 (PDT) From: Dongli Zhang To: , , Cc: , Subject: megasas: Unexpected response from lun 1 while scanning, scan aborted X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9207 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=679 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903260116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am reporting an error that the scsi lun cannot initialize successfully wh= en I am emulating megasas scsi controller with qemu. I am not sure if this is issue in qemu or linux kernel. When 'lun=3D1' is specified, there is "Unexpected response from lun 1 while scanning, scan aborted". Everything works well if 'lun=3D0' is specified. Below is the qemu cmdline involved: -device megasas,id=3Dscsi0 \ -device scsi-hd,drive=3Ddrive0,bus=3Dscsi0.0,lun=3D1 \ -drive file=3D/home/zhang/img/test.img,if=3Dnone,id=3Ddrive0,format=3Draw Below is the syslog related to 'scsi|SCSI' # dmesg | grep SCSI [ 0.392494] SCSI subsystem initialized [ 0.460666] Block layer SCSI generic (bsg) driver version 0.4 loaded (ma= jor 251) [ 0.706788] sd 1:0:0:0: [sda] Attached SCSI disk # dmesg | grep scsi [ 0.511643] scsi host0: Avago SAS based MegaRAID driver [ 0.523302] scsi 0:2:0:0: Unexpected response from lun 1 while scanning,= scan aborted [ 0.540364] scsi host1: ata_piix [ 0.540780] scsi host2: ata_piix [ 0.702396] scsi 1:0:0:0: Direct-Access ATA QEMU HARDDISK 2.= 5+ PQ: 0 ANSI: 5 When 'lun=3D1' is changed to 'lun=3D0', there is no issue. Thank you very much! Dongli Zhang