From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] arm: Remove unofficial mach-type number uses
Date: Wed, 25 Jan 2017 09:15:46 +0200 [thread overview]
Message-ID: <8148b8a6-e872-cba8-97e2-5ea2cd340900@compulab.co.il> (raw)
In-Reply-To: <b3c4ae7e-0dd9-3bf4-3f5d-40832e4574b6@mleia.com>
Hi guys,
On 01/25/17 03:34, Vladimir Zapolskiy wrote:
> On 01/25/2017 01:13 AM, Tom Rini wrote:
>> [re-sending without a URL in it]
>>
>> On Wed, Jan 25, 2017 at 12:28:47AM +0200, Vladimir Zapolskiy wrote:
>>> Hi Tom,
>>>
>>> On 01/24/2017 11:31 PM, Tom Rini wrote:
>>>> We have a number of instances of platforms that define a MACH_TYPE_xxx
>>>> value and number. We are currently synced with the latest vales from
>>>> the Linux Kernel and in turn if numbers are not used there it is because
>>>> they were never officially used anywhere. We drop all our instances of
>>>> these numbers.
>>>
>>> [snip]
[...]
>> So I talked with rmk about this quickly and the reduced list, which is
>> what the kernel uses and I also wish to use is the reduced list of
>> MACH_TYPE_xxx and the short version is that the reduced list only
>> includes the MACH_TYPE_xxx values that were used in mainline rather than
>> just registered. Perhaps instead of saying "officially used" I should
>> make it clearer that it means used in the upstream linux kernel?
>>
>
> Right, just the usage of the list in the upstream Linux kernel is assumed.
>
> I see a few more points for consideration.
>
> 1) From Documentation/arm/README the list of machine type IDs is only
> usable for non-DT machines and combined DT/non-DT machines. I suppose it
> should be rather safe to remove mach types from U-Boot board files for
> all archs/boards with CONFIG_OF_LIBFDT build option selected, for example
> the DevKit3250 board falls into this category. By this criterion you may
> consider to split the change into two -- one change is safe, another
> change updates legacy or badly maintained boards.
>
> 2) The reduced mach-types list is used by Linux, I'm not sure and it
> may happen that other OS kernels recognize the complete list. Also if
> by chance someone wants to update a U-Boot image and keep the old Linux
> kernel, there is a possibility that the old kernel won't boot.
cm-t335 is an example of such machine.
Most of our cm-t335 customers use non-DT kernel 3.2 in their production.
Removing cm-t335 mach type will prevent us to provide them with an
updated bootloader, or will force us to maintain an out of tree patch...
>
> 3) From header info in the Russell's mach-types file, the reduced list
> enumerates machines found in vanilla or machines with information not
> edited for one year. Generally this is a soft enforcement to push machine
> support to the kernel officially (or better switch it to DT), because
> unlikely once correctly added information needs any further updates,
> and most of the entries are removed due to this reason.
>
> Hypothetically it could be possible that a machine maintainer finds that
> after rebasing private changes on top of the latest Linux release, a board
> mach type is not recognized by the Linux kernel due to an expired and
> removed entry in mach-types, then s/he updates a record in Russell's DB
> to get the old machine type ID again. However a counterpart change in
> U-boot board config won't be synced automatically, and IMHO it should be
> stated that this problem is neglected, obviously because it causes
> maintenance burden for no gain.
>
> That said, your change is good, it may produce a discontent in particular
> cases, but it won't be problematic to remove it by partial commit
> reverting and adding an explanatory comment into the code.
>
> --
> With best wishes,
> Vladimir
>
--
Regards,
Igor.
next prev parent reply other threads:[~2017-01-25 7:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 21:31 [U-Boot] [PATCH 1/2] arm: Remove unofficial mach-type number uses Tom Rini
2017-01-24 21:31 ` [U-Boot] [PATCH 2/2] arm: Clean up MACH_TYPE defines in config headers Tom Rini
2017-01-24 22:28 ` [U-Boot] [PATCH 1/2] arm: Remove unofficial mach-type number uses Vladimir Zapolskiy
2017-01-24 23:13 ` Tom Rini
2017-01-25 1:34 ` Vladimir Zapolskiy
2017-01-25 7:15 ` Igor Grinberg [this message]
2017-01-25 7:23 ` Albert ARIBAUD
2017-01-25 12:58 ` Tom Rini
2017-01-25 7:25 ` Igor Grinberg
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=8148b8a6-e872-cba8-97e2-5ea2cd340900@compulab.co.il \
--to=grinberg@compulab.co.il \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox