All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: jeremy@goop.org, tony.luck@intel.com,
	linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com,
	x86@kernel.org, ian.campbell@citrix.com,
	beckyb@kernel.crashing.org
Subject: Re: [PATCH 0 of 9] swiotlb: use phys_addr_t for pages
Date: Sat, 27 Dec 2008 17:56:22 +0100	[thread overview]
Message-ID: <20081227165622.GA19796@elte.hu> (raw)
In-Reply-To: <20081228014432L.fujita.tomonori@lab.ntt.co.jp>


* FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:

> On Sat, 27 Dec 2008 11:48:23 +0100
> Ingo Molnar <mingo@elte.hu> wrote:
> 
> > Also, this patch will interact with ia64 materially:
> > 
> >   Subject: [PATCH 9 of 9] ia64/x86/swiotlb: use enum dma_data_direciton in dma_ops
> > 
> > So we'll need a bit more confidence in the testing status of this queue, 
> > and we probably want to wait until Tony merged the pending .29 ia64 
> > changes, and also get an Ack from Tony for these bits:
> > 
> >  arch/ia64/dig/dig_vtd_iommu.c       |    9 +++--
> >  arch/ia64/hp/common/hwsw_iommu.c    |   22 ++++++++------
> >  arch/ia64/hp/common/sba_iommu.c     |   12 ++++---
> >  arch/ia64/include/asm/dma-mapping.h |   29 +++++++++---------
> >  arch/ia64/include/asm/swiotlb.h     |   26 ++++++++++------
> >  arch/ia64/kernel/machvec.c          |    6 ++-
> >  arch/ia64/sn/kernel/io_common.c     |    3 +-
> >  arch/ia64/sn/pci/pci_dma.c          |   21 ++++++++-----
> >  arch/ia64/sn/pci/pcibr/pcibr_dma.c  |    3 +-
> >  arch/ia64/sn/pci/tioca_provider.c   |    3 +-
> > 
> > (Tony Cc:-ed)
> 
> BTW, the above patch breaks IA64 build.
> 
> It's fixable but I think that it would be better to just drop this huge 
> patch and add some cast in powerpc code. the types of SWIOTBL function 
> arguments don't need to mach to DAM_API.txt though it might be nice if 
> so. There are other type mismatches. If we really want to do this 
> cleanups, we should fix up all the mismatches.

hm, we shouldnt do ugly typecasts - lets fix all the places. As Jeremy 
indicated, this is work in progress.

	Ingo

WARNING: multiple messages have this Message-ID (diff)
From: Ingo Molnar <mingo@elte.hu>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: jeremy@goop.org, xen-devel@lists.xensource.com,
	ian.campbell@citrix.com, beckyb@kernel.crashing.org,
	x86@kernel.org, linux-kernel@vger.kernel.org,
	tony.luck@intel.com
Subject: Re: [PATCH 0 of 9] swiotlb: use phys_addr_t for pages
Date: Sat, 27 Dec 2008 17:56:22 +0100	[thread overview]
Message-ID: <20081227165622.GA19796@elte.hu> (raw)
In-Reply-To: <20081228014432L.fujita.tomonori@lab.ntt.co.jp>


* FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:

> On Sat, 27 Dec 2008 11:48:23 +0100
> Ingo Molnar <mingo@elte.hu> wrote:
> 
> > Also, this patch will interact with ia64 materially:
> > 
> >   Subject: [PATCH 9 of 9] ia64/x86/swiotlb: use enum dma_data_direciton in dma_ops
> > 
> > So we'll need a bit more confidence in the testing status of this queue, 
> > and we probably want to wait until Tony merged the pending .29 ia64 
> > changes, and also get an Ack from Tony for these bits:
> > 
> >  arch/ia64/dig/dig_vtd_iommu.c       |    9 +++--
> >  arch/ia64/hp/common/hwsw_iommu.c    |   22 ++++++++------
> >  arch/ia64/hp/common/sba_iommu.c     |   12 ++++---
> >  arch/ia64/include/asm/dma-mapping.h |   29 +++++++++---------
> >  arch/ia64/include/asm/swiotlb.h     |   26 ++++++++++------
> >  arch/ia64/kernel/machvec.c          |    6 ++-
> >  arch/ia64/sn/kernel/io_common.c     |    3 +-
> >  arch/ia64/sn/pci/pci_dma.c          |   21 ++++++++-----
> >  arch/ia64/sn/pci/pcibr/pcibr_dma.c  |    3 +-
> >  arch/ia64/sn/pci/tioca_provider.c   |    3 +-
> > 
> > (Tony Cc:-ed)
> 
> BTW, the above patch breaks IA64 build.
> 
> It's fixable but I think that it would be better to just drop this huge 
> patch and add some cast in powerpc code. the types of SWIOTBL function 
> arguments don't need to mach to DAM_API.txt though it might be nice if 
> so. There are other type mismatches. If we really want to do this 
> cleanups, we should fix up all the mismatches.

hm, we shouldnt do ugly typecasts - lets fix all the places. As Jeremy 
indicated, this is work in progress.

	Ingo

  reply	other threads:[~2008-12-27 16:57 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-22 18:26 [PATCH 0 of 9] swiotlb: use phys_addr_t for pages Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 1 of 9] revert "swiotlb: support bouncing of HighMem pages." Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 2 of 9] revert "swiotlb: factor out copy to/from device." Jeremy Fitzhardinge
2008-12-22 18:26   ` Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 3 of 9] swiotlb: add hwdev to swiotlb_phys_to_bus Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 4 of 9] swiotlb: Drop SG_ENT_VIRT_ADDRESS macro Jeremy Fitzhardinge
2008-12-22 18:26   ` Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 5 of 9] swiotlb: Rename SG_ENT_PHYS_ADDRESS to SG_ENT_BUS_ADDRESS Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 6 of 9] swiotlb: Store phys address in io_tlb_orig_addr array Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 7 of 9] swiotlb: Add support for systems with highmem Jeremy Fitzhardinge
2008-12-22 18:26   ` Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 8 of 9] swiotlb: cleanups to swiotlb_bounce() Jeremy Fitzhardinge
2008-12-22 18:26 ` [PATCH 9 of 9] ia64/x86/swiotlb: use enum dma_data_direciton in dma_ops Jeremy Fitzhardinge
2008-12-22 18:43 ` [PATCH 0 of 9] swiotlb: use phys_addr_t for pages FUJITA Tomonori
2008-12-27 10:48 ` Ingo Molnar
2008-12-27 10:48   ` Ingo Molnar
2008-12-27 15:06   ` FUJITA Tomonori
2008-12-28  5:01     ` Jeremy Fitzhardinge
2008-12-28  5:01       ` Jeremy Fitzhardinge
2008-12-28  9:50       ` Ingo Molnar
2008-12-27 16:44   ` FUJITA Tomonori
2008-12-27 16:56     ` Ingo Molnar [this message]
2008-12-27 16:56       ` Ingo Molnar
2008-12-27 17:03       ` FUJITA Tomonori
2008-12-28  5:29         ` FUJITA Tomonori
2008-12-28  7:30           ` Christoph Hellwig
2008-12-28  9:36             ` FUJITA Tomonori
2008-12-28 21:37             ` Benjamin Herrenschmidt
2008-12-28  9:37           ` Ingo Molnar
2008-12-28  9:37             ` Ingo Molnar
2008-12-28 10:02             ` FUJITA Tomonori
2008-12-28 10:34               ` Ingo Molnar
2008-12-28 10:34                 ` Ingo Molnar
2008-12-28 11:00                 ` FUJITA Tomonori
2008-12-28 11:56                   ` Ingo Molnar
2008-12-28 11:56                     ` Ingo Molnar
2008-12-28 12:34                     ` FUJITA Tomonori
2008-12-28 12:49                       ` Ingo Molnar
2008-12-28 12:49                         ` Ingo Molnar

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=20081227165622.GA19796@elte.hu \
    --to=mingo@elte.hu \
    --cc=beckyb@kernel.crashing.org \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=ian.campbell@citrix.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.