From: James Bottomley <James.Bottomley@SteelEye.com>
To: Denis Vlasenko <vda@ilport.com.ua>
Cc: Andrew Morton <akpm@osdl.org>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
arjan@infradead.org, hare@suse.de, gibbs@scsiguy.com,
eike-kernel@sf-tec.de, stefanr@s5r6.in-berlin.de
Subject: Re: [PATCH 1/2] aic7xxx: deinline large functions, save 80k of text
Date: Thu, 13 Apr 2006 10:02:36 -0500 [thread overview]
Message-ID: <1144940556.3474.10.camel@mulgrave.il.steeleye.com> (raw)
In-Reply-To: <200604120945.34419.vda@ilport.com.ua>
On Wed, 2006-04-12 at 09:45 +0300, Denis Vlasenko wrote:
> This patch
>
> moves big inlines into aic79xx_core.c and aic7xxx_core.c
> makes ahd_delay just a wrapper around udelay
> marks a few functions static
> fixes spelling fix in error message
There are two things that really spring to mind here
1. This alters the Adaptec HIM layer (the machine independent bit). I
think no one cares about this anymore, so that's fine. However, if
you're going to do this, do it properly, so get rid of the superfluous
HIM layer abstractions like this:
#define ahd_timer_init init_timer
#define ahd_timer_stop del_timer_sync
typedef void ahd_linux_callback_t (u_long);
Just make it use the linux types natively.
2. There's no actual code content to this, which always makes me
reluctant to accept changes. However, I notice this alters the inb/outb
abstractions, so what you could do, if you were feeling brave is
eliminate the Adaptec implementation of ioread8/iowrite8 and replace it
with the linux one (i.e. use ioport_map if the card really wants port
I/O). This has been on my Todo list for a long time; even if you
haven't got the hardware, Hannes and I can test it for you.
Note that you can't use ioread16 or any of the longer reads or writes.
The adaptec cards have terrible problems with write combining, so
everything needs to still be done in terms of ioread8/iowrite8
James
next prev parent reply other threads:[~2006-04-13 15:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 6:45 Denis Vlasenko
2006-04-12 6:47 ` [PATCH 2/2] aic7xxx: s/__inline/inline Denis Vlasenko
2006-04-12 13:55 ` [PATCH 1/2] aic7xxx: deinline large functions, save 80k of text Hannes Reinecke
2006-04-13 15:02 ` James Bottomley [this message]
2006-04-25 11:31 ` Denis Vlasenko
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=1144940556.3474.10.camel@mulgrave.il.steeleye.com \
--to=james.bottomley@steeleye.com \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=eike-kernel@sf-tec.de \
--cc=gibbs@scsiguy.com \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=stefanr@s5r6.in-berlin.de \
--cc=vda@ilport.com.ua \
/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
all inboxes | Powered by JetHome®