Skip to content
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

i915: avoid register_fictitious_range on meteorlake #324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amshafer
Copy link
Contributor

On my meteorlake system the info->aperture_base and size fields are not filled out. This seems to have something to do with my GPU having support for device local memory which doesn't get tracked in gmadr.start and mappable_end. This passes zeroes in and makes
register_fictitious_range panic.

This change works around this by simply not registering a fict range at all if the aperture tracking is invalid. This does have the not great side effect of garbling the framebuffer slightly but it prevents the panic and lets desktop usage happen. This workaround can be kept until we figure out what is going wrong with the framebuffer registering.

On my meteorlake system the info->aperture_base and size fields are not
filled out. This seems to have something to do with my GPU having
support for device local memory which doesn't get tracked in gmadr.start
and mappable_end. This passes zeroes in and makes
register_fictitious_range panic.

This change works around this by simply not registering a fict range at
all if the aperture tracking is invalid. This does have the not great
side effect of garbling the framebuffer slightly but it prevents the
panic and lets desktop usage happen. This workaround can be kept until
we figure out what is going wrong with the framebuffer registering.
@wulf7
Copy link
Contributor

wulf7 commented Nov 16, 2024

What is the value of hw.intel_graphics_stolen_size and hw.intel_graphics_stolen_base sysctls on your system? If it is zero than update sys/x86/pci/pci_early_quirks.[ch] files with your IDS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants