Skip to content

NovaCustom MiniPC #643

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

Draft
wants to merge 16 commits into
base: dasharo
Choose a base branch
from
Draft

NovaCustom MiniPC #643

wants to merge 16 commits into from

Conversation

filipleple
Copy link
Member

No description provided.

@filipleple filipleple requested review from mkopec and macpijan April 3, 2025 14:12
@filipleple filipleple self-assigned this Apr 3, 2025
@mkopec
Copy link
Member

mkopec commented Apr 3, 2025

If we're gonna copy code from somewhere, please give proper attribution at least in the commit message

@@ -0,0 +1,36 @@
/* SPDX-License-Identifier: GPL-2.0-only */

//TODO: HACK FOR MISSING MISCCFG_GPIO_PM_CONFIG_BITS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be needed here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this entire file should be removed

@filipleple filipleple force-pushed the nvc_nuc_box branch 3 times, most recently from de62d98 to e200626 Compare April 9, 2025 09:48
@filipleple filipleple force-pushed the nvc_nuc_box branch 2 times, most recently from 6c84ea8 to 399a1d6 Compare April 16, 2025 14:34
@filipleple
Copy link
Member Author

@mkopec eafd734

@filipleple filipleple force-pushed the nvc_nuc_box branch 2 times, most recently from 2981017 to 5e20dd4 Compare April 23, 2025 16:23
@filipleple filipleple force-pushed the nvc_nuc_box branch 3 times, most recently from b89afde to 5ab02d9 Compare May 14, 2025 13:24
This is a copy of the System76 Meer9 code, which is an initial port
of the ASROCK NUC BOX hardware. This platform is also based on that
hardware.

Signed-off-by: Filip Lewiński <[email protected]>
Signed-off-by: Filip Lewiński <[email protected]>
@filipleple filipleple force-pushed the nvc_nuc_box branch 2 times, most recently from 767ab74 to fad1483 Compare May 14, 2025 17:37

static void mainboard_init(void *chip_info)
{
mainboard_configure_gpios();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too late. At this point the FSP will be long done. If we program GPIOS that late, FSP may fail to initialize certain IP blocks. It should happen before FSP-M ideally.


// XXX: Enabling C10 reporting causes system to constantly enter and
// exit opportunistic suspend when idle.
params->PchEspiHostC10ReportEnable = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if D3COLD_SUPPORT is set to disabled, then no opportunistic suspend will happen. It seems to be broken board code all along...

This option and D3COLD_SUPPORT should be enabled for opportunistic suspend to work...

const bool half_populated = false;

mupd->FspmConfig.DmiMaxLinkSpeed = 4;
mupd->FspmConfig.GpioOverride = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be cleared. By default coreboot ste's it to 1, so that FSP will not override coreboot programmed GPIOs.

Remove it and initialize GPIOs before FSP-M. Then some problems will possibly go away.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not reuse FSP and GOP driver from the MTL laptops?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will try with the FSP, the laptop GOP driver doesn't work - it somehow alters the VBT (I've compared what ends up loaded by Ubuntu to what's in the repo) making the HDMI ports not work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VBT is always altered when seen by OS. VBT is a part of operation region that is used for communicating with graphics. You can't expect to have the same VBT after intiialization, as it is supposed to be patched runtime.

Also I don;t see a reason to use EFI GOP driver at all. FSP GOP should be sufficient in the first place. We used EFI GOP in laptops because of high DPI panel. The NUC BOX does not have internal LCD panel

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.

3 participants