Commit graph

17 commits

Author SHA1 Message Date
Mikhail Novosyolov
1c8af1cc2e Reformat Aquarius sound as backports from upstream, automate quirk
Also update configs (added Kconfig entry from patches)
2022-09-07 17:14:09 +03:00
Mikhail Novosyolov
a4ced5d5e6 Update configs
CONFIG_SYSFB_SIMPLEFB and CONFIG_FB_SIMPLEDRM are mutually exclusive (since kernel 5.15),
CONFIG_SYSFB_SIMPLEFB was disabled but CONFIG_FB_SIMPLEDRM was not enabled instead of it.
Enable CONFIG_FB_SIMPLEDRM as an old, less experimental solution.
(See also: https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers -> enable simple framebuffer)

CONFIG_FB_SIMPLE was Y, but let's try to build it as a module (M).
We should try to reduce the size of vmlinuz for better support of PXE etc.

CONFIG_BLK_DEV_NULL_BLK can be N/Y and cannot be M. It is needed for tests, not for production, disabling it.

Other changes were generated automatically.
2022-07-11 15:55:09 +03:00
Aleksandr Proklov
2256e882c7 disable simplefb 2022-04-02 14:15:35 +03:00
Aleksandr Proklov
560b8c0fad check video driver in kernel config 2022-03-31 17:45:43 +03:00
Aleksandr Proklov
e7b24d2558 update arm64 config file 2022-03-30 14:21:43 +03:00
Mikhail Novosyolov
db22b89247 Update patches and configs for 5.10.47 2021-07-01 00:12:29 +03:00
Mikhail Novosyolov
839b6a86b6 Add support of Baikal-M SoCs
Information about config values was taken from:

From 804820df7bcb3d53a33ecd074b1eac277e938f24 Mon Sep 17 00:00:00 2001
From: Alexey Sheplyakov <asheplyakov@altlinux.org>
Date: Thu, 4 Feb 2021 19:35:14 +0400
Subject: [PATCH] config-aarch64: adjusted for Baikal-M (MBM1.0 board)

* DW_APB_TIMER=y, DW_APB_TIMER_OF=y: SoC clocks

* SERIAL_8250_DW=y: serial console

* I2C_DESIGNWARE_CORE=y, I2C_DESIGNWARE_PLATFORM=y: BMC (board
  management controller) and RTC (Real Time Clock) are connected
  via I2C.

* GPIO_DWAPB=y: device (PCIe, PHY, etc) reset/configuration

* RTC_DRV_PCF2127=y: RTC compiled in so the kernel automatically
  sets the system time from the hardware clock

* TP_BMC=y: amongst other things handles the power button

* DRM_BAIKAL_VDU=m, DRM_BAIKAL_HDMI=m: video unit and HDMI transmitter

* CMA_SIZE_MBYTES=256: video display unit and GPU use system RAM, hence
  CMA should reserve enough (contiguous) memory.
  Note: CMA reserves memory during very early init, hence the size
  has to be hard-coded into CONFIG

* MALI_MIDGARD=m: GPU driver, kernel side of proprietary mali blob.
  Note: kernel mode code is GPLv2, so it's fine to distribute it.

* SENSORS_BT1_PVT=m: hardware temperature/voltage sensors

* PCI_BAIKAL=m: PCIe root complex. Compiled as a module since takes
  ages (60 seconds or so) to probe the hardware. If compiled in
  substantially increases the boot time, and machine is completely
  unresponsive during probing PCIe. When built as a module probing
  executes concurrently with other boot activities (unless booting
  from a PCIe device)

* STMMAC_ETH=m, STMMAC_PLATFORM=m, DWMAC_BAIKAL=m: Ethernet driver
2021-06-22 16:35:50 +03:00
Mikhail Novosyolov
8444dbd85f Tune kernel interactivity
Change PREEMPT to PREEMPT_VOLUNTARY: it is a more in the middle interactivity which should be OK for both servers and desktops, Void Linux and Ubuntu have it. Previous value was too much preemption.
2021-02-23 14:57:41 +03:00
Mikhail Novosyolov
dde32b09b0 Disable support of libc5 (pre-glibc)
Nobody needs it. It is just an unmaintained potential security hole.
2021-02-23 14:31:45 +03:00
Mikhail Novosyolov
3bae1ac77e Enable accessibility (e.g. for readers of console output for blind users) 2021-02-23 13:48:54 +03:00
Mikhail Novosyolov
02d3e4d146 Virtio as module (no need to make it built in), enable VirtualBox guest modules 2021-02-23 13:28:34 +03:00
Mikhail Novosyolov
ec030c1652 Tune SND_HDA_PREALLOC_SIZE
Value 64 makes sense only for some not needed backwards compatibility,
modern default is 0, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/sound/hda/Kconfig?id=c31427d0d21e198c74d5d92082c4b8194b257f82 ("ALSA: hda: No preallocation on x86 platforms")

Kconfig recommends value 2048 for systems with PulseAudio, set it on non-x86 arches (see commit above, it sets 0 only for x86).
2021-02-23 12:42:24 +03:00
Mikhail Novosyolov
9f71e1f99e Minify build-time changes of configs, ship a config for UML, include all configs into SRPM 2020-12-30 19:56:25 +03:00
Mikhail Novosyolov
d23f37a9c9 upd: 5.10.3 -> 5.10.4, update configs, set more place for additional certificates (just test) 2020-12-30 18:12:31 +03:00
Mikhail Novosyolov
199aa73b37 Tune kernel config:
* disable Atom ISP as recommended by RussianNeuroMancer because it does not make cameras work on x86 Intel-based tablets where cameras are connected on i2c bus, but makes the camera consome power without working
* enable zswap by default and use the default allocator as in Arch Linux where zswap is enabled by default
  https://wiki.archlinux.org/index.php/Zswap
* tune values of sysctls from le9 patch to make it have at least some effect on typical desktop and server systems but avoid too agressive OOM killer on systems with 2 GB RAM and less where OOM killer kills too many process
  See discussion and my comments in the thread https://www.linux.org.ru/news/kernel/16052362
* remove not used variant of the patch which did not have any effect
2020-12-27 15:53:42 +03:00
Mikhail Novosyolov
1466db4534 Update configs
Update existing x86 configs manually
Make an arm64 config based on them instead on the old one which was temporary copypasted from ALT Linux

In most cases I answered to `make ARCH=xxx defconfig` like this:
N/y -> Y
N/m(/y) -> M
Y/n(/m) -> Y
M/n(/y) -> M
But did not enable odd debug.

Probably too much hardware is enabled on arm64.
2020-12-22 00:21:19 +03:00
alexander stefanov
59b214f027 add aarch64 support 2020-11-26 21:09:27 +00:00