Project

General

Profile

Feature #30663

Avatar?id=15837&size=50x50

Add graphics/drm-next-kmod to system

Added by Alexander Petrov almost 2 years ago. Updated over 1 year ago.

Status:
Done
Priority:
Nice to have
Assignee:
Ryan Moeller
Category:
Console
Target version:
Estimated time:
Severity:
Low
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

Please, add
i915.ko
i915kms.ko
for support UTF-8 fonts in vt console on intel-graphics powered MB's

suffering.jpg (676 KB) suffering.jpg See your doctor for details Ryan Moeller, 07/24/2018 11:50 AM
utf8top.jpg (581 KB) utf8top.jpg These are not the glyphs you're looking for Ryan Moeller, 07/24/2018 11:50 AM
utf8bottom.jpg (624 KB) utf8bottom.jpg Boxception Ryan Moeller, 07/24/2018 11:51 AM
Screenshot_2018-08-14 FreeNAS - megamini tn ixsystems com.png (9.67 KB) Screenshot_2018-08-14 FreeNAS - megamini tn ixsystems com.png Aaron St. John, 08/14/2018 07:31 AM
22438
22443
22448
24330

Related issues

Related to FreeNAS - Feature #28541: vesa/vga doesn't seem to be compiled or provided, making vidcontrol unusable? (needed to sort out console font)Closed
Related to FreeNAS - Feature #33399: Quicksync/nvencClosed

Associated revisions

Revision 52fe66b8 (diff)
Added by Ryan Moeller over 1 year ago

Add graphics/drm-next-kmod to system ports build These are not loaded by default, but are included for testing. Ticket: #30663

Revision 4e6598a2 (diff)
Added by Ryan Moeller over 1 year ago

Add graphics/drm-next-kmod to system ports build These are not loaded by default, but are included for testing. Ticket: #30663

History

#1 Avatar?id=15837&size=24x24 Updated by Alexander Petrov almost 2 years ago

  • Target version set to 11.1-U2

#2 Updated by Dru Lavigne almost 2 years ago

  • Assignee changed from Release Council to Alexander Motin
  • Target version changed from 11.1-U2 to 11.2-RC2

#3 Updated by Alexander Motin almost 2 years ago

  • Status changed from Unscreened to Not Started
  • Priority changed from No priority to Nice to have
  • Severity set to Low

I can not say that I completely trust reliability of kms drivers towards new hardware, etc. Doesn't vt_vga or vt_efifb can attach to the video on that system to make it somebody else's problem?

#4 Avatar?id=15837&size=24x24 Updated by Alexander Petrov almost 2 years ago

Alexander Motin wrote:

I can not say that I completely trust reliability of kms drivers towards new hardware, etc. Doesn't vt_vga or vt_efifb can attach to the video on that system to make it somebody else's problem?

in vt_vga (640x480) fonts completely unreadable due to video scaling problem. My case requires native 800x600 resolution for pixel-in-pixel vga output (7" POS video-terminal).
vt_efif is unreachible because installation (aged five years) was performed in BOIS-mode (not EFI or UEFI).
If I right understand the situation, an Intel driver (i915*) - the only way to switch onto different videomode

#5 Updated by Alexander Motin over 1 year ago

  • Related to Feature #28541: vesa/vga doesn't seem to be compiled or provided, making vidcontrol unusable? (needed to sort out console font) added

#6 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA3

#7 Updated by Alexander Motin over 1 year ago

  • Status changed from Not Started to Unscreened
  • Assignee changed from Alexander Motin to Ryan Moeller

Ryan, could you investigate this please: what would it cost us to have those modules (graphics/drm-next-kmod port) and what would it give (flexible mode setting, etc). We may just include the modules for experiment into 11.2 and leave deeper integration for later. Or just bump it all later, if it won't just fly.

#8 Updated by Alexander Motin over 1 year ago

  • Target version changed from 11.2-BETA3 to Backlog

Thinking again, pushing it backward. We have too many much serious things to think about console fonts now.

#9 Updated by Ryan Moeller over 1 year ago

  • Status changed from Unscreened to Screened

I will add the graphics/drm-next-kmod port to the build for now as an experimental feature.

#10 Updated by Ryan Moeller over 1 year ago

  • Status changed from Screened to In Progress

#11 Updated by Ryan Moeller over 1 year ago

I have experimented a little bit with i915kms.

The module can be loaded from the command line. When the module loads, I get a message "Failed to add WC MTRR for [<some address range>]: -22; performance may suffer" and it is not clear if this means overall system performance or just graphics performance. Trying to unload it resulted in a panic. Specifying i915kms_load="YES" in loader.conf loads the module at boot without further issue beyond those just described.

My console switched to a higher resolution with a clean looking font when the module loaded. I viewed a UTF-8 test file, which was missing plenty of glyphs and is probably the same font that the VGA console uses (at least they both appear to be missing the same glyphs in the test file). There is not much of a selection of preinstalled fonts that can be used by vidcontrol, and I didn't immediately find an easy path for creating new console fonts from TTF or OTF fonts, so I haven't yet seen the driver improve the support for UTF-8 fonts apart from making the existing ones look better (not to understate the enhancement to readability).

#12 Updated by Ryan Moeller over 1 year ago

22438
22443
22448

#13 Updated by Ryan Moeller over 1 year ago

  • Status changed from In Progress to Ready for Testing
  • Target version changed from Backlog to 11.2-BETA3

PR: https://github.com/freenas/build/pull/89

Testing
/boot/modules/ should contain the requested i915.ko and i915kms.ko modules (among others). They should not be automatically loaded.

#14 Updated by Ryan Moeller over 1 year ago

  • Needs Merging changed from Yes to No

#15 Updated by Dru Lavigne over 1 year ago

  • Subject changed from Add missing kernel modules to Add graphics/drm-next-kmod to system

#16 Updated by Aaron St. John over 1 year ago

24330

Tested on FreeNAS-11.2-MASTER-201808140859

See attached screenshot.

Test procedure:
I viewed the contents of /boot/modules.

I didn't see, specifically, "i915.ko". I don't know much about this, but perhaps this is the desired result?
Marking as blocked until it's verified.

#17 Updated by Aaron St. John over 1 year ago

  • Status changed from Ready for Testing to Blocked

#18 Updated by Ryan Moeller over 1 year ago

Thanks for catching that, I expected i915.ko would be provided by drm-next-kmod, but it turns out to be in the base OS and we don't currently build it.

I've learned that i915.ko provides better support for legacy AGP hardware, and i915kms supports newer hardware. I'm not sure we need to include both.

If there are no objections, I'm inclined to leave i915.ko out.

#19 Updated by Dru Lavigne over 1 year ago

  • Status changed from Blocked to Passed Testing
  • Needs QA changed from Yes to No

#20 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

#21 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done
  • Needs Doc changed from Yes to No

Also available in: Atom PDF