Re: [PATCH v2 2/7] usb: extcon: Fix USB-Host cable name

2015-02-02 Thread Chanwoo Choi
On 02/02/2015 07:01 PM, Roger Quadros wrote: > On 02/02/15 11:55, Chanwoo Choi wrote: >> Hi Roger, >> >> On 02/02/2015 06:09 PM, Roger Quadros wrote: >>> Chanwoo, >>> >>> On 02/02/15 07:04, Chanwoo Choi wrote: Hi Roger, On 01/30/2015 11:05 PM, Roger Quadros wrote: > Hi, > >>>

Re: [PATCH] regmap: Fix i2c word access when using SMBus access functions

2015-02-02 Thread Jean Delvare
Hi Guenter, On Sun, 1 Feb 2015 15:48:01 -0800, Guenter Roeck wrote: > SMBUs access functions assume that 16 bit values are formatted as Correct spelling is SMBus (lowercase U.) Also I think "16 bit" is better spelled "16-bit" (more occurrences below.) > little endian numbers. The direct i2c acc

RE: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread Dexuan Cui
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, February 2, 2015 17:36 PM > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; KY > Srinivasan; vku

Re: Linux 3.19-rc7

2015-02-02 Thread Geert Uytterhoeven
On Mon, Feb 2, 2015 at 6:16 AM, Linus Torvalds wrote: > Jan Kara (2): > quota: Switch ->get_dqblk() and ->set_dqblk() to use bytes as space > units Can't copy_to_xfs_dqblk/copy_from_xfs_dqblk be done in XFS instead? function old new delta sys_quot

Re: [PATCH 3/3] iio: ad_sigma_delta: cleanup wait_for_completion return handling

2015-02-02 Thread Lars-Peter Clausen
On 02/02/2015 10:50 AM, Nicholas Mc Guire wrote: On Mon, 02 Feb 2015, Lars-Peter Clausen wrote: On 02/02/2015 09:37 AM, Nicholas Mc Guire wrote: return type of wait_for_completion_timeout is unsigned long not int, rather than introducing a new variable the wait_for_completion_timeout is moved

RE: [PATCH v2 2/3] hv: vmbus_post_msg: retry the hypercall on some transient errors

2015-02-02 Thread Dexuan Cui
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, February 2, 2015 17:41 PM > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; KY > Srinivasan; vku

[PATCH V2] acpi:apd:add AMD ACPI2Platform device support for x86 system.

2015-02-02 Thread Ken Xue
>From b9654ecbfaebde00aee746a024eec9fe8de24b97 Mon Sep 17 00:00:00 2001 From: Ken Xue Date: Mon, 2 Feb 2015 17:32:24 +0800 Subject: [PATCH] This new feature is to interpret AMD specific ACPI device to platform device such as I2C, UART found on AMD CZ and later chipsets. It based on example INTEL

Re: [RFC PATCH v3 3/3] mm/compaction: enhance compaction finish condition

2015-02-02 Thread Vlastimil Babka
On 02/02/2015 08:15 AM, Joonsoo Kim wrote: > Compaction has anti fragmentation algorithm. It is that freepage > should be more than pageblock order to finish the compaction if we don't > find any freepage in requested migratetype buddy list. This is for > mitigating fragmentation, but, there is a l

Re: [PATCH] iommu: arm-smmu: avoid build warning

2015-02-02 Thread Will Deacon
On Fri, Jan 30, 2015 at 09:55:55PM +, Arnd Bergmann wrote: > ARM allmodconfig gained a new warning when dma_addr_t is 32-bit wide: > > drivers/iommu/arm-smmu.c: In function 'arm_smmu_iova_to_phys_hard': > drivers/iommu/arm-smmu.c:1255:3: warning: right shift count >= width of type > > This ch

Re: [PATCH] einj: Documentation text corrections and streamlining

2015-02-02 Thread Borislav Petkov
On Fri, Jan 30, 2015 at 07:13:20PM +, Luck, Tony wrote: > >> How about a paragraph telling people how to check whether their platform > >> supports > > > > I took your text and massaged it into the doc, diff ontop: > > Acked-by: Tony Luck Queued for 3.21. -- Regards/Gruss, Boris. ECO

[PATCH v4 1/1] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-02-02 Thread Roger Quadros
This driver observes the USB ID pin connected over a GPIO and updates the USB cable extcon states accordingly. The existing GPIO extcon driver is not suitable for this purpose as it needs to be taught to understand USB cable states and it can't handle more than one cable per instance. For the USB

[PATCH v3 0/3] netlabel: Deletion of a few unnecessary checks

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 11:15:56 +0100 Further update suggestions were taken into account after patches were applied from static source code analysis. Markus Elfring (3): Deletion of an unnecessary check before the function call "cipso_v4_doi_putdef" Deletion of an unnece

[PATCH v3 1/3] netlabel: Deletion of an unnecessary check before the function call "cipso_v4_doi_putdef"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 10:01:45 +0100 The cipso_v4_doi_putdef() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Ack

Re: [PATCH] regmap: Fix i2c word access when using SMBus access functions

2015-02-02 Thread Lars-Peter Clausen
On 02/02/2015 12:48 AM, Guenter Roeck wrote: [...] static int regmap_i2c_write(void *context, const void *data, size_t count) { struct device *dev = context; @@ -180,7 +216,10 @@ static const struct regmap_bus *regmap_get_i2c_bus(struct i2c_client *i2c, else if (config->val_b

Re: [PATCH] media: adv7604: CP CSC uses a different register on adv7604 and adv7611

2015-02-02 Thread Hans Verkuil
Hi Jean-Michel, On 01/26/2015 02:52 PM, Jean-Michel Hautbois wrote: > The bits are the same, but register is 0xf4 on ADV7611 instead of 0xfc. > When reading back the value in log_status, differentiate both. > > Signed-off-by: Jean-Michel Hautbois > --- > drivers/media/i2c/adv7604.c | 6 +- >

[PATCH v3 2/3] netlabel: Deletion of an unnecessary check before the function call "cipso_v4_doi_free"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 10:40:30 +0100 The cipso_v4_doi_free() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Acked

Re: [PATCH v6] media: au0828 - convert to use videobuf2

2015-02-02 Thread Lad, Prabhakar
On Thu, Jan 29, 2015 at 4:41 PM, Shuah Khan wrote: > Convert au0828 to use videobuf2. Tested with NTSC. > Tested video and vbi devices with xawtv, tvtime, > and vlc. Ran v4l2-compliance to ensure there are > no failures. > > Video compliance test results summary: > Total: 75, Succeeded: 75, Failed

Re: [PATCH v3] staging: comedi: drivers: jr3_pci: Removed variables that is never used

2015-02-02 Thread Ian Abbott
On 31/01/15 13:39, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/

Re: [PATCH v3] staging: comedi: drivers: dyna_pci10xx: Removed variables that is never used

2015-02-02 Thread Ian Abbott
On 31/01/15 13:44, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/

Re: [PATCH] gfs2: use __vmalloc GFP_NOFS for fs-related allocations.

2015-02-02 Thread Steven Whitehouse
Hi, On 02/02/15 08:11, Dave Chinner wrote: On Mon, Feb 02, 2015 at 01:57:23AM -0500, Oleg Drokin wrote: Hello! On Feb 2, 2015, at 12:37 AM, Dave Chinner wrote: On Sun, Feb 01, 2015 at 10:59:54PM -0500, gr...@linuxhacker.ru wrote: From: Oleg Drokin leaf_dealloc uses vzalloc as a fallback t

Re: [PATCHv4 00/36] perf tools: New build framework

2015-02-02 Thread Jiri Olsa
On Mon, Jan 26, 2015 at 11:12:00AM +0100, Jiri Olsa wrote: > hi, > I'm following up on latest post from Alexis: > http://marc.info/?l=linux-kernel&m=141427580405357&w=2 > > thanks for feedback and testing! > > v4 changes: > - updated to the current Arnaldo's perf/core branch > - added Teste

Re: [PATCH 1/4] clocksource: mmp: add mmp timer driver

2015-02-02 Thread Mark Rutland
On Mon, Feb 02, 2015 at 08:31:36AM +, Chao Xie wrote: > From: Chao Xie > > MMP timer is attached to APB bus, It has the following > limitation. > 1. When get count of timer counter, it need some delay >to get a stable count. > 2. When set match register, it need disable the counter >f

Re: [PATCH 2/2] drivers: xen/block: add multi-page ring support

2015-02-02 Thread Roger Pau Monné
El 23/01/15 a les 10.14, Bob Liu ha escrit: > Extend xen/block to support multi-page ring. > * xen-blkback notify blkfront with feature-multi-ring-pages > * xen-blkfront write to xenstore about how many pages are used as the ring > > If using 4 pages as the ring, inflight requests inscreased fro

Re: [PATCH v2 1/3] lib: find_*_bit reimplementation

2015-02-02 Thread Rasmus Villemoes
On Sat, Jan 31 2015, yury.no...@gmail.com wrote: > From: Yury Norov > > New implementations takes less space in source file (see diffstat) > and in object. For me it's 710 vs 453 bytes of text. > New version generally looks good. Please include a summary of the changes between the versions eithe

Re: [PATCH] media: i2c: ADV7604: Migrate to regmap

2015-02-02 Thread Hans Verkuil
Hi Pablo, Jean-Michel, On 02/01/2015 11:08 AM, Jean-Michel Hautbois wrote: > This is a preliminary patch in order to add support for ALSA. > It replaces all current i2c access with regmap. > Add the registers which will then be used too, as these are declared at init. > > Signed-off-by: Pablo Ant

Re: [PATCH 2/2] tty: serial: 8250_core: Check that port->line is >=0

2015-02-02 Thread Andy Shevchenko
On Mon, 2015-02-02 at 09:09 +0100, Michal Simek wrote: > On 01/31/2015 12:23 AM, Greg Kroah-Hartman wrote: > > On Thu, Jan 15, 2015 at 03:55:08PM +0100, Michal Simek wrote: > >> This patch should be the part of: > >> "tty: serial: 8250_core: use the ->line argument as a hint in > >> serial8250_find

Linux 3.12.37

2015-02-02 Thread Jiri Slaby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I'm announcing the release of the 3.12.37 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-02-02 Thread Andrzej Pietrasiewicz
Hello Pali, W dniu 31.01.2015 o 10:53, Pali Rohár pisze: This patch adds removable mass storage support to g_nokia gadget (for N900). It means that at runtime block device can be exported or unexported. For a hint please see this thread: http://www.spinics.net/lists/linux-usb/msg119669.html -

Re: [PATCH v2 3/3] lib/string_helpers.c: Change semantics of string_escape_mem

2015-02-02 Thread Andy Shevchenko
On Sat, 2015-01-31 at 00:39 +0100, Rasmus Villemoes wrote: > On Fri, Jan 30 2015, Andy Shevchenko > wrote: > >> >> * Return: > >> >> - * The amount of the characters processed to the destination buffer, or > >> >> - * %-ENOMEM if the size of buffer is not enough to put an escaped > >> >> chara

Re: [PATCH v4 6/6] KVM: nVMX: Enable nested posted interrupt processing

2015-02-02 Thread Paolo Bonzini
On 28/01/2015 17:02, Wincy Van wrote: > +static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, > + int vector) > +{ > + if (is_guest_mode(vcpu) && > + vector == to_vmx(vcpu)->nested.posted_intr_nv && > + vcpu-

Re: [PATCH] x86: mce: Avoid timer double-add during CMCI interrupt storms.

2015-02-02 Thread Borislav Petkov
On Fri, Jan 23, 2015 at 12:03:35PM +0100, Borislav Petkov wrote: > I've uploaded it as a branch if you want to give it a run as there are > other changes to MCE pending for 3.20 which might cause merge conflicts: > > git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git, branch mce-fb > > Shout

[PATCH v3 3/3] netlabel: Less function calls in netlbl_mgmt_add_common() after error detection

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 11:00:24 +0100 The functions "cipso_v4_doi_putdef" and "kfree" could be called in some cases by the netlbl_mgmt_add_common() function during error handling even if the passed variables contained still a null pointer. * This implementation detail could b

Re: [PATCH v2 3/3] lib: rename lib/find_next_bit.c to lib/find_bit.c

2015-02-02 Thread Rasmus Villemoes
On Sat, Jan 31 2015, yury.no...@gmail.com wrote: > From: Yury Norov > > This file contains implementation for: > - find_last_bit; > - find_first_zero_bit; > - find_first_bit; > - find_next_zero_bit; > - find_next_bit. > [and a few _le variants] > So giving more generic name looks reasonable. I

[BUG]rmmod null_blk lead to general protection fault on 3.19.0-rc6

2015-02-02 Thread Jinpu Wang
When rmmod null_blk lead to GPF below: [ 29.193712] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready [ 62.216289] general protection fault: [#1] SMP DEBUG_PAGEALLOC [ 62.216586] Dumping ftrace buffer: [ 62.216660](ftrace buffer empty) [ 62.216730] Modules linked in: ib_ipo

Re: [PATCH v2] iio: imu: kmx61: Drop odr_bits from kmx61_samp_freq_table

2015-02-02 Thread Daniel Baluta
On Sun, Feb 1, 2015 at 12:11 PM, Jonathan Cameron wrote: > On 05/01/15 23:00, Hartmut Knaack wrote: >> Daniel Baluta schrieb am 05.01.2015 um 10:21: >>> odr_bits values are between 0 and 11, so we can use the index >>> in kmx61_samp_freq_table instead of odr_bits structure member. >>> >>> Signed-o

Re: [PATCH v2 00/15] media: blackfin: bfin_capture enhancements

2015-02-02 Thread Hans Verkuil
On 01/30/2015 04:49 PM, Lad, Prabhakar wrote: > Hello Scott, > > On Thu, Jan 22, 2015 at 10:18 PM, Lad, Prabhakar > wrote: >> This patch series, enhances blackfin capture driver with >> vb2 helpers. >> >> Changes for v2: >> -- >> Only patches 5/15 and 8/15 as per Scott's suggestions.

Re: [PATCHv2 17/19] x86: expose number of page table levels on Kconfig level

2015-02-02 Thread Paul Bolle
On Sat, 2015-01-31 at 02:30 +0200, Kirill A. Shutemov wrote: > We would want to use number of page table level to define mm_struct. > Let's expose it as CONFIG_PGTABLE_LEVELS. > > Signed-off-by: Kirill A. Shutemov > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > --- > v2: s/PA

[PATCH v5 1/7] mfd: cros_ec: Use fixed size arrays to transfer data with the EC

2015-02-02 Thread Javier Martinez Canillas
The struct cros_ec_command will be used as an ioctl() argument for the API to control the ChromeOS EC from user-space. So the data structure has to be 64-bit safe to make it compatible between 32 and 64 avoiding the need for a compat ioctl interface. Since pointers are self-aligned to different byt

[PATCH v5 5/7] mfd: cros_ec: Instantiate ChromeOS EC character device

2015-02-02 Thread Javier Martinez Canillas
The ChromeOS EC character device is an user-space interface to allow applications to access the Embedded Controller. Add a cell for this device so it's spawned from the mfd driver. Signed-off-by: Javier Martinez Canillas Acked-by: Lee Jones --- Changes since v4: None. Changes since v3: None,

[PATCH v5 6/7] platform/chrome: Create sysfs attributes for the ChromeOS EC

2015-02-02 Thread Javier Martinez Canillas
From: Bill Richardson This adds the first few sysfs attributes for the Chrome OS EC. These controls are made available under /sys/devices/virtual/chromeos/cros_ec flashinfo - display current flash info reboot - tell the EC to reboot in various ways version - information ab

[PATCH v5 7/7] platform/chrome: Expose Chrome OS Lightbar to users

2015-02-02 Thread Javier Martinez Canillas
From: Bill Richardson This adds some sysfs entries to provide userspace control of the four-element LED "lightbar" on the Chromebook Pixel. This only instantiates the lightbar controls if the device actually exists. To prevent DoS attacks, this interface is limited to 20 accesses/second, althoug

Re: [PATCH 3.18 11/61] workqueue: fix subtle pool management issue which can stall whole worker_pool

2015-02-02 Thread Luis Henriques
On Thu, Jan 29, 2015 at 03:33:25PM -0500, Tejun Heo wrote: > Hello, > > On Wed, Jan 28, 2015 at 09:54:48AM -0800, Greg Kroah-Hartman wrote: > > This patch will apply to 3.10, but not 3.14, and I'm confused. Should I > > backport the original version to 3.14? 3.10? Use this different > > version

[PATCH v5 0/7] platform/chrome: Add user-space dev inferface support

2015-02-02 Thread Javier Martinez Canillas
Hello, The mainline ChromeOS Embedded Controller (EC) driver is still missing some features that are present in the downstream ChromiumOS tree. These are: - Low Pin Count (LPC) interface - User-space device interface - Access to vboot context stored on a block device - Access to vboot con

[PATCH v5 3/7] platform/chrome: Add cros_ec_lpc driver for x86 devices

2015-02-02 Thread Javier Martinez Canillas
From: Bill Richardson Chromebooks have an Embedded Controller (EC) that is used to implement various functions such as keyboard, power and battery. The AP can communicate with the EC through different bus types such as I2C, SPI or LPC. The cros_ec mfd driver is then composed of a core driver th

[PATCH v5 4/7] platform/chrome: Add Chrome OS EC userspace device interface

2015-02-02 Thread Javier Martinez Canillas
From: Bill Richardson This patch adds a device interface to access the Chrome OS Embedded Controller from user-space. Signed-off-by: Bill Richardson Reviewed-by: Simon Glass Signed-off-by: Javier Martinez Canillas Reviewed-by: Gwendal Grignou --- Changes since v4: None. Changes since v3: N

[PATCH v5 2/7] mfd: cros_ec: Add char dev and virtual dev pointers

2015-02-02 Thread Javier Martinez Canillas
The ChromeOS Embedded Controller has to be accessed by applications. A virtual character device is used as an interface with user-space. Extend the struct cros_ec_device with the fields needed by the driver of this virtual character device. Signed-off-by: Javier Martinez Canillas Acked-by: Lee J

[PATCH] xen-blkfront: fix accounting of reqs when migrating

2015-02-02 Thread Roger Pau Monne
Current migration code uses blk_put_request in order to finish a request before requeuing it. This function doesn't update the statistics of the queue, which completely screws accounting. Use blk_end_request_all instead which properly updates the statistics of the queue. Signed-off-by: Roger Pau M

Re: Another SCHED_DEADLINE bug (with bisection and possible fix)

2015-02-02 Thread Juri Lelli
On 31/01/2015 09:56, Peter Zijlstra wrote: > On Fri, Jan 30, 2015 at 10:35:02AM +, Juri Lelli wrote: >> So, we do the safe thing only in case of throttling. > > No, even for the !throttle aka running tasks. We only use > dl_{runtime,deadline,period} for replenishment, until that time we > obse

Re: Linux 3.19-rc7

2015-02-02 Thread Jan Kara
On Mon 02-02-15 11:09:53, Geert Uytterhoeven wrote: > On Mon, Feb 2, 2015 at 6:16 AM, Linus Torvalds > wrote: > > Jan Kara (2): > > quota: Switch ->get_dqblk() and ->set_dqblk() to use bytes as space > > units > > Can't copy_to_xfs_dqblk/copy_from_xfs_dqblk be done in XFS instead? > > fun

[PATCH] 3.19-rc7: add quirk for 1c28:0122 (rev 14) SATA controller

2015-02-02 Thread Tim Sander
The long name for this device is Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell 88SS9183] (rev 14) Background: the error description on bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=42679 inspired me to check if my brand new m4 pci ssd could work with a quirk. Its device represent

Re: [PATCHv2 17/19] x86: expose number of page table levels on Kconfig level

2015-02-02 Thread Kirill A. Shutemov
On Mon, Feb 02, 2015 at 12:26:33PM +0100, Paul Bolle wrote: > On Sat, 2015-01-31 at 02:30 +0200, Kirill A. Shutemov wrote: > > We would want to use number of page table level to define mm_struct. > > Let's expose it as CONFIG_PGTABLE_LEVELS. > > > > Signed-off-by: Kirill A. Shutemov > > Cc: Thoma

Re: [PATCH 1/2 v3] spi: tegra20-sflash: cleanup wait_for_completion return handling

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 04:51:52AM -0500, Nicholas Mc Guire wrote: > return type of wait_for_completion_timeout is unsigned long not int, this > patch adds an appropriate variable and fixes up the assignment. > As the string in dev_err already states "timeout" there > is little point in printing th

[PATCH -mm] memcg: cleanup static keys decrement

2015-02-02 Thread Vladimir Davydov
Move memcg_socket_limit_enabled decrement to tcp_destroy_cgroup (called from memcg_destroy_kmem -> mem_cgroup_sockets_destroy) and zap a bunch of wrapper functions. Although this patch moves static keys decrement from __mem_cgroup_free to mem_cgroup_css_free, it does not introduce any functional c

[PATCH v2 2/3] MIPS: Add CDMM bus support

2015-02-02 Thread James Hogan
Add MIPS Common Device Memory Map (CDMM) support in the form of a bus in the standard Linux device model. Each device attached via CDMM is discoverable via an 8-bit type identifier and may contain a number of blocks of memory mapped registers in the CDMM region. IRQs are expected to be handled sepa

[PATCH v2 0/3] Add MIPS CDMM bus support

2015-02-02 Thread James Hogan
This patchset adds basic support for the MIPS Common Device Memory Map Memory (CDMM) region in the form of a bus in the standard Linux device model. Since the CDMM region is a feature of the MIPS architecture (since around MIPSr2) the first patch adds the necessary definitions and probing to arch/

[PATCH v2 3/3] MIPS: Malta: Implement mips_cdmm_phys_base()

2015-02-02 Thread James Hogan
Implement mips_cdmm_phys_base() for Malta, returning the physical base address 0x1fc1 which is "typically unused". This allows the Common Device Memory Map (CDMM) region to be mapped, and devices in that region (such as the Fast Debug Channel (FDC) hardware for communication over EJTAG) to be

[PATCH v2 1/3] MIPS: Add arch CDMM definitions and probing

2015-02-02 Thread James Hogan
Add architectural definitions and probing for the MIPS Common Device Memory Map (CDMM) region. When supported and enabled at a particular physical address, this region allows some number of per-CPU devices to be discovered and controlled via MMIO. A bit exists in Config3 to determine whether the f

Re: [PATCH v2 1/3] lib: find_*_bit reimplementation

2015-02-02 Thread George Spelvin
Rasmus Villemoes wrote: > ... and this be part of _find_next_bit? Can find_next_bit not be simply > 'return _find_next_bit(addr, size, offset, 1);', and similarly for > find_next_zero_bit? Btw., passing true and false for the boolean > parameter may be a little clearer. Looking at the generated c

Re: [PATCH v2 08/12] drm: bridge/dw_hdmi: add audio config interfaces

2015-02-02 Thread Russell King - ARM Linux
On Mon, Feb 02, 2015 at 12:02:50PM +0800, Daniel Kurtz wrote: > Hi ykk, > > On Sat, Jan 31, 2015 at 10:34 PM, Yang Kuankuan wrote: > > > > On 01/31/2015 06:48 AM, Russell King - ARM Linux wrote: > >> > >>> +void hdmi_audio_clk_enable(struct dw_hdmi *hdmi) > >>> +{ > >>> + if (hdmi->audio_en

Re: Reading /sys with side effects (was Re: [PATCH 1/2] Documentation: leds: Add description of LED Flash class extension)

2015-02-02 Thread Jacek Anaszewski
On 02/02/2015 10:44 AM, Pavel Machek wrote: On Mon 2015-02-02 10:07:02, Jacek Anaszewski wrote: On 01/30/2015 05:40 PM, Greg KH wrote: On Fri, Jan 30, 2015 at 09:55:30AM +0100, Jacek Anaszewski wrote: Hi Pavel, On 01/29/2015 10:14 PM, Pavel Machek wrote: Hi! + - flash_fault - list of

Re: [PATCH] regmap: Fix i2c word access when using SMBus access functions

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 11:26:23AM +0100, Lars-Peter Clausen wrote: > On 02/02/2015 12:48 AM, Guenter Roeck wrote: > >-return ®map_smbus_word; > >+if (config->val_format_endian == REGMAP_ENDIAN_LITTLE) > This should probably use regmap_get_val_endian() and maybe al

Re: [PATCH v4 3/7] misc: Add cros_ec_lpc driver for x86 devices

2015-02-02 Thread Javier Martinez Canillas
Hello, On 01/30/2015 01:51 PM, Javier Martinez Canillas wrote: > On 01/29/2015 10:11 PM, Paul Bolle wrote: >>> + help >>> + If you say Y here, you get support for talking to the ChromeOS EC >>> + over an LPC bus. This uses a simple byte-level protocol with a >>> + checksum. This is u

Re: [PATCHv2 17/19] x86: expose number of page table levels on Kconfig level

2015-02-02 Thread Paul Bolle
On Mon, 2015-02-02 at 13:37 +0200, Kirill A. Shutemov wrote: > On Mon, Feb 02, 2015 at 12:26:33PM +0100, Paul Bolle wrote: > > Isn't there some (informal) rule to update an entire series to a next > > version (and not only the patches that were changed in that version)? > > It's up to maintainer.

RE: [PATCH 2/2] infiniband: Use unsigned for bit index

2015-02-02 Thread Selvin Xavier
Acked-by: Selvin Xavier Thanks! > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Rasmus Villemoes > Sent: Friday, January 16, 2015 8:10 PM > To: Roland Dreier; Sean Hefty; Hal Rosenstock > Cc: Rasmus Villemoes; linux-

RE: [PATCH 1/2] infiniband: Help gcc generate better code for ocrdma_srq_toggle_bit

2015-02-02 Thread Selvin Xavier
Acked-by: Selvin Xavier Thanks! > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Rasmus Villemoes > Sent: Friday, January 16, 2015 8:10 PM > To: Roland Dreier; Sean Hefty; Hal Rosenstock > Cc: Rasmus Villemoes; linux-

Re: [PATCHv2 17/19] x86: expose number of page table levels on Kconfig level

2015-02-02 Thread Kirill A. Shutemov
On Mon, Feb 02, 2015 at 12:57:36PM +0100, Paul Bolle wrote: > On Mon, 2015-02-02 at 13:37 +0200, Kirill A. Shutemov wrote: > > On Mon, Feb 02, 2015 at 12:26:33PM +0100, Paul Bolle wrote: > > > Isn't there some (informal) rule to update an entire series to a next > > > version (and not only the patc

Re: [PATCH] spi: atmel: cleanup wait_for_completion return handling

2015-02-02 Thread Mark Brown
On Sun, Feb 01, 2015 at 06:42:11AM -0500, Nicholas Mc Guire wrote: > return type of wait_for_completion_timeout is unsigned long not int, this > patch adds an appropriate variable and fixes up the assignment. > Further it removes the else branch as the only thing it was > doing is assigning ret to

Re: [PATCH 14/42] perf record: Add --index option for building index table

2015-02-02 Thread Adrian Hunter
On 02/02/15 12:05, Jiri Olsa wrote: > On Mon, Feb 02, 2015 at 11:52:26AM +0200, Adrian Hunter wrote: >> On 02/02/15 11:15, Jiri Olsa wrote: >>> On Mon, Feb 02, 2015 at 10:34:50AM +0200, Adrian Hunter wrote: >>> >>> SNIP >>> > but how about bump up the header version for this feature? ;-) >

Re: [PATCH] mm/zsmalloc: avoid unnecessary iteration when freeing size_class

2015-02-02 Thread Ganesh Mahendran
Hello Minchan: 2015-02-02 9:09 GMT+08:00 Minchan Kim : > Hello Ganesh, > > On Sat, Jan 31, 2015 at 04:59:58PM +0800, Ganesh Mahendran wrote: >> ping. >> >> 2015-01-24 21:50 GMT+08:00 Ganesh Mahendran : >> > The pool->size_class[i] is assigned with the i from (zs_size_classes - 1) >> > to 0. >> >

Re: [PATCH 2/5] spi: mxs: cleanup wait_for_completion return handling

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 03:30:33AM -0500, Nicholas Mc Guire wrote: > - ret = wait_for_completion_timeout(&spi->c, > - msecs_to_jiffies(SSP_TIMEOUT)); > - if (!ret) { > + if (!wait_for_completion_timeout(&spi->c, > + msecs_to_jiffies(SSP_TIMEOUT))) {

Re: [PATCHv5 6/7] base: platform: name the device already during allocation

2015-02-02 Thread Vivek Gautam
Hi Kishon, On Thu, Nov 20, 2014 at 2:51 PM, Kishon Vijay Abraham I wrote: > Hi Greg, > > On Wednesday 19 November 2014 08:58 PM, Heikki Krogerus wrote: >> The device name is usually required when assigning resources >> like clocks to platform devices. The problem is that the >> device name is no

Re: [PATCH 0/6] randomize kernel physical address and virtual address separately

2015-02-02 Thread Baoquan He
On 02/01/15 at 05:13am, Andy Lutomirski wrote: > I applied this to Linus' tree today, and I get: > > early console in decompress_kernel > KASLR disabled by default... > > Decompressing Linux... > > XZ-compressed data is corrupt > > -- System halted > > If I comment out the output = 0x14

Re: [PATCH 14/42] perf record: Add --index option for building index table

2015-02-02 Thread Jiri Olsa
On Mon, Feb 02, 2015 at 02:07:27PM +0200, Adrian Hunter wrote: SNIP > >> > >> Why not make it the same as all the other data. i.e. find the start and > >> size > >> via the index? And then just lump all the data together? > > > > thats what I suggested > > No, I meant really lump it all togeth

Re: [RFC PATCH 1/1] PM / domains: Add support for virtual power domains

2015-02-02 Thread Karol Wrona
On 01/30/2015 12:57 PM, Lorenzo Pieralisi wrote: > On Fri, Jan 30, 2015 at 08:43:22AM +, amit daniel kachhap wrote: >> Hi Karol, >> >> I guess this patch series is not complete and use case implementation >> will be more helpful for clarity. Also I can think of another way in >> which this comp

Re: [PATCH 5/5] spi: ti-qspi: cleanup wait_for_completion return handling

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 03:30:36AM -0500, Nicholas Mc Guire wrote: > - ret = wait_for_completion_timeout(&qspi->transfer_complete, > - QSPI_COMPLETION_TIMEOUT); > - if (ret == 0) { > + if (!wait_for_completion_timeou

Re: [PATCH v2] spi/xilinx: Fix access invalid memory on xilinx_spi_tx

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 11:06:56AM +0100, Ricardo Ribalda Delgado wrote: > On 1 and 2 bytes per word, the transfer of the 3 last bytes will access > memory outside tx_ptr. > > Although this has not trigger any error on real hardware, we should > better fix this. > > Fixes: 24ba5e593f391507 Remove

Re: [PATCH v4 3/6] of: fix size when dma-range is not used

2015-02-02 Thread Catalin Marinas
On Fri, Jan 30, 2015 at 06:06:27PM +, Murali Karicheri wrote: > On 01/28/2015 12:30 PM, Catalin Marinas wrote: > > I think we can remove this check altogether (we leaved without it for a > > while) but we need to add 1 when calculating the mask: > > > > dev->coherent_dma_mask = min(DMA_BIT_

Re: [PATCH] ASoC: atmel-pcm-dma: won't check direction when configure dma

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 02:44:46PM +0800, Bo Shen wrote: > As DMA framework request DMA using direction only in prep_slave > function, (The At91 xdma driver has adapted to this request). > So won't check direction when do DMA configuration. Applied, thanks. signature.asc Description: Digital sig

Re: [PATCH v2 08/12] drm: bridge/dw_hdmi: add audio config interfaces

2015-02-02 Thread Yang Kuankuan
On 02/02/2015 06:53 AM, Russell King - ARM Linux wrote: On Mon, Feb 02, 2015 at 12:02:50PM +0800, Daniel Kurtz wrote: Hi ykk, On Sat, Jan 31, 2015 at 10:34 PM, Yang Kuankuan wrote: On 01/31/2015 06:48 AM, Russell King - ARM Linux wrote: +void hdmi_audio_clk_enable(struct dw_hdmi *hdmi) +{ +

[PATCH RFC -mm] memcg: drop per cgroup kmem accounting configuration

2015-02-02 Thread Vladimir Davydov
Currently, to enable kmem accounting for a cgroup, one has to set kmem.limit_in_bytes for it, otherwise the cgroup will not have kmem accounting enabled. This means we can configure kmem accounting for a subset of cgroups, while leaving it disabled for the rest. However, a separate knob for tuning

[PATCH V7 RESEND 0/2] Fine tune USB 3.0 PHY on exynos5420

2015-02-02 Thread Vivek Gautam
This series is tested on usb-next with Heikki's patch [1]: base: platform: name the device already during allocation Changes since v6: - Dropped the changes for adding additional phy_calibrate() callback. - Added phy_init() and phy_power_on() sequence in xhci-plat driver; NOTE: both phy_init(

[PATCH V7 RESEND 1/2] usb: host: xhci-plat: Get PHYs for xhci's hcds

2015-02-02 Thread Vivek Gautam
The host controller by itself may sometimes need to handle PHY and re-initialize it to re-configure some of the PHY parameters to get full support out of the PHY controller. Therefore, facilitate getting the two possible PHYs, viz. USB 2.0 type (UTMI+) and USB 3.0 type (PIPE3), and initialize them.

[PATCH V7 RESEND 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800

2015-02-02 Thread Vivek Gautam
Adding phy calibration sequence for USB 3.0 DRD PHY present on Exynos5420/5800 systems. This calibration facilitates setting certain PHY parameters viz. the Loss-of-Signal (LOS) Detector Threshold Level, as well as Tx-Vboost-Level for Super-Speed operations. Additionally we also set proper time to

[media] staging: bcm2048: Delete an unnecessary check before the function call "video_unregister_device"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 13:20:23 +0100 The video_unregister_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

[PATCH v8 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-02-02 Thread Hanjun Guo
Hi, This is the v8 of ACPI core patches for ARM64 based on ACPI 5.1, there are some updates since v7: - Add two more documantation to explain why we need ACPI in ARM64 servers by Grant, and recommendations and prohibitions on the use of the numerous ACPI tables and objects by Al Stone. -

[PATCH v8 02/21] acpi: fix acpi_os_ioremap for arm64

2015-02-02 Thread Hanjun Guo
From: Mark Salter The acpi_os_ioremap() function may be used to map normal RAM or IO regions. The current implementation simply uses ioremap_cache(). This will work for some architectures, but arm64 ioremap_cache() cannot be used to map IO regions which don't support caching. So for arm64, use io

[PATCH v8 03/21] arm64: allow late use of early_ioremap

2015-02-02 Thread Hanjun Guo
From: Mark Salter Commit 0e63ea48b4d8 (arm64/efi: add missing call to early_ioremap_reset()) added a missing call to early_ioremap_reset(). This triggers a BUG if code tries using early_ioremap() after the early_ioremap_reset(). This is a problem for some ACPI code which needs short-lived tempora

[PATCH v8 04/21] ARM64 / ACPI: Get RSDP and ACPI boot-time tables

2015-02-02 Thread Hanjun Guo
From: Al Stone As we want to get ACPI tables to parse and then use the information for system initialization, we should get the RSDP (Root System Description Pointer) first, it then locates Extended Root Description Table (XSDT) which contains all the 64-bit physical address that pointer to other

[PATCH v8 09/21] ARM64 / ACPI: Disable ACPI if FADT revision is less than 5.1

2015-02-02 Thread Hanjun Guo
FADT Major.Minor version was introduced in ACPI 5.1, it is the same as ACPI version. In ACPI 5.1, some major gaps are fixed for ARM, such as updates in MADT table for GIC and SMP init, without those updates, we can not get the MPIDR for SMP init, and GICv2/3 related init information, so we can't b

[PATCH v8 15/21] ARM64 / ACPI: Introduce ACPI_IRQ_MODEL_GIC and register device's gsi

2015-02-02 Thread Hanjun Guo
Introduce ACPI_IRQ_MODEL_GIC which is needed for ARM64 as GIC is used, and then register device's gsi with the core IRQ subsystem. acpi_register_gsi() is similar to DT based irq_of_parse_and_map(), since gsi is unique in the system, so use hwirq number directly for the mapping. We are going to im

[PATCH v8 07/21] ARM64 / ACPI: Introduce early_param for "acpi" and pass acpi=force to enable ACPI

2015-02-02 Thread Hanjun Guo
From: Al Stone Introduce two early parameters "off" and "force" for "acpi", acpi=off will be the default behavior for ARM64, so introduce acpi=force to enable ACPI on ARM64. Disable ACPI before early parameters parsed, and enable it to pass "acpi=force" if people want use ACPI on ARM64. This ens

[PATCH v8 12/21] ACPI / table: Print GIC information when MADT is parsed

2015-02-02 Thread Hanjun Guo
When MADT is parsed, print GIC information to make the boot log look pretty: ACPI: GICC (acpi_id[0x] address[e112f000] MPIDR[0x0] enabled) ACPI: GICC (acpi_id[0x0001] address[e112f000] MPIDR[0x1] enabled) ... ACPI: GICC (acpi_id[0x0201] address[e112f000] MPIDR[0x201] en

Re: [PATCH 8/8] phy: add driver for TI TUSB1210 ULPI PHY

2015-02-02 Thread Heikki Krogerus
Hi David, > > > > > What exactly are we breaking here? The USB on BYT-CR does not work yet > > > > > with the mainline kernel, or does it? To enable it, I already > > > > > suggested the BYT quirk (attached again). > > > > > > It used to work with mainline with minor restrictions. It stopped > >

[PATCH v8 20/21] Documentation: ACPI for ARM64

2015-02-02 Thread Hanjun Guo
From: Graeme Gregory Add documentation for the guidelines of how to use ACPI on ARM64. Reviewed-by: Suravee Suthikulpanit Reviewed-by: Yi Li Reviewed-by: Mark Langsdorf Reviewed-by: Ashwin Chaugule Signed-off-by: Graeme Gregory Signed-off-by: Al Stone Signed-off-by: Hanjun Guo --- Docume

Can this be a invalid memory access? (was: Re: [PATCH] spi/xilinx: Cast ioread32/iowrite32 function pointers)

2015-02-02 Thread Ricardo Ribalda Delgado
Hello Regarding ioread8 et al. On include/asm-generic/io.h is defined as: extern unsigned int ioread8(void __iomem *); On include/asm-generic/io.h: static inline u8 ioread8(const volatile void __iomem *addr) Please ignore the qualifiers right now. The first function returns an unsigned integer,

[PATCH v8 21/21] arm64: ACPI: additions of ACPI documentation for arm64

2015-02-02 Thread Hanjun Guo
From: Al Stone Two more documentation files are also being added: (1) A verbatim copy of the "Why ACPI on ARM?" blog posting by Grant Likely, which is also summarized in arm-acpi.txt, and (2) A section by section review of the ACPI spec (acpi_object_usage.txt) to note recommendations and

[PATCH v8 18/21] ARM64 / ACPI: Select ACPI_REDUCED_HARDWARE_ONLY if ACPI is enabled on ARM64

2015-02-02 Thread Hanjun Guo
From: Al Stone ACPI reduced hardware mode is disabled by default, but ARM64 can only run properly in ACPI hardware reduced mode, so select ACPI_REDUCED_HARDWARE_ONLY if ACPI is enabled on ARM64. CC: Catalin Marinas CC: Will Deacon Reviewed-by: Grant Likely Tested-by: Suravee Suthikulpanit Te

[PATCH v8 14/21] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-02-02 Thread Hanjun Guo
Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to identify CPUs. Further steps would typedef a phys_id_t for in arc

[PATCH v8 16/21] irqchip: Add GICv2 specific ACPI boot support

2015-02-02 Thread Hanjun Guo
From: Tomasz Nowicki ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware abstraction agnostic). In a similar way, FDT initialize GICv1/2. NOT

[PATCH v8 19/21] ARM64 / ACPI: Enable ARM64 in Kconfig

2015-02-02 Thread Hanjun Guo
From: Graeme Gregory Add Kconfigs to build ACPI on ARM64, and make ACPI available on ARM64. acpi_idle driver is x86/IA64 dependent now, so make CONFIG_ACPI_PROCESSOR depend on X86 || IA64, and implement it on ARM64 in the future. CC: Rafael J. Wysocki CC: Catalin Marinas CC: Will Deacon Revi

<    1   2   3   4   5   6   7   8   9   >