aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp
AgeCommit message (Collapse)Author
2021-10-18vermeer: use the LPC-UART serial for kernel console and serial-gettyArsalan H. Awan
The vermeer platform's board Qogir does not have an on-board RS232 serial port. But it has an LPC bus header that can be used to connect an LPC to UART adapter for serial port access. Let's use that as the kernel console and serial-getty device. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-09-06kernel: create MACHINE_FEATURE for ccp drivers & enable on e3000 onlyArsalan H. Awan
Lets control the ccp driver enablement via MACHINE_FEATURES. This way, the ccp drivers are enabled in the kernel only if a machine specifies it. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-09-01kmod: prevent ccp module autoload at system boot on vermeerArsalan H. Awan
ccp is probed at system boot time but is not supported on the vermeer platform. Lets disable that for the vermeer platform as well in order to get rid of the errors at boot time. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-31docs: add vermeer as supported machine & enlist its supported featuresArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-31kernel: upgrade linux-yocto(-rt) to v5.10.47 from v5.10.25Arsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29kernel: fix configure warnings related to CONFIG_X86_BIGSMPArsalan H. Awan
This gets rid of the following build time kernel warning: WARNING: linux-yocto-5.10.25+gitAUTOINC+031f6c76e4_cf5b0320cf-r0.1 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration: [NOTE]: 'CONFIG_X86_BIGSMP' last val (y) and .config val (n) do not match [INFO]: CONFIG_X86_BIGSMP : n Config 'X86_BIGSMP' has the following Direct dependencies (X86_BIGSMP=n): SMP(=y) && X86_32(=n) Parent dependencies are: SMP [y] X86_32 [n] [INFO]: config 'CONFIG_X86_BIGSMP' was set, but it wasn't assignable, check (parent) dependencies Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29vermeer: enable screen-console MACHINE_FEATURE until we dont get serialArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29bsp: implement screen-console MACHINE_FEATUREArsalan H. Awan
This adds a new custom MACHINE_FEATURE called screen-console that allows to enable graphical console for machines. The implementation controls the kernel configs and the grub config kernel flags to get this result. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29vermeer: use zen2 instead of zen3 as it is not supported in gcc 10.2.0Arsalan H. Awan
The gcc compiler v10.2.0 being used in yocto hardknott does not support the core architecture zen3 based tunings. Lets use zen2 for now. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29vermeer: add base bsp based on zen3 tunings with kernel 5.10 supportArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29machines: use the new amd64 based zen arch specific compiler tuningsArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-29machine/include: add compiler tunings for zen 1,2 & 3 inheriting amd64Arsalan H. Awan
This adds amd64 DEFAULTTUNE with zen1, zen2 and zen3 as TUNE_FEATURES controlling the compiler tune flags for the corresponding core archs. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-12dpdk: fix axgbe net driver for v1000Arsalan H. Awan
As Yocto is a custom OS, and pci_search_device doesnt work well on custom OS, as a temporary solution, we remove the pci_search_device and SNOWY AXGBE values, and hardcode the RV AXGBE values for V1000. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-08-02linux/pciehp: enable the pcie hotplug kernel driverArsalan H. Awan
This is to enable the PCIe Hotplug functionality for the motherboards that support the PCI Express Native Hotplug, such as ethanolx. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-06-28kmod: prevent ccp module autoload at system boot on ethanolxArsalan H. Awan
ccp is probed at system boot time but is not supported on the ethanolx platforms. Lets disable that for the ethanolx platforms in order to get rid of the errors at boot time. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-06-28linux/ccp: make ccp & ccp_crypto modules as some machines dont use themArsalan H. Awan
The Cryptographic Coprocessor (CCP) is not exposed to the x86 CPU on the ethanolx platforms i.e. rome and milan. Therefore having this enabled in the kernel by default results in an error at boot time: [ 6.585600] ccp 0000:43:00.1: enabling device (0000 -> 0002) [ 6.590543] ccp 0000:43:00.1: no command queues available [ 6.595151] ccp 0000:43:00.1: sev enabled [ 6.598167] ccp 0000:43:00.1: psp enabled [ 6.833678] ccp 0000:43:00.1: SEV API:1.23 build:23 [ 6.837683] ccp_crypto: Cannot load: there are no available CCPs Lets compile ccp & ccp_crypto as modules so that they can be loaded when needed by a machine that supports CCP (such as: e3000), and can be disabled for a machine that does not support it (such as: ethanolx). Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-06-14docs: update references to milan and rome with ethanolx bspArsalan H. Awan
This is being done because milan and rome now share the same machine name ethanolx. They are binary compatible. We can use the same image on both platforms using the ethanolx board. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-06-10bsp: merge milan & rome into single bsp ethanolx as they use same boardArsalan H. Awan
This merges the milan and rome bsps into a single bsp called ethanolx as they make use of the same motherboard and the serial uart console device is also the same (i.e. ttyS0) on both platforms. This allows us to use the same binary images on both platforms. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-05-25docs: update supported bspsArsalan H. Awan
This removes the e3000 and rome for now and adds milan as supported. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-05-25linux-yocto: add kernel v5.10.25 support for the milan bspArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-05-25bsp/milan: add machine config for milan platform based on amdx86.incArsalan H. Awan
This adds machine file for milan with no graphics/vga support. Only serial console is supported. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-05-03linux-yocto-amdx86.inc: remove sound.cfg as it is not supported hereArsalan H. Awan
This removes the sound.cfg kernel configs as we don't support audio and alsa on bsps under amdx86.inc. This also gets rid of the following warning: WARNING: linux-yocto-rt-5.10.25+gitAUTOINC+031f6c76e4_be2935bce3-r0.1 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration: [NOTE]: 'CONFIG_FW_LOADER' last val (m) and .config val (y) do not match [INFO]: CONFIG_FW_LOADER : y ## .config: 1641 :configs/v5.10/ktypes/base/base.cfg (m) [INFO]: selection details for 'CONFIG_FW_LOADER': Symbols currently y-selecting this symbol: - SND_HDA_PATCH_LOADER - SND_HDA_CODEC_CA0132_DSP Symbols currently m-selecting this symbol: - BT_BCM - BT_RTL - BT_HCIBCM203X - BT_HCIBFUSB - BT_ATH3K - CFG80211 - BNX2X - BNXT - R8169 - CARL9170 - BRCMSMAC - BRCMFMAC_SDIO - BRCMFMAC_USB - IWLWIFI - RT2X00_LIB_FIRMWARE Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-29Merge pull request #703 from ArsalanHAwan/hardknott-docs-updatesWade Farnsworth
hardknott/docs: set ground for next release
2021-04-29Merge pull request #702 from ArsalanHAwan/hardknott-dpdk-upgradeWade Farnsworth
hardknott: upgrade dpdk
2021-04-27docs: set ground for next releaseArsalan H. Awan
This moves the following yocto meta layers to the latest commits on the hardknott branch for next release: * poky * meta-openembedded We are using the master branch for DPDK for now: * meta-dpdk This also unties meta-amd from the previous release tag. This also updates the links of yocto docs references from v3.1.4 to v3.3 as being used at the moment for the next release. This also updates the build system's dependencies as per the current yocto version 3.3. Finally, some housekeeping. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-26v1000: enable amd-feature-networking to support dpdk and ipsecArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-26dpdk: upgrade to the latest LTS release v20.11.1Arsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-26amd-spi: rm incompatible spirom kernel module and spirom-test appArsalan H. Awan
This removes the spirom module and app as they are not compatible with the spi_amd upstream kernel driver that we use now instead of the IOSDK driver that spirom module and spirom-test app were compatible with. We will not be able to upgrade the BIOS from userspace for now, but an alternate way to upgrade the BIOS will be introduced later on. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-20linux-yocto: patch xgbe, usb and spi on kernel v5.10.25Arsalan H. Awan
Integrates the AMD code drop for XGBE, USB and SPI. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-20linux-yocto: drop spi_amd iosdk module and use upstream kernel driverArsalan H. Awan
We now use the upstream kernel driver for amd spi instead of the local iosdk spi kernel module. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-12bsp/formfactor: add the missing formfactor definitions for all machinesArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-12bsp/grub: workaround SSE register return with SSE disabled errorArsalan H. Awan
When GRUB is compiled with -march=znver1 or -march=znver2 using the GCC v9.3 and above, the compilation fails with the following error: recipe-sysroot-native/usr/lib/x86_64-amd-linux/gcc/x86_64-amd-linux/ 10.2.0/include/shaintrin.h:40:1: error: SSE register return with SSE disabled What's interesting, is that -march=skylake also implies -mbmi which defines __BMI__ but compilation succeeds. It is probably due to different BMI implementations on AMD and INTEL processors and the way compiler uses related instructions. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-04-12bsp/grub: rm v2.02 recipes and use the latest from yocto poky insteadArsalan H. Awan
We now use the latest grub v2.04/2.06 Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-31bsp/kernel: move to linux-yocto(-rt) v5.10.25Arsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-31linux-yocto: rm configs that did not make it into kernel final configArsalan H. Awan
WARNING: linux-yocto-5.10.25+gitAUTOINC+031f6c76e4_cf5b0320cf-r0.1 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration: [NOTE]: 'CONFIG_PGTABLE_LEVELS' last val (4) and .config val (5) do not match [INFO]: CONFIG_PGTABLE_LEVELS : 5 ## .config: 297 :configs/v5.10/standard/./amdx86-extra-config.cfg (4) [NOTE]: 'CONFIG_IOSF_MBI' last val (m) and .config val (y) do not match [INFO]: CONFIG_IOSF_MBI : y ## .config: 320 :configs/v5.10/standard/./amdx86-extra-config.cfg (m) [NOTE]: 'CONFIG_HOTPLUG_PCI_SHPC' last val (m) and .config val (n) do not match [INFO]: CONFIG_HOTPLUG_PCI_SHPC : n ## .config: 1578 :configs/v5.10/standard/./amdx86-user-config.cfg (m) [NOTE]: 'CONFIG_MOUSE_PS2_FOCALTECH' last val (n) and .config val (y) do not match [INFO]: CONFIG_MOUSE_PS2_FOCALTECH : y ## .config: 2662 :configs/v5.10/standard/./amdx86-extra-config.cfg (n) [NOTE]: 'CONFIG_HW_RANDOM_TPM' last val (m) and .config val (y) do not match [INFO]: CONFIG_HW_RANDOM_TPM : y ## .config: 2919 :configs/v5.10/standard/./amdx86-user-config.cfg (m) [NOTE]: 'CONFIG_PINMUX' last val (n) and .config val (y) do not match [INFO]: CONFIG_PINMUX : y ## .config: 3106 :configs/v5.10/standard/./amdx86-extra-config.cfg (n) Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-30linux-yocto: rm kernel configs not found in the active configurationArsalan H. Awan
WARNING: linux-yocto-5.10.25+gitAUTOINC+031f6c76e4_cf5b0320cf-r0.1 do_kernel_configcheck: [kernel config]: This BSP contains fragments with warnings: [INFO]: the following symbols were not found in the active configuration: - CONFIG_SYSCTL_SYSCALL - CONFIG_CALGARY_IOMMU - CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT - CONFIG_NODES_SPAN_OTHER_NODES - CONFIG_X86_INTEL_MPX - CONFIG_INTEL_MIC_BUS - CONFIG_GPIO_LYNXPOINT - CONFIG_THUNDERBOLT Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-30linux-yocto: rm watchdog sp5100_tco patch as it is already mergedArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-30linux-yocto,linux-yocto-rt: add kernel v5.10.25 recipesArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-30bsp: add machine config for v1000 platform based on amdx86.incArsalan H. Awan
This adds machine file for v1000 with no graphics/vga support. Only serial console is supported. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-30initialize layers for yocto v3.3 hardknottArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-18docs: updates for e3000 & rome for next releaseArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-10bsp/amdx86: split into separate machines that share the same kernelArsalan H. Awan
This splits the amdx86 bsp into separate machines i.e. e3000 & rome, as they use different serial/uart ports for kernel console. e3000 has ttyS4 and ttyS5 available for use, whereas rome has ttyS0 only. The kernel console is needed for the grub install option. Linux kernel allows only one device per device-type to be usable as kernel console device. Therefore, we cannot have 2 different ttySx as serial console devices. We are still keeping the same kernel shared across both platforms, and any other platforms that will be added under amdx86 will share the same kernel. The console device is the only thing that differs across the devices. If we could find a way to have the serial device number automatically determined at boot time, and have it passed to linux kernel commandline args, maybe we'll switch back to having a single bsp/machine that works on all the AMD x86 platforms. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-03-01increase CONFIG_NR_CPUS to support AMD EPYC 7002 Series ProcessorsArsalan H. Awan
This changes the max cpu limit from default of 64 cores to 256 cores in order to support the rome platform that can host 2 of 64 core cpus with 2 thread per core, giving us a total of 256 virtual cpus. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-02-12amdx86/wdt: enable sp5100_tco wdt driver for family 17h and rm amd_wdtArsalan H. Awan
This enables the CONFIG_SP5100_TCO watchdog driver and removes the amd_wdt kernel module. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2021-02-12amdx86/linux-yocto: patch xgbe, emmc, spi and usb on kernel v5.4.69Arsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2020-12-28docs: add instructions for amdx86 and remove unsupported bspsArsalan H. Awan
This removes all the bits from the documentation that are not related to the amd machines/platforms under amdx86 bsp. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2020-12-17bsp/layer: remove LICENSE_PATH as we don't have any additional licensesArsalan H. Awan
Otherwise the build breaks with error: Failure expanding variable AVAILABLE_LICENSES Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2020-12-17amd-common-configurations: remove libav settings as its not supportedArsalan H. Awan
We don't use this multimedia package for amdx86 ATM. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2020-12-17licenses/FLTK: remove this license as we are not using fltk anymoreArsalan H. Awan
The license was added to fix QA warning: WARNING: fltk-1.3.3-r0 do_populate_lic: fltk: No generic license file exists for: FLTK in any provider See: 1fdaaf5a93456a2adc0c8aa5f82d7e19fc8f0bc0 Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2020-12-17amdx86: remove recipes from BBMASK that are not available anymoreArsalan H. Awan
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>