From: Christoph Hellwig <hch@lst.de>
To: Geoff Levand <geoffrey.levand@am.sony.com>
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 7/16] powerpc: add support for ps3 platform
Date: Fri, 17 Nov 2006 07:41:18 +0100 [thread overview]
Message-ID: <20061117064118.GA14580@lst.de> (raw)
In-Reply-To: <455BC1E1.2010300@am.sony.com>
On Wed, Nov 15, 2006 at 05:41:53PM -0800, Geoff Levand wrote:
> Christoph Hellwig wrote:
> >> + * Copyright (C) 2006 Sony Computer Entertainment Inc.
> >> + * Copyright 2006 Sony Corp.
> >
> > One with a (C) and one without looks very odd. Who from your corporate
> > mother Sony Corp touched this code anyway?
>
>
> Sony Corp. and Sony Computer Entertainment are different companies with
> different policies. I have no choice here.
So did anyone from Sony Corp sactually touch all these files?
> I set it up that way so that the optimizer will remove the unused parts.
> This machine doesn't have much memory, and the dynamic (that's not my name
> BTW, came from your side) will normally not be used. I don't really want
> to set it up as a runtime option unless there is a real user need.
The optimizer also optimizes away variables that can't be anything but
0. I'm also not sure what "my side" (whatever that may be) has anything
to do with that.
>
>
> >> +enum allocate_memory {
> >> + /* bit 63: transferability */
> >> + LV1_AM_TF_NO = 0x00,
> >> + LV1_AM_TF_YES = 0x01,
> >> + /* bit 62: destruction scheme */
> >> + LV1_AM_DS_NO_CONNECTIONS = 0x00,
> >> + LV1_AM_DS_ANYTIME = 0x02,
> >> + /* bit 61: fail or alternative */
> >> + LV1_AM_FA_FAIL = 0x00,
> >> + LV1_AM_FA_ALTERNATIVE = 0x04,
> >> + /* bit 60: lpar address */
> >> + LV1_AM_ADDR_ANY = 0x00,
> >> + LV1_AM_ADDR_0 = 0x08,
> >> +};
> >
> > If these are for different its they should be in different enums
> > and use different prefixes.
>
>
> These are all flags for lv1_allocate_memory (hence the the LV1_AM_
> prefix). The bits are documented there in the comments, bit 60, 61, etc.
But this is just prone for users to get things wrong. When flags
with the same prefix need to go to different locations something is
badly wrong.
> >> +#if !defined(_510B7842_EE09_4B12_BE5C_D217383D50C7)
> >> +#define _510B7842_EE09_4B12_BE5C_D217383D50C7
> >
> > WTF?
>
>
> Considering your criticism earlier in this mail regarding the use of a
> file name in the file's comments, I'm wondering what your preference
> is here, since the convention is to use a symbol based on the file
> name...
>
> BTW, I'm surprised you don't recognize it:
> uuidgen | tr 'a-z-' 'A-Z_' | sed -e 's/^/_/'
There's a good reason we don't use this elsewhere, and if you think it's a
good idea propose it for general use on lkml (and get the deserved flames)
instead of trying to sneak it in silently. Re the filename comment:
this was mostly a thing for implementation (.c) files that get renamed
a lot so it easily gets stale and has no real value. Headers by their
nature of beein used from various places tend to stay more stable so
this problem is not that bad. And unlike top of file comments inclusion
guards actually serve a purpose so we'll have to live with the
additional work of renaming them in case.
next prev parent reply other threads:[~2006-11-17 6:41 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 20:02 [PATCH 7/16] powerpc: add support for ps3 platform Geoff Levand
2006-11-10 21:23 ` Olof Johansson
2006-11-14 0:11 ` Geoff Levand
2006-11-15 17:54 ` Christoph Hellwig
2006-11-21 2:50 ` Paul Mackerras
2006-11-21 10:11 ` Arnd Bergmann
2006-11-21 10:15 ` Geert Uytterhoeven
2006-11-21 11:59 ` Paul Mackerras
2006-11-21 13:22 ` Christoph Hellwig
2006-11-21 13:42 ` Arnd Bergmann
2006-11-21 13:45 ` Christoph Hellwig
2006-11-21 19:54 ` Geoff Levand
2006-11-21 19:54 ` Geoff Levand
2006-11-21 19:54 ` Geoff Levand
2006-11-14 14:25 ` Geoff Levand
2006-11-11 11:21 ` Christoph Hellwig
2006-11-11 11:24 ` Christoph Hellwig
2006-11-11 11:50 ` Arnd Bergmann
2006-11-13 3:29 ` Geoff Levand
2006-11-14 14:00 ` Geoff Levand
2006-11-15 18:04 ` Christoph Hellwig
2006-11-16 1:41 ` Geoff Levand
2006-11-16 2:13 ` Michael Ellerman
2006-11-17 1:31 ` Geoff Levand
2006-11-17 6:41 ` Christoph Hellwig [this message]
2006-11-17 22:23 ` Benjamin Herrenschmidt
2006-11-18 2:02 ` Geoff Levand
2006-11-21 21:12 ` Geoff Levand
2006-11-17 0:39 ` Benjamin Herrenschmidt
2006-11-17 1:33 ` Geoff Levand
2006-11-17 1:42 ` Michael Ellerman
2006-11-17 2:04 ` Geoff Levand
2006-11-17 2:19 ` Michael Ellerman
2006-11-17 2:44 ` Geoff Levand
2006-11-16 16:35 ` Arnd Bergmann
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=20061117064118.GA14580@lst.de \
--to=hch@lst.de \
--cc=geoffrey.levand@am.sony.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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).