Re: [PATCH v2 4/4] iommu: Prevent VMD child devices from being remapping targets

2017-08-24 Thread Bjorn Helgaas
On Fri, Aug 18, 2017 at 11:04:33AM -0500, Bjorn Helgaas wrote: > [+cc Robin] > > This series looks fine to me as far as PCI is concerned, and I'd be > happy to take it via my tree given an ack from David for this IOMMU > piece. Alternatively, you can add my > > Acked-by: Bjorn Helgaas > > to t

Re: [RFC PATCH] treewide: remove GFP_TEMPORARY allocation flag

2017-08-24 Thread Pavel Machek
Hi! > From: Michal Hocko > > GFP_TEMPORARY has been introduced by e12ba74d8ff3 ("Group short-lived > and reclaimable kernel allocations") along with __GFP_RECLAIMABLE. It's > primary motivation was to allow users to tell that an allocation is > short lived and so the allocator can try to place s

[GIT PULL] Kbuild fixes for v4.13-rc7

2017-08-24 Thread Masahiro Yamada
Hi Linus, Here are some Kbuild fixes for v4.13 Please pull! The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e: Linux 4.13-rc4 (2017-08-06 18:44:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.

Re: [PATCH v5 1/2] platform: Add driver for RAVE Supervisory Processor

2017-08-24 Thread Pavel Machek
On Fri 2017-07-28 07:27:03, Andrey Smirnov wrote: > Add a driver for RAVE Supervisory Processor, an MCU implementing > varoius bits of housekeeping functionality (watchdoging, backlight > control, LED control, etc) on RAVE family of products by Zodiac > Inflight Innovations. > > This driver implem

[PATCH] cpuset: Fix incorrect memory_pressure control file mapping

2017-08-24 Thread Waiman Long
The memory_pressure control file was incorrectly set up without a private value (0, by default). As a result, this control file was treated like memory_migrate on read. By adding back the FILE_MEMORY_PRESSURE private value, the correct memory pressure value will be returned. Signed-off-by: Waiman

Fwd: [PATCH v4 3/4] phy: usb: phy-brcm-usb: Add Broadcom STB USB phy driver

2017-08-24 Thread Al Cooper
Kishon, Thanks for the review! Please let me know if you disagree with any of my responses. Thanks Al On Fri, Aug 18, 2017 at 6:27 AM, 'Kishon Vijay Abraham I' via BCM-KERNEL-FEEDBACK-LIST,PDL wrote: > > Hi, > > On Friday 21 July 2017 07:40 PM, Al Cooper wrote: > > Add a new USB Phy driver for B

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Takashi Iwai
On Thu, 24 Aug 2017 17:54:37 +0200, Tom Rini wrote: > > On Thu, Aug 24, 2017 at 04:52:35PM +0100, Mark Brown wrote: > > On Thu, Aug 24, 2017 at 05:42:11PM +0200, Takashi Iwai wrote: > > > > > OK, so the fix for 4.13 would be either to cherry-pick this commit, or > > > just to re-add "RT5677CE:00"

Re: [PATCH] IB/core: replace memcpy with ether_addr_copy

2017-08-24 Thread Joe Perches
On Thu, 2017-08-24 at 21:11 +0530, Himanshu Jha wrote: > Use ether_addr_copy to copy an ethernet address of size ETH_ALEN > instead of memcpy. [] diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c [] > @@ -798,7 +798,7 @@ int rdma_addr_find_l2_eth_by_grh(const union ib_gid

Re: [PATCH] [RFC] ARM: vdso: work around gcc-8 warning

2017-08-24 Thread Russell King - ARM Linux
On Wed, Aug 23, 2017 at 04:05:26PM +0200, Arnd Bergmann wrote: > gcc-8 correctly points out that reading four bytes from a pointer to a > 'char' variable is wrong > > arch/arm/kernel/vdso.c: In function 'vdso_init': > arch/arm/kernel/vdso.c:200:6: error: '__builtin_memcmp_eq' reading 4 bytes > fr

Re: [PATCH v2] x86: enable RCU based table free

2017-08-24 Thread Peter Zijlstra
On Thu, Aug 24, 2017 at 05:27:21PM +0200, Vitaly Kuznetsov wrote: > Do you think adding something like > > /* > * While x86 architecture in general requires an IPI to perform TLB > * shootdown, enablement code for several hypervisors overrides > * .flush_tlb_others hook in pv_mmu_ops and implem

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Tom Rini
On Thu, Aug 24, 2017 at 06:06:20PM +0200, Takashi Iwai wrote: > On Thu, 24 Aug 2017 17:54:37 +0200, > Tom Rini wrote: > > > > On Thu, Aug 24, 2017 at 04:52:35PM +0100, Mark Brown wrote: > > > On Thu, Aug 24, 2017 at 05:42:11PM +0200, Takashi Iwai wrote: > > > > > > > OK, so the fix for 4.13 would

Re: [PATCH v6 0/5] MAP_DIRECT and block-map-atomic files

2017-08-24 Thread Christoph Hellwig
This seems to be missing patches 1 and 3.

Re: [RESEND PATCH 0/3] mm: Add cache coloring mechanism

2017-08-24 Thread Dave Hansen
On 08/24/2017 05:47 AM, Vlastimil Babka wrote: > So the obvious question, what about THPs? Their size should be enough to > contain all the colors with current caches, no? Even on KNL I didn't > find more than "32x 1 MB 16-way L2 caches". This is in addition to the > improved TLB performance, which

Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls

2017-08-24 Thread Paolo Bonzini
On 24/08/2017 18:02, Jim Mattson wrote: > On the subject of complexity, why do we clear > CPUID.(EAX=07H,ECX=0):EBX.INVPCID[bit 10] when CPUID.01H:ECX.PCID[bit > 17] is clear? Sure, it would be odd to support the INVPCID instruction > without also supporting PCIDs, but why single out this one check

[PATCH v8 4/4] kvm: vmx: Raise #UD on unsupported XSAVES/XRSTORS

2017-08-24 Thread Paolo Bonzini
A guest may not be configured to support XSAVES/XRSTORS, even when the host does. If the guest does not support XSAVES/XRSTORS, clear the secondary execution control so that the processor will raise #UD. Also clear the "allowed-1" bit for XSAVES/XRSTORS exiting in the IA32_VMX_PROCBASED_CTLS2 MSR,

Re: [PATCH v6 4/5] fs, xfs: introduce MAP_DIRECT for creating block-map-atomic file ranges

2017-08-24 Thread Christoph Hellwig
I still can't make any sense of this description. What is an external agent? Userspace obviously can't ever see a change in the extent map, so it can't be meant. It would help a lot if you could come up with a concrete user for this, including example code.

Re: [PATCH v6 2/5] fs, xfs: introduce S_IOMAP_SEALED

2017-08-24 Thread Christoph Hellwig
I'm still very unhappy about the get/set flag state. What is the reason you can't use/extend leases? (take a look at the fcntl man page and look for Leases). A variant of the concept is what the pNFS block server uses.

Re: arch/arm/kernel/setup.c fails to compile for NOMMU

2017-08-24 Thread Russell King - ARM Linux
On Fri, Aug 18, 2017 at 01:24:02PM +0200, Michal Hocko wrote: > Hi Russel, > I have a battery of configs for compile testing and for some time I've > been seeing the following compilation error with nommu config (attached) > > arch/arm/kernel/setup.c: In function 'reserve_crashkernel': > arch/arm/

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Antoine Tenart
On Thu, Aug 24, 2017 at 06:01:24PM +0200, Andrew Lunn wrote: > On Thu, Aug 24, 2017 at 05:52:41PM +0200, Antoine Tenart wrote: > > On Thu, Aug 24, 2017 at 04:56:09PM +0200, Andrew Lunn wrote: > > > On Thu, Aug 24, 2017 at 10:38:19AM +0200, Antoine Tenart wrote: > > > > This patch adds logic to reco

Re: [PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations

2017-08-24 Thread Christoffer Dall
On Wed, Aug 23, 2017 at 12:25:36PM +0530, Arvind Yadav wrote: > vgic_debug_seq_ops and file_operations are not supposed to change > at runtime and none of the structures is modified. > > Signed-off-by: Arvind Yadav Applied, thanks. -Christoffer > --- > virt/kvm/arm/vgic/vgic-debug.c | 4 ++-- >

Re: [PATCH] Kbuild: enable -Wunused-macros warning for "make W=1"

2017-08-24 Thread Masahiro Yamada
Hi Johannes, 2017-08-03 19:09 GMT+09:00 Johannes Thumshirn : > We have lots of dead defines and macros in drivers, lets offer users a way > to detect and eventually remove them. > > Signed-off-by: Johannes Thumshirn > --- > scripts/Makefile.extrawarn | 1 + > 1 file changed, 1 insertion(+) > > d

Re: [PATCH v9 0/3] Add support for IPQ8074 PCIe phy and controller

2017-08-24 Thread Bjorn Helgaas
On Fri, Aug 18, 2017 at 12:59:50PM +0530, Varadarajan Narayanan wrote: > v9: > Incorporate Stanimir's feedback for > PCI: dwc: qcom: Add support for IPQ8074 PCIe controller > > Add Stanimir's Ack for > PCI: dwc: qcom: Use block IP version for operations > PCI: dwc: qcom: Add

Re: [PATCH v6 0/5] MAP_DIRECT and block-map-atomic files

2017-08-24 Thread Dan Williams
On Thu, Aug 24, 2017 at 9:08 AM, Christoph Hellwig wrote: > This seems to be missing patches 1 and 3. Sorry, I didn't cc you directly on those. They're on the list: https://patchwork.kernel.org/patch/9918657/ https://patchwork.kernel.org/patch/9918663/

Re: [PATCH v2] netfilter: nf_nat_h323: fix logical-not-parentheses warning

2017-08-24 Thread Nick Desaulniers
bumping for review (resending, had gmail set to html mode) On Mon, Aug 14, 2017 at 10:36 AM, Nick Desaulniers wrote: > Minor nit for the commit message that can get fixed up when being merged: > > On Fri, Aug 11, 2017 at 11:16 AM, Nick Desaulniers > wrote: > >> if (x) >> return >> ... >> >> ra

Re: [PATCH] of/device: Prevent buffer overflow in of_device_modalias()

2017-08-24 Thread Rob Herring
On Wed, Aug 23, 2017 at 8:04 PM, Bjorn Andersson wrote: > As of_device_get_modalias() returns the number of bytes that would have > been written to the target string, regardless of how much did fit in the > buffer, it's possible that the returned index points beyond the buffer > passed to of_devic

Re: [PATCH 08/15] PCI: make device_type const

2017-08-24 Thread Bjorn Helgaas
On Sat, Aug 19, 2017 at 01:52:19PM +0530, Bhumika Goyal wrote: > Make this const as it is only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Applied to pci/misc for v4.14, thanks! > --- > drivers/pci/endpoint/pci-epf

[PATCH 0/3] Provide mechanism to disable select RDT features & use for Skylake

2017-08-24 Thread Luck, Tony
From: Tony Luck Some of the RDT features are affected by errata on Skylake. Make sure unsuspecting users do not accidentally use these. To do this we add a CPU model quirk mechanism that disables the features affected by the errata by default. But also add a command line mechanism for users to t

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-24 Thread Paolo Bonzini
On 24/08/2017 17:38, Yu Zhang wrote: >> >> >> In practice, MAXPHYADDR will never be 59 even because the PKRU bits are >> at bits 59..62. > > Thanks, Paolo. > I see. I had made an assumption that MAXPHYADDR shall not exceed the > physical one, > which is 52 I believe. But I'm not sure there's any p

[PATCH 00/10] perf: inherit_stat related fixes

2017-08-24 Thread Jiri Olsa
hi, Mark reported an issue with inherit_stat code and posted a fix [1]. I found we have some issues with that in perf tool as well, so sending his fix together with perf tool fixes. The patchset is also available in: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/values th

[PATCH 2/3] x86/intel_rdt: Add command line options for resource director technology

2017-08-24 Thread Luck, Tony
From: Tony Luck Command line options allow us to ignore features that we don't want. Also we can re-enable options that have been disabled on a platform (so long as the underlying h/w actually supports the option). Signed-off-by: Tony Luck --- Documentation/admin-guide/kernel-parameters.rst |

[PATCH 08/10] perf values: Zero value buffers

2017-08-24 Thread Jiri Olsa
We need to make sure the array of value pointers are zero initialized, because we use them in realloc later on and uninitialized non zero value will cause allocation error and aborted execution. Signed-off-by: Jiri Olsa --- tools/perf/util/values.c | 9 +++-- 1 file changed, 7 insertions(+),

[PATCH 09/10] perf report: Group stat values on global event id

2017-08-24 Thread Jiri Olsa
There's no big value on displaying counts for every event ID, which is one per every CPU. Rather than that, displaying the whole sum for the event. $ perf record -c 10 -e cycles:u -s test $ perf report -T Before: # PID TID cycles:u cycles:u cycles:u cycles:u ... [20 more columns

[PATCH 07/10] perf values: Fix allocation check

2017-08-24 Thread Jiri Olsa
Bailing out in case the allocation failed, not the other way round. Signed-off-by: Jiri Olsa --- tools/perf/util/values.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/values.c b/tools/perf/util/values.c index 9ac36bf2c438..2c4af02f08cd 100644 --- a/tools/pe

[PATCH 10/10] perf stat: Support inherit/no-inherit terms

2017-08-24 Thread Jiri Olsa
Adding support to use 'inherit' and 'no-inherit' terms in perf stat command, like: To disable perf_event_attr::inherit (enabled by default): $ perf stat -e cpu/cpu-cycles,no-inherit/u ... Enable perf_event_attr::inherit (disabled by -i): $ perf stat -i -e cpu/cpu-cycles,inherit/u ... Signe

Re: [PATCH v2] scsi: lpfc: avoid false positive gcc-8 warning

2017-08-24 Thread James Smart
On 8/24/2017 4:01 AM, Arnd Bergmann wrote: I have also come up with a different workaround of my own (sorry for the broken formatting here) and tested it successfully over night. I have definitely spent more time on it than it was worth now. Let me know if you prefer that version over yours, the

[PATCH 05/10] perf report: Add dump_read function

2017-08-24 Thread Jiri Olsa
Adding dump_read function to gather all the dump output of read function. Adding output of enabled and running times and id if enabled (3 new lines with '...' prefix below). $ perf record -s ... $ perf report -D 958358311769 0x91f8 [0x40]: PERF_RECORD_READ: 3339 3339 cycles:u 0 ... time e

[PATCH 06/10] perf values: Fix thread index bug

2017-08-24 Thread Jiri Olsa
We are taking wrong index (+1) for first thread, which leaves thread with index 0 unused and uninitialized. Signed-off-by: Jiri Olsa --- tools/perf/util/values.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/values.c b/tools/perf/util/values.c index 5de2

[PATCH 04/10] perf record: Set read_format for inherit_stat

2017-08-24 Thread Jiri Olsa
Set read_format for what we expect to get from read event generated by perf_event_attr::inherit_stat. Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index a5888c704e0

[PATCH 02/10] perf: Fix leader for removed sibling event in perf_group_detach

2017-08-24 Thread Jiri Olsa
Mark reported warning in x86_perf_event_update caused by reading unscheduled leader of an event that was already removed from the group. As he pointed out we don't properly reset event's leader once it's been detached from the group and he posted the attached fix. [1] https://marc.info/?l=linux-k

[PATCH 03/10] perf: Make sure we read only scheduled events

2017-08-24 Thread Jiri Olsa
Adding leader's state check into perf_output_read_group to ensure we read only leader, which is scheduled in. Similar check is already there for siblings. Signed-off-by: Jiri Olsa --- kernel/events/core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel/even

[PATCH 01/10] perf/x86: Add warning on proper cpu during event's update

2017-08-24 Thread Jiri Olsa
Mark reported that we could actually call pmu->read on unscheduled event. I think it's good idea to keep a warning here to see if we've get it wrong again in future. Reported-by: Mark Rutland Signed-off-by: Jiri Olsa --- arch/x86/events/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 10/10] perf stat: Support inherit/no-inherit terms

2017-08-24 Thread Andi Kleen
On Thu, Aug 24, 2017 at 06:27:37PM +0200, Jiri Olsa wrote: > Adding support to use 'inherit' and 'no-inherit' terms > in perf stat command, like: > > To disable perf_event_attr::inherit (enabled by default): > > $ perf stat -e cpu/cpu-cycles,no-inherit/u ... > > Enable perf_event_attr::inherit

[PATCH 3/3] x86/intel_rdt: Turn off most RDT features on Skylake

2017-08-24 Thread Luck, Tony
From: Tony Luck Errata list is included in this document: https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/6th-gen-x-series-spec-update.pdf with more details in: https://www.intel.com/content/www/us/en/processors/xeon/scalable/xeon-scalable-spec-update.html But

[PATCH 1/3] x86/intel_rdt: Move special case code for Haswell to a quirk function

2017-08-24 Thread Luck, Tony
From: Tony Luck No functional change, but lay the ground work for other per-model quirks. Signed-off-by: Tony Luck --- arch/x86/kernel/cpu/intel_rdt.c | 52 ++--- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.c

Re: [PATCH v6 4/5] fs, xfs: introduce MAP_DIRECT for creating block-map-atomic file ranges

2017-08-24 Thread Dan Williams
[ adding Xen ] On Thu, Aug 24, 2017 at 9:11 AM, Christoph Hellwig wrote: > I still can't make any sense of this description. What is an external > agent? Userspace obviously can't ever see a change in the extent > map, so it can't be meant. External agent is a DMA device, or a hypervisor like

Re: [PATCH v3] net: stmmac: Delete dead code for MDIO registration

2017-08-24 Thread David Miller
From: Romain Perier Date: Thu, 24 Aug 2017 08:49:18 +0200 > Le 23/08/2017 à 18:46, Florian Fainelli a écrit : >> On 08/23/2017 01:50 AM, Romain Perier wrote: >>> This code is no longer used, the logging function was changed by commit >>> fbca164776e4 ("net: stmmac: Use the right logging functi").

Re: [PATCH net-next v4] net: stmmac: Delete dead code for MDIO registration

2017-08-24 Thread David Miller
From: Romain Perier Date: Thu, 24 Aug 2017 09:03:17 +0200 > This code is no longer used, the logging function was changed by commit > fbca164776e4 ("net: stmmac: Use the right logging functi"). You're truncating the commit header text here too, please fix this.

[PATCH 1/9] coresight: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-cpu-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing

[PATCH 4/9] coresight: etm4x: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-etm4x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/cor

[PATCH 9/9] coresight: tpiu: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-tpiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/core

Re: [PATCH 03/15] [media] i2c: make device_type const

2017-08-24 Thread Guennadi Liakhovetski
On Sat, 19 Aug 2017, Bhumika Goyal wrote: > Make this const as it is only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Acked-by: Guennadi Liakhovetski Thanks Guennadi > --- > drivers/media/i2c/soc_camera/mt9t031.

[PATCH 6/9] coresight: replicator: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-replicator-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwt

[PATCH 8/9] coresight: tmc: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-tmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/cores

[PATCH 7/9] coresight: stm: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/cores

[PATCH 5/9] coresight: funnel: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-funnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/co

[PATCH 2/9] coresight: etb10: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/cor

[PATCH 3/9] coresight: etm3x: constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/cor

[PATCH 0/9] constify amba_id

2017-08-24 Thread Arvind Yadav
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Arvind Yadav (9): [PATCH 1/9] coresight: constify amba_id [PATCH 2/9] coresight: etb10: constify amba_id [PATCH 3/9] coresight: etm3x: constify amba_id [PATCH 4/

Re: [PATCH v6 4/5] fs, xfs: introduce MAP_DIRECT for creating block-map-atomic file ranges

2017-08-24 Thread Christoph Hellwig
On Thu, Aug 24, 2017 at 09:31:17AM -0700, Dan Williams wrote: > External agent is a DMA device, or a hypervisor like Xen. In the DMA > case perhaps we can use the fcntl lease mechanism, I'll investigate. > In the Xen case it actually would need to use fiemap() to discover the > physical addresses t

Re: [PATCH net-next] net-next/hinic: Fix MTU limitation

2017-08-24 Thread Aviad Krawczyk
On 8/24/2017 6:19 PM, Andrew Lunn wrote: > On Thu, Aug 24, 2017 at 09:21:25PM +0800, Aviad Krawczyk wrote: >> Fix the hw MTU limitation by setting min/max_mtu >> >> Signed-off-by: Aviad Krawczyk >> Signed-off-by: Zhao Chen >> --- >> drivers/net/ethernet/huawei/hinic/hinic_main.c | 3 +++ >> 1 fi

Re: [PATCH v3 0/7] Add RSS to DPAA 1.x Ethernet driver

2017-08-24 Thread David Miller
From: Madalin Bucur Date: Thu, 24 Aug 2017 10:28:21 +0300 > This patch set introduces Receive Side Scaling for the DPAA Ethernet > driver. Documentation is updated with details related to the new > feature and limitations that apply. > Added also a small fix. > > v2: removed a C++ style comment

Re: [PATCH V2] acpi: apei: clear error status before acknowledging the error

2017-08-24 Thread Baicar, Tyler
On 8/24/2017 2:14 AM, Borislav Petkov wrote: On Thu, Aug 03, 2017 at 04:12:31PM -0600, Tyler Baicar wrote: Currently we acknowledge errors before clearing the error status. This could cause a new error to be populated by firmware in-between the error acknowledgment and the error status clearing

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-24 Thread Yu Zhang
On 8/25/2017 12:27 AM, Paolo Bonzini wrote: On 24/08/2017 17:38, Yu Zhang wrote: In practice, MAXPHYADDR will never be 59 even because the PKRU bits are at bits 59..62. Thanks, Paolo. I see. I had made an assumption that MAXPHYADDR shall not exceed the physical one, which is 52 I believe. Bu

[PATCH net-next] compiler: Document behavior compiling with -O0

2017-08-24 Thread Joe Stringer
Recent changes[0] to make use of __compiletime_assert() from container_of() increased the scope of this macro, resulting in a wider set of situations where developers cannot compile their code using "-O0". I noticed this when making use of the macro in my own development, and spent more time than I

Re: [PATCH 10/10] perf stat: Support inherit/no-inherit terms

2017-08-24 Thread Jiri Olsa
On Thu, Aug 24, 2017 at 09:30:34AM -0700, Andi Kleen wrote: > On Thu, Aug 24, 2017 at 06:27:37PM +0200, Jiri Olsa wrote: > > Adding support to use 'inherit' and 'no-inherit' terms > > in perf stat command, like: > > > > To disable perf_event_attr::inherit (enabled by default): > > > > $ perf st

Re: [PATCH] cpuset: Fix incorrect memory_pressure control file mapping

2017-08-24 Thread Tejun Heo
On Thu, Aug 24, 2017 at 12:04:29PM -0400, Waiman Long wrote: > The memory_pressure control file was incorrectly set up without > a private value (0, by default). As a result, this control > file was treated like memory_migrate on read. By adding back the > FILE_MEMORY_PRESSURE private value, the co

Re: [PATCH v7 12/13] ACPI / init: Invoke early ACPI initialization earlier

2017-08-24 Thread Rafael J. Wysocki
On Thursday, August 24, 2017 5:54:28 AM CEST Dou Liyang wrote: > Hi Rafael, Zheng, > > At 07/31/2017 06:50 PM, Dou Liyang wrote: > > Hi, > > > > At 07/14/2017 01:52 PM, Dou Liyang wrote: > >> Linux uses acpi_early_init() to put the ACPI table management into > >> the late stage from the early stag

Re: [PATCH v2] netfilter: nf_nat_h323: fix logical-not-parentheses warning

2017-08-24 Thread Pablo Neira Ayuso
On Mon, Aug 14, 2017 at 10:36:03AM -0700, Nick Desaulniers wrote: > Minor nit for the commit message that can get fixed up when being merged: > > On Fri, Aug 11, 2017 at 11:16 AM, Nick Desaulniers > wrote: > > > if (x) > > return > > ... > > > > rather than: > > > > if (!x == 0) > > should re

Re: [PATCH v4 1/4] PCI: rockchip: Fix error handlings

2017-08-24 Thread Bjorn Helgaas
On Tue, Aug 22, 2017 at 11:19:31AM +0800, Jeffy Chen wrote: > Fix error handlings in probe & resume. Changelog should have a little detail about *what* you're fixing. For example, it looks like you are powering off PHYs if the init fails. > Signed-off-by: Jeffy Chen > --- > > Changes in v4: >

Re: [PATCH v4 2/4] PCI: rockchip: Add support for pcie wake irq

2017-08-24 Thread Bjorn Helgaas
On Tue, Aug 22, 2017 at 11:19:32AM +0800, Jeffy Chen wrote: > Add support for PCIE_WAKE pin in rockchip pcie driver. Changelog should include a hint about what DT property this PCIE_WAKE support depends on. > Signed-off-by: Jeffy Chen > --- > > Changes in v4: None > Changes in v3: > Fix error h

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-24 Thread Paolo Bonzini
On 24/08/2017 18:21, Yu Zhang wrote: > > > On 8/25/2017 12:27 AM, Paolo Bonzini wrote: >> On 24/08/2017 17:38, Yu Zhang wrote: In practice, MAXPHYADDR will never be 59 even because the PKRU bits are at bits 59..62. >>> Thanks, Paolo. >>> I see. I had made an assumption that MAXPHYA

Re: [PATCH] of/device: Fix of_device_get_modalias() buffer handling

2017-08-24 Thread Rob Herring
On Wed, Aug 23, 2017 at 8:03 PM, Bjorn Andersson wrote: > of_device_request_module() calls of_device_get_modalias() with "len" 0, > to calculate the size of the buffer needed to store the result, but due > to integer promotion the ssize_t "len" will be compared as unsigned with > strlen(compat) an

Re: [PATCH v4 3/4] dt-bindings: PCI: rockchip: Add support for pcie wake irq

2017-08-24 Thread Bjorn Helgaas
On Tue, Aug 22, 2017 at 11:19:33AM +0800, Jeffy Chen wrote: > Add an optional interrupt for PCIE_WAKE pin. Rob? > Signed-off-by: Jeffy Chen > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > .../devicetree/bindings/pci/rockchip-pcie.txt| 20 > --

Re: [PATCH v4 0/4] PCI: rockchip: Move PCIE_WAKE handling into rockchip pcie driver

2017-08-24 Thread Bjorn Helgaas
On Tue, Aug 22, 2017 at 11:19:30AM +0800, Jeffy Chen wrote: > > Currently we are handling pcie wake in mrvl wifi driver. But Brian > suggests to move it into rockchip pcie driver. > > Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). > > > Changes in v4: > Rebase on newest for-ne

Re: [PATCH v6 3/5] mm: introduce mmap3 for safely defining new mmap flags

2017-08-24 Thread Christoph Hellwig
On Wed, Aug 23, 2017 at 04:48:51PM -0700, Dan Williams wrote: > The mmap(2) syscall suffers from the ABI anti-pattern of not validating > unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT need a > mechanism to define new behavior that is known to fail on older kernels > without the sup

Re: [PATCH][V2] netfilter: fix indent on if statements

2017-08-24 Thread Pablo Neira Ayuso
On Tue, Aug 15, 2017 at 10:50:34AM +0100, Colin King wrote: > From: Colin Ian King > > The returns on some if statements are not indented correctly, > add in the missing tab. Applied, thanks.

Re: [PATCH 08/14] arm64: kexec_file: create purgatory

2017-08-24 Thread Mark Rutland
On Thu, Aug 24, 2017 at 05:18:05PM +0900, AKASHI Takahiro wrote: > This is a basic purgtory, or a kind of glue code between the two kernel, > for arm64. We will later add a feature of verifying a digest check against > loaded memory segments. > > arch_kexec_apply_relocations_add() is responsible f

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Andrew Lunn
> I see what could be the issue but I do not understand one aspect though: > how could we switch from one PHY to another, as there's only one output > between the SoC (and so a given GoP#) and the board. So if a given PHY > can handle multiple modes I see, but in the other case a muxing > somewhere

Re: [PATCH v6 1/5] vfs: add flags parameter to ->mmap() in 'struct file_operations'

2017-08-24 Thread Christoph Hellwig
On Wed, Aug 23, 2017 at 04:48:40PM -0700, Dan Williams wrote: > We are running running short of vma->vm_flags. We can avoid needing a > new VM_* flag in some cases if the original @flags submitted to mmap(2) > is made available to the ->mmap() 'struct file_operations' > implementation. For example,

Re: [PATCH net-next] compiler: Document behavior compiling with -O0

2017-08-24 Thread Joe Stringer
On 24 August 2017 at 09:45, Joe Stringer wrote: > Recent changes[0] to make use of __compiletime_assert() from container_of() > increased the scope of this macro, resulting in a wider set of > situations where developers cannot compile their code using "-O0". I > noticed this when making use of th

Re: [PATCH] fork: fix incorrect fput of ->exe_file causing use-after-free

2017-08-24 Thread Eric Biggers
On Thu, Aug 24, 2017 at 03:20:41PM +0200, Oleg Nesterov wrote: > On 08/23, Eric Biggers wrote: > > > > From: Eric Biggers > > > > Commit 7c051267931a ("mm, fork: make dup_mmap wait for mmap_sem for > > write killable") made it possible to kill a forking task while it is > > waiting to acquire its

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Russell King - ARM Linux
On Thu, Aug 24, 2017 at 04:56:09PM +0200, Andrew Lunn wrote: > On Thu, Aug 24, 2017 at 10:38:19AM +0200, Antoine Tenart wrote: > > This patch adds logic to reconfigure the comphy/gop when the link status > > change at runtime. This is very useful on boards such as the mcbin which > > have SFP and E

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Russell King - ARM Linux
On Thu, Aug 24, 2017 at 06:57:43PM +0200, Andrew Lunn wrote: > > I see what could be the issue but I do not understand one aspect though: > > how could we switch from one PHY to another, as there's only one output > > between the SoC (and so a given GoP#) and the board. So if a given PHY > > can ha

Re: [PATCH 09/14] arm64: kexec_file: add sha256 digest check in purgatory

2017-08-24 Thread Mark Rutland
On Thu, Aug 24, 2017 at 05:18:06PM +0900, AKASHI Takahiro wrote: > Most of sha256 code is based on crypto/sha256-glue.c, particularly using > non-neon version. > > Please note that we won't be able to re-use lib/mem*.S for purgatory > because unaligned memory access is not allowed in purgatory whe

RE: [EXT] Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Stefan Chulski
> > Imagine phylib is using the copper Ethernet PHY, but the MAC is using > > the SFP port. Somebody pulls out the copper cable, phylib says the > > link is down, turns the carrier off and calls the callback. Not good, > > since your SFP cable is still plugged in... Ethtool is > > returning/settin

Re: [PATCH 10/14] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-08-24 Thread Mark Rutland
On Thu, Aug 24, 2017 at 05:18:07PM +0900, AKASHI Takahiro wrote: > load_other_segments() sets up and adds all the memory segments necessary > other than kernel, including initrd, device-tree blob and purgatory. > Most of the code was borrowed from kexec-tools' counterpart. > > In addition, arch_ke

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Antoine Tenart
On Thu, Aug 24, 2017 at 06:04:01PM +0100, Russell King - ARM Linux wrote: > On Thu, Aug 24, 2017 at 06:57:43PM +0200, Andrew Lunn wrote: > > > I see what could be the issue but I do not understand one aspect though: > > > how could we switch from one PHY to another, as there's only one output > > >

Re: [EXT] Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Antoine Tenart
On Thu, Aug 24, 2017 at 05:08:29PM +, Stefan Chulski wrote: > > > Imagine phylib is using the copper Ethernet PHY, but the MAC is using > > > the SFP port. Somebody pulls out the copper cable, phylib says the > > > link is down, turns the carrier off and calls the callback. Not good, > > > sinc

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Andy Shevchenko
On Thu, 2017-08-24 at 18:06 +0200, Takashi Iwai wrote: > On Thu, 24 Aug 2017 17:54:37 +0200, > Tom Rini wrote: > > > > On Thu, Aug 24, 2017 at 04:52:35PM +0100, Mark Brown wrote: > > > On Thu, Aug 24, 2017 at 05:42:11PM +0200, Takashi Iwai wrote: > > > > > > > OK, so the fix for 4.13 would be eit

RE: [EXT] Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Stefan Chulski
> So maybe one confusion was to name them PHY_MODE_10GKR and > PHY_MODE_SGMII. It could be PHY_MODE_10G and PHY_MODE_1G instead. 1G can be RGMII... Regards, Stefan.

Re: [PATCHSET for-4.14] cgroup, sched: cgroup2 basic resource accounting

2017-08-24 Thread Tejun Heo
A friendly ping. Thanks! -- tejun

Re: [PATCH] tpm/tpm_crb: Access locality for non-ACPI and non-SMC start method

2017-08-24 Thread Jiandi An
On 08/24/2017 07:26 AM, Jarkko Sakkinen wrote: On Tue, Aug 22, 2017 at 04:28:54PM -0500, Jiandi An wrote: > > { - if ((priv->flags & CRB_FL_ACPI_START) || - (priv->flags & CRB_FL_CRB_SMC_START)) - return 0; - - iowrite32(CRB_CTRL_REQ_GO_IDLE, &priv->regs_

[PATCH] gpio: xgene-sb: Tidy up fwnode usage

2017-08-24 Thread Robin Murphy
Since f94277af03ea ("of/platform: Initialise dev->fwnode appropriately"), of_platform_device_create() already initialises dev->fwnode to that of the appropriate device_node, so within the driver we shouldn't need to care whether we probed via DT or ACPI. Signed-off-by: Robin Murphy --- Not teste

Re: [PATCH 13/14] arm64: kexec_file: add Image format support

2017-08-24 Thread Mark Rutland
On Thu, Aug 24, 2017 at 05:18:10PM +0900, AKASHI Takahiro wrote: > The "Image" binary will be loaded at the offset of TEXT_OFFSET from > the start of system memory. TEXT_OFFSET is basically determined from > the header of the image. What's the policy for the binary types kexec_file_load() will loa

Re: [PATCH] of/device: Fix of_device_get_modalias() buffer handling

2017-08-24 Thread Bjorn Andersson
On Thu 24 Aug 09:51 PDT 2017, Rob Herring wrote: > On Wed, Aug 23, 2017 at 8:03 PM, Bjorn Andersson > wrote: [..] > > @@ -206,12 +207,16 @@ static ssize_t of_device_get_modalias(struct device > > *dev, char *str, ssize_t len > > /* Name & Type */ > > csize = snprintf(str, len, "o

Re: [PATCH 0/3] constify ata_port_info

2017-08-24 Thread Tejun Heo
On Thu, Aug 24, 2017 at 07:23:46AM -0700, Tejun Heo wrote: > On Thu, Aug 24, 2017 at 03:19:58PM +0530, Arvind Yadav wrote: > > ata_port_info are not supposed to change at runtime. All functions > > working with ata_port_info provided by work with > > const ata_port_info. So mark the non-const stru

Re: [PATCH 11/15] remoteproc: make device_type const

2017-08-24 Thread Bjorn Andersson
On Sat 19 Aug 01:22 PDT 2017, Bhumika Goyal wrote: > Make this const as it is only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Applied, thanks. Regards, Bjorn > --- > drivers/remoteproc/remoteproc_core.c | 2 +- >

RE: [EXT] Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Stefan Chulski
> > .--- RJ45 > > MVPP2 - 88x3310 PHY > > `--- SFP+ > > And the "MVPP2" part can be expended to: > > .-- GoP #0 --. > MVPP2 - GoP #1 Comphy lane #X -- 88x3310 > `-- GoP #2 --' > > Thanks! > Antoine One more point, Al

Re: [PATCH] kvm: vmx: Raise #UD on unsupported RDRAND

2017-08-24 Thread David Hildenbrand
On 23.08.2017 23:39, Paolo Bonzini wrote: > A guest may not be configured to support RDRAND, even when the host > does. If the guest does not support RDRAND, intercept the instruction > and synthesize #UD. Also clear the "allowed-1" bit for RDRAND exiting > in the IA32_VMX_PROCBASED_CTLS2 MSR. > >

Re: [PATCH] IB/core: replace memcpy with ether_addr_copy

2017-08-24 Thread Himanshu Jha
On Thu, Aug 24, 2017 at 09:06:32AM -0700, Joe Perches wrote: > On Thu, 2017-08-24 at 21:11 +0530, Himanshu Jha wrote: > > Use ether_addr_copy to copy an ethernet address of size ETH_ALEN > > instead of memcpy. > [] > diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c > []

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