Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync up with Linus #31

Merged
merged 86 commits into from
Feb 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
75e8d06
netfilter: nf_tables: validate hooks in NAT expressions
ummakynes Jan 14, 2015
e8781f7
netfilter: nf_tables: disable preemption when restoring chain counters
ummakynes Jan 21, 2015
19c5392
PCI: designware: Reject MSI-X IRQs
lynxeye-dev Jan 27, 2015
973fbce
spi: spi-fsl-dspi: Remove usage of devm_kzalloc
bhuvanchandra Jan 27, 2015
e73ebb0
tcp: stretch ACK fixes prep
nealcardwell Jan 29, 2015
814d488
tcp: fix the timid additive increase on stretch ACKs
nealcardwell Jan 29, 2015
c22bdca
tcp: fix stretch ACK bugs in Reno
nealcardwell Jan 29, 2015
9cd981d
tcp: fix stretch ACK bugs in CUBIC
nealcardwell Jan 29, 2015
d6b1a8a
tcp: fix timing issue in CUBIC slope calculation
nealcardwell Jan 29, 2015
95224ac
Merge branch 'tcp_stretch_acks'
davem330 Jan 29, 2015
59ccaaa
bridge: dont send notification when skb->len == 0 in rtnl_bridge_notify
roopa-prabhu Jan 29, 2015
150ae0e
lib/checksum.c: fix carry in csum_tcpudp_nofold
kbeldan Jan 28, 2015
811230c
tcp: ipv4: initialize unicast_sock sk_pacing_rate
Jan 28, 2015
9ce3577
lib/checksum.c: fix build for generic csum_tcpudp_nofold
kbeldan Jan 29, 2015
8997c27
caif: remove wrong dev_net_set() call
NicolasDichtel Jan 26, 2015
33564bb
vxlan: setup the right link netns in newlink hdlr
NicolasDichtel Jan 26, 2015
d445d63
Merge branch 'netns'
davem330 Jan 29, 2015
e2a4800
ppp: deflate: never return len larger than output buffer
Jan 28, 2015
fc9a570
net: cs89x0: always build platform code if !HAS_IOPORT_MAP
arndb Jan 28, 2015
303c28d
net: wan: add missing virt_to_bus dependencies
arndb Jan 28, 2015
e9b106b
net: lance,ni64: don't build for ARM
arndb Jan 28, 2015
96a3017
net: am2150: fix nmclan_cs.c shared interrupt handling
arndb Jan 28, 2015
a1a0b55
Merge branch 'arm-build-fixes'
davem330 Jan 29, 2015
3cdaa5b
ipv4: Don't increase PMTU with Datagram Too Big message.
Jan 29, 2015
579eb62
ipvs: rerouting to local clients is not needed anymore
Dec 18, 2014
f5553c1
netfilter: nf_tables: fix leaks in error path of nf_tables_newchain()
ummakynes Jan 29, 2015
8b7c36d
netlink: fix wrong subscription bitmask to group mapping in
ummakynes Jan 29, 2015
cfbf654
net: sctp: fix passing wrong parameter header to param_type2af in sct…
Jan 29, 2015
d4bcef3
net: Fix vlan_get_protocol for stacked vlan
Jan 29, 2015
72b1405
igbvf: Fix checksum error when using stacked vlan
Jan 29, 2015
0213668
ixgbe: Fix checksum error when using stacked vlan
Jan 29, 2015
10e4fb3
ixgbevf: Fix checksum error when using stacked vlan
Jan 29, 2015
08178e5
Merge branch 'vlan_get_protocol'
davem330 Jan 31, 2015
ecf6ba8
drivers: net: xgene: fix: Out of order descriptor bytes read
isubrama Jan 29, 2015
d953ca4
hyperv: Fix the error processing in netvsc_send()
haiyangz Jan 29, 2015
0d32ef8
net: sched: fix panic in rate estimators
Jan 30, 2015
bdbbb85
ipv4: tcp: get rid of ugly unicast_sock
Jan 30, 2015
8b58f26
drm/amdkfd: Fix bug in accounting of queues
Jan 29, 2015
ca400b2
drm/amdkfd: max num of queues can't be 0
Jan 29, 2015
b9dce23
drm/amdkfd: Don't create BUG due to incorrect user parameter
Jan 20, 2015
28072ad
scsi: fix device handler detach oops
Jan 28, 2015
3a9794d
sd: Fix max transfer length for 4k disks
bjking1 Jan 29, 2015
51ac3d2
PCI: Add NEC variants to Stratus ftServer PCIe DMI check
Feb 2, 2015
72edd83
drm/radeon: fix PLLs on RS880 and older v2
ChristianKoenigAMD Jan 29, 2015
544143f
drm/radeon: don't init gpuvm if accel is disabled (v3)
alexdeucher Jan 28, 2015
a124d06
drm/radeon: properly set vm fragment size for TN/RL
alexdeucher Jan 30, 2015
3f5e1b4
drm/radeon: fix the crash in benchmark functions
ihadzic Jan 30, 2015
92b712b
drm/radeon: fix the crash in test functions
ihadzic Jan 30, 2015
92773fc
Merge branch 'drm-fixes-3.19' of git://people.freedesktop.org/~agd5f/…
airlied Feb 3, 2015
8664096
Merge tag 'drm-amdkfd-fixes-2015-02-02' of git://people.freedesktop.o…
airlied Feb 3, 2015
61132bf
qlge: Fix qlge_update_hw_vlan_features to handle if interface is down
marceloleitner Jan 30, 2015
44ba582
sunvnet: set queue mapping when doing packet copies
Jan 30, 2015
e6b02be
Documentation: Update netlink_mmap.txt
richardweinberger Jan 30, 2015
3ae5582
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
davem330 Feb 3, 2015
c101cff
isdn: off by one in connect_res()
Feb 1, 2015
5a2e87b
net/mlx4_core: Fix kernel Oops (mem corruption) when working with mor…
Feb 2, 2015
42b5212
xen-netback: stop the guest rx thread after a fatal error
Feb 2, 2015
a02bb40
spi: imx: use pio mode for i.mx6dl
Feb 3, 2015
3df2da9
Revert "ACPI / LPSS: introduce a 'proxy' device to power on LPSS for …
rafaeljw Feb 3, 2015
06cf35f
PCI: Handle read-only BARs on AMD CS553x devices
Feb 3, 2015
0508c07
ipv6: Select fragment id during UFO segmentation if not set.
vyasevich Feb 3, 2015
72f6510
Revert "drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO…
vyasevich Feb 3, 2015
e3e3c42
Revert "drivers/net: Disable UFO through virtio"
vyasevich Feb 3, 2015
4c122f4
Merge branch 'virtio_net_ufo'
davem330 Feb 4, 2015
d426a84
Merge remote-tracking branches 'spi/fix/fsl-dspi' and 'spi/fix/imx' i…
broonie Feb 4, 2015
06b19b1
net: usb: sr9700: Use 'SR_' prefix for the common register macros
Feb 2, 2015
75300ad
gianfar: correct the bad expression while writing bit-pattern
sanjeevs1 Feb 3, 2015
5201aa4
vhost/net: fix up num_buffers endian-ness
mstsirkin Feb 3, 2015
db27ebb
net: rds: use correct size for max unacked packets and bytes
sashalevin Feb 3, 2015
7f551b1
drm/cirrus: Limit modes depending on bpp option
tiwai Feb 3, 2015
3725a26
pkt_sched: fq: avoid hang when quantum 0
knneth Feb 3, 2015
b057df2
cls_api.c: Fix dumping of non-existing actions' stats.
iazz Feb 3, 2015
211fcf6
amd-xgbe: Adjust for zero-based traffic class count
tlendacky Feb 3, 2015
cf180b8
amd-xgbe: Set RSS enablement based on hardware features
tlendacky Feb 3, 2015
f31ec95
qlcnic: Fix NAPI poll routine for Tx completion
Feb 4, 2015
d1e158e
ip6_gre: fix endianness errors in ip6gre_err
qsn Feb 4, 2015
f4575d3
flow_keys: n_proto type should be __be16
Feb 4, 2015
2ce1ee1
net: remove some sparse warnings
Feb 4, 2015
6776514
ipv6: fix sparse errors in ip6_make_flowlabel()
Feb 4, 2015
a409cae
sit: fix some __be16/u16 mismatches
Feb 4, 2015
f3c2352
Merge tag 'pci-v3.19-fixes-2' of git://git.kernel.org/pub/scm/linux/k…
torvalds Feb 5, 2015
e7394c7
Merge tag 'pm+acpi-3.19-fin' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Feb 5, 2015
d445d46
Merge tag 'spi-v3.19-rc7' of git://git.kernel.org/pub/scm/linux/kerne…
torvalds Feb 5, 2015
42345d6
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
torvalds Feb 5, 2015
14365ea
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…
torvalds Feb 5, 2015
9d82f5e
MMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
torvalds Feb 5, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions Documentation/networking/netlink_mmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,9 @@ frame header.
TX limitations
--------------

Kernel processing usually involves validation of the message received by
user-space, then processing its contents. The kernel must assure that
userspace is not able to modify the message contents after they have been
validated. In order to do so, the message is copied from the ring frame
to an allocated buffer if either of these conditions is false:

- only a single mapping of the ring exists
- the file descriptor is not shared between processes

This means that for threaded programs, the kernel will fall back to copying.
As of Jan 2015 the message is always copied from the ring frame to an
allocated buffer due to unresolved security concerns.
See commit 4682a0358639b29cf ("netlink: Always copy on mmap TX.").

Example
-------
Expand Down
16 changes: 16 additions & 0 deletions arch/x86/pci/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,22 @@ static const struct dmi_system_id pciprobe_dmi_table[] __initconst = {
DMI_MATCH(DMI_PRODUCT_NAME, "ftServer"),
},
},
{
.callback = set_scan_all,
.ident = "Stratus/NEC ftServer",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
DMI_MATCH(DMI_PRODUCT_NAME, "Express5800/R32"),
},
},
{
.callback = set_scan_all,
.ident = "Stratus/NEC ftServer",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
DMI_MATCH(DMI_PRODUCT_NAME, "Express5800/R31"),
},
},
{}
};

Expand Down
35 changes: 7 additions & 28 deletions drivers/acpi/acpi_lpss.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* ACPI support for Intel Lynxpoint LPSS.
*
* Copyright (C) 2013, 2014, Intel Corporation
* Copyright (C) 2013, Intel Corporation
* Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
* Rafael J. Wysocki <rafael.j.wysocki@intel.com>
*
Expand Down Expand Up @@ -60,8 +60,6 @@ ACPI_MODULE_NAME("acpi_lpss");
#define LPSS_CLK_DIVIDER BIT(2)
#define LPSS_LTR BIT(3)
#define LPSS_SAVE_CTX BIT(4)
#define LPSS_DEV_PROXY BIT(5)
#define LPSS_PROXY_REQ BIT(6)

struct lpss_private_data;

Expand All @@ -72,10 +70,8 @@ struct lpss_device_desc {
void (*setup)(struct lpss_private_data *pdata);
};

static struct device *proxy_device;

static struct lpss_device_desc lpss_dma_desc = {
.flags = LPSS_CLK | LPSS_PROXY_REQ,
.flags = LPSS_CLK,
};

struct lpss_private_data {
Expand Down Expand Up @@ -150,24 +146,22 @@ static struct lpss_device_desc byt_pwm_dev_desc = {
};

static struct lpss_device_desc byt_uart_dev_desc = {
.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_SAVE_CTX |
LPSS_DEV_PROXY,
.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_SAVE_CTX,
.prv_offset = 0x800,
.setup = lpss_uart_setup,
};

static struct lpss_device_desc byt_spi_dev_desc = {
.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_SAVE_CTX |
LPSS_DEV_PROXY,
.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_SAVE_CTX,
.prv_offset = 0x400,
};

static struct lpss_device_desc byt_sdio_dev_desc = {
.flags = LPSS_CLK | LPSS_DEV_PROXY,
.flags = LPSS_CLK,
};

static struct lpss_device_desc byt_i2c_dev_desc = {
.flags = LPSS_CLK | LPSS_SAVE_CTX | LPSS_DEV_PROXY,
.flags = LPSS_CLK | LPSS_SAVE_CTX,
.prv_offset = 0x800,
.setup = byt_i2c_setup,
};
Expand Down Expand Up @@ -374,8 +368,6 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
adev->driver_data = pdata;
pdev = acpi_create_platform_device(adev);
if (!IS_ERR_OR_NULL(pdev)) {
if (!proxy_device && dev_desc->flags & LPSS_DEV_PROXY)
proxy_device = &pdev->dev;
return 1;
}

Expand Down Expand Up @@ -600,27 +592,14 @@ static int acpi_lpss_runtime_suspend(struct device *dev)
if (pdata->dev_desc->flags & LPSS_SAVE_CTX)
acpi_lpss_save_ctx(dev, pdata);

ret = acpi_dev_runtime_suspend(dev);
if (ret)
return ret;

if (pdata->dev_desc->flags & LPSS_PROXY_REQ && proxy_device)
return pm_runtime_put_sync_suspend(proxy_device);

return 0;
return acpi_dev_runtime_suspend(dev);
}

static int acpi_lpss_runtime_resume(struct device *dev)
{
struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev));
int ret;

if (pdata->dev_desc->flags & LPSS_PROXY_REQ && proxy_device) {
ret = pm_runtime_get_sync(proxy_device);
if (ret)
return ret;
}

ret = acpi_dev_runtime_resume(dev);
if (ret)
return ret;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ static void destroy_kernel_queue_cpsch(struct device_queue_manager *dqm,
* Unconditionally decrement this counter, regardless of the queue's
* type.
*/
dqm->total_queue_count++;
dqm->total_queue_count--;
pr_debug("Total of %d queues are accountable so far\n",
dqm->total_queue_count);
mutex_unlock(&dqm->lock);
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ static int __init kfd_module_init(void)
}

/* Verify module parameters */
if ((max_num_of_queues_per_device < 0) ||
if ((max_num_of_queues_per_device < 1) ||
(max_num_of_queues_per_device >
KFD_MAX_NUM_OF_QUEUES_PER_DEVICE)) {
pr_err("kfd: max_num_of_queues_per_device must be between 0 to KFD_MAX_NUM_OF_QUEUES_PER_DEVICE\n");
pr_err("kfd: max_num_of_queues_per_device must be between 1 to KFD_MAX_NUM_OF_QUEUES_PER_DEVICE\n");
return -1;
}

Expand Down
6 changes: 5 additions & 1 deletion drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,11 @@ int pqm_update_queue(struct process_queue_manager *pqm, unsigned int qid,
BUG_ON(!pqm);

pqn = get_queue_by_qid(pqm, qid);
BUG_ON(!pqn);
if (!pqn) {
pr_debug("amdkfd: No queue %d exists for update operation\n",
qid);
return -EFAULT;
}

pqn->q->properties.queue_address = p->queue_address;
pqn->q->properties.queue_size = p->queue_size;
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/cirrus/cirrus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
#include "cirrus_drv.h"

int cirrus_modeset = -1;
int cirrus_bpp = 24;

MODULE_PARM_DESC(modeset, "Disable/Enable modesetting");
module_param_named(modeset, cirrus_modeset, int, 0400);
MODULE_PARM_DESC(bpp, "Max bits-per-pixel (default:24)");
module_param_named(bpp, cirrus_bpp, int, 0400);

/*
* This is the generic driver code. This binds the driver to the drm core,
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/cirrus/cirrus_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,7 @@ static inline void cirrus_bo_unreserve(struct cirrus_bo *bo)

int cirrus_bo_push_sysram(struct cirrus_bo *bo);
int cirrus_bo_pin(struct cirrus_bo *bo, u32 pl_flag, u64 *gpu_addr);

extern int cirrus_bpp;

#endif /* __CIRRUS_DRV_H__ */
2 changes: 2 additions & 0 deletions drivers/gpu/drm/cirrus/cirrus_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ bool cirrus_check_framebuffer(struct cirrus_device *cdev, int width, int height,
const int max_pitch = 0x1FF << 3; /* (4096 - 1) & ~111b bytes */
const int max_size = cdev->mc.vram_size;

if (bpp > cirrus_bpp)
return false;
if (bpp > 32)
return false;

Expand Down
9 changes: 7 additions & 2 deletions drivers/gpu/drm/cirrus/cirrus_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,13 @@ static int cirrus_vga_get_modes(struct drm_connector *connector)
int count;

/* Just add a static list of modes */
count = drm_add_modes_noedid(connector, 1280, 1024);
drm_set_preferred_mode(connector, 1024, 768);
if (cirrus_bpp <= 24) {
count = drm_add_modes_noedid(connector, 1280, 1024);
drm_set_preferred_mode(connector, 1024, 768);
} else {
count = drm_add_modes_noedid(connector, 800, 600);
drm_set_preferred_mode(connector, 800, 600);
}
return count;
}

Expand Down
13 changes: 8 additions & 5 deletions drivers/gpu/drm/radeon/radeon_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@

static int radeon_benchmark_do_move(struct radeon_device *rdev, unsigned size,
uint64_t saddr, uint64_t daddr,
int flag, int n)
int flag, int n,
struct reservation_object *resv)
{
unsigned long start_jiffies;
unsigned long end_jiffies;
Expand All @@ -47,12 +48,12 @@ static int radeon_benchmark_do_move(struct radeon_device *rdev, unsigned size,
case RADEON_BENCHMARK_COPY_DMA:
fence = radeon_copy_dma(rdev, saddr, daddr,
size / RADEON_GPU_PAGE_SIZE,
NULL);
resv);
break;
case RADEON_BENCHMARK_COPY_BLIT:
fence = radeon_copy_blit(rdev, saddr, daddr,
size / RADEON_GPU_PAGE_SIZE,
NULL);
resv);
break;
default:
DRM_ERROR("Unknown copy method\n");
Expand Down Expand Up @@ -120,7 +121,8 @@ static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size,

if (rdev->asic->copy.dma) {
time = radeon_benchmark_do_move(rdev, size, saddr, daddr,
RADEON_BENCHMARK_COPY_DMA, n);
RADEON_BENCHMARK_COPY_DMA, n,
dobj->tbo.resv);
if (time < 0)
goto out_cleanup;
if (time > 0)
Expand All @@ -130,7 +132,8 @@ static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size,

if (rdev->asic->copy.blit) {
time = radeon_benchmark_do_move(rdev, size, saddr, daddr,
RADEON_BENCHMARK_COPY_BLIT, n);
RADEON_BENCHMARK_COPY_BLIT, n,
dobj->tbo.resv);
if (time < 0)
goto out_cleanup;
if (time > 0)
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/radeon_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,9 @@ void radeon_compute_pll_avivo(struct radeon_pll *pll,
if (pll->flags & RADEON_PLL_USE_FRAC_FB_DIV &&
pll->flags & RADEON_PLL_USE_REF_DIV)
ref_div_max = pll->reference_div;
else if (pll->flags & RADEON_PLL_PREFER_MINM_OVER_MAXP)
/* fix for problems on RS880 */
ref_div_max = min(pll->max_ref_div, 7u);
else
ref_div_max = pll->max_ref_div;

Expand Down
6 changes: 4 additions & 2 deletions drivers/gpu/drm/radeon/radeon_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ int radeon_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_pri
struct radeon_bo_va *bo_va;
int r;

if (rdev->family < CHIP_CAYMAN) {
if ((rdev->family < CHIP_CAYMAN) ||
(!rdev->accel_working)) {
return 0;
}

Expand Down Expand Up @@ -176,7 +177,8 @@ void radeon_gem_object_close(struct drm_gem_object *obj,
struct radeon_bo_va *bo_va;
int r;

if (rdev->family < CHIP_CAYMAN) {
if ((rdev->family < CHIP_CAYMAN) ||
(!rdev->accel_working)) {
return;
}

Expand Down
16 changes: 8 additions & 8 deletions drivers/gpu/drm/radeon/radeon_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,14 @@ int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
return -ENOMEM;
}

vm = &fpriv->vm;
r = radeon_vm_init(rdev, vm);
if (r) {
kfree(fpriv);
return r;
}

if (rdev->accel_working) {
vm = &fpriv->vm;
r = radeon_vm_init(rdev, vm);
if (r) {
kfree(fpriv);
return r;
}

r = radeon_bo_reserve(rdev->ring_tmp_bo.bo, false);
if (r) {
radeon_vm_fini(rdev, vm);
Expand Down Expand Up @@ -668,9 +668,9 @@ void radeon_driver_postclose_kms(struct drm_device *dev,
radeon_vm_bo_rmv(rdev, vm->ib_bo_va);
radeon_bo_unreserve(rdev->ring_tmp_bo.bo);
}
radeon_vm_fini(rdev, vm);
}

radeon_vm_fini(rdev, vm);
kfree(fpriv);
file_priv->driver_priv = NULL;
}
Expand Down
8 changes: 4 additions & 4 deletions drivers/gpu/drm/radeon/radeon_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ static void radeon_do_test_moves(struct radeon_device *rdev, int flag)
if (ring == R600_RING_TYPE_DMA_INDEX)
fence = radeon_copy_dma(rdev, gtt_addr, vram_addr,
size / RADEON_GPU_PAGE_SIZE,
NULL);
vram_obj->tbo.resv);
else
fence = radeon_copy_blit(rdev, gtt_addr, vram_addr,
size / RADEON_GPU_PAGE_SIZE,
NULL);
vram_obj->tbo.resv);
if (IS_ERR(fence)) {
DRM_ERROR("Failed GTT->VRAM copy %d\n", i);
r = PTR_ERR(fence);
Expand Down Expand Up @@ -170,11 +170,11 @@ static void radeon_do_test_moves(struct radeon_device *rdev, int flag)
if (ring == R600_RING_TYPE_DMA_INDEX)
fence = radeon_copy_dma(rdev, vram_addr, gtt_addr,
size / RADEON_GPU_PAGE_SIZE,
NULL);
vram_obj->tbo.resv);
else
fence = radeon_copy_blit(rdev, vram_addr, gtt_addr,
size / RADEON_GPU_PAGE_SIZE,
NULL);
vram_obj->tbo.resv);
if (IS_ERR(fence)) {
DRM_ERROR("Failed VRAM->GTT copy %d\n", i);
r = PTR_ERR(fence);
Expand Down
6 changes: 4 additions & 2 deletions drivers/gpu/drm/radeon/radeon_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,11 @@ static void radeon_vm_frag_ptes(struct radeon_device *rdev,
*/

/* NI is optimized for 256KB fragments, SI and newer for 64KB */
uint64_t frag_flags = rdev->family == CHIP_CAYMAN ?
uint64_t frag_flags = ((rdev->family == CHIP_CAYMAN) ||
(rdev->family == CHIP_ARUBA)) ?
R600_PTE_FRAG_256KB : R600_PTE_FRAG_64KB;
uint64_t frag_align = rdev->family == CHIP_CAYMAN ? 0x200 : 0x80;
uint64_t frag_align = ((rdev->family == CHIP_CAYMAN) ||
(rdev->family == CHIP_ARUBA)) ? 0x200 : 0x80;

uint64_t frag_start = ALIGN(pe_start, frag_align);
uint64_t frag_end = pe_end & ~(frag_align - 1);
Expand Down
2 changes: 1 addition & 1 deletion drivers/isdn/hardware/eicon/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ static byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
add_ai(plci, &parms[5]);
sig_req(plci, REJECT, 0);
}
else if (Reject == 1 || Reject > 9)
else if (Reject == 1 || Reject >= 9)
{
add_ai(plci, &parms[5]);
sig_req(plci, HANGUP, 0);
Expand Down
1 change: 0 additions & 1 deletion drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,6 @@ static int caif_hsi_newlink(struct net *src_net, struct net_device *dev,

cfhsi = netdev_priv(dev);
cfhsi_netlink_parms(data, cfhsi);
dev_net_set(cfhsi->ndev, src_net);

get_ops = symbol_get(cfhsi_get_ops);
if (!get_ops) {
Expand Down
Loading