Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2025 15:04:42 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c06b504def0c - main - simplebus: Stop accepting SYS_RES_IOPORT resources
Message-ID:  <202501291504.50TF4gG2032509@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c06b504def0ce10840d9415f204128b61210b5eb

commit c06b504def0ce10840d9415f204128b61210b5eb
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-01-29 15:03:37 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-01-29 15:03:37 +0000

    simplebus: Stop accepting SYS_RES_IOPORT resources
    
    Child devices handling I/O port resources (such as PCI-e bridges)
    should map those to a memory resource and pass up a request for the
    translated memory resource.
    
    Differential Revision:  https://reviews.freebsd.org/D48501
---
 sys/dev/fdt/simplebus.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index ee308c44114c..a301fb0f247c 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -461,9 +461,6 @@ simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid,
 		count = rle->count;
         }
 
-	if (type == SYS_RES_IOPORT)
-		type = SYS_RES_MEMORY;
-
 	if (type == SYS_RES_MEMORY) {
 		/* Remap through ranges property */
 		for (j = 0; j < sc->nranges; j++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501291504.50TF4gG2032509>