From nobody Fri Jan 17 04:53:46 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YZ6nt1xGgz5kR4B for ; Fri, 17 Jan 2025 04:53:54 +0000 (UTC) (envelope-from j_yoon.choi@samsung.com) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout3.samsung.com", Issuer "DigiCert Global G2 TLS RSA SHA256 2020 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YZ6nr4fhvz3nfB for ; Fri, 17 Jan 2025 04:53:52 +0000 (UTC) (envelope-from j_yoon.choi@samsung.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=samsung.com header.s=mail20170921 header.b="H/MTf7no"; spf=pass (mx1.freebsd.org: domain of j_yoon.choi@samsung.com designates 203.254.224.33 as permitted sender) smtp.mailfrom=j_yoon.choi@samsung.com; dmarc=pass (policy=none) header.from=samsung.com Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20250117045348epoutp0322eb21a62102d501b37e8941a953e96f~bYdA0SexV2403624036epoutp03L for ; Fri, 17 Jan 2025 04:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20250117045348epoutp0322eb21a62102d501b37e8941a953e96f~bYdA0SexV2403624036epoutp03L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1737089628; bh=Hu2+oVJarcQKVpUsSocmhr9+zNNHr1ZwXDoXsHr7GxI=; h=Subject:Reply-To:From:To:Date:References:From; b=H/MTf7norfCupMpJnKWzkCSpA1aaXcWOd6stl9Mr6LYCmab/44uB84OcITeBvEsaF MneNSdEf+6fBvs7kZ8JVSl+GmVHInykwpzScpt2/AldXw9qt0tr/InyzLaO5uXJ3HM kIC7VUYFpyFcjxt/6l42Z/ePfRtApap1wINJvFck= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20250117045347epcas2p4bb1244ab0606087934b45ca305d8442c~bYdAT3hg32884728847epcas2p4c for ; Fri, 17 Jan 2025 04:53:47 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.68]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4YZ6nl04hwz4x9Q5 for ; Fri, 17 Jan 2025 04:53:47 +0000 (GMT) X-AuditID: b6c32a46-48c3a7000000564e-83-6789e25af58a Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id C6.98.22094.A52E9876; Fri, 17 Jan 2025 13:53:46 +0900 (KST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 Subject: Universal Flash Storage Driver Proposal Reply-To: j_yoon.choi@samsung.com From: Jaeyoon Choi To: "freebsd-hackers@FreeBSD.org" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20250117045346epcms2p61099ea651d3ca3f00e3134dd00e6a9ac@epcms2p6> Date: Fri, 17 Jan 2025 13:53:46 +0900 X-CMS-MailID: 20250117045346epcms2p61099ea651d3ca3f00e3134dd00e6a9ac Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBKsWRmVeSWpSXmKPExsWy7bCmhW7Uo850g/4OeYvtm/8xOjB6z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ux FGckGmoxFxUnAgAj62Iw2wMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20250117045346epcms2p61099ea651d3ca3f00e3134dd00e6a9ac References: X-Spamd-Result: default: False [-4.80 / 15.00]; DWL_DNSWL_LOW(-1.00)[samsung.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[samsung.com,none]; MID_RHS_NOT_FQDN(0.50)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:203.254.224.0/24]; RCVD_IN_DNSWL_MED(-0.20)[203.254.224.33:from]; R_DKIM_ALLOW(-0.20)[samsung.com:s=mail20170921]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[203.254.224.33:from]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[samsung.com:+]; HAS_X_PRIO_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@FreeBSD.org]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:6619, ipnet:203.254.192.0/18, country:KR]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; HAS_REPLYTO(0.00)[j_yoon.choi@samsung.com] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4YZ6nr4fhvz3nfB Hello, As I mentioned in my previous email to the mailing list last year, I am planning to start developing a Universal Flash Storage Driver. - https://lists.freebsd.org/archives/freebsd-hackers/2024-July/003385.html Before I begin working on the driver, I would like to share my development plan with you. Universal Flash Storage (UFS) is a storage device for mobile devices which aims for high performance and low power consumption. UFS is currently used in most smartphones and tablets, and I believe there is a demand for UFS support in FreeBSD. The Universal Flash Storage Driver is named UFSHCI to avoid confusion with the UFS filesystem, and is located in the /sys/dev/ufshci folder. The driver will be developed based on the UFS 4.1 (JESD220G) and UFSHCI 4.1 (JESD223F) specification documents, which are the latest versions available. The latest specifications can be found at the following link: - https://www.jedec.org/standards-documents/focus/flash/universal-flash-storage-ufs My plan is to first implement a PCIe-based driver and then make it compatible with various smartphone application processors. Since UFS uses SCSI commands, we need to use the SCSI I/O path of the CAM. Please note that there is currently a UFSHCI driver in development for OpenBSD, but due to its low spec version (UFSHCI 2.1) and lack of compatibility with FreeBSD, I have decided to start from scratch. The following platforms will be used for testing: - QEMU with Emulated UFS device - Samsung Galaxy Book S (Intel Lakefield + eUFS) - Lenovo Duet3 11ian8 (Intel N100 + eUFS) After developing the UFSHCI driver, I will continue to work on additional features and keep the driver up-to-date with the latest specs. The approximate development plan is as follows: - 2025 1H: Implementation of initialization, basic operations, and single doorbell-based read/write I/O on Intel CPU-based platforms - 2025 2H: Implementation of MCQ-based read/write I/O, and implementation of additional features such as writebooster I look forward to receiving your feedback and suggestions. Best regards, Jaeyoon