ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: ALT Devel discussion list <devel@altlinux.ru>
Cc: ALT Linux Sisyphus <sisyphus@altlinux.ru>
Subject: [sisyphus] Re: [devel] I: pentium4 arch support in rpm
Date: Mon, 04 Oct 2004 15:47:38 +0400
Message-ID: <4161385A.3030600@altlinux.com> (raw)
In-Reply-To: <20040928124441.GE20415@immo.ru>

Чудненько.

Я тут как раз закончил тулзу, которая умеет детектить какой процессор 
кем является ;-)

Кстати, предлагаю пойти дальше и выдавать флаги оптимизации под 
процессор из hwdatabase::cpu.

Мы можем выдавать флаги вплоть до определения наличия определенного 
набора инструкций. Синтаксис простой:

<cpu vendor>	<family>	model	stepping	brandid (если есть)	model name

дальше идут модификаторы, позволяющие добавить к описанию этого 
процессора драйвера.

например вот описание процессора AMD Athlon 64 с версией ядра SH7-CG:
AuthenticAMD	f	7	a	AMD Athlon64(tm) Processor
?cpufreq=yes	+driver	powernow-k8
+revision	SH7-CG

Мое предложение заключается в добавлении сюда модификатора gccopt, например:
+gccopt	-march=athlon-xp -mcpu=athlon-xp -msse -m3dnow -mmmx -mfpmath=sse

Соответсвенно если это надо, то я  добавлю в cpuscan (пока оно еще не в 
Sisyphus, но пойдет туда чуть ли не сегодня):

$/usr/bin/cpuscan --gcc-flags
-march=athlon-xp -mcpu=athlon-xp -msse -m3dnow -mmmx -mfpmath=sse


да, работает это все независимо от ядра. Детект идет с использованием 
инструкций cpuid и rdmsr, но для rdmsr нужно загружать модуль ядра msr.

Rgds,
Rider

Alexey I. Froloff пишет:
> https://bugzilla.altlinux.org/show_bug.cgi?id=5259
> 
> Прошу всех заинтересованых лиц протестировать.  Подводный грабель
> пока найден один - не детектит Xeon, потому как я просто не знаю
> какие из ксеонов являются p3, а какие p4 (для определения
> архитектуры используется /proc/cpuinfo)...
> 
> По результатам удачного тестирования можно будет начинать
> уговаривать ldv приложить этот патч, по результатам неудачного
> тестирования - аттачте патчи для патча ;-)
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Devel mailing list
> Devel@altlinux.ru
> https://lists.altlinux.ru/mailman/listinfo/devel


  parent reply	other threads:[~2004-10-04 11:47 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 12:44 [sisyphus] " Alexey I. Froloff
2004-09-28 13:11 ` Aleksey Avdeev
2004-09-28 13:18   ` Alexey I. Froloff
2004-09-29 16:48     ` Немос
2004-09-29 18:25       ` Andrey Rahmatullin
2004-09-30  7:41         ` Немос
2004-09-30  7:51           ` Alexey I. Froloff
2004-09-30 14:57             ` Немос
2004-10-01  3:56               ` Alexey I. Froloff
2004-10-01 13:49                 ` Немос
2004-10-01 14:09                   ` Led
2004-10-01 14:50                     ` Немос
2004-10-01 19:30                       ` [sisyphus] Re: hasher Dmitry V. Levin
2004-10-01 14:11                   ` [sisyphus] I: pentium4 arch support in rpm Alexey I. Froloff
2004-10-01 14:53                     ` Немос
2004-10-02 11:08                     ` Немос
2004-09-30  7:07       ` Alexei Takaseev
2004-10-01 20:14     ` [sisyphus] " Michael Shigorin
2004-10-04  4:06       ` Alexey I. Froloff
2004-10-06 13:12         ` Michael Shigorin
2004-09-28 13:50 ` [sisyphus] " Led
2004-09-28 14:12   ` Alexey I. Froloff
2004-09-28 14:22     ` Led
2004-09-28 14:47 ` Alexey I. Froloff
2004-09-28 17:11   ` [devel] " Alexey I. Froloff
2004-09-28 17:45 ` [sisyphus] Re: [devel] " Sergey
2004-09-29  7:16   ` Led
2004-09-29  9:23     ` Alexey I. Froloff
2004-10-04 11:47 ` Anton Farygin [this message]
2004-10-04 12:15   ` Led
2004-10-04 12:27     ` Anton Farygin
2004-10-04 12:33       ` Alexey I. Froloff
2004-10-04 12:47         ` Led
2004-10-04 15:04       ` Re[2]: " Volkov Serge
2004-10-06 13:11       ` Michael Shigorin
2004-10-06 13:24         ` Maxim Tyurin
2004-10-06 14:23           ` Michael Shigorin
2004-10-06 13:25         ` Mike Lykov
2004-10-06 14:27           ` [sisyphus] [JT] " Michael Shigorin
2004-10-06 14:53             ` Andrey Rahmatullin
2004-10-07  5:19               ` Guest007

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=4161385A.3030600@altlinux.com \
    --to=rider@altlinux.com \
    --cc=devel@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /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