public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Gérard Roudier" <groudier@free.fr>
To: David Mosberger <davidm@hpl.hp.com>
Cc: Christoph Hellwig <hch@caldera.de>,
	"David S. Miller" <davem@redhat.com>, <mmadore@turbolinux.com>,
	<linux-ia64@linuxia64.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [Linux-ia64] Proper fix for sym53c8xx_2 driver and dma64_addr_t
Date: Tue, 5 Feb 2002 22:34:37 +0100 (CET)	[thread overview]
Message-ID: <20020205222530.H1707-100000@gerard> (raw)
In-Reply-To: <15457.25770.707397.595744@napali.hpl.hp.com>



On Wed, 6 Feb 2002, David Mosberger wrote:

> >>>>> On Wed, 6 Feb 2002 18:10:42 +0100, Christoph Hellwig <hch@caldera.de> said:
>
>   Christoph> On Wed, Feb 06, 2002 at 12:45:03AM -0800, David S. Miller
>   Christoph> wrote:
>   >> It is not using the DMA apis correctly then, it should be using
>   >> dma_addr_t which may or may not be 64-bits on a given platform.
>
>   Christoph> When the sym2 driver is configured with
>   Christoph> SYM_CONF_DMA_ADDRESSING_MOD > 1 it uses DAC accessing and
>   Christoph> needs dma64_addr_t.  It doesn't use it when using the
>   Christoph> default addressing mode.
>
> The driver never uses the pci_dac* interface, hence it should not use
> dma64_addr_t.  If the driver needs a 64-bit wide type, u64 will do
> fine.

The driver was ready for PCI DAC months before the Linux way to do DAC was
stabilized to the current one. Given the discussion on the harmless way
the sym2 driver is using dma64_addr_t, it seems to me that this interface
may still move.

This let me think that the real problem is not the sym2 driver here, but
rather the Linux IO interfaces saga that lasts from years.

For now just replacing all occurrences (in fact only 1) of the offending
dma64 thing in sym_glue.c by the corresponding dma thing should do the
trick and close this thread as a result.

If you want to discuss about either PCI DAC under Linux or Linux-i64 arch
(that btw seems to be dead prior to have born) then, please, change the
subject of this thread.

  Gérard.


  reply	other threads:[~2002-02-06 20:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3C6043E5.D1F40E5D@turbolinux.com>
     [not found] ` <20020205223804.A22012@caldera.de>
     [not found]   ` <15456.21030.840746.209377@napali.hpl.hp.com>
2002-02-06  8:21     ` [Linux-ia64] Proper fix for sym53c8xx_2 driver and dma64_addr_t Christoph Hellwig
2002-02-06  8:29       ` David S. Miller
2002-02-06  8:35         ` Christoph Hellwig
2002-02-06  8:45           ` David S. Miller
2002-02-05 21:23             ` Gérard Roudier
2002-02-06 17:10             ` Christoph Hellwig
2002-02-06 17:15               ` Christoph Hellwig
2002-02-06 17:15               ` David Mosberger
2002-02-05 21:34                 ` Gérard Roudier [this message]
2002-02-07  2:09               ` David S. Miller
2002-02-06 21:38                 ` Gérard Roudier
2002-02-06 16:54       ` 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=20020205222530.H1707-100000@gerard \
    --to=groudier@free.fr \
    --cc=davem@redhat.com \
    --cc=davidm@hpl.hp.com \
    --cc=hch@caldera.de \
    --cc=linux-ia64@linuxia64.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmadore@turbolinux.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