Re: [PATCH] NVMe: Added another device ID with stripe quirk

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 04:12:31PM -0600, David Wayne Fugate wrote: > Adds a fourth Intel controller which has the "stripe" quirk. NVMe has stadardized a way to communicate this information through the Namespace Optimal IO Boundary (NOIOB) field in the Identify Namespace structure, and Keith and A

[PATCH v3 5/7] integrity: Select CONFIG_KEYS instead of depending on it

2017-07-06 Thread Thiago Jung Bauermann
This avoids a dependency cycle in CONFIG_IMA_APPRAISE_MODSIG (introduced by a later patch in this series): it will select CONFIG_MODULE_SIG_FORMAT which in turn selects CONFIG_KEYS. Kconfig then complains that CONFIG_INTEGRITY_SIGNATURE depends on CONFIG_KEYS. Signed-off-by: Thiago Jung Bauermann

[PATCH v3 7/7] ima: Support module-style appended signatures for appraisal

2017-07-06 Thread Thiago Jung Bauermann
This patch introduces the modsig keyword to the IMA policy syntax to specify that a given hook should expect the file to have the IMA signature appended to it. Here is how it can be used in a rule: appraise func=KEXEC_KERNEL_CHECK appraise_type=modsig|imasig With this rule, IMA will accept either

[PATCH v3 1/7] integrity: Introduce struct evm_hmac_xattr

2017-07-06 Thread Thiago Jung Bauermann
Even though struct evm_ima_xattr_data includes a fixed-size array to hold a SHA1 digest, most of the code ignores the array and uses the struct to mean "type indicator followed by data of unspecified size" and tracks the real size of what the struct represents in a separate length variable. The on

[PATCH v3 3/7] PKCS#7: Introduce verify_pkcs7_message_sig

2017-07-06 Thread Thiago Jung Bauermann
Add function verify_pkcs7_message_signature which takes a struct pkcs7_message for verification isntead of the raw bytes that verify_pkcs7_signature takes. This will be used by IMA to verify files with module-style appended signatures. Signed-off-by: Thiago Jung Bauermann --- certs/system_keyri

[PATCH v3 6/7] ima: Store measurement after appraisal

2017-07-06 Thread Thiago Jung Bauermann
When module-style signatures appended at the end of files are supported for IMA appraisal, the code will fallback to the xattr signature if the appended one fails to verify. The problem is that we don't know whether we need to fallback to the xattr signature until the appraise step, and by then th

[PATCH v3 2/7] MODSIGN: Export module signature definitions.

2017-07-06 Thread Thiago Jung Bauermann
IMA will use the module_signature format for append signatures, so export the relevant definitions and factor out the code which verifies that the appended signature trailer is valid. Also, create a CONFIG_MODULE_SIG_FORMAT option so that IMA can select it and be able to use validate_module_signat

[PATCH v3 4/7] integrity: Introduce integrity_keyring_from_id

2017-07-06 Thread Thiago Jung Bauermann
IMA will need to obtain the keyring used to verify file signatures so that it can verify the module-style signature appended to files. Signed-off-by: Thiago Jung Bauermann --- security/integrity/digsig.c| 28 +++- security/integrity/integrity.h | 1 + 2 files changed

[PATCH] platform/x86: fujitsu-laptop: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. Si

Re: [RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Ross Zwisler
On Fri, Jul 07, 2017 at 12:13:54AM +0200, Rafael J. Wysocki wrote: > On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler > wrote: > > The current implementation of acpi_parse_entries_array() assumes that each > > subtable has a standard ACPI subtable entry of type struct > > acpi_sutbable_header. This

Re: [PATCH] mbcache: initialize entry->e_referenced in mb_cache_entry_create()

2017-07-06 Thread Eric Biggers
+Cc linux-ext4 On Thu, Jul 06, 2017 at 08:27:25PM +0200, Alexander Potapenko wrote: > KMSAN reported use of uninitialized |entry->e_referenced| in a condition > in mb_cache_shrink(): > > == > BUG: KMSAN: use of uninitialized memory i

[PATCH v3 0/4] Broadcom STB S2/S3/S5 support for ARM and MIPS

2017-07-06 Thread Florian Fainelli
Hi, This patch series adds support for S2/S3/S5 suspend/resume states on ARM and MIPS based Broadcom STB SoCs. This was submitted a long time ago by Brian, and I am now picking this up and trying to get this included with support for our latest chips. Provided that I can collect the necessary Ac

[PATCH v3 2/4] soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)

2017-07-06 Thread Florian Fainelli
From: Brian Norris This commit adds support for the Broadcom STB S2/S3/S5 suspend states on ARM based SoCs. This requires quite a lot of code in order to deal with the different HW blocks that need to be quiesced during suspend: - DDR PHY SHIM - DDR memory controller and sequencer - control pro

[PATCH v3 4/4] soc bcm: brcmstb: Add support for S2/S3/S5 suspend states (MIPS)

2017-07-06 Thread Florian Fainelli
From: Justin Chen This commit adds support for the Broadcom STB S2/S3/S5 suspend states on MIPS based SoCs. This requires quite a lot of code in order to deal with the different HW blocks that need to be quiesced during suspend: - DDR PHY - DDR memory controller and arbiter - control processor

[PATCH v3 1/4] dt-bindings: ARM: brcmstb: Update Broadcom STB Power Management binding

2017-07-06 Thread Florian Fainelli
Update the Broadcom STB Power Management binding document with new compatible strings for the DDR PHY and memory controller found on newer chips. Acked-by: Rob Herring Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt | 6 +- 1 file changed, 5 in

[PATCH v3 3/4] dt-bindings: Document MIPS Broadcom STB power management nodes

2017-07-06 Thread Florian Fainelli
Document the different nodes required for supporting S2/S3/S5 suspend states on MIPS-based Broadcom STB SoCs. Signed-off-by: Florian Fainelli --- .../devicetree/bindings/mips/brcm/soc.txt | 153 + 1 file changed, 153 insertions(+) diff --git a/Documentation/devicetr

Re: [PATCH v2 1/6] cpufreq: schedutil: ignore sugov kthreads

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 12:38:34 PM Patrick Bellasi wrote: > On 05-Jul 10:30, Viresh Kumar wrote: > > On 04-07-17, 18:34, Patrick Bellasi wrote: > > > In system where multiple CPUs shares the same frequency domain a small > > > workload on a CPU can still be subject to frequency spikes, generat

Re: [PATCH 1/2] trace-cmd: use asprintf when possible

2017-07-06 Thread Steven Rostedt
On Mon, 5 Jun 2017 11:31:17 +0200 Federico Vaga wrote: Hi Federico, I finally got around to looking at these. Sorry for the really slow reply, but I had a bunch of kernel work I needed to get done before digging again into trace-cmd. > It makes the code clearer and less error prone. > > clea

Re: [PATCH 2/2] trace-cmd: replace show_file() -> show_instance_file()

2017-07-06 Thread Steven Rostedt
On Mon, 5 Jun 2017 11:31:18 +0200 Federico Vaga wrote: > show_file(name) and show_instance_file(&top_instance, name) are > equivalent. > > Remove the show_file() function in order to have a single function for > this task. Actually I find nothing wrong with having a helper function like this.

Re: [PATCH] fpga manager: add notifier for manager register and unregister events

2017-07-06 Thread Anatolij Gustschin
Hi Alan, On Thu, 6 Jul 2017 13:53:23 -0500 Alan Tull at...@kernel.org wrote: ... >This is interesting and looks pretty straightforward. Do you have any >code that uses it? I've send a patch series for FPP manager, it will add the FPGA manager when an FTDI based configuration device is connected

Re: [PATCH] NVMe: Added another device ID with stripe quirk

2017-07-06 Thread Keith Busch
On Fri, Jul 07, 2017 at 12:17:54AM +0200, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 04:12:31PM -0600, David Wayne Fugate wrote: > > Adds a fourth Intel controller which has the "stripe" quirk. > > NVMe has stadardized a way to communicate this information through > the Namespace Optimal I

Re: [PATCH v2 0/6] cpufreq: schedutil: fixes for flags updates

2017-07-06 Thread Rafael J. Wysocki
On Tuesday, July 04, 2017 06:34:05 PM Patrick Bellasi wrote: > Each time a CPU utilisation update is issued by the scheduler a flag, which > mainly defines which scheduling class is asking for the update, is used by the > frequency selection policy to support the selection of the most appropriate >

Re: [patches] [PATCH 1/9] RISC-V: Init and Halt Code

2017-07-06 Thread Palmer Dabbelt
On Tue, 04 Jul 2017 14:54:01 PDT (-0700), j.neuschae...@gmx.net wrote: > Hi, below are some small comments. > > On Tue, Jul 04, 2017 at 12:50:54PM -0700, Palmer Dabbelt wrote: >> This contains the various __init C functions, the initial assembly >> kernel entry point, and the code to reset the syst

Re: [RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Rafael J. Wysocki
On Fri, Jul 7, 2017 at 12:22 AM, Ross Zwisler wrote: > On Fri, Jul 07, 2017 at 12:13:54AM +0200, Rafael J. Wysocki wrote: >> On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler >> wrote: >> > The current implementation of acpi_parse_entries_array() assumes that each >> > subtable has a standard ACPI su

[PATCH] mtd: spear_smi: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. Si

Re: [PATCH] platform/x86: silead_dmi: Add touchscreen info for I.T.Works TW891 2-in-1

2017-07-06 Thread Darren Hart
On Sat, Jul 01, 2017 at 12:15:22PM +0200, Hans de Goede wrote: > Add touchscreen info for I.T.Works TW891 2-in-1. > ... > + /* I.T.Works TW891 */ > + .driver_data = (void *)&itworks_tw891_data, > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR,

[PATCH v6 1/3] iio: adc: Add support for DLN2 ADC

2017-07-06 Thread Jack Andersen
This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. ADC is the fourth and final component of the DLN2 for the kernel. Signed-off-by: Jack Andersen --- Changes in v2: - Address Peter's remarks; bringing consistency to C99 syntax, dev_dbg usage, and error handling. - Remove probe

Re: [PATCH] rcar_fdp1: constify vb2_ops structure

2017-07-06 Thread Kieran Bingham
Hi Gustavo, Thank you for the patch. On 06/07/17 21:25, Gustavo A. R. Silva wrote: > Check for vb2_ops structures that are only stored in the ops field of a > vb2_queue structure. That field is declared const, so vb2_ops structures > that have this property can be declared as const also. > > Thi

[PATCH v6 2/3] mfd: dln2: Add cell for initializing DLN2 ADC

2017-07-06 Thread Jack Andersen
This patch extends the DLN2 driver; adding cell for adc_dln2 module. Signed-off-by: Jack Andersen Acked-for-MFD-by: Lee Jones --- Changes in v6: - Add commit message For my own reference: Acked-for-MFD-by: Lee Jones --- drivers/mfd/dln2.c | 12 1 file changed, 12 insertions(+)

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-06 Thread Rafael J. Wysocki
On Thursday, July 06, 2017 04:10:27 PM Viresh Kumar wrote: > On 06-07-17, 10:49, Dietmar Eggemann wrote: > > A frequency-invariant load-tracking solution based on cpufreq transition > > notifier will not work for future fast frequency switching policies. > > That is why a different solution is pres

[PATCH v2 5/9] staging: iio: tsl2x7x: cleaned up i2c calls in tsl2x7x_als_calibrate()

2017-07-06 Thread Brian Masney
The calibration function calls i2c_smbus_write_byte() and i2c_smbus_read_byte(). These two function calls are replaced with a single call to i2c_smbus_read_byte_data() by this patch. This patch also removes an unnecessary call that reads the CNTRL register a second time. One of the error paths retu

[PATCH v2 8/9] staging: iio: tsl2x7x: migrate in_illuminance0_integration_time sysfs attribute to iio_chan_spec

2017-07-06 Thread Brian Masney
The driver explicitly creates the in_illuminance0_integration_time sysfs attribute outside the IIO core. This attribute is available in the IIO core so this patches migrates the attribute to be created by the iio_chan_spec. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2x7x.c | 68

[PATCH v2 4/9] staging: iio: tsl2x7x: remove tsl2x7x_i2c_read()

2017-07-06 Thread Brian Masney
tsl2x7x_i2c_read() would call i2c_smbus_write_byte() and i2c_smbus_read_byte(). These two i2c functions can be replaced with a single call to i2c_smbus_read_byte_data(). This patch removes the tsl2x7x_i2c_read() function and replaces all occurrences with a call to i2c_smbus_read_byte_data(). Signe

[PATCH v2 6/9] staging: iio: tsl2x7x: refactor {read,write}_event_value to allow handling multiple iio_event_infos

2017-07-06 Thread Brian Masney
tsl2x7x_read_thresh() and tsl2x7x_write_thresh() currently assumes that IIO_EV_INFO_VALUE is the only iio_event_info that will be passed in. This patch refactors these two functions so that additional iio_event_infos can be passed in. The functions are renamed from tsl2x7x_{read,write}_thresh() to

[PATCH v2 7/9] staging: iio: tsl2x7x: use usleep_range() instead of mdelay()

2017-07-06 Thread Brian Masney
This driver in some cases can busy wait for upwards of 15ms. Since the kernel at this point is not running in atomic context, and is running in process context, we can safely use usleep_range() instead. This patch changes the two occurrences of mdelay() to usleep_range(). Signed-off-by: Brian Masn

[PATCH v2 0/9] staging: iio: tsl2x7x: staging cleanups

2017-07-06 Thread Brian Masney
This begins my work to clean this driver up and eventually move it out of staging. Driver changes were tested using a TSL2771 hooked up to a Raspberry Pi 2. Thanks to Jon Brenner at AMS/TAOS for loaning me some hardware samples to test my driver changes. Changes since v1: - checkpatch cleanups (o

[PATCH v2 9/9] staging: iio: tsl2x7x: check return value from tsl2x7x_invoke_change()

2017-07-06 Thread Brian Masney
The return value from tsl2x7x_invoke_change() was not checked in most places in the driver. This patch adds the proper error checks. The return values inside tsl2x7x_invoke_change() are now checked by this patch as well. Previously, if there was an error turning the chip back on, then the driver w

[PATCH v2 3/9] staging: iio: tsl2x7x: remove redundant power_state sysfs attribute

2017-07-06 Thread Brian Masney
The TSL2X7X driver has a custom power_state sysfs attribute. Remove this attribute since the runtime power management code provides a sysfs attribute to control the power state of the device. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2x7x.c | 34 ---

[PATCH v2 2/9] staging: iio: tsl2x7x: add device tree documentation

2017-07-06 Thread Brian Masney
Add device tree documentation for the tsl2x7x IIO driver. Signed-off-by: Brian Masney CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org --- Documentation/devicetree/bindings/trivial-devices.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetr

[PATCH v2 1/9] staging: iio: tsl2x7x: add of_match table for device tree support

2017-07-06 Thread Brian Masney
Add device tree support for the tsl2x7x IIO driver with no custom properties. The device tree documentation is in a separate commit so that the changes to trivial-devices.txt can go in via the device tree subsystem. Signed-off-by: Brian Masney CC: Rob Herring CC: Mark Rutland CC: devicet...@vge

[PATCH 2/3] tracing: Treat recording tgid for idle task as a success

2017-07-06 Thread Joel Fernandes
Currently we stop recording tgid for non-idle tasks when switching from/to idle task since we treat that as a record failure. Fix that by treat recording of tgid for idle task as a success. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Reported-by: Michael Sartain Signed-off-by

[PATCH 3/3] tracing: Attempt to record other information even if some fail

2017-07-06 Thread Joel Fernandes
In recent patches where we record comm and tgid at the same time, we skip continuing to record if any fail. Fix that by trying to record as many things as we can even if some couldn't be recorded. If any information isn't recorded, then we don't set trace_taskinfo_save as before. Cc: kernel-t...@a

[PATCH 1/3] tracing: Treat recording comm for idle task as a success

2017-07-06 Thread Joel Fernandes
Currently we stop recording comm for non-idle tasks when switching from/to idle task since we treat that as a record failure. Fix that by treat recording of comm for idle task as a success. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Reported-by: Michael Sartain Signed-off-by

[PATCH 2/3 v2] KVM: nVMX: Enable VMFUNC for the L1 hypervisor

2017-07-06 Thread Bandan Das
Expose VMFUNC in MSRs and VMCS fields. No actual VMFUNCs are enabled. Signed-off-by: Paolo Bonzini Signed-off-by: Bandan Das --- arch/x86/kvm/vmx.c | 53 +++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arc

[PATCH 3/3 v2] KVM: nVMX: Emulate EPTP switching for the L1 hypervisor

2017-07-06 Thread Bandan Das
When L2 uses vmfunc, L0 utilizes the associated vmexit to emulate a switching of the ept pointer by reloading the guest MMU. Signed-off-by: Paolo Bonzini Signed-off-by: Bandan Das --- arch/x86/include/asm/vmx.h | 6 + arch/x86/kvm/vmx.c | 55

[PATCH 1/3 v2] KVM: vmx: Enable VMFUNCs

2017-07-06 Thread Bandan Das
Enable VMFUNC in the secondary execution controls. This simplifies the changes necessary to expose it to nested hypervisors. VMFUNCs still cause #UD when invoked. Signed-off-by: Paolo Bonzini Signed-off-by: Bandan Das --- arch/x86/include/asm/vmx.h | 3 +++ arch/x86/kvm/vmx.c | 22 ++

[PATCH 0/3 v2] Expose VMFUNC to the nested hypervisor

2017-07-06 Thread Bandan Das
v2: 1/3: Patch to enable vmfunc on the host but cause a #UD if L1 tries to use it directly. (new) 2/3: Expose vmfunc to the nested hypervisor, but no vm functions are exposed and L0 emulates a vmfunc vmexit to L1. 3/3: Force a vmfunc vmexit when L2 tries to use vmfunc and emulate

Re: [PATCH] tracing: Fix issues recording task information

2017-07-06 Thread Joel Fernandes
Hi Steven, On Thu, Jul 6, 2017 at 5:59 AM, Steven Rostedt wrote: > On Wed, 5 Jul 2017 17:11:47 -0700 > Joel Fernandes wrote: > >> Currently we stop recording task information if any of them error out or are >> not being recorded. Further if switching to/from the idle thread, we bail out >> earl

Re: [RFC v2 0/5] surface heterogeneous memory performance information

2017-07-06 Thread Jerome Glisse
On Thu, Jul 06, 2017 at 03:52:28PM -0600, Ross Zwisler wrote: [...] > > Next steps > > There is still a lot of work to be done on this series, but the overall > goal of this RFC is to gather feedback on which of the two options we > should pursue, or whether some third option is prefe

Re: [PATCH 2/2] pinctrl: sunxi: add support of R40 to A10 pinctrl driver

2017-07-06 Thread Icenowy Zheng
于 2017年7月7日 GMT+08:00 上午4:50:30, Maxime Ripard 写到: >On Thu, Jul 06, 2017 at 10:28:22PM +0800, Icenowy Zheng wrote: >> SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 0), >>SUNXI_FUNCTION(0x0, "gpio_in"), >>SUNXI_FUNCTION(0x1, "gpio_out"), >> - SUNXI_FUNCTION(0x2

Re: [PATCH] tracing: Fix issues recording task information

2017-07-06 Thread Joel Fernandes
Hi Steven, On Thu, Jul 6, 2017 at 5:59 AM, Steven Rostedt wrote: [..] >> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c >> index b66a1c8805f3..27b981a46389 100644 >> --- a/kernel/trace/trace.c >> +++ b/kernel/trace/trace.c >> @@ -1918,7 +1918,11 @@ static int trace_save_cmdline(struct t

mmotm 2017-07-06-16-18 uploaded

2017-07-06 Thread akpm
The mm-of-the-moment snapshot 2017-07-06-16-18 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [linux-sunxi] Re: [PATCH 1/2] pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver

2017-07-06 Thread icenowy
在 2017-07-07 04:46,Maxime Ripard 写道: Hi, On Thu, Jul 06, 2017 at 10:28:21PM +0800, Icenowy Zheng wrote: The PH16 pin has a function with mux id 0x5, which is the DET pin of the "sim" (smart card reader) IP block. This function is missing both in the old A10 and A20 drivers, so it's not found

Re: [PATCH] NVMe: Added another device ID with stripe quirk

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 06:39:56PM -0400, Keith Busch wrote: > That's true for all Intel controllers going forward, but this > is actually an older controller that pre-dates NOIOB. It's the exact > same as the 8086:0A54 model, but a particular vendor decided their > rebranded device needs to be mad

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 11:44:49PM +0200, Christoph Hellwig wrote: > > Which sparse version are you using and what's your .config? > > sparse is v0.5.0-62-gce18a90, .config is attached. Arrgh... OK, I see what's going on. sparse commit affecting that is "Allow casting to a restricted type if !r

Re: [RFC v2 0/5] surface heterogeneous memory performance information

2017-07-06 Thread Dave Hansen
On 07/06/2017 04:08 PM, Jerome Glisse wrote: >> So, for applications that need to differentiate between memory ranges based >> on their performance, what option would work best for you? Is the local >> (initiator,target) performance provided by patch 5 enough, or do you >> require performance info

Re: [PATCH] audit: Reduce overhead using a coarse clock

2017-07-06 Thread Mel Gorman
On Thu, Jul 06, 2017 at 04:25:48PM -0400, Paul Moore wrote: > On Tue, Jul 4, 2017 at 3:41 PM, Deepa Dinamani wrote: > > On Tue, Jul 4, 2017 at 12:20 PM, Arnd Bergmann wrote: > >> On Tue, Jul 4, 2017 at 2:11 PM, Mel Gorman > >> wrote: > >>> > >>> Signed-off-by: Mel Gorman > >> > >> Acked-by: Ar

Re: [PATCH v3 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-06 Thread Christopher Bostic
On 7/6/17 3:48 PM, Guenter Roeck wrote: On Thu, Jul 06, 2017 at 02:27:18PM -0500, Christopher Bostic wrote: On 7/6/17 9:35 AM, Rob Herring wrote: On Thu, Jun 29, 2017 at 08:04:17AM -0700, Guenter Roeck wrote: On Thu, Jun 29, 2017 at 08:39:59AM -0500, Christopher Bostic wrote: On 6/28/17 10

Re: [git pull] vfs.git pile 6

2017-07-06 Thread Linus Torvalds
On Thu, Jul 6, 2017 at 2:11 AM, Al Viro wrote: > [6 more piles tonight with several more left for tomorrow] Tiny side note (since I'm starting to look at this pile soon): it would be nice if your subject line had the very short "this is what it's about" thing to it too. I don't mind the numberin

Re: [PATCH 17/21] x86/intel_rdt/cqm: Add sched_in support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: DECLARE_PER_CPU(struct intel_pqr_state, pqr_state); DECLARE_PER_CPU_READ_MOSTLY(int, cpu_closid); +DECLARE_PER_CPU_READ_MOSTLY(int, cpu_rmid); DECLARE_STATIC_KEY_FALSE(rdt_alloc_enable_key); +DECLARE_STAT

Re: [PATCH 19/21] x86/intel_rdt/mbm: Basic counting of MBM events (total and local)

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: INIT_LIST_HEAD(&r->evt_list); if (rdt_mon_features & (1 << QOS_L3_OCCUP_EVENT_ID)) list_add_tail(&llc_occupancy_event.list, &r->evt_list); + if (is_mbm_total_enabled()) + list_add_tail(&mbm_total_eve

kernel/irq/irqdomain.c:1669:2-16: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant

2017-07-06 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 90311148415ab23f5767fbb577a012d4405f12e5 commit: 087cdfb662ae50e3826e7cd2e54b6519d07b60f0 genirq/debugfs: Add proper debugfs interface date: 2 weeks ago coccinelle warnings: (new ones prefixed by >>) >>

Re: [PATCH 21/21] x86/intel_rdt/mbm: Handle counter overflow

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: +static void mbm_update(struct rdt_domain *d, int rmid) +{ + struct rmid_read rr; + + rr.first = false; + rr.d = d; + + if (is_mbm_total_enabled()) { + rr.evtid = QOS_L3

Re: [f2fs-dev] [PATCH v2] f2fs: relax migratepage for atomic written page

2017-07-06 Thread Chao Yu
On 2017/7/7 5:49, Jaegeuk Kim wrote: > In order to avoid lock contention for atomic written pages, we'd better give > EBUSY in f2fs_migrate_page when mode is asynchronous. We expect it will be > released soon as transaction commits. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu > --- >

Re: [PATCH 1/2] remoteproc: Add remote processor coredump support

2017-07-06 Thread Sarangdhar Joshi
On 6/21/2017 1:54 PM, Suman Anna wrote: Hi Sarang, Hi Sumant, Thanks for reviewing the patch.> >> On 06/14/2017 01:06 PM, Sarangdhar Joshi wrote: The remoteproc framework shuts down and immediately restarts the remote processor after fatal events (such as when remote crashes) during the r

Re: [f2fs-dev] [PATCH] f2fs: relax permission for atomic/volatile ioctls

2017-07-06 Thread Chao Yu
On 2017/7/6 10:23, Jaegeuk Kim wrote: > This patch allows atomic/volatile ioctls for sqlite under sdcardfs. Out of curiosity, we will lose some capable when passing through sdcardfs? Thanks, > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/file.c | 15 --- > 1 file changed, 15 deleti

[GIT PULL] security susbsytem updates #2: TPM and SELinux fixes

2017-07-06 Thread James Morris
Please pull these bugfixes for TPM and SELinux. --- The following changes since commit b4b8cbf679c4866a523a35d1454884a31bd5d8dc: Cavium CNN55XX: fix broken default Kconfig entry (2017-07-05 13:03:05 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git

[GIT PULL 1/3] Kbuild updates for v4.13

2017-07-06 Thread Masahiro Yamada
Hi Linus, Here are Kbuild updates for v4.13. Please pull! I think you will see a trivial merge conflict in arch/arm/include/uapi/asm/Kbuild. Please replace "genhdr-y" with "generated-y", keeping the "generic-y += siginfo.h" line. The diff will look like this:

[GIT PULL 2/3] Kbuild misc updates for v4.13

2017-07-06 Thread Masahiro Yamada
Hi Linus, Here are some updates of misc scripts for v4.13. Please pull! I think you will see a trivial conflict in scripts/kernel-doc-xml-ref. This file was deleted by the doc subsystem. So, please delete it. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Li

Re: [PATCH 1/4] kasan: support alloca() poisoning

2017-07-06 Thread Greg Hackmann
On 07/06/2017 03:01 PM, Greg Hackmann wrote: @@ -101,6 +101,9 @@ static const char *get_shadow_bug_type(struct kasan_access_info *info) break; case KASAN_USE_AFTER_SCOPE: bug_type = "use-after-scope"; + case KASAN_ALLOCA_LEFT: + case KASAN_ALLO

[GIT PULL 3/3] Kbuild updates for thin archives for v4.13

2017-07-06 Thread Masahiro Yamada
Hi Linus, Here are updates to switch over to thin archives. Please see the tag description for details. Please pull! The following changes since commit 3c2993b8c6143d8a5793746a54eba8f86f95240f: Linux 4.12-rc4 (2017-06-04 16:47:43 -0700) are available in the git repository at: git://git.ke

Re: [f2fs-dev] [PATCH] f2fs: relax permission for atomic/volatile ioctls

2017-07-06 Thread Jaegeuk Kim
On 07/07, Chao Yu wrote: > On 2017/7/6 10:23, Jaegeuk Kim wrote: > > This patch allows atomic/volatile ioctls for sqlite under sdcardfs. > > Out of curiosity, we will lose some capable when passing through sdcardfs? I don't think so. But, it seems a test applicaion tries to access database from d

Re: [PATCH] platform/x86: fujitsu-laptop: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Jonathan Woithe
On Thu, Jul 06, 2017 at 05:19:02PM -0500, Gustavo A. R. Silva wrote: > Check return value from call to devm_kzalloc() > in order to prevent a NULL pointer dereference. > > This issue was detected using Coccinelle and the following semantic patch: > > @@ > expression x; > identifier fld; > @@ > >

[GIT PULL] libnvdimm for 4.13

2017-07-06 Thread Williams, Dan J
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-4.13 to receive, libnvdimm updates for the latest ACPI and UEFI specifications. This pull request also includes new 'struct dax_operations' enabling to undo the abuse [1] of copy_user_noc

Re: [GIT PULL] libnvdimm for 4.13

2017-07-06 Thread Al Viro
On Fri, Jul 07, 2017 at 12:22:38AM +, Williams, Dan J wrote: > Hi Linus, please pull from: > > git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm > tags/libnvdimm-for-4.13 > > to receive, libnvdimm updates for the latest ACPI and UEFI > specifications. This pull request also inclu

Re: [PATCH] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent systems

2017-07-06 Thread Srinivas Pandruvada
On Thu, 2017-07-06 at 21:41 +1000, Tom Lanyon wrote: > Sorry for the slow response - I've just had a chance to run some more > tests. > > I tried to disable the SD card reader in the BIOS as suggested > earlier > in the thread, but that didn't seem to make a significant change. > More inline below

Re: [PATCH v3 4/5] selftests: ftrace: Output only to console with "--logdir -"

2017-07-06 Thread Masami Hiramatsu
On Thu, 6 Jul 2017 09:50:26 -0400 Steven Rostedt wrote: > On Thu, 6 Jul 2017 18:10:58 +0900 > Masami Hiramatsu wrote: > > > @@ -255,12 +262,18 @@ __run_test() { # testfile > > # Run one test case > > run_test() { # testfile > >local testname=`basename $1` > > - local testlog=`mktemp $LO

[PATCH] Documentation/devicetree: fix dead links to PCI/OF specs

2017-07-06 Thread Brian Norris
www.firmware.org doesn't resolve for me. I found these equivalent URLs by taking the redirects from the previous (openfirmware.org) URLs, as seen before commit f517256a6867 ("Documentation/devicetree: Update PCI Device Tree bindings") updated them. Signed-off-by: Brian Norris --- This is my best

linux-next: manual merge of the f2fs tree with Linus' tree

2017-07-06 Thread Stephen Rothwell
Hi Jaegeuk, Today's linux-next merge of the f2fs tree got a conflict in: fs/f2fs/f2fs.h between commit: a7c3e901a46f ("mm: introduce kv[mz]alloc helpers") from Linus' tree and commit: 8e9a5c32d310 ("f2fs: support plain user/group quota") from the f2fs tree. I fixed it up (see below) a

Re: [PATCH 4/4] selftests: ftrace: Output only to console with "--logdir -"

2017-07-06 Thread Masami Hiramatsu
On Thu, 6 Jul 2017 22:06:58 +0900 Stafford Horne wrote: > On Wed, Jul 05, 2017 at 12:25:06PM -0400, Steven Rostedt wrote: > > On Tue, 4 Jul 2017 15:38:55 +0900 > > Masami Hiramatsu wrote: > > > > > +local testlog=`mktemp $LOG_DIR/${testname}-log.XX` > > > + else > > > +local testl

[PATCH v4 2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-07-06 Thread Christopher Bostic
Reference the system device tree when configuring the watchdog engines. If property 'aspeed,reset_type' is present then set reset behavior based on the specified value. This can be one of three different mutually exclusive values * cpu - Reset CPU only on watchdog timeout * soc - Reset System

[PATCH v4 0/2] Add ASPEED watchdog device tree properties

2017-07-06 Thread Christopher Bostic
Document device tree optional properties for ASPEED watchdog. Reference properties in ASPEED watchdog driver and configure accordingly. Christopher Bostic (2): drivers/watchdog: Add optional ASPEED device tree properties drivers/watchdog: ASPEED reference dev tree properties for config .../d

[PATCH v4 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-06 Thread Christopher Bostic
Describe device tree optional properties: * aspeed,reset-type = "cpu|soc|system|none" One of three different, mutually exclusive, values "cpu" : ARM CPU reset on signal "soc" : 'System on chip' reset "system" : Full system reset The value can also be set to "n

Re: [PATCH] drm/rockchip: fix NULL check on devm_kzalloc() return value

2017-07-06 Thread Mark yao
On 2017年07月07日 05:58, Gustavo A. R. Silva wrote: The right variable to check here is port, not dp. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo

[PATCH] f2fs: use spin_{,un}lock_irq{save,restore} in end_io

2017-07-06 Thread Chao Yu
From: Chao Yu generic/361 reports below warning, this is because, end_io is triggered from IRQ, if we want to use spinlock here, it needs to avoid IRQ in the region of spinlock protected. So this patch changes to use spin_{,un}lock_irq{save,restore} in end_io to avoid potential deadlock. irq e

[PATCH v4 0/5] selftests: ftrace: ftracetest improvements

2017-07-06 Thread Masami Hiramatsu
Hello, Here is v4 of ftracetest improvements, including test return code change and immediate logging features. This version just fixes a bug in [4/5] so that remove unneeded backslash. Thank you, --- Masami Hiramatsu (5): selftests: ftrace: Do not failure if there is unsupported tests

Re: [f2fs-dev] [PATCH] f2fs: relax permission for atomic/volatile ioctls

2017-07-06 Thread Chao Yu
On 2017/7/7 8:16, Jaegeuk Kim wrote: > On 07/07, Chao Yu wrote: >> On 2017/7/6 10:23, Jaegeuk Kim wrote: >>> This patch allows atomic/volatile ioctls for sqlite under sdcardfs. >> >> Out of curiosity, we will lose some capable when passing through sdcardfs? > > I don't think so. But, it seems a te

[PATCH v4 1/5] selftests: ftrace: Do not failure if there is unsupported tests

2017-07-06 Thread Masami Hiramatsu
Do not return failure exit code (1) for unsupported testcases, since it is expected for stable kernels. Previously, ftracetest is expected to run only on current release for avoiding regressions. However, nowadays we run it on stable kernels. This means some test cases must return unsupported resu

[PATCH v4 2/5] selftests: ftrace: Add --fail-unsupported option

2017-07-06 Thread Masami Hiramatsu
Add --fail-unsupported option to fail the test result if ftracetest gets UNSUPPORTED result. UNSUPPORTED usually happens when the kernel is old (e.g. stable tree) or some kernel feature is disabled. However, if newer kernel has any bug or regression, it can make test results in UNSUPPORTED too. Th

Re: [PATCH] jprobes: Ensure that the probepoint is at function entry

2017-07-06 Thread Masami Hiramatsu
On Thu, 6 Jul 2017 14:15:49 +0200 Ingo Molnar wrote: > * Masami Hiramatsu wrote: > > > > Also, 'function_offset_within_entry' is way too long a name, and it's > > > also a > > > minomer I think. The purpose of this function is to enforce that the > > > relative > > > 'offset' of a new probe

[PATCH v4 3/5] selftests: ftrace: Add more verbosity for immediate log

2017-07-06 Thread Masami Hiramatsu
Add 3-level verbosity for showing traced command log on console immediately. Since some test cases can cause kernel pacic if there is a probrem (like regression etc.), we can not know which command caused the problem without traced command log. This verbosity (-vvv) solves that because it shows the

[PATCH v4 4/5] selftests: ftrace: Output only to console with "--logdir -"

2017-07-06 Thread Masami Hiramatsu
Output logs only to console if "-" is given to --logdir option. In this case, ftracetest doesn't record any log on the disk, and all logs immediately shown (including all command logs.) Since there is no "tee" in the middle of command and console, it outputs the log really soon. This option is use

Re: [PATCH 2/9] RISC-V: Atomic and Locking Code

2017-07-06 Thread Palmer Dabbelt
On Wed, 05 Jul 2017 01:43:21 PDT (-0700), pet...@infradead.org wrote: > On Tue, Jul 04, 2017 at 12:50:55PM -0700, Palmer Dabbelt wrote: >> +/* >> + * FIXME: I could only find documentation that atomic_{add,sub,inc,dec} are >> + * barrier-free. I'm assuming that and/or/xor have the same constraints

[PATCH v4 5/5] selftests: ftrace: Check given string is not zero-length

2017-07-06 Thread Masami Hiramatsu
Use [ ! -z "$VAR" ] instead of [ "$VAR" ] to check whether the given string variable is not zero-length since it obviously shows what it means. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/ftracetest |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-06 Thread Ding Tianhong
On 2017/7/7 1:17, Bjorn Helgaas wrote: > On Thu, Jul 06, 2017 at 08:58:51PM +0800, Ding Tianhong wrote: >> Hi Bjorn: >> >> Could you please give some feedback about this patchset, it looks like no >> more comments for more than a week, >> thanks. :) > > I was on vacation when you posted it, but

[PATCH 2/2] soc: codecs: rt5645: fixed coding style issuses

2017-07-06 Thread Chris Gorman
fixed coding style issues 6 warnings and 1 error left two warnings alone because I was unsure about changing the logic and felt the 80 + character line necessary sound/soc/codecs/rt5645.c:702: WARNING: else is not generally useful after a break or return sound/soc/codecs/rt5645.c:3024: WARNING: l

Re: [PATCH v3 1/2] perf util: Check for fused instruction

2017-07-06 Thread Jin, Yao
+ +static bool x86__ins_is_fused(char *cpuid, const char *ins1, const char *ins2) +{ + unsigned int family, model, stepping; + int ret; + + /* +* cpuid = "GenuineIntel,family,model,stepping" +*/ + ret = sscanf(cpuid, "%*[^,],%u,%u,%u", &family, &model, &st

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 07:54:00 PM Peter Chen wrote: > On Wed, Jul 05, 2017 at 02:44:56AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > > > We have an well-known problem that the device needs to do some power > > > sequence before it can be rec

Re: [PATCH] tracing: Fix issues recording task information

2017-07-06 Thread Steven Rostedt
On Thu, 6 Jul 2017 16:17:18 -0700 Joel Fernandes wrote: > Hi Steven, > > On Thu, Jul 6, 2017 at 5:59 AM, Steven Rostedt wrote: > [..] > >> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > >> index b66a1c8805f3..27b981a46389 100644 > >> --- a/kernel/trace/trace.c > >> +++ b/kernel/trac

[PATCH v2] ASoC: samsung: i2s: Support more resolution rates

2017-07-06 Thread Jaechul Lee
This driver can support more frequencies over 96KHz. There are no reasons to limit the frequency range below 96KHz. If codecs/amps or something else can't support higher resolution rates, the constraints would be set rates properly because each drivers have its own limits. I added the 'pcm_rates'

<    3   4   5   6   7   8   9   10   >