From 55906bae5af55b7f380fe17e1e3b073ca9fb6b4d Mon Sep 17 00:00:00 2001 From: mglocker Date: Fri, 19 Apr 2024 20:43:33 +0000 Subject: [PATCH] As of the documentation, the UTP Command Descriptor Base Address (UCDBA) needs to be aligned on a 128-byte address. This fixes an issue seen on the PCI controller, where a DMA transfer scheduled on a odd slot will fail. --- sys/dev/ic/ufshcireg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/ufshcireg.h b/sys/dev/ic/ufshcireg.h index 4893d1ea6bd..d251c5f35f1 100644 --- a/sys/dev/ic/ufshcireg.h +++ b/sys/dev/ic/ufshcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshcireg.h,v 1.4 2024/01/04 21:02:30 mglocker Exp $ */ +/* $OpenBSD: ufshcireg.h,v 1.5 2024/04/19 20:43:33 mglocker Exp $ */ /* * Copyright (c) 2022 Marcus Glocker @@ -362,4 +362,4 @@ struct ufshci_ucd { struct upiu_command cmd; struct upiu_response rsp; struct ufshci_ucd_prdt prdt[UFSHCI_UCD_PRDT_MAX_SEGS]; -}; +} __packed __aligned(128); -- 2.20.1