linux_dsm_epyc7002/arch/powerpc/kernel
Kumar Gala 6471fc6630 powerpc: Dont require a dma_ops struct to set dma mask
The only reason to require a dma_ops struct is to see if it has
implemented set_dma_mask.  If not we can fall back to setting the mask
directly.

This resolves an issue with how to sequence the setting of a DMA mask
for platform devices.  Before we had an issue in that we have no way of
setting the DMA mask before the various low level bus notifiers get
called that might check it (swiotlb).

So now we can do:

	pdev = platform_device_alloc("foobar", 0);
	dma_set_mask(&pdev->dev, DMA_BIT_MASK(37));
	platform_device_add(pdev);

And expect the right thing to happen with the bus notifiers get called
via platform_device_add.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-07-08 00:21:36 -05:00
..
vdso32
vdso64
.gitignore
align.c
asm-offsets.c powerpc/85xx: Save scratch registers to thread info instead of using SPRGs. 2011-06-22 21:44:55 -05:00
audit.c
btext.c
cacheinfo.c
cacheinfo.h
clock.c
compat_audit.c
cpu_setup_6xx.S
cpu_setup_44x.S
cpu_setup_a2.S
cpu_setup_fsl_booke.S
cpu_setup_pa6t.S
cpu_setup_power7.S
cpu_setup_ppc970.S
cputable.c
crash_dump.c
crash.c
dbell.c
dma-iommu.c
dma-swiotlb.c
dma.c powerpc: Dont require a dma_ops struct to set dma mask 2011-07-08 00:21:36 -05:00
e500-pmu.c
entry_32.S
entry_64.S
exceptions-64e.S powerpc/book3e-64: Reraise doorbell when masked by soft-irq-disable 2011-06-29 16:40:59 +10:00
exceptions-64s.S
firmware.c
fpu.S
fsl_booke_entry_mapping.S
ftrace.c
head_8xx.S
head_32.S
head_40x.S
head_44x.S
head_64.S powerpc: Fix early boot accounting of CPUs 2011-06-17 16:19:51 +10:00
head_booke.h powerpc/85xx: Save scratch registers to thread info instead of using SPRGs. 2011-06-22 21:44:55 -05:00
head_fsl_booke.S powerpc/85xx: Save scratch registers to thread info instead of using SPRGs. 2011-06-22 21:44:55 -05:00
hw_breakpoint.c
ibmebus.c
idle_6xx.S
idle_book3e.S
idle_e500.S powerpc/e500mc: Add support for the wait instruction in e500_idle 2011-06-27 08:36:15 -05:00
idle_power4.S
idle_power7.S
idle.c
init_task.c
io-workarounds.c
io.c
iomap.c
iommu.c
irq.c powerpc/book3e-64: Reraise doorbell when masked by soft-irq-disable 2011-06-29 16:40:59 +10:00
isa-bridge.c
jump_label.c powerpc: Add jump label support 2011-07-01 13:48:55 +10:00
kgdb.c
kprobes.c
kvm_emul.S
kvm.c
l2cr_6xx.S
legacy_serial.c
lparcfg.c
machine_kexec_32.c
machine_kexec_64.c
machine_kexec.c
Makefile powerpc: Add jump label support 2011-07-01 13:48:55 +10:00
misc_32.S
misc_64.S powerpc/maple: Enable scom access functions on Maple 2011-06-29 17:48:20 +10:00
misc.S
module_32.c
module_64.c
module.c
mpc7450-pmu.c
msi.c
nvram_64.c
of_platform.c
paca.c
pci_32.c powerpc/pci: Move FSL fixup from 32-bit to common 2011-06-22 21:44:57 -05:00
pci_64.c
pci_dn.c
pci_of_scan.c
pci-common.c powerpc/pci: Move FSL fixup from 32-bit to common 2011-06-22 21:44:57 -05:00
perf_callchain.c
perf_event_fsl_emb.c
perf_event.c
pmc.c
power4-pmu.c
power5-pmu.c
power5+-pmu.c
power6-pmu.c
power7-pmu.c
ppc32.h
ppc970-pmu.c
ppc_ksyms.c
ppc_save_regs.S
proc_powerpc.c
process.c
prom_init_check.sh
prom_init.c
prom_parse.c
prom.c Merge remote branch 'origin/master' into next 2011-06-30 15:23:59 +10:00
ptrace32.c
ptrace.c
reloc_64.S
rtas_flash.c
rtas_pci.c
rtas-proc.c
rtas-rtc.c powerpc/rtas-rtc: remove sideeffects of printk_ratelimit 2011-06-29 15:30:43 +10:00
rtas.c
rtasd.c
setup_32.c powerpc: Fix early boot accounting of CPUs 2011-06-17 16:19:51 +10:00
setup_64.c powerpc: Fix early boot accounting of CPUs 2011-06-17 16:19:51 +10:00
setup-common.c powerpc: implement arch_setup_pdev_archdata 2011-07-08 00:21:36 -05:00
setup.h
signal_32.c arch/powerpc: use printk_ratelimited instead of printk_ratelimit 2011-06-29 15:31:01 +10:00
signal_64.c arch/powerpc: use printk_ratelimited instead of printk_ratelimit 2011-06-29 15:31:01 +10:00
signal.c
signal.h
smp-tbsync.c
smp.c powerpc: Create next_tlbcam_idx percpu variable for FSL_BOOKE 2011-07-08 00:21:34 -05:00
softemu8xx.c
stacktrace.c
suspend.c
swsusp_32.S
swsusp_64.c
swsusp_asm64.S
swsusp_booke.S
swsusp.c
sys_ppc32.c
syscalls.c
sysfs.c
systbl_chk.c
systbl_chk.sh
systbl.S
tau_6xx.c
time.c
traps.c arch/powerpc: use printk_ratelimited instead of printk_ratelimit 2011-06-29 15:31:01 +10:00
udbg_16550.c
udbg.c powerpc/pseries: Re-implement HVSI as part of hvc_vio 2011-06-29 17:48:35 +10:00
vdso.c
vecemu.c
vector.S
vio.c
vmlinux.lds.S