public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] CONFIG_IA64_L1_CACHE_SHIFT
Date: Fri, 02 Mar 2001 15:51:55 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590693005242@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005236@msgid-missing>

>>>>> On 02 Mar 2001 00:18:48 +0100, Jes Sorensen <jes@linuxcare.com> said:

>>>>> "David" = David Mosberger <davidm@hpl.hp.com> writes:
>>>>> On 01 Mar 2001 20:29:28 +0100, Jes Sorensen <jes@linuxcare.com> said:
  Jes> in the config file? We already have SMP_CACHE_BYTES and
  Jes> L1_CACHE bytes for all architectures, it doesn't make a whole
  Jes> lot of sense to me ot invent yet another alignment rule.

  David> $ fgrep CONFIG_IA64_L1 include/asm-ia64/cache.h #define
  David> L1_CACHE_SHIFT CONFIG_IA64_L1_CACHE_SHIFT

  Jes> Hmmm ok

  Jes> It just seemed weird to have it in the config.in
  Jes> file.

Why?  The cache line size is not defined by the architecture (only the
_minimum_ size is architected at 32 bytes), so it may well vary with
future chips.  Also, on some platforms it's beneficial to align to a
bigger size (e.g., SN1), even if the L1 cache line size is the same.

  Jes> Btw. shouldn't the acpi code use SMP_CACHE_BYTES for alignment?
  Jes> It doesn't buy you a whole lot to align on L1 cache boundaries
  Jes> if you're trying to be SMP aware - or is it rather a DMA vs CPU
  Jes> alignment issue?

I don't know.  Not to hurt any feelings, but the ACPI code is a
monstrous piece of software that strikes me as being very poorly
integrated into the Linux kernel.  It seems to redo everything on its
own and does so often more poorly than if it were to use the existing
facilities.  Case in point: it defines its own unaligned access macros
in acmacros.h even though such a facility already is provided in
<asm/unaligned.h>.  Of course, the stuff provided in <asm/unaligned.h>
does the Right Thing, unlike the macros defined in acmacros.h.  Sigh.

My suspicion is that the acpi code is also needlessly complex.  The
ACPI spec obviously doesn't help things (must be the worst spec ever
written), but I think the whole situation is not unlike USB: a poor
spec is likely to lead to a poor implementation, but that doesn't mean
it can't be implemented cleanly.  The question is of course whether
someone cares enough to attempt to either clean up the existing
implementation or re-implement the entire thing from scratch.

	--david


  parent reply	other threads:[~2001-03-02 15:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-01 19:29 [Linux-ia64] CONFIG_IA64_L1_CACHE_SHIFT Jes Sorensen
2001-03-01 22:35 ` David Mosberger
2001-03-01 23:18 ` Jes Sorensen
2001-03-02  1:00 ` Mallick, Asit K
2001-03-02 15:51 ` David Mosberger [this message]
2001-03-02 23:30 ` Grover, Andrew
2001-03-05 19:37 ` David Mosberger

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=marc-linux-ia64-105590693005242@msgid-missing \
    --to=davidm@hpl.hp.com \
    --cc=linux-ia64@vger.kernel.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