From: me@tobin.cc (Tobin C. Harding)
To: kernelnewbies@lists.kernelnewbies.org
Subject: endian patches
Date: Mon, 1 May 2017 19:47:59 +1000 [thread overview]
Message-ID: <20170501094759.GK21332@eros> (raw)
In-Reply-To: <87lgqhdo0k.fsf@miraculix.mork.no>
On Mon, May 01, 2017 at 09:39:23AM +0200, Bj?rn Mork wrote:
> "Tobin C. Harding" <me@tobin.cc> writes:
>
> > Should [drivers/staging/*] patches to endian code be tested on hardware
> > before submission?
>
> All patches should be tested before submission, IF possible.
>
> But there is no reason to hold back a patch just because you cannot test
> it yourself. Submit it anyway, noting the level of testing you have
> done. E.g. "build-tested only", or "verified on LE but not tested on BE",
> or whatever you find appropriate.
>
> It is not uncommon for the author/submitter to be unable to test bug
> fixes on real hardware. Many endian fixes will be obvious enough to
> make testing unnessary. And even if the maintainer thinks testing is
> necessary, there might be reviewers with the necessary hardware but
> without the time or insight to write the code.
>
> I don't think there ever is a reason not to post a patch. Just make
> sure that you have done as much as you can to verify it yourself, and
> describe what you have done. Make it clear if you think it needs more
> testing, and why you haven't done that. Missing hardware is a very good
> reason.
>
> > During recent development of ks7010 driver, and from watching patch
> > review on devel at linuxdriverproject.org, I formed the opinion that
> > patches fixing endian issues need to be tested on hardware before they
> > can be *guaranteed* to be correct.
>
> No patch is *guaranteed* to be correct in my experience :)
>
> Seriously, I don't think there is anything special about endian fixes.
> Yes, they do add an additional hardware dimension, which often will
> trigger the missing test hardware problem. But the question about
> whether testing on hardware is necessary or not is the same as for all
> other fixes. So is the answer: It depends.
>
> Endian fixes like documenting the hardware registers, and adding
> conversion to and from the CPU endianness when accessing them, will
> often be obvious enough to be applicable even without testing.
>
>
> Bj?rn
thanks Bj?rn
prev parent reply other threads:[~2017-05-01 9:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-30 23:26 endian patches Tobin C. Harding
2017-05-01 5:17 ` valdis.kletnieks at vt.edu
2017-05-01 7:39 ` Bjørn Mork
2017-05-01 9:47 ` Tobin C. Harding [this message]
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=20170501094759.GK21332@eros \
--to=me@tobin.cc \
--cc=kernelnewbies@lists.kernelnewbies.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
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;
as well as URLs for NNTP newsgroup(s).