All of lore.kernel.org
 help / color / mirror / Atom feed
From: chenhc@lemote.com
To: "Andreas Barth" <aba@ayous.org>
Cc: "Ralf Baechle" <ralf@linux-mips.org>,
	"John Crispin" <john@phrozen.org>,
	linux-mips@linux-mips.org, "Fuxin Zhang" <zhangfx@lemote.com>,
	"Zhangjin Wu" <wuzhangjin@gmail.com>,
	"Hongliang Tao" <taohl@lemote.com>, "Hua Yan" <yanh@lemote.com>
Subject: Re: [PATCH V10 05/13] MIPS: Loongson: Add UEFI-like firmware interface support
Date: Sun, 23 Jun 2013 10:02:47 +0800	[thread overview]
Message-ID: <5292c3e3e092b848dcafbbaf9a80fbee.squirrel@mail.lemote.com> (raw)
In-Reply-To: <20130622125950.GB19237@mails.so.argh.org>

> * Huacai Chen (chenhc@lemote.com) [130415 14:49]:
>> The new UEFI-like firmware interface has 3 advantages:
>>
>> 1, Firmware export a physical memory map which is similar to X86's
>>    E820 map, so prom_init_memory() will be more elegant that #ifdef
>>    clauses can be removed.
>> 2, Firmware export a pci irq routing table, we no longer need pci
>>    irq routing fixup in kernel's code.
>> 3, Firmware has a built-in vga bios, and its address is exported,
>>    the linux kernel no longer need an embedded blob.
>>
>> With the new interface, Loongson-3A/2G and all their successors can use
>> a unified kernel. All Loongson-based machines support this new interface
>> except 2E/2F series.
>
> Can't we auto-detect whether there is an UEFI-like interface? That
> would allow to reduce the number of #ifdefs a bit.
Cannot be detected at present. In future, all non-UEFI interface will
be replaced and non-UEFI-related code will be removed.

>
>
>> --- a/arch/mips/loongson/common/env.c
>> +++ b/arch/mips/loongson/common/env.c
>>  	while (l != 0) {
>> -		parse_even_earlier(bus_clock, "busclock", l);
>>  		parse_even_earlier(cpu_clock_freq, "cpuclock", l);
>>  		parse_even_earlier(memsize, "memsize", l);
>>  		parse_even_earlier(highmemsize, "highmemsize", l);
>> @@ -57,8 +73,32 @@ void __init prom_init_env(void)
>>  	}
>>  	if (memsize == 0)
>>  		memsize = 256;
>> -	if (bus_clock == 0)
>> -		bus_clock = 66000000;
>> +#else
>
> why are we not interested anymore in busclock in non-UEFI-like
> machines (and shouldn't this be documented in the summary)?
busclock are not used in any place in the kernel, so remove it.

>
>
>
> Andi
>>
>

  reply	other threads:[~2013-06-23  2:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 12:46 [PATCH V10 00/13] MIPS: Add Loongson-3 based machines support Huacai Chen
2013-04-15 12:46 ` [PATCH V10 01/13] MIPS: Loongson: Add basic Loongson-3 definition Huacai Chen
2013-06-22 12:48   ` Andreas Barth
2013-04-15 12:46 ` [PATCH V10 02/13] MIPS: Loongson: Add basic Loongson-3 CPU support Huacai Chen
2013-04-15 12:46 ` [PATCH V10 03/13] MIPS: Loongson: Introduce and use cpu_has_coherent_cache feature Huacai Chen
2013-04-15 12:46 ` [PATCH V10 04/13] MIPS: Loongson 3: Add Lemote-3A machtypes definition Huacai Chen
2013-04-15 12:47 ` [PATCH V10 05/13] MIPS: Loongson: Add UEFI-like firmware interface support Huacai Chen
2013-06-22 12:59   ` Andreas Barth
2013-06-23  2:02     ` chenhc [this message]
2013-04-15 12:47 ` [PATCH V10 06/13] MIPS: Loongson 3: Add HT-linked PCI support Huacai Chen
2013-06-22 13:09   ` Andreas Barth
2013-06-23  2:05     ` chenhc
2013-04-15 12:47 ` [PATCH V10 07/13] MIPS: Loongson 3: Add IRQ init and dispatch support Huacai Chen
2013-04-15 12:47 ` [PATCH V10 08/13] MIPS: Loongson 3: Add serial port support Huacai Chen
2013-04-15 12:47 ` [PATCH V10 09/13] MIPS: Loongson: Add swiotlb to support big memory (>4GB) Huacai Chen
2013-04-15 12:47 ` [PATCH V10 10/13] MIPS: Loongson: Add Loongson-3 Kconfig options Huacai Chen
2013-04-15 12:47 ` [PATCH V10 11/13] MIPS: Loongson 3: Add Loongson-3 SMP support Huacai Chen
2013-04-15 12:47 ` [PATCH V10 12/13] MIPS: Loongson 3: Add CPU hotplug support Huacai Chen
2013-06-28  7:05   ` Ralf Baechle
2013-06-28  7:08     ` Ralf Baechle
2013-07-11  9:31       ` Huacai Chen
2013-07-11 12:35         ` Fuxin Zhang
2013-04-15 12:47 ` [PATCH V10 13/13] MIPS: Loongson: Add a Loongson-3 default config file Huacai Chen

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=5292c3e3e092b848dcafbbaf9a80fbee.squirrel@mail.lemote.com \
    --to=chenhc@lemote.com \
    --cc=aba@ayous.org \
    --cc=john@phrozen.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    --cc=taohl@lemote.com \
    --cc=wuzhangjin@gmail.com \
    --cc=yanh@lemote.com \
    --cc=zhangfx@lemote.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.