k1:remoteproc: modify the core code to support VIRTIO_F_ACCESS_PLATFORM

feature

when enable this feature, the AP & rcpu will using dma_addr to share
memroy

Change-Id: I0c2427abf3c455fcbdc78a51788287f8198eae55
Signed-off-by: Nell <xianbin.zhu@spacemit.com>
This commit is contained in:
Nell
2025-06-05 16:37:55 +08:00
committed by 张猛
parent b14d273869
commit dd4630946d

View File

@@ -250,7 +250,11 @@ static u64 rproc_virtio_get_features(struct virtio_device *vdev)
rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset;
#ifdef CONFIG_SOC_SPACEMIT_K1X
return (u64)rsc->dfeatures | ((u64)rsc->gfeatures << 32);
#else
return rsc->dfeatures;
#endif
}
static void rproc_transport_features(struct virtio_device *vdev)
@@ -277,8 +281,9 @@ static int rproc_virtio_finalize_features(struct virtio_device *vdev)
rproc_transport_features(vdev);
/* Make sure we don't have any features > 32 bits! */
#ifndef CONFIG_SOC_SPACEMIT_K1X
BUG_ON((u32)vdev->features != vdev->features);
#endif
/*
* Remember the finalized features of our vdev, and provide it
* to the remote processor once it is powered on.