Re: bluetooth: Add hci_h4p driver

2014-12-15 Thread Oliver Neukum
Hi, a few remarks about possible issues. Regards Oliver > +static int h4p_send_negotiation(struct h4p_info *info) > +{ > + struct h4p_neg_cmd *neg_cmd; > + struct h4p_neg_hdr *neg_hdr; > + struct sk_buff *skb; > + int err, len; > + u16 sysclk = 38400;

Re: [Xen-devel] [PATCH 1/4] xen: build infrastructure for generating hypercall depending symbols

2014-12-15 Thread Jan Beulich
>>> On 12.12.14 at 23:48, wrote: > On 12/11/2014 01:04 PM, Juergen Gross wrote: >> diff --git a/scripts/xen-hypercalls.sh b/scripts/xen-hypercalls.sh >> new file mode 100644 >> index 000..e6447b7 >> --- /dev/null >> +++ b/scripts/xen-hypercalls.sh >> @@ -0,0 +1,11 @@ >> +#!/bin/sh >> +out="$1"

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
On Sat, Dec 13, 2014 at 12:18:50PM +0100, Hartmut Knaack wrote: > Nikolaus Schulz schrieb am 12.12.2014 um 16:58: > > On Sat, Dec 06, 2014 at 12:36:19PM +0100, Hartmut Knaack wrote: > >> Nikolaus Schulz schrieb am 24.11.2014 um 20:50: > >>> The TI DAC8554 is a quad-channel Digital-to-Analog Convert

Re: [PATCH v2 1/3] irqchip: vf610-mscm: add support for MSCM interrupt router

2014-12-15 Thread Marc Zyngier
Hi Stefan, On 14/12/14 22:09, Stefan Agner wrote: > This adds support for Vybrid's interrupt router. On VF6xx models, > almost all peripherals can be accessed from either of the two > CPU's, from the Cortex-A5 or from the Cortex-M4. The interrupt > router routes the peripheral interrupts to the co

Re: [PATCH V5 00/23] Generic BMIPS kernel

2014-12-15 Thread Arnd Bergmann
On Friday 12 December 2014 14:06:51 Kevin Cernekee wrote: > V4->V5: > > - Rebase on top of Linus' head of tree, converting BCM3384 platform code >to Generic BMIPS platform code. > > - Fix a couple of #include's > > - Remove a couple of bogus entries from bmips_be_defconfig > > Compile-te

Re: [PATCH RESEND v2] mfd: syscon: add child device support

2014-12-15 Thread Lee Jones
On Mon, 15 Dec 2014, Philipp Zabel wrote: > Am Montag, den 01.12.2014, 17:25 +0100 schrieb Philipp Zabel: > > For devices which have a complete register for themselves, it is possible to > > place them next to the syscon device with overlapping reg ranges. The same > > is > > not possible for devi

[PATCH 09/10] iommu/vt-d: Copy functions for irte

2014-12-15 Thread Li, Zhen-Hua
Functions to copy the irte data from the old kernel into the kdump kernel. Signed-off-by: Li, Zhen-Hua --- drivers/iommu/intel_irq_remapping.c | 57 + include/linux/intel-iommu.h | 4 +++ 2 files changed, 61 insertions(+) diff --git a/drivers/iommu/i

Re: [PATCH 1/1] perf, core: Use sample period avg as child event's initial period

2014-12-15 Thread Peter Zijlstra
On Fri, Dec 12, 2014 at 10:10:35AM -0500, kan.li...@intel.com wrote: > That's because, in the inherit_event, the period > for child event is inherit from parent's parent's event, which is > usually the default sample_period 1. Each child event has to recaculate > the period from 1 everytime. That

[PATCH 06/10] iommu/vt-d: datatypes and functions used for kdump

2014-12-15 Thread Li, Zhen-Hua
Populate it with support functions to copy iommu translation tables from from the panicked kernel into the kdump kernel in the event of a crash. Functions: malloc new context table and copy old context table to the new one. malloc new page table and copy old page table to the new o

[PATCH 02/10] iommu/vt-d: Items required for kdump

2014-12-15 Thread Li, Zhen-Hua
Add structure type domain_values_entry used for kdump; Add context entry functions needed for kdump. Bill Sumner: Original version; Li, Zhenhua: Changed the name of new functions, make them consistent with current context get/set functions. Signed-off-by: Bill Sumner Signed-off-by:

[PATCH 10/10] iommu/vt-d: Use old irte in kdump kernel

2014-12-15 Thread Li, Zhen-Hua
Fix the intr-remapping fault. [1.594890] dmar: DRHD: handling fault status reg 2 [1.594894] dmar: INTR-REMAP: Request device [[41:00.0] fault index 4d [1.594894] INTR-REMAP:[fault reason 34] Present field in the IRTE entry is clear Use old irte in kdump kernel, do not disable and re-enable interr

[PATCH 05/10] iommu/vt-d: Add functions to load and save old re

2014-12-15 Thread Li, Zhen-Hua
Add functions to load root entry table from old kernel, and to save updated root entry table. Add two member in struct intel_iommu, to store the RTA in old kernel, and the mapped virt address of it. We use the old RTA in dump kernel, and when the iommu->root_entry is used as a cache in kdump kerne

[PATCH 04/10] iommu/vt-d: functions to copy data from old mem

2014-12-15 Thread Li, Zhen-Hua
Add some functions to copy the data from old kernel. These functions are used to copy context tables and page tables. To avoid calling iounmap between spin_lock_irqsave and spin_unlock_irqrestore, use a link here, store the pointers , and then use iounmap to free them in another place. Signed-off

[PATCH 07/10] iommu/vt-d: enable kdump support in iommu module

2014-12-15 Thread Li, Zhen-Hua
Modify the operation of the following functions when called during crash dump: device_to_domain_id get_domain_for_dev init_dmars intel_iommu_init Bill Sumner: Original version. Zhenhua: Minor change, change some function name, add spin_lock_irqsave. Signed-off-by: Bill Sumner

[PATCH 08/10] iommu/vtd: assign new page table for dma_map

2014-12-15 Thread Li, Zhen-Hua
When a device driver issues the first dma_map command for a device, we assign a new and empty page-table, thus removing all mappings from the old kernel for the device. Signed-off-by: Li, Zhen-Hua --- drivers/iommu/intel-iommu.c | 27 --- 1 file changed, 20 insertions(+),

[PATCH 03/10] iommu/vt-d: Add domain-id functions

2014-12-15 Thread Li, Zhen-Hua
Interfaces for when a new domain in the crashdump kernel needs some values from the panicked kernel's context entries. Signed-off-by: Bill Sumner --- drivers/iommu/intel-iommu.c | 62 + 1 file changed, 62 insertions(+) diff --git a/drivers/iommu/intel

[PATCH 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2014-12-15 Thread Li, Zhen-Hua
This patchset is an update of Bill Sumner's patchset, implements a fix for: If a kernel boots with intel_iommu=on on a system that supports intel vt-d, when a panic happens, the kdump kernel will boot with these faults: dmar: DRHD: handling fault status reg 102 dmar: DMAR:[DMA Read] Reque

[PATCH 01/10] iommu/vt-d: Update iommu_attach_domain() and its callers

2014-12-15 Thread Li, Zhen-Hua
Allow specification of the domain-id for the new domain. This patch only adds the 'did' parameter to iommu_attach_domain() and modifies all of its callers to specify the default value of -1 which says "no did specified, allocate a new one". This is no functional change from current behaviour -- ju

Re: [PATCH] USB: serial: add nt124 usb to serial driver

2014-12-15 Thread Johan Hovold
On Sun, Dec 14, 2014 at 11:51:11AM -0600, George McCollister wrote: > Johan, > > While working on the tx_empty changes you suggested it occurred to me > that it might not be obvious to others that the firmware doesn't send > a packet with the NT124_CTRL_TXEMPTY flag cleared when it begins > transm

Re: [PATCH 5/6] dt-bindings: Add documentation for Rockchip hdmi-audio

2014-12-15 Thread Kuankuan.Yang
Hi lars: thks for your review, I will move it to hdmi audio driver, give the codec_name & codec_dai_name an const string. Best Regards. 在 2014年12月15日 17:02, Lars-Peter Clausen 写道: On 12/15/2014 03:55 AM, Yakir Yang wrote: [...] +- codec-name: the dw-hdmi codec's device name +- codec-dai-nam

Re: [PATCH V5 13/23] MIPS: BMIPS: Flush the readahead cache after DMA

2014-12-15 Thread Jonas Gorski
On Fri, Dec 12, 2014 at 11:07 PM, Kevin Cernekee wrote: > BMIPS 3300/435x/438x CPUs have a readahead cache that is separate from > the L1/L2. During a DMA operation, accesses adjacent to a DMA buffer > may cause parts of the DMA buffer to be prefetched into the RAC. To > avoid possible coherency

Re: [nohz] 2a16fc93d2c: kernel lockup on idle injection

2014-12-15 Thread Preeti U Murthy
On 12/15/2014 03:02 PM, Viresh Kumar wrote: > On 15 December 2014 at 12:55, Preeti U Murthy > wrote: >> Hi Viresh, >> >> Let me explain why I think this is happening. >> >> 1. tick_nohz_irq_enter/exit() both get called *only if the cpu is idle* >> and receives an interrupt. > > Bang on target. Y

Re: [PATCH RESEND v2] mfd: syscon: add child device support

2014-12-15 Thread Philipp Zabel
Hi, Am Montag, den 01.12.2014, 17:25 +0100 schrieb Philipp Zabel: > For devices which have a complete register for themselves, it is possible to > place them next to the syscon device with overlapping reg ranges. The same is > not possible for devices which only occupy bitfields in registers share

Re: [PATCH] USB: serial: add nt124 usb to serial driver

2014-12-15 Thread Johan Hovold
On Fri, Dec 12, 2014 at 09:01:03AM -0600, George McCollister wrote: > On Wed, Dec 10, 2014 at 7:04 AM, Johan Hovold wrote: > > On Mon, Dec 08, 2014 at 05:24:17PM -0600, George McCollister wrote: > >> + switch (termios->c_cflag & CSIZE) { > > > > C_CSIZE(tty) > Okay > > > >> + case CS5: >

RE: [RFC PATCH net-next 1/1] net: Support for switch port configuration

2014-12-15 Thread Varlese, Marco
> -Original Message- > From: Roopa Prabhu [mailto:ro...@cumulusnetworks.com] > Sent: Saturday, December 13, 2014 7:06 AM > To: Varlese, Marco > Cc: Jiri Pirko; John Fastabend; net...@vger.kernel.org; > step...@networkplumber.org; Fastabend, John R; sfel...@gmail.com; > linux-kernel@vger.ker

Re: [Question] How to print size_t type variable?

2014-12-15 Thread Geert Uytterhoeven
Hi Yamada-san, On Mon, Dec 15, 2014 at 10:32 AM, Masahiro Yamada wrote: > I read through Documentation/printk-formats.txt > > It clearly says to use "%zu" or "%zx" to print size_t variables, > but I still have a question. > > > Assume we have code something like: > > printk("%zx", (size_t)10

Re: [PATCH 3.10 19/24] nEPT: Nested INVEPT

2014-12-15 Thread Paolo Bonzini
On 14/12/2014 21:20, Greg Kroah-Hartman wrote: > 3.10-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Nadav Har'El > > commit bfd0a56b90005f8c8a004baf407ad90045c2b11e upstream. > > If we let L1 use EPT, we should probably also support

[f2fs-dev][PATCH v2] f2fs: merge two uchar variable in struct node_info to reduce memory cost

2014-12-15 Thread Chao Yu
This patch moves one member of struct nat_entry: _flag_ to struct node_info, so _version_ in struct node_info and _flag_ with unsigned char type will merge to one 32-bit space in register/memory. Then the size of nat_entry will reduce its size from 28 bytes to 24 bytes and slab memory using by f2fs

[Question] How to print size_t type variable?

2014-12-15 Thread Masahiro Yamada
Hi experts, I read through Documentation/printk-formats.txt It clearly says to use "%zu" or "%zx" to print size_t variables, but I still have a question. Assume we have code something like: printk("%zx", (size_t)10); I think this code works fine as long as it includes the compiler-provid

Re: [nohz] 2a16fc93d2c: kernel lockup on idle injection

2014-12-15 Thread Viresh Kumar
On 15 December 2014 at 12:55, Preeti U Murthy wrote: > Hi Viresh, > > Let me explain why I think this is happening. > > 1. tick_nohz_irq_enter/exit() both get called *only if the cpu is idle* > and receives an interrupt. Bang on target. Yeah that's the part we missed while writing this patch :)

Re: Kernel boot panic 3.12-34 > 3.12.35

2014-12-15 Thread Jiri Slaby
On 12/14/2014, 07:25 PM, Borislav Petkov wrote: > On Sun, Dec 14, 2014 at 03:41:20PM +, Richard Farthing wrote: >> I patched 3.12.34 to 3.12.35 and the attached now happens at boot. >> Sorry I don't have better than a photo, cannot get past this. >> >> The root FS is EXT2. It's admittedly an o

Re: UFS RPMB

2014-12-15 Thread Tomas Winkler
Can you be more specific about Linux programming API Thanks On Mon, Dec 15, 2014 at 6:19 AM, Kyuho Choi wrote: > As i know, SECURITY PROTOCOL IN/OUT are support RPMB access for UFS. > > On 12/14/14, Tomas Winkler wrote: >> Hi, sorry fore a newbie question. >> What is the current interface for ac

RE: [f2fs-dev][PATCH] f2fs: merge two uchar variable in struct nat_entry to reduce memory cost

2014-12-15 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Monday, December 15, 2014 4:27 PM > To: Chao Yu > Cc: Changman Lee; linux-f2fs-de...@lists.sourceforge.net; > linux-fsde...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [f2fs-dev][PA

Re: [PATCH 0/5] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-12-15 Thread Baoquan He
On 12/12/14 at 10:25am, Li, ZhenHua wrote: > Sorry I have no plan yet. > Could you send me your logs on your AMD system? Sure, please check the attachment. AMD iommu seems a little different on action. On the machine I reserved for testing, it always hang the system bootup. As Joerg said, we can j

Re: [PATCH 0/5] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-12-15 Thread Baoquan He
On 12/12/14 at 05:11pm, Joerg Roedel wrote: > On Fri, Dec 12, 2014 at 10:25:31AM +0800, Li, ZhenHua wrote: > > Sorry I have no plan yet. > > Could you send me your logs on your AMD system? > > > On 12/10/2014 04:46 PM, Baoquan He wrote: > > >This issue happens on AMD iommu too, do you have any pla

Re: [PATCH V3 00/22] perf tools: Introduce an abstraction for Instruction Tracing

2014-12-15 Thread Adrian Hunter
On 12/12/14 20:53, Arnaldo Carvalho de Melo wrote: > Em Fri, Dec 12, 2014 at 09:13:25AM -0700, David Ahern escreveu: >> On 12/12/14 6:47 AM, Adrian Hunter wrote: >>> Here is V3 of some more preparatory patches for Intel PT >>> that introduce an abstraction for Instruction tracing. > >> This is an

Re: [PATCH v2 0/3] page stealing tweaks

2014-12-15 Thread Vlastimil Babka
On 12/15/2014 08:50 AM, Joonsoo Kim wrote: > On Fri, Dec 12, 2014 at 05:01:22PM +0100, Vlastimil Babka wrote: >> Changes since v1: >> o Reorder patch 2 and 3, Cc stable for patch 1 >> o Fix tracepoint in patch 1 (Joonsoo Kim) >> o Cleanup in patch 2 (suggested by Minchan Kim) >> o Improved comments

Re: [PATCH 5/6] dt-bindings: Add documentation for Rockchip hdmi-audio

2014-12-15 Thread Lars-Peter Clausen
On 12/15/2014 03:55 AM, Yakir Yang wrote: [...] +- codec-name: the dw-hdmi codec's device name +- codec-dai-name: the dw-hdmi codec's dai name Please you phandles for this, the names are Linux driver and framework specific details. That should not leak into the DT bindings. [..] -- To unsubs

[RFC] ARM: dts: mt8173: Add psci cpuidle support

2014-12-15 Thread Howard Chen
add device tree for psci-0.2 on mt8173 platform add device tree for cupidle-arm64 on mt8173 platform Signed-off-by: Howard Chen --- arch/arm64/boot/dts/mt8173.dtsi | 51 + 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/mt8173.dtsi b/arc

RE: [PATCH v2] drivers: scsi: megaraid: Add "megaraid_sas_internal.h" for internal shared functions using

2014-12-15 Thread Sumit Saxena
>-Original Message- >From: Chen Gang [mailto:gang.chen.5...@gmail.com] >Sent: Sunday, December 14, 2014 9:35 PM >To: megaraidli...@lsi.com; jbottom...@parallels.com; Sumit Saxena >Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org >Subject: [PATCH v2] drivers: scsi: megaraid: Add

[PATCH] arm/rpc: avoid static keyword removal via define

2014-12-15 Thread Christian Borntraeger
commit 4486b86368d7 ("[ARM] riscpc: fix decompressor font file handling") introduced Makefile magic to avoid building a file two times. Using -Dstatic= does break some assumptions on compiler.h that were introduced for READ_ONCE. Lets just use sed on the copy instead of using a define. Signed-off

[PATCH 0/1] arm: Fix fallout from the access_once tree

2014-12-15 Thread Christian Borntraeger
Russell, the access_once tree in Linux next addresses an issue discussed in http://marc.info/?i=54611D86.4040306%40de.ibm.com and http://lwn.net/Articles/624126/ There is one small fallout left for the arm tree with rpc_defconfig: http://kisskb.ellerman.id.au/kisskb/buildresult/12322985/ font.c:

Re: [PATCH v2 2/6] ASoC: dwc: Ensure FIFOs are flushed to prevent channel swap

2014-12-15 Thread Andrew Jackson
On 12/12/14 09:37, Lars-Peter Clausen wrote: > On 12/12/2014 10:25 AM, Andrew Jackson wrote: >> From: Andrew Jackson >> >> If the FIFOs aren't flushed, the left/right channels may be swapped: >> this may occur if the FIFOs are not empty when the streams start. >> >> Signed-off-by: Andrew Jackson

Re: [RFC PATCH 2/2] iommu: rockchip: Handle system-wide and runtime PM

2014-12-15 Thread Geert Uytterhoeven
On Fri, Dec 12, 2014 at 9:04 PM, Kevin Hilman wrote: > An even more exciting problem exists when a CPU is in the same domain as > other peripherals, those peripherals are all idle and the power domain > is gated. :) We do have pm_genpd_attach_cpuidle() and pm_genpd_name_attach_cpuidle()? Gr{oetj

Re: [RFC 1/4] Documentation: Change policy on sending patches during merge window

2014-12-15 Thread Christoph Hellwig
On Sun, Dec 14, 2014 at 10:09:47PM -0800, Kevin Cernekee wrote: > Ask patch submitters to avoid sending non-critical patches when the > merge window is open. This basically extends the net-next policy in > netdev-FAQ.txt to the entire kernel. FYI, I very mich disagree with that. Merge window isn

Re: [RFC 02/15] drivers/base: add restrack framework

2014-12-15 Thread Andrzej Hajda
On 12/12/2014 05:52 PM, Mark Brown wrote: > On Wed, Dec 10, 2014 at 04:48:20PM +0100, Andrzej Hajda wrote: >> restrack framework allows tracking presence of resources with dynamic life >> time. Typical example of such resources are all resources provided by device > I don't know about anyone else b

Re: [f2fs-dev][PATCH] f2fs: merge two uchar variable in struct nat_entry to reduce memory cost

2014-12-15 Thread Jaegeuk Kim
Hi Chao, I found a bug in this patch. In set_node_addr, down_write(&nm_i->nat_tree_lock); e = __lookup_nat_cache(nm_i, ni->nid); if (!e) { e = grab_nat_entry(nm_i, ni->nid); e->ni = *ni; this lin

Re: [Update][PATCH] SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-15 Thread Christoph Hellwig
On Tue, Dec 09, 2014 at 10:47:47PM +0100, Rafael J. Wysocki wrote: > Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if > PM_SLEEP is selected) which is only in linux-next at the moment (via the > linux-pm tree). > > Please let me know if it is OK to take this one into linux

[PATCH] kexec: remove never used member destination in kimage

2014-12-15 Thread Baoquan He
struct kimage has a member destination which is used to store the real destination address of each page when load segment from user space buffer to kernel. But we never retrieve the value stored in kimage->destination, so this member variable in kimage and its assignment operation are redundent cod

Re: [GIT PULL] rpmsg for 3.19

2014-12-15 Thread Ohad Ben-Cohen
[Resending in plain text mode - sorry] The following changes since commit 5d01410fe4d92081f349b013a2e7a95429e4f2c9: Linux 3.18-rc6 (2014-11-23 15:25:20 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ohad/rpmsg.git tags/rpmsg-3.19-next for you t

Re: [PATCH] dma: imx-sdma: fix indentation

2014-12-15 Thread Vinod Koul
On Thu, Dec 11, 2014 at 09:23:23AM +0200, Asaf Vertz wrote: > On 12/11/2014 06:50 AM, Vinod Koul wrote: > > On Wed, Dec 10, 2014 at 10:00:36AM +0200, Asaf Vertz wrote: > >> Fixed a coding style error, switch and case should be at the same indent > > Please use the right subsystem name for the patch

[PATCH] regmap:change spinlock_flags into the union

2014-12-15 Thread Wang, Yalin
This patch move struct regmap.spinlock_flags into the union of spinlock, so that we can shrink struct regmap size. Signed-off-by: Yalin Wang --- drivers/base/regmap/internal.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/base/regmap/internal.h b/drivers/base/

Re: [PATCH V3 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-15 Thread Jeremiah Mahler
KY Srinivasan, On Mon, Dec 15, 2014 at 07:00:45AM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Jeremiah Mahler [mailto:jmmah...@gmail.com] > > Sent: Wednesday, December 10, 2014 6:10 PM > > To: KY Srinivasan > > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel

Re: [PATCH 3/7] slub: Do not use c->page on free

2014-12-15 Thread Joonsoo Kim
On Wed, Dec 10, 2014 at 10:30:20AM -0600, Christoph Lameter wrote: > Avoid using the page struct address on free by just doing an > address comparison. That is easily doable now that the page address > is available in the page struct and we already have the page struct > address of the object to be

<    5   6   7   8   9   10