From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] EHCI driver - USB 2.0 support
Date: Sat, 01 Oct 2011 20:05:07 +0200 [thread overview]
Message-ID: <4E875653.40902@gmail.com> (raw)
In-Reply-To: <1317456941.3063.76.camel@pracovna>
[-- Attachment #1: Type: text/plain, Size: 2427 bytes --]
On 01.10.2011 10:15, Aleš Nesrsta wrote:
> Vladimir 'φ-coder/phcoder' Serbinenko píše v Pá 30. 09. 2011 v 17:37
> +0200:
>> That must be a too long interval of writing e-mail. I started it a month
>> ago, then interrupted and now finishing it
> No problem, I have often very, very long "response time" too...
> (sometimes infinite...) :-)
>
> According to all comments/changes below - in fact I agree with all, but
> I will wait with changes in code until You try EHCI on fuloong or
> another machine(s), as there could be some additional mistakes/changes
> in code after test - or feel totally free to make Your own corrected
> starting version of this driver code for any experimental branch or
> trunk.
>
Ok, I'll do it since EHCI is important. I also feel like there is no
need to maroon it in experimental
> Currently I have only note to discussed "packed" attribute "problem":
> I have no problem to delete it - especially if it is usual programmer
> praxis in such cases (or You can do it instead of me without my
> agreement - no problem, because You are the maintainer of whole code and
> You are making code rules... :-) ).
>
Don't consider me some kind of dictator, I just want some coherency in
design, rather than having incoherent problems.
> Only to clarify my point of view:
>
> 1. I think there is difference between structures and arrays, compiler
> can (must) use different alignment for each case:
> For array members - there it must be according to type of array, resp.
> length of array member
> For structure members (and possibly whole structure alignment) - there
> can be used any alignment, I see no reason why should be structure
> member alignment generally restricted in some way even if the whole
> structure is then used as array member
>
> 2. AFAIK (but maybe it is not true, maybe it was never true...?)
> compilers are using default alignment of variables usually according to
> native length of CPU "word". So, as we have 64-bit machines now, it
> could be only question of time when compilers will use 64 bits alignment
> as default.
Reading and writing into a byte aligned on word doesn't bring any
advantage and wastes memory and decreases portability so no compiler
will ever do it.
The whole reason to align is because of performance advantages and
instruction availability.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2011-10-01 18:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-25 19:13 [PATCH] EHCI driver - USB 2.0 support Aleš Nesrsta
2011-06-25 19:51 ` Szymon Janc
2011-06-26 20:37 ` Aleš Nesrsta
2011-07-21 21:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-08-27 16:42 ` Aleš Nesrsta
2011-09-30 15:37 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-10-01 8:15 ` Aleš Nesrsta
2011-10-01 18:05 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2011-10-01 20:04 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-10-01 22:03 ` [PATCH] EHCI driver - USB 2.0 support - alignment Aleš Nesrsta
2011-10-01 19:01 ` [PATCH] EHCI driver - USB 2.0 support - addendum Aleš Nesrsta
2011-11-03 9:25 ` [PATCH] EHCI driver - USB 2.0 support Philipp Hahn
2011-11-04 20:56 ` Aleš Nesrsta
[not found] ` <4E40A417.6000309@163.com>
[not found] ` <1312926878.2943.128.camel@pracovna>
2011-08-19 2:58 ` [Resolved] Grub2 can not detect usb disk Cui Lei
2011-06-25 20:27 ` [PATCH] EHCI driver - USB 2.0 support Vladimir 'φ-coder/phcoder' Serbinenko
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=4E875653.40902@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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 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.