From nobody Thu Apr 25 01:32:11 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) client-ip=80.81.252.135; envelope-from=seabios-bounces@seabios.org; helo=mail.coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=oracle.com Return-Path: Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) by mx.zohomail.com with SMTPS id 1541085369068948.6817725702352; Thu, 1 Nov 2018 08:16:09 -0700 (PDT) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.88) (envelope-from ) id 1gIF30-0000ia-5f; Thu, 01 Nov 2018 16:38:14 +0100 Received: from aserp2120.oracle.com ([141.146.126.78]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88) (envelope-from ) id 1gIF2k-0000eB-J4 for seabios@seabios.org; Thu, 01 Nov 2018 16:38:12 +0100 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wA1ExEPU118183; Thu, 1 Nov 2018 15:15:24 GMT Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2ncfyq9h6j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Nov 2018 15:15:24 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wA1FFM3H029061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Nov 2018 15:15:23 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wA1FFM9o008249; Thu, 1 Nov 2018 15:15:22 GMT Received: from spark.ravello.local (/213.57.127.2) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Nov 2018 08:15:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=g+2Bc/yYJ2GknFB8YFURDKmdWYKZ+4PHhOi8mQpzxPs=; b=d+slQLx0MrDIera3R3hn8zyrrtRD4wBm0YEcJA/2minkC+kjscdbH/0YnR/Q4gwhy3Ab UX9vEnhapRl/UVKw/0/K4t2HTQlRC0cai+IpDJLmAZwPqtKRgUOhmSWHOQGsRJEIEr3+ HFEzS2e2bIb1MPyqHezDKLzW0diaMjzpsmSKk5mBK8B9rQAWx5aWHMkTXyKx+bDx+CZU obmzVsLsi79os/ZgG9zguRp5/lCQ5wElAdNgSuE5qIaMHRJQRKA94sM1LLsz2nM1bui1 uAd3DDEMuie/MhxSHQoZTrgiTEUiWsdma/oVhAZP2r91W8syKvhwONhGa0KPueqW1WhG OA== From: Shmuel Eiderman To: seabios@seabios.org, kraxel@redhat.com, kevin@koconnor.net Date: Thu, 1 Nov 2018 17:14:42 +0200 Message-Id: <20181101151442.99296-1-shmuel.eiderman@oracle.com> X-Mailer: git-send-email 2.16.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9064 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=774 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811010130 X-Spam-Score: -5.1 (-----) Subject: [SeaBIOS] [PATCH] pvscsi: Scan all 64 possible targets X-BeenThere: seabios@seabios.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SeaBIOS mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: liran.alon@oracle.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: seabios-bounces@seabios.org Sender: "SeaBIOS" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" The max number of targets per PVSCSI controller is 64, not 7. This can easily be seen in QEMU PVSCSI emulation code (hw/scsi/vmw_pvscsi.c) as PVSCSI_MAX_DEVS, which defines the number of targets, have value of 64. Fixes: 83d60b3c474b ("Add pvscsi boot support") Reviewed-by: Liran Alon Reviewed-by: Mark Kanda Signed-off-by: Shmuel Eiderman --- src/hw/pvscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c index d62d0a0..e0ea33c 100644 --- a/src/hw/pvscsi.c +++ b/src/hw/pvscsi.c @@ -310,7 +310,7 @@ init_pvscsi(void *data) struct pvscsi_ring_dsc_s *ring_dsc =3D NULL; pvscsi_init_rings(iobase, &ring_dsc); int i; - for (i =3D 0; i < 7; i++) + for (i =3D 0; i < 64; i++) pvscsi_scan_target(pci, iobase, ring_dsc, i); } =20 --=20 2.16.1 _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios