From: Christoph Hellwig <hch@lst•de>
To: Dongli Zhang <dongli.zhang@oracle•com>
Cc: ulf.hansson@linaro•org, airlied@linux•ie,
joonas.lahtinen@linux•intel.com, dri-devel@lists•freedesktop.org,
linux-kernel@vger•kernel.org, bhelgaas@google•com,
paulus@samba•org, hpa@zytor•com, hch@lst•de,
m.szyprowski@samsung•com, sstabellini@kernel•org,
adrian.hunter@intel•com, x86@kernel•org, joe.jin@oracle•com,
mingo@kernel•org, peterz@infradead•org, mingo@redhat•com,
bskeggs@redhat•com, linux-pci@vger•kernel.org,
xen-devel@lists•xenproject.org, matthew.auld@intel•com,
thomas.lendacky@amd•com, konrad.wilk@oracle•com,
intel-gfx@lists•freedesktop.org, jani.nikula@linux•intel.com,
bp@alien8•de, rodrigo.vivi@intel•com,
nouveau@lists•freedesktop.org, boris.ostrovsky@oracle•com,
chris@chris-wilson•co.uk, jgross@suse•com,
tsbogend@alpha•franken.de, robin.murphy@arm•com,
linux-mmc@vger•kernel.org, linux-mips@vger•kernel.org,
iommu@lists•linux-foundation.org, tglx@linutronix•de,
bauerman@linux•ibm.com, daniel@ffwll•ch,
akpm@linux-foundation•org, linuxppc-dev@lists•ozlabs.org,
rppt@kernel•org
Subject: Re: [PATCH RFC v1 5/6] xen-swiotlb: convert variables to arrays
Date: Thu, 4 Feb 2021 09:40:23 +0100 [thread overview]
Message-ID: <20210204084023.GA32328@lst.de> (raw)
In-Reply-To: <20210203233709.19819-6-dongli.zhang@oracle.com>
So one thing that has been on my mind for a while: I'd really like
to kill the separate dma ops in Xen swiotlb. If we compare xen-swiotlb
to swiotlb the main difference seems to be:
- additional reasons to bounce I/O vs the plain DMA capable
- the possibility to do a hypercall on arm/arm64
- an extra translation layer before doing the phys_to_dma and vice
versa
- an special memory allocator
I wonder if inbetween a few jump labels or other no overhead enablement
options and possibly better use of the dma_range_map we could kill
off most of swiotlb-xen instead of maintaining all this code duplication?
next prev parent reply other threads:[~2021-02-04 8:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 23:37 [PATCH RFC v1 0/6] swiotlb: 64-bit DMA buffer Dongli Zhang
2021-02-03 23:37 ` [PATCH RFC v1 1/6] swiotlb: define new enumerated type Dongli Zhang
2021-02-03 23:37 ` [PATCH RFC v1 2/6] swiotlb: convert variables to arrays Dongli Zhang
2021-02-04 7:29 ` Christoph Hellwig
2021-02-04 11:49 ` Robin Murphy
2021-02-04 19:31 ` Konrad Rzeszutek Wilk
2021-02-03 23:37 ` [PATCH RFC v1 3/6] swiotlb: introduce swiotlb_get_type() to calculate swiotlb buffer type Dongli Zhang
2021-02-03 23:37 ` [PATCH RFC v1 4/6] swiotlb: enable 64-bit swiotlb Dongli Zhang
2021-02-03 23:37 ` [PATCH RFC v1 5/6] xen-swiotlb: convert variables to arrays Dongli Zhang
2021-02-04 8:40 ` Christoph Hellwig [this message]
2021-02-07 15:56 ` Christoph Hellwig
2021-02-19 20:32 ` Konrad Rzeszutek Wilk
2021-02-19 23:59 ` Boris Ostrovsky
2021-02-23 1:22 ` Stefano Stabellini
2021-02-03 23:37 ` [PATCH RFC v1 6/6] xen-swiotlb: enable 64-bit xen-swiotlb Dongli Zhang
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=20210204084023.GA32328@lst.de \
--to=hch@lst$(echo .)de \
--cc=adrian.hunter@intel$(echo .)com \
--cc=airlied@linux$(echo .)ie \
--cc=akpm@linux-foundation$(echo .)org \
--cc=bauerman@linux$(echo .)ibm.com \
--cc=bhelgaas@google$(echo .)com \
--cc=boris.ostrovsky@oracle$(echo .)com \
--cc=bp@alien8$(echo .)de \
--cc=bskeggs@redhat$(echo .)com \
--cc=chris@chris-wilson$(echo .)co.uk \
--cc=daniel@ffwll$(echo .)ch \
--cc=dongli.zhang@oracle$(echo .)com \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=hpa@zytor$(echo .)com \
--cc=intel-gfx@lists$(echo .)freedesktop.org \
--cc=iommu@lists$(echo .)linux-foundation.org \
--cc=jani.nikula@linux$(echo .)intel.com \
--cc=jgross@suse$(echo .)com \
--cc=joe.jin@oracle$(echo .)com \
--cc=joonas.lahtinen@linux$(echo .)intel.com \
--cc=konrad.wilk@oracle$(echo .)com \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-mips@vger$(echo .)kernel.org \
--cc=linux-mmc@vger$(echo .)kernel.org \
--cc=linux-pci@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=m.szyprowski@samsung$(echo .)com \
--cc=matthew.auld@intel$(echo .)com \
--cc=mingo@kernel$(echo .)org \
--cc=mingo@redhat$(echo .)com \
--cc=nouveau@lists$(echo .)freedesktop.org \
--cc=paulus@samba$(echo .)org \
--cc=peterz@infradead$(echo .)org \
--cc=robin.murphy@arm$(echo .)com \
--cc=rodrigo.vivi@intel$(echo .)com \
--cc=rppt@kernel$(echo .)org \
--cc=sstabellini@kernel$(echo .)org \
--cc=tglx@linutronix$(echo .)de \
--cc=thomas.lendacky@amd$(echo .)com \
--cc=tsbogend@alpha$(echo .)franken.de \
--cc=ulf.hansson@linaro$(echo .)org \
--cc=x86@kernel$(echo .)org \
--cc=xen-devel@lists$(echo .)xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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