Skip to content

Commit d813335

Browse files
committed
Merge tag 'pci-v4.2-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI updates from Bjorn Helgaas: "PCI changes for the v4.2 merge window: Enumeration - Move pci_ari_enabled() to global header (Alex Williamson) - Account for ARI in _PRT lookups (Alex Williamson) - Remove unused pci_scan_bus_parented() (Yijing Wang) Resource management - Use host bridge _CRS info on systems with >32 bit addressing (Bjorn Helgaas) - Use host bridge _CRS info on Foxconn K8M890-8237A (Bjorn Helgaas) - Fix pci_address_to_pio() conversion of CPU address to I/O port (Zhichang Yuan) - Add pci_bus_addr_t (Yinghai Lu) PCI device hotplug - Wait for pciehp command completion where necessary (Alex Williamson) - Drop pointless ACPI-based "slot detection" check (Rafael J. Wysocki) - Check ignore_hotplug for all downstream devices (Rafael J. Wysocki) - Propagate the "ignore hotplug" setting to parent (Rafael J. Wysocki) - Inline pciehp "handle event" functions into the ISR (Bjorn Helgaas) - Clean up pciehp debug logging (Bjorn Helgaas) Power management - Remove redundant PCIe port type checking (Yijing Wang) - Add dev->has_secondary_link to track downstream PCIe links (Yijing Wang) - Use dev->has_secondary_link to find downstream links for ASPM (Yijing Wang) - Drop __pci_disable_link_state() useless "force" parameter (Bjorn Helgaas) - Simplify Clock Power Management setting (Bjorn Helgaas) Virtualization - Add ACS quirks for Intel 9-series PCH root ports (Alex Williamson) - Add function 1 DMA alias quirk for Marvell 9120 (Sakari Ailus) MSI - Disable MSI at enumeration even if kernel doesn't support MSI (Michael S. Tsirkin) - Remove unused pci_msi_off() (Bjorn Helgaas) - Rename msi_set_enable(), msix_clear_and_set_ctrl() (Michael S. Tsirkin) - Export pci_msi_set_enable(), pci_msix_clear_and_set_ctrl() (Michael S. Tsirkin) - Drop pci_msi_off() calls during probe (Michael S. Tsirkin) APM X-Gene host bridge driver - Add APM X-Gene v1 PCIe MSI/MSIX termination driver (Duc Dang) - Add APM X-Gene PCIe MSI DTS nodes (Duc Dang) - Disable Configuration Request Retry Status for v1 silicon (Duc Dang) - Allow config access to Root Port even when link is down (Duc Dang) Broadcom iProc host bridge driver - Allow override of device tree IRQ mapping function (Hauke Mehrtens) - Add BCMA PCIe driver (Hauke Mehrtens) - Directly add PCI resources (Hauke Mehrtens) - Free resource list after registration (Hauke Mehrtens) Freescale i.MX6 host bridge driver - Add speed change timeout message (Troy Kisky) - Rename imx6_pcie_start_link() to imx6_pcie_establish_link() (Bjorn Helgaas) Freescale Layerscape host bridge driver - Use dw_pcie_link_up() consistently (Bjorn Helgaas) - Factor out ls_pcie_establish_link() (Bjorn Helgaas) Marvell MVEBU host bridge driver - Remove mvebu_pcie_scan_bus() (Yijing Wang) NVIDIA Tegra host bridge driver - Remove tegra_pcie_scan_bus() (Yijing Wang) Synopsys DesignWare host bridge driver - Consolidate outbound iATU programming functions (Jisheng Zhang) - Use iATU0 for cfg and IO, iATU1 for MEM (Jisheng Zhang) - Add support for x8 links (Zhou Wang) - Wait for link to come up with consistent style (Bjorn Helgaas) - Use pci_scan_root_bus() for simplicity (Yijing Wang) TI DRA7xx host bridge driver - Use dw_pcie_link_up() consistently (Bjorn Helgaas) Miscellaneous - Include <linux/pci.h>, not <asm/pci.h> (Bjorn Helgaas) - Remove unnecessary #includes of <asm/pci.h> (Bjorn Helgaas) - Remove unused pcibios_select_root() (again) (Bjorn Helgaas) - Remove unused pci_dma_burst_advice() (Bjorn Helgaas) - xen/pcifront: Don't use deprecated function pci_scan_bus_parented() (Arnd Bergmann)" * tag 'pci-v4.2-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (58 commits) PCI: pciehp: Inline the "handle event" functions into the ISR PCI: pciehp: Rename queue_interrupt_event() to pciehp_queue_interrupt_event() PCI: pciehp: Make queue_interrupt_event() void PCI: xgene: Allow config access to Root Port even when link is down PCI: xgene: Disable Configuration Request Retry Status for v1 silicon PCI: pciehp: Clean up debug logging x86/PCI: Use host bridge _CRS info on systems with >32 bit addressing PCI: imx6: Add #define PCIE_RC_LCSR PCI: imx6: Use "u32", not "uint32_t" PCI: Remove unused pci_scan_bus_parented() xen/pcifront: Don't use deprecated function pci_scan_bus_parented() PCI: imx6: Add speed change timeout message PCI/ASPM: Simplify Clock Power Management setting PCI: designware: Wait for link to come up with consistent style PCI: layerscape: Factor out ls_pcie_establish_link() PCI: layerscape: Use dw_pcie_link_up() consistently PCI: dra7xx: Use dw_pcie_link_up() consistently x86/PCI: Use host bridge _CRS info on Foxconn K8M890-8237A PCI: pciehp: Wait for hotplug command completion where necessary PCI: Remove unused pci_dma_burst_advice() ...
2 parents 234a56c + 207b074 commit d813335

File tree

76 files changed

+1396
-1125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1396
-1125
lines changed

Documentation/DMA-API-HOWTO.txt

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ physical addresses. These are the addresses in /proc/iomem. The physical
2525
address is not directly useful to a driver; it must use ioremap() to map
2626
the space and produce a virtual address.
2727

28-
I/O devices use a third kind of address: a "bus address" or "DMA address".
29-
If a device has registers at an MMIO address, or if it performs DMA to read
30-
or write system memory, the addresses used by the device are bus addresses.
31-
In some systems, bus addresses are identical to CPU physical addresses, but
32-
in general they are not. IOMMUs and host bridges can produce arbitrary
28+
I/O devices use a third kind of address: a "bus address". If a device has
29+
registers at an MMIO address, or if it performs DMA to read or write system
30+
memory, the addresses used by the device are bus addresses. In some
31+
systems, bus addresses are identical to CPU physical addresses, but in
32+
general they are not. IOMMUs and host bridges can produce arbitrary
3333
mappings between physical and bus addresses.
3434

35+
From a device's point of view, DMA uses the bus address space, but it may
36+
be restricted to a subset of that space. For example, even if a system
37+
supports 64-bit addresses for main memory and PCI BARs, it may use an IOMMU
38+
so devices only need to use 32-bit DMA addresses.
39+
3540
Here's a picture and some examples:
3641

3742
CPU CPU Bus
@@ -72,11 +77,11 @@ can use virtual address X to access the buffer, but the device itself
7277
cannot because DMA doesn't go through the CPU virtual memory system.
7378

7479
In some simple systems, the device can do DMA directly to physical address
75-
Y. But in many others, there is IOMMU hardware that translates bus
80+
Y. But in many others, there is IOMMU hardware that translates DMA
7681
addresses to physical addresses, e.g., it translates Z to Y. This is part
7782
of the reason for the DMA API: the driver can give a virtual address X to
7883
an interface like dma_map_single(), which sets up any required IOMMU
79-
mapping and returns the bus address Z. The driver then tells the device to
84+
mapping and returns the DMA address Z. The driver then tells the device to
8085
do DMA to Z, and the IOMMU maps it to the buffer at address Y in system
8186
RAM.
8287

@@ -98,7 +103,7 @@ First of all, you should make sure
98103
#include <linux/dma-mapping.h>
99104

100105
is in your driver, which provides the definition of dma_addr_t. This type
101-
can hold any valid DMA or bus address for the platform and should be used
106+
can hold any valid DMA address for the platform and should be used
102107
everywhere you hold a DMA address returned from the DMA mapping functions.
103108

104109
What memory is DMA'able?
@@ -316,7 +321,7 @@ There are two types of DMA mappings:
316321
Think of "consistent" as "synchronous" or "coherent".
317322

318323
The current default is to return consistent memory in the low 32
319-
bits of the bus space. However, for future compatibility you should
324+
bits of the DMA space. However, for future compatibility you should
320325
set the consistent mask even if this default is fine for your
321326
driver.
322327

@@ -403,7 +408,7 @@ dma_alloc_coherent() returns two values: the virtual address which you
403408
can use to access it from the CPU and dma_handle which you pass to the
404409
card.
405410

406-
The CPU virtual address and the DMA bus address are both
411+
The CPU virtual address and the DMA address are both
407412
guaranteed to be aligned to the smallest PAGE_SIZE order which
408413
is greater than or equal to the requested size. This invariant
409414
exists (for example) to guarantee that if you allocate a chunk
@@ -645,8 +650,8 @@ PLEASE NOTE: The 'nents' argument to the dma_unmap_sg call must be
645650
dma_map_sg call.
646651

647652
Every dma_map_{single,sg}() call should have its dma_unmap_{single,sg}()
648-
counterpart, because the bus address space is a shared resource and
649-
you could render the machine unusable by consuming all bus addresses.
653+
counterpart, because the DMA address space is a shared resource and
654+
you could render the machine unusable by consuming all DMA addresses.
650655

651656
If you need to use the same streaming DMA region multiple times and touch
652657
the data in between the DMA transfers, the buffer needs to be synced

Documentation/DMA-API.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Part I - dma_ API
1818
To get the dma_ API, you must #include <linux/dma-mapping.h>. This
1919
provides dma_addr_t and the interfaces described below.
2020

21-
A dma_addr_t can hold any valid DMA or bus address for the platform. It
22-
can be given to a device to use as a DMA source or target. A CPU cannot
23-
reference a dma_addr_t directly because there may be translation between
24-
its physical address space and the bus address space.
21+
A dma_addr_t can hold any valid DMA address for the platform. It can be
22+
given to a device to use as a DMA source or target. A CPU cannot reference
23+
a dma_addr_t directly because there may be translation between its physical
24+
address space and the DMA address space.
2525

2626
Part Ia - Using large DMA-coherent buffers
2727
------------------------------------------
@@ -42,7 +42,7 @@ It returns a pointer to the allocated region (in the processor's virtual
4242
address space) or NULL if the allocation failed.
4343

4444
It also returns a <dma_handle> which may be cast to an unsigned integer the
45-
same width as the bus and given to the device as the bus address base of
45+
same width as the bus and given to the device as the DMA address base of
4646
the region.
4747

4848
Note: consistent memory can be expensive on some platforms, and the
@@ -193,7 +193,7 @@ dma_map_single(struct device *dev, void *cpu_addr, size_t size,
193193
enum dma_data_direction direction)
194194

195195
Maps a piece of processor virtual memory so it can be accessed by the
196-
device and returns the bus address of the memory.
196+
device and returns the DMA address of the memory.
197197

198198
The direction for both APIs may be converted freely by casting.
199199
However the dma_ API uses a strongly typed enumerator for its
@@ -212,20 +212,20 @@ contiguous piece of memory. For this reason, memory to be mapped by
212212
this API should be obtained from sources which guarantee it to be
213213
physically contiguous (like kmalloc).
214214

215-
Further, the bus address of the memory must be within the
215+
Further, the DMA address of the memory must be within the
216216
dma_mask of the device (the dma_mask is a bit mask of the
217-
addressable region for the device, i.e., if the bus address of
218-
the memory ANDed with the dma_mask is still equal to the bus
217+
addressable region for the device, i.e., if the DMA address of
218+
the memory ANDed with the dma_mask is still equal to the DMA
219219
address, then the device can perform DMA to the memory). To
220220
ensure that the memory allocated by kmalloc is within the dma_mask,
221221
the driver may specify various platform-dependent flags to restrict
222-
the bus address range of the allocation (e.g., on x86, GFP_DMA
223-
guarantees to be within the first 16MB of available bus addresses,
222+
the DMA address range of the allocation (e.g., on x86, GFP_DMA
223+
guarantees to be within the first 16MB of available DMA addresses,
224224
as required by ISA devices).
225225

226226
Note also that the above constraints on physical contiguity and
227227
dma_mask may not apply if the platform has an IOMMU (a device which
228-
maps an I/O bus address to a physical memory address). However, to be
228+
maps an I/O DMA address to a physical memory address). However, to be
229229
portable, device driver writers may *not* assume that such an IOMMU
230230
exists.
231231

@@ -296,7 +296,7 @@ reduce current DMA mapping usage or delay and try again later).
296296
dma_map_sg(struct device *dev, struct scatterlist *sg,
297297
int nents, enum dma_data_direction direction)
298298

299-
Returns: the number of bus address segments mapped (this may be shorter
299+
Returns: the number of DMA address segments mapped (this may be shorter
300300
than <nents> passed in if some elements of the scatter/gather list are
301301
physically or virtually adjacent and an IOMMU maps them with a single
302302
entry).
@@ -340,7 +340,7 @@ must be the same as those and passed in to the scatter/gather mapping
340340
API.
341341

342342
Note: <nents> must be the number you passed in, *not* the number of
343-
bus address entries returned.
343+
DMA address entries returned.
344344

345345
void
346346
dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size,
@@ -507,7 +507,7 @@ it's asked for coherent memory for this device.
507507
phys_addr is the CPU physical address to which the memory is currently
508508
assigned (this will be ioremapped so the CPU can access the region).
509509

510-
device_addr is the bus address the device needs to be programmed
510+
device_addr is the DMA address the device needs to be programmed
511511
with to actually address this memory (this will be handed out as the
512512
dma_addr_t in dma_alloc_coherent()).
513513

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
* AppliedMicro X-Gene v1 PCIe MSI controller
2+
3+
Required properties:
4+
5+
- compatible: should be "apm,xgene1-msi" to identify
6+
X-Gene v1 PCIe MSI controller block.
7+
- msi-controller: indicates that this is X-Gene v1 PCIe MSI controller node
8+
- reg: physical base address (0x79000000) and length (0x900000) for controller
9+
registers. These registers include the MSI termination address and data
10+
registers as well as the MSI interrupt status registers.
11+
- reg-names: not required
12+
- interrupts: A list of 16 interrupt outputs of the controller, starting from
13+
interrupt number 0x10 to 0x1f.
14+
- interrupt-names: not required
15+
16+
Each PCIe node needs to have property msi-parent that points to msi controller node
17+
18+
Examples:
19+
20+
SoC DTSI:
21+
22+
+ MSI node:
23+
msi@79000000 {
24+
compatible = "apm,xgene1-msi";
25+
msi-controller;
26+
reg = <0x00 0x79000000 0x0 0x900000>;
27+
interrupts = <0x0 0x10 0x4>
28+
<0x0 0x11 0x4>
29+
<0x0 0x12 0x4>
30+
<0x0 0x13 0x4>
31+
<0x0 0x14 0x4>
32+
<0x0 0x15 0x4>
33+
<0x0 0x16 0x4>
34+
<0x0 0x17 0x4>
35+
<0x0 0x18 0x4>
36+
<0x0 0x19 0x4>
37+
<0x0 0x1a 0x4>
38+
<0x0 0x1b 0x4>
39+
<0x0 0x1c 0x4>
40+
<0x0 0x1d 0x4>
41+
<0x0 0x1e 0x4>
42+
<0x0 0x1f 0x4>;
43+
};
44+
45+
+ PCIe controller node with msi-parent property pointing to MSI node:
46+
pcie0: pcie@1f2b0000 {
47+
status = "disabled";
48+
device_type = "pci";
49+
compatible = "apm,xgene-storm-pcie", "apm,xgene-pcie";
50+
#interrupt-cells = <1>;
51+
#size-cells = <2>;
52+
#address-cells = <3>;
53+
reg = < 0x00 0x1f2b0000 0x0 0x00010000 /* Controller registers */
54+
0xe0 0xd0000000 0x0 0x00040000>; /* PCI config space */
55+
reg-names = "csr", "cfg";
56+
ranges = <0x01000000 0x00 0x00000000 0xe0 0x10000000 0x00 0x00010000 /* io */
57+
0x02000000 0x00 0x80000000 0xe1 0x80000000 0x00 0x80000000>; /* mem */
58+
dma-ranges = <0x42000000 0x80 0x00000000 0x80 0x00000000 0x00 0x80000000
59+
0x42000000 0x00 0x00000000 0x00 0x00000000 0x80 0x00000000>;
60+
interrupt-map-mask = <0x0 0x0 0x0 0x7>;
61+
interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0xc2 0x1
62+
0x0 0x0 0x0 0x2 &gic 0x0 0xc3 0x1
63+
0x0 0x0 0x0 0x3 &gic 0x0 0xc4 0x1
64+
0x0 0x0 0x0 0x4 &gic 0x0 0xc5 0x1>;
65+
dma-coherent;
66+
clocks = <&pcie0clk 0>;
67+
msi-parent= <&msi>;
68+
};

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7611,6 +7611,14 @@ L: [email protected]
76117611
S: Maintained
76127612
F: drivers/pci/host/*spear*
76137613

7614+
PCI MSI DRIVER FOR APPLIEDMICRO XGENE
7615+
M: Duc Dang <[email protected]>
7616+
7617+
7618+
S: Maintained
7619+
F: Documentation/devicetree/bindings/pci/xgene-pci-msi.txt
7620+
F: drivers/pci/host/pci-xgene-msi.c
7621+
76147622
PCMCIA SUBSYSTEM
76157623
P: Linux PCMCIA Team
76167624

arch/alpha/include/asm/pci.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,6 @@ extern void pcibios_set_master(struct pci_dev *dev);
7171
/* implement the pci_ DMA API in terms of the generic device dma_ one */
7272
#include <asm-generic/pci-dma-compat.h>
7373

74-
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
75-
enum pci_dma_burst_strategy *strat,
76-
unsigned long *strategy_parameter)
77-
{
78-
unsigned long cacheline_size;
79-
u8 byte;
80-
81-
pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &byte);
82-
if (byte == 0)
83-
cacheline_size = 1024;
84-
else
85-
cacheline_size = (int) byte * 4;
86-
87-
*strat = PCI_DMA_BURST_BOUNDARY;
88-
*strategy_parameter = cacheline_size;
89-
}
9074
#endif
9175

9276
/* TODO: integrate with include/asm-generic/pci.h ? */

arch/alpha/kernel/core_irongate.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/bootmem.h>
2323

2424
#include <asm/ptrace.h>
25-
#include <asm/pci.h>
2625
#include <asm/cacheflush.h>
2726
#include <asm/tlbflush.h>
2827

arch/alpha/kernel/sys_eiger.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <asm/irq.h>
2323
#include <asm/mmu_context.h>
2424
#include <asm/io.h>
25-
#include <asm/pci.h>
2625
#include <asm/pgtable.h>
2726
#include <asm/core_tsunami.h>
2827
#include <asm/hwrpb.h>

arch/alpha/kernel/sys_nautilus.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include <asm/irq.h>
4040
#include <asm/mmu_context.h>
4141
#include <asm/io.h>
42-
#include <asm/pci.h>
4342
#include <asm/pgtable.h>
4443
#include <asm/core_irongate.h>
4544
#include <asm/hwrpb.h>

arch/arm/include/asm/pci.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ static inline int pci_proc_domain(struct pci_bus *bus)
3131
*/
3232
#define PCI_DMA_BUS_IS_PHYS (1)
3333

34-
#ifdef CONFIG_PCI
35-
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
36-
enum pci_dma_burst_strategy *strat,
37-
unsigned long *strategy_parameter)
38-
{
39-
*strat = PCI_DMA_BURST_INFINITY;
40-
*strategy_parameter = ~0UL;
41-
}
42-
#endif
43-
4434
#define HAVE_PCI_MMAP
4535
extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
4636
enum pci_mmap_state mmap_state, int write_combine);

arch/arm64/boot/dts/apm/apm-storm.dtsi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,28 @@
374374
};
375375
};
376376

377+
msi: msi@79000000 {
378+
compatible = "apm,xgene1-msi";
379+
msi-controller;
380+
reg = <0x00 0x79000000 0x0 0x900000>;
381+
interrupts = < 0x0 0x10 0x4
382+
0x0 0x11 0x4
383+
0x0 0x12 0x4
384+
0x0 0x13 0x4
385+
0x0 0x14 0x4
386+
0x0 0x15 0x4
387+
0x0 0x16 0x4
388+
0x0 0x17 0x4
389+
0x0 0x18 0x4
390+
0x0 0x19 0x4
391+
0x0 0x1a 0x4
392+
0x0 0x1b 0x4
393+
0x0 0x1c 0x4
394+
0x0 0x1d 0x4
395+
0x0 0x1e 0x4
396+
0x0 0x1f 0x4>;
397+
};
398+
377399
pcie0: pcie@1f2b0000 {
378400
status = "disabled";
379401
device_type = "pci";
@@ -395,6 +417,7 @@
395417
0x0 0x0 0x0 0x4 &gic 0x0 0xc5 0x1>;
396418
dma-coherent;
397419
clocks = <&pcie0clk 0>;
420+
msi-parent = <&msi>;
398421
};
399422

400423
pcie1: pcie@1f2c0000 {
@@ -418,6 +441,7 @@
418441
0x0 0x0 0x0 0x4 &gic 0x0 0xcb 0x1>;
419442
dma-coherent;
420443
clocks = <&pcie1clk 0>;
444+
msi-parent = <&msi>;
421445
};
422446

423447
pcie2: pcie@1f2d0000 {
@@ -441,6 +465,7 @@
441465
0x0 0x0 0x0 0x4 &gic 0x0 0xd1 0x1>;
442466
dma-coherent;
443467
clocks = <&pcie2clk 0>;
468+
msi-parent = <&msi>;
444469
};
445470

446471
pcie3: pcie@1f500000 {
@@ -464,6 +489,7 @@
464489
0x0 0x0 0x0 0x4 &gic 0x0 0xd7 0x1>;
465490
dma-coherent;
466491
clocks = <&pcie3clk 0>;
492+
msi-parent = <&msi>;
467493
};
468494

469495
pcie4: pcie@1f510000 {
@@ -487,6 +513,7 @@
487513
0x0 0x0 0x0 0x4 &gic 0x0 0xdd 0x1>;
488514
dma-coherent;
489515
clocks = <&pcie4clk 0>;
516+
msi-parent = <&msi>;
490517
};
491518

492519
serial0: serial@1c020000 {

arch/frv/include/asm/pci.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
4141
/* Return the index of the PCI controller for device PDEV. */
4242
#define pci_controller_num(PDEV) (0)
4343

44-
#ifdef CONFIG_PCI
45-
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
46-
enum pci_dma_burst_strategy *strat,
47-
unsigned long *strategy_parameter)
48-
{
49-
*strat = PCI_DMA_BURST_INFINITY;
50-
*strategy_parameter = ~0UL;
51-
}
52-
#endif
53-
5444
/*
5545
* These are pretty much arbitrary with the CoMEM implementation.
5646
* We have the whole address space to ourselves.

0 commit comments

Comments
 (0)