2017-11-27 22:21 GMT+08:00 Arnd Bergmann <[email protected]>:
> On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu <[email protected]> wrote:
>
>> diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu
>> new file mode 100644
>> index 0000000..6b4013f
>> --- /dev/null
>> +++ b/arch/nds32/Kconfig.cpu
>> @@ -0,0 +1,131 @@
>> +comment "Processor Features"
>> +
>> +config CPU_BIG_ENDIAN
>> + bool "Big endian"
>> + def_bool n
>> +
>> +config CPU_LITTLE_ENDIAN
>> + bool "Little endian"
>> + def_bool y
>
> These must be mutually exclusive, you surely get some build error if you try to
> set both here.
>
> You can either make it a 'choice' statement to pick between the two, or you
> can make CPU_LITTLE_ENDIAN a silent option like
>
> config CPU_BIG_ENDIAN
> bool "Big endian"
>
> config CPU_LITTLE_ENDIAN
> def_bool !CPU_BIG_ENDIAN
>
Thanks. I will fix it in the next version patch.
>> +config CPU_CACHE_NONALIASING
>> + bool "Non-aliasing cache"
>> + help
>> + If this CPU is using VIPT data cache and its cache way size is larger
>> + than page size, say N. If it is using PIPT data cache, say Y.
>> +
>> + If unsure, say Y.
>
> Can you determine this from the CPU type?
There is no cpu register to determine it. It also depeneds on page
size and way size however page size is configurable by software.
These codes are determined at compile time will be benefit to code
size and performance.
IMHO, I think it would be better to be determined here.
>> +choice
>> + prompt "Memory split"
>> + depends on MMU
>> + default VMSPLIT_3G
>> + help
>> + Select the desired split between kernel and user memory.
>> +
>> + If you are not absolutely sure what you are doing, leave this
>> + option alone!
>> +
>> + config VMSPLIT_3G
>> + bool "3G/1G user/kernel split"
>> + config VMSPLIT_3G_OPT
>> + bool "3G/1G user/kernel split (for full 1G low memory)"
>> + config VMSPLIT_2G
>> + bool "2G/2G user/kernel split"
>> + config VMSPLIT_1G
>> + bool "1G/3G user/kernel split"
>> +endchoice
>
> I think you mentioned that the 1GB configuration is quite common, how
> about making VMSPLIT_3G_OPT the default here?
We use 1GB in our fpga platform, but I am not sure our customer's
config and their user space program may use bigger memory space.
Anyway, we will discuss it to decide the default value.
Thanks for your suggestion.
From 1585401539271424599@xxx Wed Nov 29 11:58:49 +0000 2017
X-GM-THRID: 1585224361841060243
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread