mirror of
https://github.com/lemonade-sdk/mac_linuxgpu.git
synced 2026-11-22 23:57:31 -10:00
The display's rejoin with LSE loaded knocked the GPU "off the bus" on 248 and 249. The new framebuffers' pin evicted LSE's VRAM, and the eviction's SDMA copy maps its window through amdgpu_ttm_map_buffer. That calls amdgpu_gart_map, and amdgpu_gmc_set_pte_pde writes the PTEs into the copy job's IB, which is ordinary process memory, with writeq(). Linux allows this. The DriverKit accessors decoded every address outside the BAR0 aperture as a synthetic token (address / 256 GB), so the IB at 0x127849020 became token 0, "a lost mapping". The first such write recorded a definite MMIO transport fault, which closes PCI admission and quarantines DMA. Upstream then reported "device lost from bus" with the GPU still on it, and every client's work hung. The fault's call chain (next commit) named the site. The encoding also overlapped real memory in the other direction. A process mapping above 256 GB decoded as a live token, and a store to it went to that token's BAR. Tokens now start at 2^48, above the arm64 user VA ceiling, where no process memory can be. Token 0's range is never minted. Decoding means "inside that range", nothing else. readX/writeX, memcpy_toio/fromio and memset_io go to: - the BAR0 aperture: the kernel, as before; - the token range: MMIO for a live token, a loud fault for a stale or never-minted one; - below 4 GB (__PAGEZERO, a null-based bug): a fault, as before; - anything else: a plain load or store, ordered as Linux orders readX and writeX. test_mmio_dk_accessors checks: - a live register token goes to MMIO; - PTE writes into an IB through amdgpu_gmc_set_pte_pde's own expression are plain stores, as are memset_io and memcpy_to/fromio on heap memory; - a process mapping that the old scheme decoded as the live register token is plain memory; - a stale token, token 0's range and a null-based address still fault and touch nothing.
521 lines
15 KiB
C
521 lines
15 KiB
C
/* linuxu: SHIM (third_party/linux/include/linux/io.h) - MMIO over driverkit window
|
|
*
|
|
* Host-backend readl/writel family: pci_iomap() hands out a fake-MMIO
|
|
* TOKEN (a small u32, see rt/rt.h), not a mapped address — so plain
|
|
* pointer dereferences would fault. When the build has a host shadow
|
|
* (LINUXU_RT_HOST_SHADOW, set by the host Makefile targets), the
|
|
* accessors resolve the token's shadow buffer and dereference it
|
|
* directly (the shadow is a real host buffer, so plain stores work and
|
|
* are visible to the unit tests). Without the define (dext backend) the
|
|
* old plain-deref behavior is kept: the dext services accesses through
|
|
* IOPCIDevice via the rt_mmio_* dispatch, not through these inlines. */
|
|
#ifndef _LINUX_IO_H
|
|
#define _LINUX_IO_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/compiler.h>
|
|
#include <linux/memremap.h>
|
|
#include <stdlib.h>
|
|
|
|
#ifndef __iomem
|
|
#define __iomem
|
|
#endif
|
|
|
|
#include <rt/rt.h>
|
|
#include <rt/aperture.h>
|
|
|
|
#if defined(LINUXU_DEXT_DK)
|
|
#include <rt/dext_dma.h>
|
|
/* rt/dext_pci.h: the device left the bus. Its BAR0 aperture is then never
|
|
* touched again: reads see ~0, as a device gone from PCIe answers, and
|
|
* writes are dropped. */
|
|
extern int dext_pci_removed(void);
|
|
/* Each token owns a 256 GB synthetic address range. Pointer arithmetic
|
|
* within a BAR preserves the token and yields a BAR-relative byte offset. */
|
|
static inline void *linuxu_dk_token(const void __iomem *addr)
|
|
{
|
|
return (void *)(uintptr_t)rt_mmio_dk_token((uintptr_t)addr);
|
|
}
|
|
static inline uint64_t linuxu_dk_offset(const void __iomem *addr)
|
|
{
|
|
return rt_mmio_dk_offset((uintptr_t)addr);
|
|
}
|
|
/* Process memory (an IB, a kernel buffer): a plain access, ordered as
|
|
* Linux orders readX/writeX (rt/rt.h's rt_mmio_dk_is_mmio). */
|
|
static inline int linuxu_dk_plain(const volatile void __iomem *addr)
|
|
{
|
|
return !rt_mmio_dk_is_mmio((uintptr_t)addr);
|
|
}
|
|
#define linuxu_plain_read(type, addr) ({ \
|
|
type __v = *(const volatile type *)(addr); \
|
|
__atomic_thread_fence(__ATOMIC_ACQUIRE); \
|
|
__v; \
|
|
})
|
|
#define linuxu_plain_write(type, v, addr) do { \
|
|
__atomic_thread_fence(__ATOMIC_RELEASE); \
|
|
*(volatile type *)(addr) = (v); \
|
|
} while (0)
|
|
extern uint16_t rt_mmio_readw(struct rt_device *, void *, uint64_t);
|
|
extern void rt_mmio_writew(struct rt_device *, void *, uint64_t, uint16_t);
|
|
/* The VRAM aperture (amdgpu's aper_base_kaddr, TTM kmaps of VRAM) is
|
|
* reached only through the kernel (rt/device_string.h): never a CPU load
|
|
* or store through a mapping of the BAR, which panics the Mac once the
|
|
* device has left the bus. The call orders the access as dma_wmb/dma_rmb
|
|
* would around a store or load. */
|
|
#define linuxu_bar0_read(type, addr) ({ \
|
|
type __v; \
|
|
linuxu_aperture_read((addr), &__v, sizeof(type)); \
|
|
__v; \
|
|
})
|
|
#define linuxu_bar0_write(type, v, addr) do { \
|
|
type __v = (v); \
|
|
linuxu_aperture_write((addr), &__v, sizeof(type)); \
|
|
} while (0)
|
|
static inline u8 readb(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u8)))
|
|
return linuxu_bar0_read(u8, addr);
|
|
if (linuxu_dk_plain(addr))
|
|
return linuxu_plain_read(u8, addr);
|
|
return rt_mmio_readb(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr));
|
|
}
|
|
static inline u16 readw(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u16)))
|
|
return linuxu_bar0_read(u16, addr);
|
|
if (linuxu_dk_plain(addr))
|
|
return linuxu_plain_read(u16, addr);
|
|
return rt_mmio_readw(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr));
|
|
}
|
|
static inline u32 readl(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u32)))
|
|
return linuxu_bar0_read(u32, addr);
|
|
if (linuxu_dk_plain(addr))
|
|
return linuxu_plain_read(u32, addr);
|
|
return rt_mmio_readl(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr));
|
|
}
|
|
static inline u64 readq(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u64)))
|
|
return linuxu_bar0_read(u64, addr);
|
|
if (linuxu_dk_plain(addr))
|
|
return linuxu_plain_read(u64, addr);
|
|
return rt_mmio_readq(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr));
|
|
}
|
|
static inline void writeb(u8 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u8))) {
|
|
linuxu_bar0_write(u8, v, addr);
|
|
return;
|
|
}
|
|
if (linuxu_dk_plain(addr)) {
|
|
linuxu_plain_write(u8, v, addr);
|
|
return;
|
|
}
|
|
rt_mmio_writeb(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr), v);
|
|
}
|
|
static inline void writew(u16 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u16))) {
|
|
linuxu_bar0_write(u16, v, addr);
|
|
return;
|
|
}
|
|
if (linuxu_dk_plain(addr)) {
|
|
linuxu_plain_write(u16, v, addr);
|
|
return;
|
|
}
|
|
rt_mmio_writew(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr), v);
|
|
}
|
|
static inline void writel(u32 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u32))) {
|
|
linuxu_bar0_write(u32, v, addr);
|
|
return;
|
|
}
|
|
if (linuxu_dk_plain(addr)) {
|
|
linuxu_plain_write(u32, v, addr);
|
|
return;
|
|
}
|
|
rt_mmio_writel(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr), v);
|
|
}
|
|
static inline void writeq(u64 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u64))) {
|
|
linuxu_bar0_write(u64, v, addr);
|
|
return;
|
|
}
|
|
if (linuxu_dk_plain(addr)) {
|
|
linuxu_plain_write(u64, v, addr);
|
|
return;
|
|
}
|
|
rt_mmio_writeq(NULL, linuxu_dk_token(addr), linuxu_dk_offset(addr), v);
|
|
}
|
|
#elif !defined(LINUXU_RT_HOST_SHADOW)
|
|
static inline u8 readb(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u8))) {
|
|
u8 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
return *(const u8 __iomem *)addr;
|
|
}
|
|
static inline u16 readw(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u16))) {
|
|
u16 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
return *(const u16 __iomem *)addr;
|
|
}
|
|
static inline u32 readl(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u32))) {
|
|
u32 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
return *(const u32 __iomem *)addr;
|
|
}
|
|
static inline u64 readq(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u64))) {
|
|
u64 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
return *(const u64 __iomem *)addr;
|
|
}
|
|
static inline void writeb(u8 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u8))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
*(u8 __iomem *)addr = v;
|
|
}
|
|
static inline void writew(u16 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u16))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
*(u16 __iomem *)addr = v;
|
|
}
|
|
static inline void writel(u32 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u32))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
*(u32 __iomem *)addr = v;
|
|
}
|
|
static inline void writeq(u64 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u64))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
*(u64 __iomem *)addr = v;
|
|
}
|
|
#else
|
|
/* host shadow: token -> slot shadow buffer -> real host memory.
|
|
* struct mmio_slot is defined in pdev_mmio.c; the inlines only touch
|
|
* ->shadow, so mirror the shape here (single source: keep in sync).
|
|
* pdev_mmio.c includes this header BEFORE its own definition, so the
|
|
* #ifndef guard makes the two definitions the same one. */
|
|
#ifndef _LINUXU_MMIO_SLOT_DEFINED
|
|
#define _LINUXU_MMIO_SLOT_DEFINED
|
|
struct mmio_slot {
|
|
int used;
|
|
void *dev;
|
|
uint8_t mem_index;
|
|
uint64_t base;
|
|
uint64_t size;
|
|
uint8_t *shadow;
|
|
size_t shadow_len;
|
|
};
|
|
#endif /* _LINUXU_MMIO_SLOT_DEFINED */
|
|
extern const struct mmio_slot *rt_mmio_slot_lookup(uint32_t token, size_t *off);
|
|
|
|
static inline u8 readb(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u8))) {
|
|
u8 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
return s ? s->shadow[off] : 0;
|
|
}
|
|
static inline u16 readw(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u16))) {
|
|
u16 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
return s ? *(const u16 *)(s->shadow + off) : 0;
|
|
}
|
|
static inline u32 readl(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u32))) {
|
|
u32 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
return s ? *(const u32 *)(s->shadow + off) : 0;
|
|
}
|
|
static inline u64 readq(const void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u64))) {
|
|
u64 __v;
|
|
linuxu_aperture_read(addr, &__v, sizeof(__v));
|
|
return __v;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
return s ? *(const u64 *)(s->shadow + off) : 0;
|
|
}
|
|
static inline void writeb(u8 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u8))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
if (s)
|
|
s->shadow[off] = v;
|
|
}
|
|
static inline void writew(u16 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u16))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
if (s)
|
|
*(u16 *)(s->shadow + off) = v;
|
|
}
|
|
static inline void writel(u32 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u32))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
if (s)
|
|
*(u32 *)(s->shadow + off) = v;
|
|
}
|
|
static inline void writeq(u64 v, void __iomem *addr)
|
|
{
|
|
if (linuxu_aperture_contains(addr, sizeof(u64))) {
|
|
linuxu_aperture_write(addr, &v, sizeof(v));
|
|
return;
|
|
}
|
|
uint32_t token = (uintptr_t)addr;
|
|
size_t off = (uintptr_t)addr - (uintptr_t)token;
|
|
const struct mmio_slot *s = rt_mmio_slot_lookup(token, &off);
|
|
if (s)
|
|
*(u64 *)(s->shadow + off) = v;
|
|
}
|
|
#endif /* LINUXU_RT_HOST_SHADOW */
|
|
|
|
static inline void __iomem *ioport_map(unsigned long port, unsigned int size)
|
|
{
|
|
return (void __iomem *)port;
|
|
}
|
|
static inline void ioport_unmap(void __iomem *addr)
|
|
{
|
|
}
|
|
|
|
static inline void memcpy_fromio(void *to, const void __iomem *from, size_t count)
|
|
{
|
|
#ifdef LINUXU_DEXT_DK
|
|
if (linuxu_aperture_contains(from, count)) {
|
|
linuxu_aperture_copy_out(to, from, count);
|
|
return;
|
|
}
|
|
if (linuxu_dk_plain(from)) {
|
|
__atomic_thread_fence(__ATOMIC_ACQUIRE);
|
|
__builtin_memcpy(to, (const void *)from, count);
|
|
return;
|
|
}
|
|
rt_mmio_memcpy_fromio(to, linuxu_dk_token(from), linuxu_dk_offset(from), count, NULL);
|
|
#else
|
|
if (linuxu_aperture_contains(from, count))
|
|
linuxu_aperture_copy_out(to, from, count);
|
|
else
|
|
__builtin_memcpy(to, from, count);
|
|
#endif
|
|
}
|
|
static inline void memcpy_toio(void __iomem *to, const void *from, size_t count)
|
|
{
|
|
#ifdef LINUXU_DEXT_DK
|
|
if (linuxu_aperture_contains(to, count)) {
|
|
linuxu_aperture_copy_in(to, from, count);
|
|
return;
|
|
}
|
|
if (linuxu_dk_plain(to)) {
|
|
__atomic_thread_fence(__ATOMIC_RELEASE);
|
|
__builtin_memcpy((void *)to, from, count);
|
|
return;
|
|
}
|
|
rt_mmio_memcpy_toio(linuxu_dk_token(to), from, linuxu_dk_offset(to), count, NULL);
|
|
#else
|
|
if (linuxu_aperture_contains(to, count))
|
|
linuxu_aperture_copy_in(to, from, count);
|
|
else
|
|
__builtin_memcpy(to, from, count);
|
|
#endif
|
|
}
|
|
|
|
static inline void ioread8_iter(const void __iomem *addr, u8 *val)
|
|
{
|
|
*val = readb(addr);
|
|
}
|
|
static inline void iowrite8_iter(u8 val, void __iomem *addr)
|
|
{
|
|
writeb(val, addr);
|
|
}
|
|
static inline void ioread32rep(void __iomem *addr, void *buf, unsigned int count)
|
|
{
|
|
memcpy_fromio(buf, addr, count * 4);
|
|
}
|
|
static inline void iowrite32rep(void __iomem *addr, u32 val, unsigned int count)
|
|
{
|
|
for (unsigned int i = 0; i < count; i++)
|
|
writel(val, (void __iomem *)((uintptr_t)addr + i * 4));
|
|
}
|
|
|
|
/* Map an assigned PCI BAR range into the synthetic DriverKit token space. */
|
|
static inline void __iomem *ioremap(phys_addr_t addr, unsigned long size)
|
|
{
|
|
#ifdef LINUXU_DEXT_DK
|
|
return rt_ioremap_active(addr, size);
|
|
#else
|
|
(void)addr; (void)size;
|
|
return NULL;
|
|
#endif
|
|
}
|
|
static inline void __iomem *ioremap_wc(phys_addr_t addr, unsigned long size)
|
|
{
|
|
#ifdef LINUXU_DEXT_DK
|
|
return rt_ioremap_active(addr, size);
|
|
#else
|
|
(void)addr; (void)size;
|
|
return NULL;
|
|
#endif
|
|
}
|
|
static inline void __iomem *ioremap_cache(phys_addr_t addr, unsigned long size)
|
|
{
|
|
return ioremap(addr, size);
|
|
}
|
|
|
|
|
|
static inline void iounmap(const volatile void __iomem *addr)
|
|
{
|
|
#ifdef LINUXU_DEXT_DK
|
|
if (addr) rt_mmio_free((void *)(uintptr_t)addr);
|
|
#else
|
|
(void)addr;
|
|
#endif
|
|
}
|
|
|
|
|
|
static inline void *memset_io(void __iomem *addr, int val, size_t count)
|
|
{
|
|
#ifdef LINUXU_DEXT_DK
|
|
if (linuxu_aperture_contains(addr, count)) {
|
|
linuxu_aperture_fill(addr, val, count);
|
|
return (void *)addr;
|
|
}
|
|
for (size_t i = 0; i < count; i++)
|
|
writeb((u8)val, (void __iomem *)((uintptr_t)addr + i));
|
|
return (void *)addr;
|
|
#else
|
|
if (linuxu_aperture_contains(addr, count)) {
|
|
linuxu_aperture_fill(addr, val, count);
|
|
return (void *)addr;
|
|
}
|
|
return memset((void *)addr, val, count);
|
|
#endif
|
|
}
|
|
|
|
/* memremap callers use ordinary pointer accesses. Only a real CPU mapping
|
|
* is valid; a synthetic MMIO token or unrelated heap allocation is not. */
|
|
static inline void __iomem *memremap(phys_addr_t start, size_t size, unsigned long flags)
|
|
{
|
|
if (!size || !(flags & (MEMREMAP_WB | MEMREMAP_WT | MEMREMAP_WC)) ||
|
|
(flags & ~(MEMREMAP_WB | MEMREMAP_WT | MEMREMAP_WC)))
|
|
return NULL;
|
|
#ifdef LINUXU_DEXT_DK
|
|
void *address = rt_ioremap_active(start, size);
|
|
if (address && !dext_bar0_cpu_contains(address, size)) {
|
|
rt_mmio_free(address);
|
|
return NULL;
|
|
}
|
|
return address;
|
|
#else
|
|
(void)start;
|
|
return NULL;
|
|
#endif
|
|
}
|
|
static inline void memunmap(void __iomem *addr)
|
|
{
|
|
iounmap(addr);
|
|
}
|
|
|
|
|
|
|
|
/** WC phys/io memtype tracking (vendor 2026 io.h no-op defaults) */
|
|
#ifndef arch_phys_wc_add
|
|
static inline int __must_check arch_phys_wc_add(unsigned long base,
|
|
unsigned long size)
|
|
{
|
|
return 0;
|
|
}
|
|
#define arch_phys_wc_add arch_phys_wc_add
|
|
#endif
|
|
|
|
#ifndef arch_phys_wc_del
|
|
static inline void arch_phys_wc_del(int handle)
|
|
{
|
|
}
|
|
#define arch_phys_wc_del arch_phys_wc_del
|
|
#endif
|
|
|
|
#ifndef arch_io_reserve_memtype_wc
|
|
static inline int arch_io_reserve_memtype_wc(unsigned long base,
|
|
unsigned long size)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#ifndef arch_io_free_memtype_wc
|
|
static inline void arch_io_free_memtype_wc(unsigned long base,
|
|
unsigned long size)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _LINUX_IO_H */
|