Skip to contentSkip to conversation

driver-core: add asynch module loading support

RFC Arjan van de Ven 2 participants 3 messages Aug 31, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 14 lines · 吴章金

Hi, folks

I'm back to this discussion,

The original requirement of my first RFC patchset is mainly for Android Smartphone use case:

1. We want light on LCD and draw a logo immediately after power key press(don't consider uboot or lk biotloader here).
2. We want the whole kernel boot fast to give user the Android Launch deaktop
3. The modem initialization/reset is slow
4. The Touchpad firmware upgrade is slow
5. We have many cpu cores(up to 8 in latest exynos 5430 and MT6595...)
6. We have few schedulable/parallellizable threads
7. We compiled all of the modules in the kernel(stupid? avoid modprobe...but lose parallelization in userspace)

Quoted 1 line

So, I think about is that possible to async most of the probes, but still reserve the requred dependencies to let them still work as expected.

you can boot a whole kernel including all graphics in less than 0.5 seconds, even without this patchset.

#2 lore raw
Quoted 18 lines · Arjan van de Ven
Quoted 5 lines · 吴章金

Hi, folks

I'm back to this discussion,

The original requirement of my first RFC patchset is mainly for

Android Smartphone use case:

Quoted 2 lines

1. We want light on LCD and draw a logo immediately after power key

press(don't consider uboot or lk biotloader here).

Quoted 1 line

2. We want the whole kernel boot fast to give user the Android Launch

deaktop

Quoted 3 lines

3. The modem initialization/reset is slow
4. The Touchpad firmware upgrade is slow
5. We have many cpu cores(up to 8 in latest exynos 5430 and

MT6595...)

Quoted 2 lines

6. We have few schedulable/parallellizable threads
7. We compiled all of the modules in the kernel(stupid? avoid

Quoted 8 lines

modprobe...but lose parallelization in userspace)

Quoted 2 lines

So, I think about is that possible to async most of the probes, but

still reserve the requred dependencies to let them still work as expected.

you can boot a whole kernel including all graphics in less than 0.5 seconds, even without this patchset.

You forgot to add "on certain subset of hardware and configuration".

Thanks.

Signature · 1 line
Dmitry
#3 lore raw
Quoted 22 lines · Dmitry Torokhov
Quoted 21 lines · Arjan van de Ven
Quoted 5 lines · 吴章金

Hi, folks

I'm back to this discussion,

The original requirement of my first RFC patchset is mainly for

Android Smartphone use case:

Quoted 2 lines

1. We want light on LCD and draw a logo immediately after power key

press(don't consider uboot or lk biotloader here).

Quoted 1 line

2. We want the whole kernel boot fast to give user the Android Launch

deaktop

Quoted 3 lines

3. The modem initialization/reset is slow
4. The Touchpad firmware upgrade is slow
5. We have many cpu cores(up to 8 in latest exynos 5430 and

MT6595...)

Quoted 2 lines

6. We have few schedulable/parallellizable threads
7. We compiled all of the modules in the kernel(stupid? avoid

modprobe...but lose parallelization in userspace)

Quoted 2 lines

So, I think about is that possible to async most of the probes, but

Quoted 8 lines
Quoted 5 lines

still reserve the requred dependencies to let them still work as expected.

you can boot a whole kernel including all graphics in less than 0.5 seconds, even without this patchset.

You forgot to add "on certain subset of hardware and configuration".

certainly.

for hardware that takes longer than 0.5s you certainly won't get that.

asynchronous/parallel init helps, but it is not a miracle. Most devices I've worked on
(wide range of hardware from PC to tablets to phones) there tend to be 4 to 5 big guys and a long tail of negliable ones. the big guys tend to be, even after going in parallel, so large that people who wanted instant boot have to accept that more miracles are needed.
Like actual work in the driver or device firmware to split work up, rather than an "from the outside" make it asynchronous.