Re: [PATCH] scripts:checkpatch - correct the error message during check

2015-10-30 Thread Andy Whitcroft
On Fri, Oct 30, 2015 at 04:55:04PM +0530, shailendr...@samsung.com wrote: > From: Shailendra Verma > > Signed-off-by: Shailendra Verma > --- > scripts/checkpatch.pl | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/scripts/checkpatch.pl

Re: [PATCH] ARM: fix bug in vdsomunge swab32 macro

2015-10-30 Thread Arnd Bergmann
On Wednesday 28 October 2015 16:10:48 H. Nikolaus Schaller wrote: > Commit Commit 8a603f91cc48 ("ARM: 8445/1: fix vdsomunge not to depend on > glibc specific byteswap.h") > > unfortunately introduced a bug created but not found during > discussion and patch simplification. > > Reported-by:

Re: [PATCH 7/8] mm: clear PG_dirty to mark page freeable

2015-10-30 Thread Michal Hocko
On Fri 30-10-15 16:01:43, Minchan Kim wrote: > Basically, MADV_FREE relies on dirty bit in page table entry to decide > whether VM allows to discard the page or not. IOW, if page table entry > includes marked dirty bit, VM shouldn't discard the page. > > However, as a example, if swap-in by read

Re: [RFC v2 3/5] drm/dsi: Check for used channels

2015-10-30 Thread Andrzej Hajda
On 10/06/2015 11:24 AM, Archit Taneja wrote: > We don't check whether a previously registered mipi_dsi_device under the > same host shares the same virtual channel. > > Before registering, check if any of the registered devices doesn't > already have the same virtual channel. > > This wasn't

[PATCH 1/2] net: encx24j600: Fix SPI id table definition

2015-10-30 Thread Javier Martinez Canillas
A driver's SPI id table is expected to be an array of struct spi_device_id that ends with a zero-initialized sentinel entry. But this driver defines the table as a single struct spi_device_id and sets .id_table to a pointer to this struct. But spi_match_id() has a loop that iterates while the

[PATCH 0/2] net: encx24j600: Fix SPI driver module autoload

2015-10-30 Thread Javier Martinez Canillas
Hello, Recently I've been trying to fix module autoloading for all SPI drivers and found that the encx24j600 driver does not fill module alias information due missing a MODULE_DEVICE_TABLE() so module autload won't work and the driver Kconfig symbol is tristate which means the driver can be built

[PATCH 2/2] net: encx24j600: Export missing SPI module alias information

2015-10-30 Thread Javier Martinez Canillas
The driver Kconfig symbol is tristate which means that it can be built as a module but the module alias information is not added to the module info so module autoload won't work since user-space won't have the information. Signed-off-by: Javier Martinez Canillas ---

Re: [PATCH 6/8] mm: lru_deactivate_fn should clear PG_referenced

2015-10-30 Thread Michal Hocko
On Fri 30-10-15 16:01:42, Minchan Kim wrote: > deactivate_page aims for accelerate for reclaiming through > moving pages from active list to inactive list so we should > clear PG_referenced for the goal. I might be missing something but aren't we using PG_referenced only for pagecache (and shmem)

Re: [RESEND PATCH v3] scsi: stex: Remove use of struct timeval

2015-10-30 Thread Arnd Bergmann
On Friday 30 October 2015 12:58:33 Hannes Reinecke wrote: > > @@ -1076,7 +1069,7 @@ static int stex_ss_handshake(struct st_hba *hba) > > h->req_cnt = cpu_to_le16(hba->rq_count+1); > > h->status_sz = cpu_to_le16(sizeof(struct status_msg)); > > h->status_cnt =

Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay

2015-10-30 Thread Arnd Bergmann
On Friday 30 October 2015 19:09:29 Jisheng Zhang wrote: > > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > > > index a7726db..7b081805 100644 > > > --- a/drivers/clocksource/Kconfig > > > +++ b/drivers/clocksource/Kconfig > > > @@ -29,6 +29,16 @@ config DW_APB_TIMER_OF

Re: [RFC v2 2/5] drm/dsi: Try to match non-DT dsi devices

2015-10-30 Thread Andrzej Hajda
On 10/06/2015 11:24 AM, Archit Taneja wrote: > Add a device name field in mipi_dsi_device. This name is different from > the actual dev name (which is of the format "hostname.reg"). When the > device is created via DT, this name is set to the modalias string. > In the non-DT case, the driver

Re: [PATCH] __div64_32: implement division by multiplication for 32-bit arches

2015-10-30 Thread Måns Rullgård
Vineet Gupta writes: > Claudiu, can some of this not be done in gcc itself ! All of it could be done by gcc. The trouble is that it isn't. -- Måns Rullgård m...@mansr.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH] PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus()

2015-10-30 Thread Viresh Kumar
We are returning 0 even in case of errors, fix it. Fixes: 8d4d4e98acd6 ("PM / OPP: Add helpers for initializing CPU OPPs") Reported-by: Dan Carpenter Signed-off-by: Viresh Kumar --- drivers/base/power/opp/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] __div64_32: implement division by multiplication for 32-bit arches

2015-10-30 Thread Måns Rullgård
Nicolas Pitre writes: > On Wed, 28 Oct 2015, Nicolas Pitre wrote: > >> On Thu, 29 Oct 2015, Alexey Brodkin wrote: >> >> > Fortunately we already have much better __div64_32() for 32-bit ARM. >> > There in case of division by constant preprocessor calculates so-called >> > "magic number" which

Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay

2015-10-30 Thread Daniel Lezcano
On 10/30/2015 12:09 PM, Jisheng Zhang wrote: Dear Daniel, On Fri, 30 Oct 2015 11:44:46 +0100 Daniel Lezcano wrote: On 10/30/2015 09:27 AM, Jisheng Zhang wrote: Implement an ARM delay timer to be used for udelay(). This allows us to skip the delay loop calibration at boot on Marvell BG2,

Re: [PATCH] ARM64: Enable multi-core scheduler support by default

2015-10-30 Thread Dietmar Eggemann
On 10/29/2015 05:19 PM, Catalin Marinas wrote: On Mon, Oct 19, 2015 at 05:55:49PM +0100, Dietmar Eggemann wrote: Make sure that the task scheduler domain hierarchy is set-up correctly on systems with single or multi-cluster topology. Signed-off-by: Dietmar Eggemann ---

Re: [PATCH 4/8] mm: free swp_entry in madvise_free

2015-10-30 Thread Michal Hocko
On Fri 30-10-15 16:01:40, Minchan Kim wrote: > When I test below piece of code with 12 processes(ie, 512M * 12 = 6G > consume) on my (3G ram + 12 cpu + 8G swap, the madvise_free is siginficat > slower (ie, 2x times) than madvise_dontneed. > > loop = 5; > mmap(512M); > while (loop--) { >

Re: [PATCH 1/2] mfd: sec-core: Rename MFD and regulator names differently

2015-10-30 Thread Lee Jones
On Fri, 30 Oct 2015, Alim Akhtar wrote: > Currently S2MPSXX multifunction device is named as *-pmic, > and this MFD also supports regulator as a one of its MFD cell which > has the same name, which is a bit confusing. > > We did discussed different approaches about how the MFD and it > cells

Re: [PATCH 2/2] regulator: s2mps11: Rename s2mpsxx regulator as *-regulator

2015-10-30 Thread Lee Jones
On Fri, 30 Oct 2015, Alim Akhtar wrote: > S2MPSXX regulators are probed with the same name as their parent MFD > device, this is a bit confusing. > As we discussed the same here[1], this patch rename the current regulator > names from *-pmic to *-regulator. > > [1]->

Re: [PATCH v6 00/15] Big fixes, retries, handle a race condition

2015-10-30 Thread Hannes Reinecke
On 10/28/2015 02:13 PM, Yaniv Gardi wrote: > Important: > This serie of 15 small patches should be pushed after the series of 8 patches > "Fix error message and present UFS variant probe" > > V6: > update Reviewed-by from various reviewers > > V5: > removed un-necessary wmb() > > V4: > fixing a

Re: [PATCH 1/2] cpu hotplug, add CONFIG_PERMANENT_CPU_TOPOLOGY and keep topology directory for lifetime of CPU [v2]

2015-10-30 Thread Prarit Bhargava
On 10/27/2015 11:50 AM, Thomas Renninger wrote: > On Wednesday, October 21, 2015 12:06:37 PM Prarit Bhargava wrote: > > ... > >> +config PERMANENT_CPU_TOPOLOGY >> +bool "Permanent CPU Topology" >> +depends on HOTPLUG_CPU >> +default 1 if X86 >> +default 0 >> +help >> +

[PATCH v6] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-30 Thread Bharat Kumar Gogada
Adding PCIe Root Port driver for Xilinx PCIe NWL bridge IP. Signed-off-by: Bharat Kumar Gogada Signed-off-by: Ravi Kiran Gummaluri --- Changes for v6: Removed repetitive code for msi handlers. Corrected typo mistakes in device tree documentation. ---

Re: [PATCH v6 07/15] scsi: ufs: set REQUEST_SENSE command size to 18 bytes

2015-10-30 Thread Hannes Reinecke
On 10/28/2015 02:13 PM, Yaniv Gardi wrote: > According to UFS device specification REQUEST_SENSE command can > only report back up to 18 bytes of data. > > Reviewed-by: Dolev Raviv > Signed-off-by: Gilad Broner > Signed-off-by: Yaniv Gardi > Really? The spec only says that the inline sense

Re: [PATCH 2/2] drivers:staging:gdm724x Fill all alignment should match open parentheses

2015-10-30 Thread Sudip Mukherjee
On Fri, Oct 30, 2015 at 01:05:08PM +0100, Bogicevic Sasa wrote: > On 10/30/2015, Sudip Mukherjee wrote: > >On Fri, Oct 30, 2015 at 12:48:09PM +0100, Bogicevic Sasa wrote: > >>On 10/30/2015, Sudip Mukherjee wrote: > >>>On Fri, Oct 30, 2015 at 09:59:19AM +0100, Bogicevic Sasa wrote: > On

[PATCH 3/3] x86/cpu: Add CLZERO detection

2015-10-30 Thread Borislav Petkov
From: Wan Zongshun AMD Fam17h processors introduce support for the CLZERO instruction. It zeroes out the 64 byte cache line specified in RAX. Add the bit here to allow /proc/cpuinfo to list the feature. Boris: we're adding this as a separate ->x86_capability leaf because CPUID_8008_EBX is

[PATCH 2/3] x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init()

2015-10-30 Thread Borislav Petkov
From: Borislav Petkov Caught by building with W= which enable -Wswitch-default also. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index

[PATCH 0/3] tip-queue 2015-10-30

2015-10-30 Thread Borislav Petkov
From: Borislav Petkov Hi Ingo, please queue those non-critical platform enablement patches. Thanks. Aravind Gopalakrishnan (1): x86/mce: Add a Scalable MCA vendor flags bit Borislav Petkov (1): x86/mce: Add a default case to the switch in __mcheck_cpu_ancient_init() Wan Zongshun

[PATCH 1/3] x86/mce: Add a Scalable MCA vendor flags bit

2015-10-30 Thread Borislav Petkov
From: Aravind Gopalakrishnan Scalable MCA (SMCA) is a new feature in AMD Fam17h processors which indicates presence of MCA extensions. MCA extensions expands existing register space for the MCE banks and also introduces a new MSR range to accommodate new banks. Add the detection bit.

Re: [PATCH v3 1/1] usb: xhci: fix checking ep busy for CFC

2015-10-30 Thread Mathias Nyman
On 29.10.2015 16:24, Lu Baolu wrote: Function ep_ring_is_processing() checks the dequeue pointer in endpoint context to know whether an endpoint is busy with processing TRBs. This is not correct since dequeue pointer field in an endpoint context is only valid when the endpoint is in Halted or

Re: [PATCH 01/12] usb: xhci: expose xhci extended capabilities via debugfs

2015-10-30 Thread Lu, Baolu
On 10/28/2015 08:40 PM, Greg Kroah-Hartman wrote: +static const char *get_extcap_desc(u32 cap_id) >+{ >+ switch (cap_id) { >+ case XHCI_EXT_CAPS_LEGACY: >+ return "USB Legacy Support"; >+ case XHCI_EXT_CAPS_PROTOCOL: >+ return "Supported Protocol"; >+ case

[PATCH v8 2/8] perf config: Add '--system' and '--user' options to select which config file is used

2015-10-30 Thread Taeung Song
The file-options '--system' means $(sysconfdir)/perfconfig and '--user' means $HOME/.perfconfig. If file-option isn't used, both system and user config file is read. The syntax examples are like below. perf config [] [options] a specific config file. # perf config --user | --system

[PATCH v8 8/8] perf config: Add a option 'remove' to perf-config

2015-10-30 Thread Taeung Song
A option 'remove' is to remove specific config variables. For the syntax examples, # perf config [] -r | --remove [section.name ...] Signed-off-by: Taeung Song --- tools/perf/Documentation/perf-config.txt | 6 + tools/perf/builtin-config.c | 38

[PATCH v8 7/8] perf config: normalize a value depending on default type of it

2015-10-30 Thread Taeung Song
Whether or not user mis-type wrong data type to set config, normalize the value. If a config user enter isn't contained in default configs, just pass as it is. For the examples, # perf config report.queue-size=1M # perf config report.queue-size report.queue-size=1048576 Signed-off-by:

[PATCH v8 3/8] perf config: Collect configs to handle config variables

2015-10-30 Thread Taeung Song
Collecting configs into list because of two reason. First of all, if there are same variables both user and system config file, they all will be printed when 'list' command work. But if config variables are duplicated, user config variables should only be printed because it has priority. Lastly,

[PATCH v8 5/8] perf config: Add 'get' functionality

2015-10-30 Thread Taeung Song
This patch consists of functions which can get specific config variables. For the syntax examples, perf config [] [section.name ...] display key-value pairs of specific config variables # perf config report.queue-size report.children Signed-off-by: Taeung Song ---

[PATCH v8 6/8] perf config: Add 'set' feature

2015-10-30 Thread Taeung Song
This patch consists of functions which can set specific config variables. For the syntax examples, perf config [] [options] [section.name[=value] ...] set specific config variables # perf config report.queue-size=100M report.children=true Signed-off-by: Taeung Song ---

[PATCH v8 4/8] perf config: Add a option 'list-all' to perf-config

2015-10-30 Thread Taeung Song
A option 'list-all' is to display both current config variables and all possible config variables with default values. The syntax examples are like below perf config [] [options] display all perf config with default values. # perf config -a | --list-all Signed-off-by: Taeung Song

Re: [PATCH] PM / OPP: Protect updates to list_dev with mutex

2015-10-30 Thread Dan Carpenter
On Fri, Oct 30, 2015 at 05:26:06PM +0530, Viresh Kumar wrote: > --- a/drivers/base/power/opp/cpu.c > +++ b/drivers/base/power/opp/cpu.c > @@ -124,12 +124,12 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, > cpumask_var_t cpumask) > struct device *dev; > int cpu, ret = 0; >

Re: [PATCH v4 2/6] virtio_ring: Support DMA APIs

2015-10-30 Thread Christian Borntraeger
Am 30.10.2015 um 13:01 schrieb Cornelia Huck: > On Thu, 29 Oct 2015 18:09:47 -0700 > Andy Lutomirski wrote: > >> virtio_ring currently sends the device (usually a hypervisor) >> physical addresses of its I/O buffers. This is okay when DMA >> addresses and physical addresses are the same thing,

Re: [PATCH 2/2] drivers:staging:gdm724x Fill all alignment should match open parentheses

2015-10-30 Thread Bogicevic Sasa
On 10/30/2015, Sudip Mukherjee wrote: On Fri, Oct 30, 2015 at 12:48:09PM +0100, Bogicevic Sasa wrote: On 10/30/2015, Sudip Mukherjee wrote: >On Fri, Oct 30, 2015 at 09:59:19AM +0100, Bogicevic Sasa wrote: >>On 10/30/2015, Sudip Mukherjee wrote: >>>On Thu, Oct 29, 2015 at 09:15:01PM +0100,

Re: [PATCH 0/4] PCI: rcar: Add support for ARM64 and multiple instances

2015-10-30 Thread Wolfram Sang
> Hopefully, Geert's patch will be applied to avoid build errors in both the > rcar-pcie and rcar-pci-gen2 (internal USB bridge) drivers. Meanwhile I'll fix > the rcar-pcie driver properly for arm64. Thanks for taking care. > > What MSI problem? > I was told that rcar pcie on v4.3-rc5 had an

[PATCH v8 1/8] perf tools: Add 'perf-config' command

2015-10-30 Thread Taeung Song
The perf configuration file contains many variables which can make the perf command's action more effective. But looking through state of configuration is difficult and there's no knowing what kind of other variables except variables in perfconfig.example exist. So This patch adds 'perf-config'

[PATCH v8 0/8] perf tools: Add 'perf-config' command

2015-10-30 Thread Taeung Song
So far, it is difficult that the state of perf configs is looked through and there's no knowing what kind of other variables except variables in perfconfig.example. Also perf configs can't be changed without manually modifying $HOME/.perfconfig or $(sysconfdir)/perfconfig file. So I suggest this

Re: [PATCH] i2c: designware: Don't mask TX_EMPTY if write is in progress

2015-10-30 Thread Jarkko Nikula
Hi On 10/30/2015 09:37 AM, Jisheng Zhang wrote: Currently when i2c_msg index search is completed, TX_EMPTY interrupt will be masked. But if the size of i2c_msg data is longer than the size of the tx buffer, we still need TX_EMPTY interrupt, otherwise we will get "controller timed out" error.

[PATCH] NFC: added the sysfs entry for nfcsim workqueue delay

2015-10-30 Thread Saurabh Sengar
added the sysfs entry for nfcsim workqueue delay, as tx_delay Signed-off-by: Saurabh Sengar --- Hi, As I have understood form TODO comment, I have implemented the sysfs entry for this device. Sorry, in case this patch is not meeting the expectation. I am just finding my way to contribute in

Re: [PATCH v4 2/6] virtio_ring: Support DMA APIs

2015-10-30 Thread Cornelia Huck
On Thu, 29 Oct 2015 18:09:47 -0700 Andy Lutomirski wrote: > virtio_ring currently sends the device (usually a hypervisor) > physical addresses of its I/O buffers. This is okay when DMA > addresses and physical addresses are the same thing, but this isn't > always the case. For example, this

Re: [PATCH net-next rfc V2 0/2] basic busy polling support for vhost_net

2015-10-30 Thread Jason Wang
On 10/29/2015 04:45 PM, Jason Wang wrote: > Hi all: > > This series tries to add basic busy polling for vhost net. The idea is > simple: at the end of tx processing, busy polling for new tx added > descriptor and rx receive socket for a while. The maximum number of > time (in us) could be spent

Re: [RESEND PATCH v3] scsi: stex: Remove use of struct timeval

2015-10-30 Thread Hannes Reinecke
On 10/30/2015 09:30 AM, Tina Ruchandani wrote: > Function stex_gettime uses 'struct timeval' whose tv_sec value > will overflow on 32-bit systems in year 2038 and beyond. This patch > replaces the use of struct timeval and do_gettimeofday with > ktime_get_real_seconds, which returns a 64-bit

[PATCH] PM / OPP: Protect updates to list_dev with mutex

2015-10-30 Thread Viresh Kumar
dev_opp_list_lock is used everywhere to protect device and OPP lists, but dev_pm_opp_set_sharing_cpus() is missed somehow. And instead we used rcu-lock, which wouldn't help here as we are adding a new list_dev. This also fixes a problem where we have called kzalloc(..., GFP_KERNEL) from within

Re: [PATCH v3 RESEND] scsi: report 'INQUIRY result too short' once per host

2015-10-30 Thread Hannes Reinecke
On 10/30/2015 12:40 PM, Vitaly Kuznetsov wrote: > Some host adapters (e.g. Hyper-V storvsc) are known for not respecting the > SPC-2/3/4 requirement for 'INQUIRY data (see table ...) shall contain at > least 36 bytes'. As a result we get tons on 'scsi 0:7:1:1: scsi scan: > INQUIRY result too short

Re: [PATCH 2/2] drivers:staging:gdm724x Fill all alignment should match open parentheses

2015-10-30 Thread Sudip Mukherjee
On Fri, Oct 30, 2015 at 12:48:09PM +0100, Bogicevic Sasa wrote: > On 10/30/2015, Sudip Mukherjee wrote: > >On Fri, Oct 30, 2015 at 09:59:19AM +0100, Bogicevic Sasa wrote: > >>On 10/30/2015, Sudip Mukherjee wrote: > >>>On Thu, Oct 29, 2015 at 09:15:01PM +0100, Bogicevic Sasa wrote: > > Ah so that

RE: [PATCH 0/4] PCI: rcar: Add support for ARM64 and multiple instances

2015-10-30 Thread Phil Edworthy
Hi Wolfram, On 29 October 2015 18:48, Wolfram wrote: > On Thu, Oct 29, 2015 at 04:44:06PM +, Phil Edworthy wrote: > > Hi Wolfram, > > > > On 29 October 2015 16:40, Wolfram wrote: > > > > Ouch, my bad. I have been working with our out-of-tree BSP for the > Salvator-X > > > board on > > > >

Re: [PATCH] Revert "h8300: clocksource"

2015-10-30 Thread Daniel Lezcano
On 10/30/2015 12:19 PM, Arnd Bergmann wrote: On Friday 30 October 2015 11:26:08 Daniel Lezcano wrote: This reverts commit 618b902d8c098f2fff188119da7b3184c4bc5483. [ ... ] I found that Yoshinori Sato has always addressed all review comments very quickly by rewriting the code in a proper

Re: [PATCH 2/2] drivers:staging:gdm724x Fill all alignment should match open parentheses

2015-10-30 Thread Bogicevic Sasa
On 10/30/2015, Sudip Mukherjee wrote: On Fri, Oct 30, 2015 at 09:59:19AM +0100, Bogicevic Sasa wrote: On 10/30/2015, Sudip Mukherjee wrote: >On Thu, Oct 29, 2015 at 09:15:01PM +0100, Bogicevic Sasa wrote: >>This fixes all errors about alignment with open parentheses as well as >>one spacing

[PATCH] sysfs: add devm_sysfs_create_group() and friends

2015-10-30 Thread Dmitry Torokhov
Many drivers create additional driver-specific device attributes when binding to the device and providing managed version of sysfs_create_group() will simplify unbinding and error handling in probe path for such drivers. Signed-off-by: Dmitry Torokhov --- fs/sysfs/group.c | 124

Re: [PATCH 11/12] usb: serial: usb_debug: add support for dbc debug device

2015-10-30 Thread Lu, Baolu
On 10/28/2015 08:33 PM, Greg Kroah-Hartman wrote: On Wed, Oct 28, 2015 at 04:00:42PM +0800, Lu Baolu wrote: This patch add dbc debug device support in usb_debug driver. Signed-off-by: Lu Baolu --- drivers/usb/serial/usb_debug.c | 29 ++--- 1 file changed, 26

Re: [PATCH 2/3] gpio: ath79: Move to the generic GPIO driver

2015-10-30 Thread kbuild test robot
Hi Alban, [auto build test ERROR on v4.3-rc7 -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Alban-Bedel/MAINTAINERS-Add-an-entry-for-the-ATH79-GPIO-driver/20151030-183832 config: i386-allmodconfig

[PATCH] vhost: move is_le setup to the backend

2015-10-30 Thread Greg Kurz
The vq->is_le field is used to fix endianness when accessing the vring via the cpu_to_vhost16() and vhost16_to_cpu() helpers in the following cases: 1) host is big endian and device is modern virtio 2) host has cross-endian support and device is legacy virtio with a different endianness than

[PATCH v3 RESEND] scsi: report 'INQUIRY result too short' once per host

2015-10-30 Thread Vitaly Kuznetsov
Some host adapters (e.g. Hyper-V storvsc) are known for not respecting the SPC-2/3/4 requirement for 'INQUIRY data (see table ...) shall contain at least 36 bytes'. As a result we get tons on 'scsi 0:7:1:1: scsi scan: INQUIRY result too short (5), using 36' messages on console. This can be

[PATCH] video:fbdev:core:Allocate the memory for video mode after the validation of edid.

2015-10-30 Thread Shailendra Verma
From: Shailendra Verma In this function "fb_create_modedb" the memory for video mode is getting allocated before the edid validation.If the validation of edid fails then we are freeing the allocated memory for the video mode and returning. So moving the memory allocation part after the edid

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-30 Thread Jarkko Sakkinen
On Thu, Oct 29, 2015 at 12:48:44PM +0200, Jarkko Sakkinen wrote: > On Thu, Oct 29, 2015 at 07:12:01AM +0100, Marion & Christophe JAILLET wrote: > > > > > > Le 27/10/2015 11:27, Jarkko Sakkinen a écrit : > > >On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: > > >>On Thu, Oct 22,

[PATCH RESEND] scsi_scan: don't dump trace when scsi_prep_async_scan() is called twice

2015-10-30 Thread Vitaly Kuznetsov
The only user of scsi_prep_async_scan() is scsi_scan_host() and it handles the situation correctly. Move 'called twice' reporting to debug level as well. The issue is observed on Hyper-V: on any device add/remove event storvsc driver calls scsi_scan_host() and in case previous scan is still

[PATCH] video:fbdev:core:Calculate the size for colormap only after the validation of length for colormap.

2015-10-30 Thread Shailendra Verma
From: Shailendra Verma While allocating the memory for color map, the memory size for colors is being calculated before the validation of length for color map. Moved the size calculation part after the validation of color map length. Signed-off-by: Shailendra Verma ---

[PATCH v2 2/3] crypto: add entry for sm3-256

2015-10-30 Thread Jarkko Sakkinen
Added entry for sm3-256 to the following tables: * hash_algo_name * hash_digest_size Needed for TPM 2.0 trusted key sealing. Signed-off-by: Jarkko Sakkinen --- crypto/hash_info.c | 2 ++ include/crypto/hash_info.h | 3 +++ include/uapi/linux/hash_info.h | 1 + 3 files changed,

[PATCH v2 3/3] tpm: choose hash algorithm for sealing when using TPM 2.0

2015-10-30 Thread Jarkko Sakkinen
Support for the following hash algorithms in TPM 2.0 trusted key sealing: * sha1 * sha256 * sha384 * sha512 * sm3-256 The hash algorithm can be selected by using HASH_ALGO_* constants in include/uapi/linux/hash_info.h. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm.h | 10

[PATCH v2 1/3] keys, trusted: select the hash algorithm

2015-10-30 Thread Jarkko Sakkinen
Added 'hash=' option for selecting the hash algorithm for add_key() syscall and documentation for it. Signed-off-by: Jarkko Sakkinen --- Documentation/security/keys-trusted-encrypted.txt | 3 +++ include/keys/trusted-type.h | 1 + security/keys/Kconfig

Re: [PATCH] snd-cs46xx: Fix suspend for all channels

2015-10-30 Thread Takashi Iwai
On Thu, 29 Oct 2015 20:52:24 +0100, Ondrej Zary wrote: > > snd_cs46xx_suspend() is missing snd_pcm_suspend_all calls for pcm_rear, > pcm_center_lfe and pcm_iec958. > > There's also a copy/paste bug in snd_cs46xx_pcm_iec958(), overwriting > pcm_rear in struct snd_cs46xx, leaving pcm_iec958

[PATCH v2 0/3] TPM2: select hash algorithm for a trusted key

2015-10-30 Thread Jarkko Sakkinen
Jarkko Sakkinen (3): keys, trusted: select the hash algorithm crypto: add entry for sm3-256 tpm: choose hash algorithm for sealing when using TPM 2.0 Documentation/security/keys-trusted-encrypted.txt | 3 ++ crypto/hash_info.c| 2 ++ drivers/char/tpm/tpm.h

Re: [PATCH] snd-cs46xx: Fix Duplicate front for CS4294 and CS4298 codecs

2015-10-30 Thread Takashi Iwai
On Thu, 29 Oct 2015 20:22:06 +0100, Ondrej Zary wrote: > > Currently, the Duplicate front control is enabled only for two specific > revisions of CS4294. > > Enable it for all CS4294 and CS4298 codecs instead. > > This fixes rear output on my VC-4620N sound card > (CS4620 + CS4298 rev.5). > >

Re: [PATCH] MAINTAINERS: i2c: mark also subdirectories as maintained

2015-10-30 Thread Wolfram Sang
On Thu, Oct 29, 2015 at 08:25:48AM +0100, Wolfram Sang wrote: > Otherwise get_maintainer.pl will fall back to git history and CC > more people than needed. > > Signed-off-by: Wolfram Sang > Acked-by: Lee Jones Applied to for-next, thanks! signature.asc Description: Digital signature

Re: [PATCH] ASoC: Intel: Skylake: fix typo in sizeof

2015-10-30 Thread Vinod Koul
On Fri, Oct 30, 2015 at 12:02:58PM +0900, Mark Brown wrote: > On Thu, Oct 29, 2015 at 11:04:41PM +0100, Vincent Stehlé wrote: > > The size of the pointer to a data structure to send is erroneously > > passed to sst_ipc_tx_message_wait() as its tx_bytes argument. It should > > be given the size of

[PATCH] video:fbdev:core:Calculate the buffer alignment if buffer is not IO mapped.

2015-10-30 Thread Shailendra Verma
From: Shailendra Verma Moving the instruction "align = buf->buf_align - 1" just after the verification of the buffer if it is IP mapped or not as the buffer alignment is not required if it is IO mapped.Thus it will save an extra instuction execution when buffer is IO mapped. Signed-off-by:

A virtual file system that inside process

2015-10-30 Thread hu xukai
A little project i have done after i've read (by Wolfgang Mauerer.) in order to deepen my understanding of the Kernel. I've already push it to Github: https://github.com/sunya1989/ap_filesys.git if you don't have interest about this, don't reply, just omit it. Thank You my email address is

[PATCH v2 net] i40e: Look up MAC address in Open Firmware or IDPROM

2015-10-30 Thread Sowmini Varadhan
This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC address in Open Firmware or IDPROM"). As with that fix, attempt to look up the MAC address in Open Firmware on systems that support it, and use IDPROM on SPARC if no OF address is found. Reviewed-by: Martin K. Petersen

[GIT PULL] arm64: late fixes for 4.3

2015-10-30 Thread Will Deacon
Hi Linus, Apologies for this being so late, but we've uncovered a few nasty issues on arm64 which didn't settle down until yesterday and the fixes all look suitable for 4.3. Of the four patches, three of them are Cc'd to stable, with the remaining patch fixing an issue that only took effect

Re: [RFC v2 1/5] drm/dsi: Refactor device creation

2015-10-30 Thread Andrzej Hajda
On 10/06/2015 11:24 AM, Archit Taneja wrote: > Simplify the mipi dsi device creation process. device_initialize and > device_add don't need to be called separately when creating > mipi_dsi_device's. Use device_register instead to simplify things. > > Create a helper function mipi_dsi_device_new

[PATCH] ipc/msg: Implement lockless pipelined wakeups

2015-10-30 Thread Sebastian Andrzej Siewior
This patch moves the wakeup_process() invocation so it is not done under the perm->lock by making use of a lockless wake_q. With this change, the waiter is woken up once the message has been assigned and it does not need to loop on SMP if the message points to NULL. In the signal case we still

Re: [PATCH net] i40e: Look up MAC address in Open Firmware or IDPROM

2015-10-30 Thread Sowmini Varadhan
On (10/30/15 02:14), Andy Shevchenko wrote: > > Does the following has no stubs? > > > + struct i40e_pf *pf = hw->back; > > + struct device_node *dp = pci_device_to_OF_node(pf->pdev); > > + const unsigned char *addr; > > + > > + addr = of_get_mac_address(dp); > > ^^^ I

[PATCH] scripts:checkpatch - correct the error message during check

2015-10-30 Thread shailendra . v
From: Shailendra Verma Signed-off-by: Shailendra Verma --- scripts/checkpatch.pl | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c5ec977..b2436d3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl

[PATCH v3 RESEND] scsi: report 'INQUIRY result too short' once per host

2015-10-30 Thread Vitaly Kuznetsov
Some host adapters (e.g. Hyper-V storvsc) are known for not respecting the SPC-2/3/4 requirement for 'INQUIRY data (see table ...) shall contain at least 36 bytes'. As a result we get tons on 'scsi 0:7:1:1: scsi scan: INQUIRY result too short (5), using 36' messages on console. This can be

Re: [PATCH] Revert "h8300: clocksource"

2015-10-30 Thread Arnd Bergmann
On Friday 30 October 2015 11:26:08 Daniel Lezcano wrote: > This reverts commit 618b902d8c098f2fff188119da7b3184c4bc5483. > > The renesas architecture have been dropped and re-introduced two years > after with a supposed improvement of the code. > > While looking at the timer drivers, I see it

Re: [PATCH v1 3/4] keys, trusted: select the hash algorithm

2015-10-30 Thread Jarkko Sakkinen
On Thu, Oct 29, 2015 at 03:37:20PM -0400, Mimi Zohar wrote: > On Thu, 2015-10-29 at 17:59 +0200, Jarkko Sakkinen wrote: > > Added 'hash=' option for selecting the hash algorithm for add_key() > > syscall. > > > > Signed-off-by: Jarkko Sakkinen > > --- > > security/keys/trusted.c | 20

Re: [PATCH v4 1/6] arm64: ftrace: adjust callsite addresses examined by stack tracer

2015-10-30 Thread Will Deacon
On Fri, Oct 30, 2015 at 02:25:36PM +0900, AKASHI Takahiro wrote: > On arm64, no PC values returned by save_stack_trace() will match to LR > values saved in stack frames on a stack after the following commit: > commit e306dfd06fcb ("ARM64: unwind: Fix PC calculation") > As a result, the output

Re: [PATCH] Evdev: Fix bug in checking duplicate clock change request

2015-10-30 Thread Dmitry Torokhov
Hi Aniroop, On Thu, Oct 29, 2015 at 01:38:32AM +0530, Aniroop Mathur wrote: > From: Aniroop Mathur > > clk_type and clkid stores different predefined clock identification > values so they cannot be compared for checking duplicate clock change > request. Therefore, lets fix it to avoid

Re: [net-next PATCH] RDS: convert bind hash table to re-sizable hashtable

2015-10-30 Thread David Miller
From: Santosh Shilimkar Date: Wed, 28 Oct 2015 15:51:12 -0700 > + >rs_bound_node, ht_parms)) { > *port = rs->rs_bound_port; > ret = 0; > rdsdebug("rs %p binding to %pI4:%d\n", >

Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay

2015-10-30 Thread Jisheng Zhang
Dear Daniel, On Fri, 30 Oct 2015 11:44:46 +0100 Daniel Lezcano wrote: > On 10/30/2015 09:27 AM, Jisheng Zhang wrote: > > Implement an ARM delay timer to be used for udelay(). This allows us to > > skip the delay loop calibration at boot on Marvell BG2, BG2Q, BG2CD > > platforms. And after this

[PATCH v4] dmaengine: fsl-edma: add PM suspend/resume support

2015-10-30 Thread Yuan Yao
This add power management suspend/resume support for the fsl-edma driver. eDMA acted as a basic function used by others. What it needs to do is the two steps below to support power management. In fsl_edma_suspend_late: Check whether the DMA chan is idle, if it is not idle disable DMA request.

Re: [PATCH v1 4/4] keys, trusted: update documentation for 'hash=' option

2015-10-30 Thread Jarkko Sakkinen
On Thu, Oct 29, 2015 at 03:26:02PM -0400, Mimi Zohar wrote: > On Thu, 2015-10-29 at 17:59 +0200, Jarkko Sakkinen wrote: > > Documented 'hash=' option. > > No reason for a separate patch. Please squash this patch with the one > that introduced the new option. Right. I'm going to do this and also

Re: [PATCH 07/11] pinctrl: use ngpios propety from DT

2015-10-30 Thread Linus Walleij
On Thu, Oct 29, 2015 at 3:47 PM, Jonas Gorski wrote: > Using ngpios to restrict the amount of actually available GPIOs from > the possible amount of GPIOs seems a rather limited use, as rerouted > gpios are seldom at the end of the GPIO space. I need an example. > So maybe it makes more sense

[PATCH 2/2] regulator: s2mps11: Rename s2mpsxx regulator as *-regulator

2015-10-30 Thread Alim Akhtar
S2MPSXX regulators are probed with the same name as their parent MFD device, this is a bit confusing. As we discussed the same here[1], this patch rename the current regulator names from *-pmic to *-regulator. [1]-> https://lkml.org/lkml/2015/10/28/417 Suggested-by: Lee Jones Signed-off-by:

[PATCH 1/2] mfd: sec-core: Rename MFD and regulator names differently

2015-10-30 Thread Alim Akhtar
Currently S2MPSXX multifunction device is named as *-pmic, and this MFD also supports regulator as a one of its MFD cell which has the same name, which is a bit confusing. We did discussed different approaches about how the MFD and it cells need to be named here [1]. Based in the discussion this

Re: How is jiffies upation while holding spinlock in Uniprocessor or SMP environment?

2015-10-30 Thread raghu MG
Thank you for clarifying. On Mon, Oct 26, 2015 at 4:18 PM, Russell King - ARM Linux wrote: > On Mon, Oct 26, 2015 at 12:19:31PM +0530, raghu MG wrote: >> Hello, >> I have couple of questions. >> 1) In case of UP how is jiffies(timer) get updated while holding spin >> lock using

Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-30 Thread Vitaly Kuznetsov
Haiyang Zhang writes: >> -Original Message- >> From: Richard Weinberger [mailto:richard.weinber...@gmail.com] >> Sent: Tuesday, October 27, 2015 6:36 PM >> To: David Miller >> Cc: Haiyang Zhang ; o...@aepfle.de; Greg Kroah- >> Hartman ; net...@vger.kernel.org; jasow...@redhat.com; >>

RE: [PATCH v4 2/4] ARM: dts: Add SROMc to Exynos 5410

2015-10-30 Thread Pavel Fedin
Hello! > >>> + sromc: sromc@1225 { > >>> + #address-cells = <1>; > >>> + #size-cells = <1>; > >>> + ranges; > >>> + > >> > >> We do not need to specify these three properties as they are already > >> present in

Re: [PATCH v2] cpufreq: arm_big_little: fix frequency check when bL switcher is active

2015-10-30 Thread Jon Medhurst (Tixy)
On Wed, 2015-10-21 at 15:27 +0530, Viresh Kumar wrote: > On 21-10-15, 10:55, Jon Medhurst (Tixy) wrote: > > The check for correct frequency being set in bL_cpufreq_set_rate is > > broken when the big.LITTLE switcher is active, for two reasons. > > > > 1. The 'new_rate' variable gets overwritten

Re: [PATCH v3 1/4] lib/string_helpers: change blk_size to u32 for string_get_size() interface

2015-10-30 Thread Vitaly Kuznetsov
James Bottomley writes: > On Thu, 2015-10-29 at 17:30 +0100, Vitaly Kuznetsov wrote: >> string_get_size() can't really handle huge block sizes, especially >> blk_size > U32_MAX but string_get_size() interface states the opposite. >> Change blk_size from u64 to u32 to reflect the reality. > >

Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay

2015-10-30 Thread Daniel Lezcano
On 10/30/2015 09:27 AM, Jisheng Zhang wrote: Implement an ARM delay timer to be used for udelay(). This allows us to skip the delay loop calibration at boot on Marvell BG2, BG2Q, BG2CD platforms. And after this patch, udelay() will be unaffected by CPU frequency changes. Signed-off-by: Jisheng

Re: [PATCH v2 1/4] clocksource: rockchip: Make the driver more compatible

2015-10-30 Thread Daniel Lezcano
On 10/30/2015 04:43 AM, Caesar Wang wrote: Hi Daniel, 在 2015年10月01日 03:14, Heiko Stübner 写道: Hi Daniel, Am Dienstag, 29. September 2015, 06:18:03 schrieb Daniel Lezcano: On 09/25/2015 04:14 AM, Caesar Wang wrote: Build the arm64 SoCs (e.g.: RK3368) on Rockchip platform, There are some

RE: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration

2015-10-30 Thread Pavel Fedin
Hello! > Please, carefully look at: > Documentation/devicetree/bindings/net/gpmc-eth.txt > Documentation/devicetree/bindings/bus/ti-gpmc.txt > > 1. Try to re-use existing bindings. Although I see existing bank-width > and gpmc,device-width but yours samsung,srom-data-width seems better. > Maybe

Re: [PATCH v3 2/4] lib/string_helpers.c: protect string_get_size() against blk_size=0

2015-10-30 Thread Vitaly Kuznetsov
James Bottomley writes: > On Fri, 2015-10-30 at 01:32 +0200, Andy Shevchenko wrote: >> On Fri, Oct 30, 2015 at 1:00 AM, James Bottomley wrote: >> > On Thu, 2015-10-29 at 17:30 +0100, Vitaly Kuznetsov wrote: >> >> Division by zero happens if blk_size=0 is supplied to string_get_size(). >> >> Add

<    1   2   3   4   5   6   7   8   9   10   >