aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv/conf
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Be clearer about what ZSTDIO is forDag-Erling Smørgrav31 hours1-2/+4
| | | | | | | | | | ZSTDIO is not just for core dumps, and it is now required by ZFS, so move it (and GZIO, which is still just for dumps) to a new “Compression support” section in GENERIC, and add them both to MINIMAL. MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D55940
* riscv: GENERIC: enable KERN_TLSSiva Mahadevan2026-02-191-0/+1
| | | | | | | | | | | This unskips 585 sys/kern/ktls_test testcases[0] in CI. All 585 tests currently pass. [0] https://ci.freebsd.org/view/Test/job/FreeBSD-main-riscv64-test/16514/testReport/sys.kern/ Approved by: emaste (mentor) MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55376
* Revert "ophgo: import new .dts"Warner Losh2026-01-102-9/+0
| | | | | | | | | | | | | | | | | | | This reverts commit b55d106df9785d141f9e3e1c916e921df9d877ac. Per request of original author, manu, and mmel, revert this change. While this is a genuinely cool device, there's some issues that need to be sorted out before moving forward: o Imported dt-bindings that weren't used and could interfere in the future. o no platform code for sophgo, though it likely needs it o Potential interference from the dts/dtsi files imported for future linux device-tree imports. These are the dts files from the vendor sdk, and history has down often upstream introduces enough change that keeping them here in the mean time lays the groundwork for merge conflicts in the future. That makes this import premature. Revert until it's more mature.
* ophgo: import new .dtsMartin Filla2026-01-102-0/+9
| | | | | | Signed-off-by: Martin Filla <freebsd@sysctl.cz> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1844
* riscv: include Xilinx PCIe controller driver.Ruslan Bukin2025-11-271-0/+1
| | | | | | This is used on Codasip Prime. Sponsonred by: CHERI Research Centre
* fib_algo: add FIB_ALGO to GENERIC kernel config on riscvMarko Zec2025-11-251-0/+1
| | | | | | | | FIB_ALGO modular FIB lookups have been enabled by default on amd64 and arm64 since 2021, so enable it on riscv as well. Reviewed by: melifaro MFC after: 1 month
* random: allow disabling of entropy harvesting from keyboard & miceDavid E. O'Brien2025-11-111-0/+4
| | | | | | Reviewed by: jmg Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D53390
* random: TPM_HARVEST should have been named RANDOM_ENABLE_TPMDavid E. O'Brien2025-11-101-0/+4
| | | | | | | | | | | * Enable RANDOM_ENABLE_TPM by default * The commit of TPM_HARVEST failed to add it to NOTES so that the LINT kernel would build the code. Fixes: 4ee7d3b0118c82e651712bb65da53d08e78cd7b1 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53460
* riscv: build allwinner DTBsMitchell Horne2025-10-201-0/+3
| | | | | | | | | | These are known to work if loaded manually by loader(8) (for the Nezha board at least). If nothing else, it is useful to provide a DTB closely tied to the kernel version. MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53118
* riscv: build starfive JH7110 DTBsMitchell Horne2025-10-201-0/+3
| | | | | | | | | | These are known to work if loaded manually by loader(8) (for VF2 at least). If nothing else, it is useful to provide a DTB closely tied to the kernel version. MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53117
* u2f(4): Invert U2F_MAKE_UHID_ALIAS kernel build optionVladimir Kondratyev2025-09-251-1/+0
| | | | | | | This makes non-GENERIC kernel configs easier to maintain. Requested by: glebius MFC after: 2 days
* u2f(4): a HID driver for FIDO/U2F security keysVladimir Kondratyev2025-08-171-0/+1
| | | | | | | | | | | | | | | | | While FIDO/U2F keys were already supported by the generic uhid(4) and hidraw(4) drivers, this driver adds some additional features an does steps to tighten the security of FIDO/U2F access. - It automatically loads through devd. - Automatically enables HQ_NO_READAHEAD for FIDO/U2F devices. - Implements only miminum set of features. - Do not requires external devfs configuration to set character device permissions. - Names character device as u2f/# to make possible capsicum or any other pledge()-style sandboxing. PR: 265528 Differential Revision: https://reviews.freebsd.org/D51612
* riscv: Add cvitek SoC files to the buildBojan Novković2025-08-012-0/+15
| | | | | Reviewed by: br, jrtc27 Differential Revision: https://reviews.freebsd.org/D48533
* riscv: enable aw_mmc driverMitchell Horne2025-07-221-0/+1
| | | | | | | For the Allwinner D1. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D51198
* riscv: add aw_rtc device to configMitchell Horne2025-07-041-0/+1
| | | | | | | Somehow dropped during a rebase. This actually enables the driver. Fixes: d88bc5f943a9 ("riscv: enable allwinner RTC") Sponsored by: The FreeBSD Foundation
* eqos: Add StarFive JH7110 variantJari Sihvola2025-04-021-0/+2
| | | | | | | | | Found on the VisionFive v2 SBC, and similar. Reviewed by: mhorne Tested by: mhorne Discussed with: sos Differential Revision: https://reviews.freebsd.org/D45600
* xilinx quad spi: various fixes.Ruslan Bukin2025-03-261-0/+1
| | | | | | | | | | - add compat table and a string for an older IP - name driver properly - depend on ofw_spibus - add missing ofw_bus_get_node() method - connect to GENERIC (similar to other Xilinx IP) Tested on Codasip A730.
* Revert "riscv: enable allwinner RTC"Mitchell Horne2025-03-041-1/+0
| | | | | | | | | | It caused a regression on A10/A20 platforms. Revert until the proper fix can be determined. This reverts commit 9ddd516b886218af809dbf40eeda1ed388e2879c. PR: 285054 Reported by: mmel
* riscv: enable EFI framebufferMitchell Horne2025-03-031-0/+1
| | | | | | | | | | | | | Pass framebuffer information from loader(8) to the kernel via the MODINFOMD_EFI_FB metadata field. Enable the vt_efifb driver. A small tweak is required to work around the lack of VM_MEMATTR_WRITE_COMBINING on this platform; we use VM_MEMATTR_UNCACHEABLE instead. Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48884
* sys: Empty hints filesWarner Losh2025-02-221-0/+2
| | | | | | | | | Create empty hints files for these platforms. They don't normally need a hints file, but people use them for device instance wiring. It's less confusing if they always exist. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D49052
* riscv: aw_timer enablement for D1Mitchell Horne2025-01-271-0/+1
| | | | | | | | | | | | | | The SBI timer functionality is partially broken on the Allwinner D1, so we require this driver to provide an eventtimer/system timer interrupts. The timecounter interface, on the other hand, is not required. The generic RISC-V timer driver uses the native rdtime instruction, and implements vdso, so this should be preferred. Reviewed by: manu, ganbold MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48672
* riscv: enable cpufreq_dt driverMitchell Horne2025-01-101-0/+3
| | | | | | | | | | | Implement the small amount of MD code required; copied from arm/arm64. One tweak is made to cpufreq_dt itself: if the opp-shared property is missing, but there is only one CPU, then we can still attach. This is relevant for the single-core Allwinner D1. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48124
* riscv: enable Allwinner D1 USB driversMitchell Horne2025-01-101-0/+3
| | | | | | | | | | | Add the generic USB drivers and FDT glue to the build. Make small tweaks to the aw_usbphy and aw_musb drivers for the Allwinner D1. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48126
* riscv: connect eswin to the build.Ruslan Bukin2024-12-172-0/+6
| | | | | | | Connect Eswin IP drivers to the build. Reviewed by: mhorne Differential Revision: https://reviews.freebsd.org/D48119
* aw_gpio: support Allwinner D1 GPIOJulien Cassette2024-12-102-0/+2
| | | | | | | | | | | | | | | | | | | The GPIO controls the multiplexing of the D1 pins to its peripherals, so this adds the definitions needed by the aw_gpio driver to support the D1. Also, this modifies the aw_gpio driver to support the differences of the D1 controller: - pins can have up to 15 functions - each port is mapped with an alignment of 0x30 - CFG registers have 4 bits per pin - DRV registers have 4 bits per pin - the offset of PULL registers is 0x24 Signed-off-by: Julien Cassette <julien.cassette@gmail.com> Reviewed by: mhorne Differential Revision: https://reviews.freebsd.org/D35593
* riscv: enable Allwinner if_awgMitchell Horne2024-12-102-0/+3
| | | | | | | | | | | Enable the driver and dependencies (aw_sid, nvmem). Add compat strings, etc. Found on the Allwinner D1. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47923
* riscv: Allwinner D1 clock and reset driverJulien Cassette2024-11-161-0/+4
| | | | | | | | | Add the SOC_ALLWINNER_D1 config option, following other platforms. Co-authored-by: mhorne Reviewed by: manu (previous version) Sponsored by: The FreeBSD Foundation (in part) Differential Revision: https://reviews.freebsd.org/D47515
* riscv: enable allwinner RTCMitchell Horne2024-11-161-0/+1
| | | | | | | | | | | | | | | For the Allwinner D1 (Nehza) SBC. This RTC driver is also a clock provider, which registers two fixed clocks. In all the devices we currently support, the names of the clocks are present in the "clock-output-names" property of the device tree. This is not the case for the D1 DTS, as this property does not appear in upstream. Therefore the clock definitions are statically assigned a name, which is overridden when specified. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47514
* Retire non-NEW_PCIB code and remove config optionJessica Clarke2024-07-181-1/+0
| | | | | | | | | | | All architectures enable NEW_PCIB in DEFAULTS (arm being the most recent to do so in 121be555997b (arm: Set NEW_PCIB in DEFAULTS rather than a subset of kernel configs")), so it's time we removed the legacy code that no longer sees much testing and has a significant maintenance burden. Reviewed by: jhb, andrew, emaste Differential Revision: https://reviews.freebsd.org/D32954
* conf: Add usbhid and hidbus to GENERIC* kernel configsEmmanuel Vadot2024-07-101-0/+3
| | | | | | | | | | | Include the new unified HID stack by default in generic. This will allow us to migrate to the multi-stack hkbd and hms instead of relying on the older ukbd and ums which only work with USB. To test those drivers just add hw.usb.usbhid.enable=1 in loader.conf Differential Revision: https://reviews.freebsd.org/D45658 Reviewed by: emaste, imp, wulf (all older version) Sponsored by: Beckhoff Automation GmbH & Co. KG
* riscv: support PV_STATS pmap optionMitchell Horne2024-07-081-0/+3
| | | | | | | | | It is rarely used but trivially supported; add the missing stat calls and enable it in LINT. Reviewed by: markj, br (previous version), jhb (previous version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45475
* riscv: include ahci device to GENERIC.Ruslan Bukin2024-06-121-0/+1
| | | | | | | | This is needed for bhyve guest VM. Reviewed by: mhorne Sponsored by: UKRI Differential Revision: https://reviews.freebsd.org/D45497
* jh7110: enable MMC driverMitchell Horne2024-05-071-0/+4
| | | | | | | | Add a variant of the existing dwmmc driver, and enable it in the GENERIC kernel. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44026
* sys/*/conf: do not use "../../conf/" when including std.*Lexi Winter2024-04-231-1/+1
| | | | | | | | Since config(8) searches sys/conf by default, there's no need to specify the full relative path here; replace it by the filename alone. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1124
* sys: add conf/std.debug, generic debugging optionsLexi Winter2024-04-231-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new sys/conf/std.debug contains the list of debugging options enabled by default in -CURRENT, so they don't need to be listed individually in every kernel config. The enabled options are the set of all debug options which were enabled for the GENERIC kernel on any platform. This means some architectures now have debugging options enabled in GENERIC which weren't previously enabled: - amd64: [1] - arm64: [2] - arm: [2]. [3] - i386: [1], [2] - powerpc: [1], [2], [3] - riscv: [2] [1] ALT_BREAK_TO_DEBUGGER is now enabled. [2] BUF_TRACKING, FULL_BUF_TRACKING, and QUEUE_MACRO_DEBUG_TRASH are now enabled. [3] DEADLKRES is now enabled. While here, move the documentation for the (commented out) K*SAN options for amd64 from GENERIC to NOTES. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1124
* NOTES: Move the VirtIO entries to the MI NOTES fileJohn Baldwin2024-04-141-8/+0
| | | | | | | While here, add virtio_gpu Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D44782
* NOTES: Move NVMe entries to MI fileJohn Baldwin2024-04-091-5/+0
| | | | | | | | | | While here, adjust the sample setting for NVME_USE_NVD to use a non-default setting as is typical in entries in NOTES. Discussed with: imp Reviewed by: manu Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44691
* riscv: catch up with EARLY_PRINTF changesMitchell Horne2024-03-041-1/+1
| | | | | | | | | | On this platform early console access is possible via SBI. Follow recent changes to EARLY_PRINTF option and give it a named constant. Update the commented option in GENERIC so that it compiles. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44100
* riscv: add starfive kernelconf templateMitchell Horne2024-02-272-0/+8
| | | | | | | | | Enable the Synopsis UART driver. Other drivers will be added in the future. Reviewed by: jrtc27 Sponsored by: The FreeBSD Foundatino Differential Revision: https://reviews.freebsd.org/D44105
* riscv: add dwc, dwmmc to NOTESMitchell Horne2024-02-271-0/+4
| | | | | | | In the future these drivers will be enabled in GENERIC. For now, ensure they build with LINT. Sponsored by: The FreeBSD Foundation
* riscv: add some more drivers to GENERICMitchell Horne2023-12-051-0/+7
| | | | | | | | | | | | | Enable phy and regulator extres devices. These aren't needed for existing SoC support, but are of general utility to FDT platforms and enable out-of-tree work. Similarly, enable sdhci and mmc. Reviewed by: jrtc27 MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42913
* riscv: remove commented lines from GENERICMitchell Horne2023-12-051-18/+0
| | | | | | | | | | | These are relics of development, when static compilation of certain functionality/parameters was necessary. Today we have full module and loader(8) support. Reviewed by: jrtc27 MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42912
* riscv: add more dump features to GENERICMitchell Horne2023-12-051-0/+4
| | | | | | | | | Match what is provided by default on other architectures. Reviewed by: jrtc27 MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42911
* riscv: tweak SoC-specific conf organizationMitchell Horne2023-12-053-15/+25
| | | | | | | | | | | | Hide some lines from the main GENERIC files by mimicking arm64's model. I do not have any intention of creating a std.riscv or SIFIVE configuration file at this time. Reviewed by: jrtc27 MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42910
* Add a COMPAT_FREEBSD14 kernel optionKristof Provost2023-10-101-0/+1
| | | | | | | | Use it wherever COMPAT_FREEBSD13 is currently specified. Reviewed by: brooks, zlei Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D42100
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-166-6/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* riscv: Add pass(4) to GENERIC kernelJessica Clarke2023-05-031-0/+3
| | | | | | | | Whilst we don't have ahci(4) currently, we do have umass(4), and need pass(4) for smartctl(8) to be able to talk to such devices. Reported by: David Gilbert <dgilbert@daveg.ca> MFC after: 1 week
* riscv: retire the FPE kernel optionMitchell Horne2023-05-022-2/+0
| | | | | | | | | | We always build the kernel floating point support. Now that the riscv64sf userspace variant has been removed the option is required for correct operation. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39851
* netlink: add NETLINK to the DEFAULTS for each architectureAlexander V. Chernikov2023-04-022-1/+2
| | | | | | | | | | | | | | | | | | | | NETLINK is going to replace rtsock and a number of other ioctl/sysctl interfaces. In-base utilies such as route(8), netstat(8) and soon ifconfig(8) are being converted to use netlink sockets as a transport between kernel and userland. In the current configuration, it still possible have the kernel without NETLINK (`nooptions NETLINK`) and use the aforementioned utilies by buidling the world with `WITHOUT_NETLINK` src.conf knob. However, this approach does not cover the cases when person unintentionally builds a custom kernel without netlink and tries to use the standard userland. This change adds `option NETLINK` to the default options for each architecture, fixing the custom kernel issue. For arm, this change uses `std.armv6` and `std.armv7` (netlink already in) instead of DEFAULTS. Reviewed By: imp Differential Revision: https://reviews.freebsd.org/D39339
* riscv kernel config: clean up whitespaceMike Karels2023-02-241-3/+3
| | | | | | Most options in kernel config files use "options<space><tab>OPTION". This allows the option to be commented out without shifting columns. A few options had two tabs, and some had spaces. Make them consistent.