Skip to content

Create devcontainer.json #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
}
}
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
SYSDIR?=/usr/src/sys
.include "${SYSDIR}/conf/kern.opts.mk"

_VALID_KMODS= dmabuf linuxkpi ttm drm dummygfx i915 amd radeon
_VALID_KMODS= dmabuf linuxkpi ttm drm dummygfx i915 amd radeon vmwgfx

SUPPORTED_ARCH= amd64 \
i386 \
Expand All @@ -22,10 +22,11 @@ DEFAULT_KMODS= dmabuf \
ttm \
drm \
amd \
radeon
radeon \
i915

.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
DEFAULT_KMODS+= i915
#DEFAULT_KMODS+= vmwgfx
.endif

.if defined(DUMMYGFX)
Expand Down
4 changes: 4 additions & 0 deletions drivers/gpu/drm/i915/gem/i915_gem_pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ static void unmap_object(struct drm_i915_gem_object *obj, void *ptr)
{
if (is_vmalloc_addr(ptr))
vunmap(ptr);
// BSDFIXME: kunmap removed due to a backport from 5.10
}

struct sg_table *
Expand Down Expand Up @@ -237,6 +238,7 @@ int __i915_gem_object_put_pages(struct drm_i915_gem_object *obj)
return err;
}

// BSDFIXME: i915_gem_object_map_page is a backport from 5.10
/* The 'mapping' part of i915_gem_object_pin_map() below */
static void *i915_gem_object_map_page(struct drm_i915_gem_object *obj,
enum i915_map_type type)
Expand Down Expand Up @@ -294,6 +296,7 @@ static void *i915_gem_object_map_page(struct drm_i915_gem_object *obj,
return vaddr;
}

// BSDFIXME: i915_gem_object_map_pfn is a backport from 5.10
static void *i915_gem_object_map_pfn(struct drm_i915_gem_object *obj,
enum i915_map_type type)
{
Expand Down Expand Up @@ -379,6 +382,7 @@ void *i915_gem_object_pin_map(struct drm_i915_gem_object *obj,
}

if (!ptr) {
// BSDFIXME: Following 7 lines are a backport from 5.10
if (GEM_WARN_ON(type == I915_MAP_WC &&
!static_cpu_has(X86_FEATURE_PAT)))
ptr = NULL;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct drm_printer;
param(bool, verbose_state_checks, true, 0) \
param(bool, nuclear_pageflip, false, 0400) \
param(bool, enable_dp_mst, true, 0600) \
param(bool, enable_gvt, false, 0400)
param(bool, enable_gvt, true, 0400)

#define MEMBER(T, member, ...) T member;
struct i915_params {
Expand Down
2 changes: 0 additions & 2 deletions drivers/gpu/drm/i915/i915_vgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
*/
void intel_vgpu_detect(struct drm_i915_private *dev_priv)
{
#ifdef __linux__
struct pci_dev *pdev = dev_priv->drm.pdev;
u64 magic;
u16 version_major;
Expand Down Expand Up @@ -103,7 +102,6 @@ void intel_vgpu_detect(struct drm_i915_private *dev_priv)

out:
pci_iounmap(pdev, shared_area);
#endif
}

void intel_vgpu_register(struct drm_i915_private *i915)
Expand Down
38 changes: 38 additions & 0 deletions drivers/gpu/drm/linux_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,41 @@ linux_fb_get_options(const char *connector_name, char **option)

return (*option != NULL ? 0 : -ENOENT);
}

void
cfb_fillrect(struct linux_fb_info *p, const struct fb_fillrect *rect)
{
tainted_cfb_fillrect(p, rect);
}

void
cfb_copyarea(struct linux_fb_info *p, const struct fb_copyarea *area)
{

tainted_cfb_copyarea(p, area);
}

void
cfb_imageblit(struct linux_fb_info *p, const struct fb_image *image)
{
tainted_cfb_imageblit(p, image);
}

void
sys_fillrect(struct linux_fb_info *p, const struct fb_fillrect *rect)
{
tainted_cfb_fillrect(p, rect);
}

void
sys_copyarea(struct linux_fb_info *p, const struct fb_copyarea *area)
{

tainted_cfb_copyarea(p, area);
}

void
sys_imageblit(struct linux_fb_info *p, const struct fb_image *image)
{
tainted_cfb_imageblit(p, image);
}
Loading