NetBSD Problem Report #58308
From www@netbsd.org Tue Jun 4 21:28:39 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5C78A1A9238
for <gnats-bugs@gnats.NetBSD.org>; Tue, 4 Jun 2024 21:28:39 +0000 (UTC)
Message-Id: <20240604212838.18D0E1A923A@mollari.NetBSD.org>
Date: Tue, 4 Jun 2024 21:28:38 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: x86 bus_dmamem_map lacks BUS_DMA_PREFETCHABLE support
X-Send-Pr-Version: www-1.0
>Number: 58308
>Category: port-amd64
>Synopsis: x86 bus_dmamem_map lacks BUS_DMA_PREFETCHABLE support
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: riastradh
>State: needs-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 04 21:30:01 +0000 2024
>Closed-Date:
>Last-Modified: Tue Jun 04 22:17:52 +0000 2024
>Originator: Taylor R Campbell
>Release: current, 10, 9, ...
>Organization:
The NetDMA Prefoundation
>Environment:
x86
>Description:
x86 bus_dmamem_map ignores BUS_DMA_PREFETCHABLE, so the mapping is normal (write-back, cached) rather than prefetchable (write-combining but not cached).
>How-To-Repeat:
code inspection
>Fix:
Yes, please!
>Release-Note:
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58308 CVS commit: src/sys/arch/x86/x86
Date: Tue, 4 Jun 2024 21:42:59 +0000
Module Name: src
Committed By: riastradh
Date: Tue Jun 4 21:42:58 UTC 2024
Modified Files:
src/sys/arch/x86/x86: bus_dma.c
Log Message:
x86: Teach bus_dmamem_map about BUS_DMA_PREFETCHABLE.
PR port-amd64/58308
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/x86/x86/bus_dma.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: port-amd64-maintainer->riastradh
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Tue, 04 Jun 2024 22:17:52 +0000
Responsible-Changed-Why:
mine
State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 04 Jun 2024 22:17:52 +0000
State-Changed-Why:
maybe needs pullup-10, pullup-9
(but let's wait a few weeks in case trouble arises)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.