Skip to content
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f8a2d10
kthread: Unify kernel_thread() and user_mode_thread()
chenhuacai May 8, 2023
8f1d17a
genirq/msi, platform-msi: Adjust return value of msi_domain_prepare_i…
chenhuacai May 26, 2023
448c3c6
irqchip/loongson-pch-msi: Add machanism to limit msi allocation
chenhuacai May 26, 2023
71124e4
irqchip/loongson-eiointc: Improve IRQ affinity setting
chenhuacai Nov 9, 2022
cf04ec6
LoongArch: Select ARCH_HAS_FAST_MULTIPLIER
xry111 Mar 27, 2024
2e6423b
LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
xry111 Mar 27, 2024
fd06cf4
LoongArch: Select ARCH_WANT_DEFAULT_BPF_JIT
chenhuacai May 11, 2024
92a209b
LoongArch: Select THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE
chenhuacai Apr 8, 2024
9e04533
LoongArch: Give a chance to build with !CONFIG_SMP
seehearfeel Apr 18, 2024
0fd243b
LoongArch: Fix callchain parse error with kernel tracepoint events again
chenhuacai May 6, 2024
925fcba
LoongArch: rust: Switch to use built-in rustc target
heiher Mar 4, 2024
86f92a0
LoongArch: dts: Remove "disabled" state of clock controller node
AaronDot May 9, 2024
37b21c5
LoongArch: dts: Add new supported device nodes to Loongson-2K0500
AaronDot May 9, 2024
cdad1a1
LoongArch: dts: Add new supported device nodes to Loongson-2K2000
AaronDot May 9, 2024
1a913b3
LoongArch: Update Loongson-3 default config file
chenhuacai Mar 23, 2024
238be6e
LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h
chenhuacai Feb 28, 2024
7b4cb12
LoongArch: Add irq_work support via self IPIs
chenhuacai May 12, 2024
a3f89d5
LoongArch: Add CPU HWMon platform driver
chenhuacai Oct 29, 2020
7735f2c
LoongArch: Add CPUFreq driver support
chenhuacai Sep 5, 2022
1f1273b
SH: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK
chenhuacai Jul 12, 2022
76f48d3
LoongArch: Add HIGHMEM and FDT support for future
chenhuacai Apr 12, 2021
9f24665
LoongArch: Add debug machanism support
chenhuacai Dec 31, 2020
70852c5
LoongArch: Add LS7A IOMMU support
chenhuacai Sep 23, 2021
8a82121
USB: Fix OHCI/XHCI wakeup problems
chenhuacai Oct 23, 2021
9b62058
drivers/firmware: Move sysfb_init() from device_initcall to fs_initcall
chenhuacai Jan 28, 2024
2b3c41b
drm/Makefile: Move tiny drivers before native drivers
chenhuacai Nov 7, 2023
c8a91f0
drm/radeon: Workaround radeon driver bug for Loongson
chenhuacai Feb 22, 2021
0b4d8f8
drm/radeon: Call mmiowb() at the end of radeon_ring_commit()
chenhuacai Feb 20, 2024
0fccb96
stmmac: Expose module parameters
FreeFlyingSheep Aug 17, 2022
4de2963
stmmac: pci: Add LS7A support for dwmac-loongson
FreeFlyingSheep Aug 17, 2022
6ccf166
tty: Add univt framework support
chenhuacai Aug 6, 2019
10a2ce8
tty: Add Chinese fonts support in console
chenhuacai Aug 6, 2019
748d47a
LoongArch: Add Loongson Binary Translation syscall support
chenhuacai Dec 31, 2020
ce55afc
dependabot[bot] May 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drm/Makefile: Move tiny drivers before native drivers
After commit 60aebc9 ("drivers/firmware: Move sysfb_init() from
device_initcall to subsys_initcall_sync") some Lenovo laptops get a blank
screen until the display manager starts.

This regression occurs with such a Kconfig combination:
CONFIG_SYSFB=y
CONFIG_SYSFB_SIMPLEFB=y
CONFIG_DRM_SIMPLEDRM=y
CONFIG_DRM_I915=y      # Or other native drivers such as radeon, amdgpu

If replace CONFIG_DRM_SIMPLEDRM with CONFIG_FB_SIMPLE (they use the same
device), there is no blank screen. The root cause is the initialization
order, and this order depends on the Makefile.

FB_SIMPLE is before native DRM drivers (e.g. i915, radeon, amdgpu, and
so on), but DRM_SIMPLEDRM is after them. Thus, if we use FB_SIMPLE, I915
will takeover FB_SIMPLE, then no problem; and if we use DRM_SIMPLEDRM,
DRM_SIMPLEDRM will try to takeover I915, but fails to work.

So we can move the "tiny" directory before native DRM drivers to solve
this problem.

Fixes: 60aebc9 ("drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync")
Closes: https://lore.kernel.org/dri-devel/[email protected]/T/#t
Reported-by: Jaak Ristioja <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
  • Loading branch information
chenhuacai committed May 18, 2024
commit 2b3c41b0cc73a2fab4cd50f116463c19197f42fa
2 changes: 1 addition & 1 deletion drivers/gpu/drm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ obj-y += arm/
obj-y += display/
obj-$(CONFIG_DRM_TTM) += ttm/
obj-$(CONFIG_DRM_SCHED) += scheduler/
obj-y += tiny/
obj-$(CONFIG_DRM_RADEON)+= radeon/
obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
obj-$(CONFIG_DRM_AMDGPU)+= amd/amdxcp/
Expand Down Expand Up @@ -201,7 +202,6 @@ obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
obj-y += hisilicon/
obj-y += mxsfb/
obj-y += tiny/
obj-$(CONFIG_DRM_PL111) += pl111/
obj-$(CONFIG_DRM_TVE200) += tve200/
obj-$(CONFIG_DRM_XEN) += xen/
Expand Down