From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [51.163.158.102]) by mx.groups.io with SMTP id smtpd.web11.14074.1593576335398276700 for ; Tue, 30 Jun 2020 21:05:35 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: suse.com, ip: 51.163.158.102, mailfrom: glin@suse.com) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02lp2050.outbound.protection.outlook.com [104.47.4.50]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-19-Gbec3MIZPGSv2Kk8-vFqcg-1; Wed, 01 Jul 2020 06:05:31 +0200 X-MC-Unique: Gbec3MIZPGSv2Kk8-vFqcg-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F+405sJRk+0cwvdAOJ6S7sBei+A2QAYkAJh9neJ8MsKFb55G9UDiFBYW/P/m7HCqoeNH/TJ0/QYHuuekmEiHSuUcQUmSJGoNLYkzwgCtf0TALoMTVObyOCxdgte7rFnlQk3wXUxWpAT6GDCQO9QBAtq8gksZkVA3Q+8Yk6P8sm/PskNf9mWIcXi18Cnxpsj3Muw4wBdVC+6kg8xruKGdXwISfx3zaYoeGPqTPV8g2Dq8ABFc4G1nbpzpRuVA5gajb7erneR73FLU+USg3OsU+Kka+Ap5i4JpOpiiNh/0IpYwD1VwmQg2YoY4u+btrVk9TCbKTQGpufxiaRL8OxSx5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ed6ZXV9LuxCN9+fFJV8BVsiypIEE819SWOjdIwx17ek=; b=hYnZRqTpcOBpElr1NHlH6nB9R+EOn+NJNofK4jzyM+9XZv3xqwFP8UuyuaCE53jqQmnX0Zzwj3Duj6KBghvB15OlOnfx0/zHyVq3f2NsOH9NZQcwb5is+4DS/U3eTuWVZm39Qk5N0tsArWmYsGnNgypXCEtuCqm6FdBZRlYTysOmn3XHz+mEqnp4nzgN/JP2VRhwt88SXWD8TYa8TiACpmEiY5tTw4s6UWIoM1S58yjI0a7/XxBUWn5lAoNT+iHqlh+6mNXeMsJDeA9L21VCxSWBS/BjeNNSCOokbupeLlZgdY+AbKNXxC1IDwl/zwa6vDmoorL3+zCY6YO2+dGolA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=suse.com; Received: from AM0PR0402MB3809.eurprd04.prod.outlook.com (2603:10a6:208:10::30) by AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Wed, 1 Jul 2020 04:05:30 +0000 Received: from AM0PR0402MB3809.eurprd04.prod.outlook.com ([fe80::8806:715f:1409:8c6b]) by AM0PR0402MB3809.eurprd04.prod.outlook.com ([fe80::8806:715f:1409:8c6b%7]) with mapi id 15.20.3153.021; Wed, 1 Jul 2020 04:05:30 +0000 From: "Gary Lin" To: devel@edk2.groups.io CC: Jordan Justen , Laszlo Ersek , Ard Biesheuvel Subject: [PATCH 00/11] Introduce LsiScsi driver to OvmfPkg Date: Wed, 1 Jul 2020 12:04:37 +0800 Message-ID: <20200701040448.14871-1-glin@suse.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: AM0PR10CA0047.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::27) To AM0PR0402MB3809.eurprd04.prod.outlook.com (2603:10a6:208:10::30) Return-Path: glin@suse.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from GaryWorkstation.suse.cz (60.251.47.115) by AM0PR10CA0047.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21 via Frontend Transport; Wed, 1 Jul 2020 04:05:28 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [60.251.47.115] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3a1d00af-0b3a-4278-297c-08d81d73fe5e X-MS-TrafficTypeDiagnostic: AM0PR04MB4481: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 04519BA941 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZCQ2W0znMxqh931/lX5izJgsCptNcuxb7vpI/GprXcutMXgmNrpbJrrP54LwZlpItsixma8pvhx5LEypElse/289xtMJ0TTvR9xYg+MqU/ZtxvEC5iwAmoo7eUyuOyCDLjJEexlKhjOSp0psewwupGTga6fIjiOwbzSwzHSi0TxCk7Pn8W41lV9050Bkn5kiY0anDNszrlHqZu3lGU4b6acmYpa70ifQCfwp50RBQNt9T3tMJPZbozhMH+QnujBDNYeNydoAwFQTU0yuY5G6apDxPlMxg7uzgddJRv019vwNewFI8JVIbMIv86/CScE/tuW34v4Ji22U6IiYyWQHaMUFarZH9/4PN8EVyqw1PlnOp7570qrvoWeS/2tVI+IthEHORDOUaZd2oR3julo+jpHA6F6Ab2lNmQg/WpcC3YT6MHgAbE6uv77AMi+TXXIHQEeFU9gq++a/1Izk6ikx1Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3809.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(366004)(136003)(376002)(39860400002)(396003)(346002)(2616005)(83380400001)(26005)(54906003)(4326008)(16526019)(1076003)(956004)(86362001)(19627235002)(6506007)(186003)(6666004)(66476007)(66556008)(8936002)(6486002)(52116002)(6916009)(5660300002)(966005)(8676002)(36756003)(66946007)(55236004)(316002)(6512007)(478600001)(2906002)(156123004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XdbVK7QUehSMj8bnk0LTRNWDmn2bmNQb9+N9fQ7Xb1sAjJ5jOnj9QjEgNfwACbxANlDnLZEe6Q5oUiQPFzARJAmA7VzG7B2d5UnYecgZHzsFE7ZJZEuICDHOYLRLYLEzV0D8UwR1jgkdXj8pv7Qu9knzyW+qmuhkq57MLSKgK3+0enMQBUusCBDxC18Yhe7XEQr7QdidotOOvDcQOiaBJQ9FS02smyNoEF4uxbqO8PgUPTsF14VxV4aRtd70J/ADa7SDgRs5rOGnr9jZUTolg6Pp9aNXysPGxkXzsW2DSW5rv5H64DQ9biSCUA6ftXFcRgNFhkyQy8iuP0aiQRxDj1gHww+YsvWM/Lr5wuKrTfjoDpCxY9gxuTSkonR/QFXcwwuy7IBAskEGx0MCPw0YVheGi/KoH5imhJJYy7v2GUDHUOBTBDL3INf4z35As+NP8E/eFSpByQZsP9NxrR4zfKcj/nly2rVYxKcEa4WGPs0= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a1d00af-0b3a-4278-297c-08d81d73fe5e X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3809.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2020 04:05:30.2941 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bxsCM6noa1uJusYa9z7Bgm0y11l0Sel5cKlXyzH/D2OKAGpwp1MlgQgW8PmhVoCw X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4481 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This patch series implement the driver for LSI 53C895A SCSI controller for OVMF so that the user can access the storage devices connected to QEMU "lsi" controller. The driver is disabled by default since LSI 53C895A is considered as a legacy device. To enable the driver, please add "-D LSI_SCSI_ENABLE" when building OvmfPkg. The patch series is also available in my git branch: https://github.com/lcp/edk2/tree/ovmf-lsi-v1 Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Gary Lin (11): OvmfPkg/LsiScsiDxe: Create the empty driver OvmfPkg/LsiScsiDxe: Install the skeleton of driver binding OvmfPkg/LsiScsiDxe: Report the name of the driver OvmfPkg/LsiScsiDxe: Probe PCI devices and look for LsiScsi OvmfPkg/LsiScsiDxe: Install stubbed EXT_SCSI_PASS_THRU OvmfPkg/LsiScsiDxe: Report Targets and LUNs OvmfPkg/LsiScsiDxe: Open PciIo protocol and initialize the device OvmfPkg/LsiScsiDxe: Map DMA buffer OvmfPkg/LsiScsiDxe: Examine the incoming SCSI Request Packet OvmfPkg/LsiScsiDxe: Process the SCSI Request Packet Maintainers.txt: Add myself as the reviewer for LsiScsi driver Maintainers.txt | 4 + OvmfPkg/Include/IndustryStandard/LsiScsi.h | 80 ++ OvmfPkg/LsiScsiDxe/LsiScsi.c | 1130 ++++++++++++++++++++ OvmfPkg/LsiScsiDxe/LsiScsi.h | 199 ++++ OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf | 46 + OvmfPkg/OvmfPkg.dec | 8 + OvmfPkg/OvmfPkgIa32.dsc | 4 + OvmfPkg/OvmfPkgIa32.fdf | 3 + OvmfPkg/OvmfPkgIa32X64.dsc | 4 + OvmfPkg/OvmfPkgIa32X64.fdf | 3 + OvmfPkg/OvmfPkgX64.dsc | 4 + OvmfPkg/OvmfPkgX64.fdf | 3 + 12 files changed, 1488 insertions(+) create mode 100644 OvmfPkg/Include/IndustryStandard/LsiScsi.h create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsi.c create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsi.h create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf --=20 2.25.1