ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Arioch <the_Arioch@nm.ru>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] Re: service: microcode_ctl
Date: Thu, 08 Dec 2005 21:52:47 +0300
Message-ID: <dn9ve5$lgm$1@sea.gmane.org> (raw)
In-Reply-To: <20051208153351.GA17038@mail.gu.net>

Victor Forsyuk пишет:

>>Судя по всему дело таки в UDEV. Оно необходимо.
> 
> Я правильно понял, что к инитскрипту microcode_ctl претензий нет? :-)

Нет, как миннимум две - ARGS и rmmod :)


> И всё таки, получилось или это просто догадки? А так как я уже видел костыли
> на тему "udev is slow creating devices" 

Тут я не знаю, как получится. Это надо проверять.
Поскольку DevFS у нас мертва и статического /dev тоже нет - можно жестко 
привязаться к UDEV и придумать UDEV rule.

И м.б. найти способ грузить модуль через hotplug ?

Пока я считаю, что microcode нужно обновлять до демонов типа CpuFreqD, 
остальное обсужаемо.

> проверим устройство), то хотелось бы понять - есть ли необходимость
> терпеливо ждать появления /dev/cpu/microcode...

Если файла нет - microcode_ctl не работает. Точка.

>>В данном случае она сразу пишет что не существует файла /dev/cpu/microcode
> 
> Ну да, но поскольку потом, при запуске вручную, он уже существует -
> наверняка проблема в том, что между "modprobe microcode" и вызовом
> microcode_ctl /dev/cpu/microcode не успел создаться.

Блин, кто и как будет создавать /dev/cpu/microcode, если UDEV'a еще нет 
в проекте ? Он стартует потом, с приоритетом 2 !!!
Я ж потому и писал "UDEV необходимо" потому что на момент запуска SUBJ 
нет еще никакого UDEV'a !

> 
>>Кстати, а зачем он потом нужен? м.б. стоит выгружать модуль после 
>>обновления кода?
>  
> Да, логично. Повесите это всё в багзиле?

Когда/если обсудим и договоримся. А что, забудете ?

Пока я свел бы функцию скрипта к загрузке модуля (м.б. и это повесить на 
hotplug как нибудь? ), а UDEV Rules (если это возможно отделить - кроме 
данного модуля никто не может создать /dev/cpu/microcode ? ) бы запускал 
  microcode_ctl,а потом делал rmmod. Правда тогда точно не получится 
выводить на консоль ошибку, разве что как-то ее в syslog перенаправить? 
Но как? ДА и нет еще syslog'a в момент запуска UDEV. Правда в момент 
запуска HotPlug уже есть.



  reply	other threads:[~2005-12-08 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-06 12:29 [sisyphus] " Arioch
2005-12-06 13:42 ` Victor Forsyuk
2005-12-06 19:56   ` [sisyphus] " Arioch
2005-12-06 22:05     ` Michael Shigorin
2005-12-08 15:33     ` Victor Forsyuk
2005-12-08 18:52       ` Arioch [this message]
2005-12-09  8:34       ` Yuriy Kashirin
2005-12-13 19:13   ` Arioch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dn9ve5$lgm$1@sea.gmane.org' \
    --to=the_arioch@nm.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git