linux.kernel - 26 new messages in 19 topics - digest
linux.kernel
http://groups.google.com/group/linux.kernel?hl=en
Today's topics:
* ia64: use asm-generic/pci-dma-common.h - 4 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/90e1e10ba4c343d9?hl=en
* Documentation typo - Table 1-2 should refer to "status", not "statm" - 1
messages, 1 author
http://groups.google.com/group/linux.kernel/t/c07ac5ff93add224?hl=en
* viafb: video address setting revisited - 2 messages, 1 author
http://groups.google.com/group/linux.kernel/t/6ac6b24a3bbb3675?hl=en
* viafb: reorder initialization for dual framebuffer mode - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/7eaa682b1bf3fb5b?hl=en
* fs: buffer_head, remove kmem_cache constructor to reduce memory usage under
slub - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/c8d7821e6166fc08?hl=en
* (none) - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/f500786faca6fb52?hl=en
* tracing: add tracing support for compat syscalls - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/22202c3dcd1a3591?hl=en
* sched: cleanup pre_schedule_rt - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/c81bab60d14c64a7?hl=en
* Bluetooth: Keep a copy of each HID device's report descriptor. - 1 messages,
1 author
http://groups.google.com/group/linux.kernel/t/24254d069a593af0?hl=en
* 2.6.33-rc6 crashes on resume - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/6dc9f99de8146cff?hl=en
* Add an Apple iMac9,1 DMI entry to reboot.c so the machine reboot's properly.
- 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/447fb4f73812064b?hl=en
* [PATCH] FUSE/CUSE: implement direct mmap support - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/7fb4c23aaadf23bb?hl=en
* Fix for hugetlb-add-map_hugetlb-for-mmaping-pseudo-anonymous-huge-page-
regions.patch in -mm - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/0563b9f5864a7d83?hl=en
* USB: don't read past config->interface[] if usb_control_msg() fails in usb_
reset_configuration() - 2 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/885f3821a494a777?hl=en
* fs: fix filesystem_sync vs write race on rw=>ro remount - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/39836f2b47ef2893?hl=en
* register long sp asm("r1") incorrect - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/407001dca048cc73?hl=en
* x86: ret_from_fork: use symbolic contants for bits in EFLAGS - 3 messages, 1
author
http://groups.google.com/group/linux.kernel/t/39fe42c1b8d39413?hl=en
* Performance regression in scsi sequential throughput (iozone) due to "e084b -
page-allocator: preserve PFN ordering when __GFP_COLD is set" - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/0f198fe3053e9f98?hl=en
* x86: slightly unify ret_from_fork - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/6a92c712eda199f5?hl=en
==============================================================================
TOPIC: ia64: use asm-generic/pci-dma-common.h
http://groups.google.com/group/linux.kernel/t/90e1e10ba4c343d9?hl=en
==============================================================================
== 1 of 4 ==
Date: Tues, Feb 9 2010 6:20 am
From: e@lab.ntt.co.jp
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Tony Luck <tony.luck@intel.com>
---
arch/ia64/include/asm/pci.h | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/arch/ia64/include/asm/pci.h b/arch/ia64/include/asm/pci.h
index 55281aa..56df0b5 100644
--- a/arch/ia64/include/asm/pci.h
+++ b/arch/ia64/include/asm/pci.h
@@ -57,18 +57,8 @@ pcibios_penalize_isa_irq (int irq, int active)
#include <asm-generic/pci-dma-compat.h>
/* pci_unmap_{single,page} is not a nop, thus... */
-#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \
- dma_addr_t ADDR_NAME;
-#define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \
- __u32 LEN_NAME;
-#define pci_unmap_addr(PTR, ADDR_NAME) \
- ((PTR)->ADDR_NAME)
-#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) \
- (((PTR)->ADDR_NAME) = (VAL))
-#define pci_unmap_len(PTR, LEN_NAME) \
- ((PTR)->LEN_NAME)
-#define pci_unmap_len_set(PTR, LEN_NAME, VAL) \
- (((PTR)->LEN_NAME) = (VAL))
+#define HAVE_ARCH_PCI_UNMAP
+#include <asm-generic/pci-dma-common.h>
#ifdef CONFIG_PCI
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
== 2 of 4 ==
Date: Tues, Feb 9 2010 6:20 am
From: e@lab.ntt.co.jp
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This patch adds include/asm-generic/pci-dma-common.h that defines the
pci_unmap state API:
DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
DECLARE_PCI_UNMAP_LEN(LEN_NAME)
pci_unmap_addr(PTR, ADDR_NAME)
pci_unmap_addr_set(PTR, ADDR_NAME, VAL)
pci_unmap_len(PTR, LEN_NAME)
pci_unmap_len_set(PTR, LEN_NAME, VAL)
This enables us to remove lots of the duplication in architecture
implementations since there are only two ways to define the API.
If architectures define HAVE_ARCH_PCI_UNMAP, they get the real
definition of pci_unmap state API. If not, they get the noop
definition.
In the long term, it's better to replace the API with the generic
device model API such as DECLARE_DMA_UNMAP_ADDR. We can map the API to
the generic one (like dma-mapping-compat.h does). This patch also
makes the migration process easier.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: x86@kernel.org
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: James Bottomley <James.Bottomley@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Chris Zankel <chris@zankel.net>
---
include/asm-generic/pci-dma-common.h | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
create mode 100644 include/asm-generic/pci-dma-common.h
diff --git a/include/asm-generic/pci-dma-common.h b/include/asm-generic/pci-dma-common.h
new file mode 100644
index 0000000..f688bff
--- /dev/null
+++ b/include/asm-generic/pci-dma-common.h
@@ -0,0 +1,20 @@
+#ifndef _ASM_GENERIC_PCI_DMA_COMMON_H
+#define _ASM_GENERIC_PCI_DMA_COMMON_H
+
+#ifdef HAVE_ARCH_PCI_UNMAP
+#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) dma_addr_t ADDR_NAME;
+#define DECLARE_PCI_UNMAP_LEN(LEN_NAME) __u32 LEN_NAME;
+#define pci_unmap_addr(PTR, ADDR_NAME) ((PTR)->ADDR_NAME)
+#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) (((PTR)->ADDR_NAME) = (VAL))
+#define pci_unmap_len(PTR, LEN_NAME) ((PTR)->LEN_NAME)
+#define pci_unmap_len_set(PTR, LEN_NAME, VAL) (((PTR)->LEN_NAME) = (VAL))
+#else
+#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
+#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
+#define pci_unmap_addr(PTR, ADDR_NAME) (0)
+#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0)
+#define pci_unmap_len(PTR, LEN_NAME) (0)
+#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
+
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home