mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: "Bagalkote, Sreenivas" <sreenib@lsil.com>
Cc: "'Jeff Garzik'" <jgarzik@pobox.com>,
	"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
	"'linux-scsi@vger.kernel.org'" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH][RELEASE] megaraid 2.10.2 Driver
Date: Tue, 23 Mar 2004 00:45:43 +0000	[thread overview]
Message-ID: <20040323004543.GP25059@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E570230C77B@exa-atlanta.se.lsil.com>

On Mon, Mar 22, 2004 at 07:02:39PM -0500, Bagalkote, Sreenivas wrote:
> >>For upstream, this should just be CONFIG_COMPAT I presume.
> 
> For 2.6 kernels, this would be just CONFIG_COMPAT. Or have I
> misunderstood your comment?
> 
> >>I don't see how this construct will work in all cases.  Hence my 
> >>CONFIG_COMPAT command above.
> 
> We saw the need for ioctl compatibility in __x86_64__ cases so far.
> What other cases will this not work in?

I don't think you understand how CONFIG_COMPAT works.  x86-64 defines it
when it wants it:

config COMPAT
        bool
        depends on IA32_EMULATION
        default y

just like every other architecture.  Just use
#ifdef CONFIG_COMPAT
	... 32bit compat code ...
#endif

and everything will be fine.  Please don't introduce this stupid
unnecessary LSI_CONFIG_COMPAT.  That just makes people say "what the
fuck are they doing?".

> >>Bug -- always set dma mask.  Do not conditionally _not_ call 
> >>pci_set_dma_mask(), for the 64-bit case.
> 
> The code does not __not__ call pci_set_dma_mask() conditionally.
> It is always calling with either 64-bit or 32-bit mask.
> 
> >>ummmm what???    uxferaddr is u32.  why are you casting it to a pointer?
> 
> Both copy_to_user and copy_from_user take pointers, don't they?

So you can only copy to the bottom 4GB of user address space?  That
seems like a recipe for disaster.  Particularly on ia64.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

  reply	other threads:[~2004-03-23  0:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-23  0:02 Bagalkote, Sreenivas
2004-03-23  0:45 ` Matthew Wilcox [this message]
2004-03-23  6:27   ` Christoph Hellwig
2004-03-23 13:30     ` Matthew Wilcox
2004-03-23 13:36       ` Christoph Hellwig
     [not found]       ` <20040324061553.GA13681@logos.cnet>
2004-03-24 20:39         ` Marcelo Tosatti
2004-04-17  2:15 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2004-03-23 16:00 Bagalkote, Sreenivas
2004-03-22 22:56 Bagalkote, Sreenivas
2004-03-22 23:07 ` Jeff Garzik
2004-03-23  8:12   ` Arjan van de Ven

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=20040323004543.GP25059@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sreenib@lsil.com \
    /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

Powered by JetHome