Re: [PATCH] HSI: hsi_char: pr_err() strings should end with newlines

2017-10-01 Thread Sebastian Reichel
Hi, On Tue, Sep 26, 2017 at 11:46:14AM +0530, Arvind Yadav wrote: > pr_err() messages should end with a new-line to avoid other messages > being concatenated. > > Signed-off-by: Arvind Yadav Thanks, queued. -- Sebastian > --- > drivers/hsi/clients/hsi_char.c | 4 ++-- > 1 file changed, 2 ins

Re: [PATCH] vme: Fix integer overflow checking in vme_check_window()

2017-10-01 Thread Dmitry Kalinkin
> On 30 Sep 2017, at 07:27, Dan Carpenter wrote: > > The controversial part of this patch is that I've changed it so we now > prevent integer overflows for VME_USER types and before we didn't. I > view it as kernel-hardening. I looked at a couple places that used > VME_USER types and they seem

Re: [PATCH] HID: i2c-hid: Use device properties (instead of device tree)

2017-10-01 Thread Andy Shevchenko
On Fri, 2017-09-29 at 15:44 -0700, Rajat Jain wrote: > Use the device properties (that can be provided by ACPI systems > as well as non ACPI systems) instead of device tree properties > (that are not provided ACPI systems). This required some minor > code restructuring. > > I don't think its a bi

[PATCH][next] mlxsw: spectrum: fix uninitialized value in err

2017-10-01 Thread Colin King
From: Colin Ian King In the unlikely event that mfc->mfc_un.res.ttls[i] is 255 for all values of i from 0 to MAXIVS-1, the err is not set at all and hence has a garbage value on the error return at the end of the function, so initialize it to 0. Also, the error return check on err and goto to er

Re: How to verify linux-next

2017-10-01 Thread Pintu Kumar
On Sat, Sep 30, 2017 at 10:55 AM, Theodore Ts'o wrote: > On Sat, Sep 30, 2017 at 09:28:09AM +0530, Pintu Kumar wrote: >> I need to submit a patch to mainline which should be verified against >> linux-next tree with latest API. > > If you want to verify a patch that you intend to submit upstream, m

Re: [PATCH][next] mlxsw: spectrum: fix uninitialized value in err

2017-10-01 Thread Yotam Gigi
On 10/01/2017 07:27 PM, Colin King wrote: > From: Colin Ian King > > In the unlikely event that mfc->mfc_un.res.ttls[i] is 255 for all > values of i from 0 to MAXIVS-1, the err is not set at all and hence > has a garbage value on the error return at the end of the function, > so initialize it to 0

Re: [PATCH v1 1/2] clocksource: npcm: add NPCM7xx timer driver

2017-10-01 Thread Daniel Lezcano
Hi Tomer, On Sun, Oct 01, 2017 at 12:11:37PM +0300, Tomer Maimon wrote: > Add Nuvoton BMC NPCM7xx timer driver. Give a more detailed description of the timer please. > Signed-off-by: Tomer Maimon > --- > drivers/clocksource/Kconfig | 9 ++ > drivers/clocksource/Makefile| 1

Re: How to verify linux-next

2017-10-01 Thread Damian Tometzki
Am Sonntag, den 01.10.2017, 21:58 +0530 schrieb Pintu Kumar: > On Sat, Sep 30, 2017 at 10:55 AM, Theodore Ts'o > wrote: > > > > On Sat, Sep 30, 2017 at 09:28:09AM +0530, Pintu Kumar wrote: > > > > > > I need to submit a patch to mainline which should be verified > > > against > > > linux-next t

Re: How to verify linux-next

2017-10-01 Thread Theodore Ts'o
On Sun, Oct 01, 2017 at 09:58:37PM +0530, Pintu Kumar wrote: > Ok thank you so much for your reply. > Now I am able to boot with v4.14-rc2. But now I am facing another problem. > Now, I am not able to connect to internet from virtual box. > When I switch back to the default 4.10 the internet works

Re: [PATCH v1 0/2] clocksource: npcm: add NPCM7xx timer driver

2017-10-01 Thread Daniel Lezcano
On Sun, Oct 01, 2017 at 12:11:36PM +0300, Tomer Maimon wrote: > This patch set adds clocksource support for the Nuvoton NPCM7xx Baseboard > Management Controller (BMC). > > The clocksource Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx BMC, > while TIMER0 serves as clockevent and TIMER1 s

Re: How to verify linux-next

2017-10-01 Thread Randy Dunlap
On 10/01/17 09:44, Damian Tometzki wrote: > > Am Sonntag, den 01.10.2017, 21:58 +0530 schrieb Pintu Kumar: >> On Sat, Sep 30, 2017 at 10:55 AM, Theodore Ts'o >> wrote: >>> >>> On Sat, Sep 30, 2017 at 09:28:09AM +0530, Pintu Kumar wrote: I need to submit a patch to mainline which should

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-01 Thread Brijesh Singh
On 9/30/17 4:41 PM, Borislav Petkov wrote: ... >> 3.2 If bit is set, its SEV guest. We set sev_enabled to 'true' and also >> set 'sme_me_mask'. Return from the function. >> The SEV state *cannot* be controlled by a command line option. > So how do you propose to disable SEV? Right now I do: > >

Re: How to verify linux-next

2017-10-01 Thread Mike Galbraith
On Sun, 2017-10-01 at 09:48 -0700, Randy Dunlap wrote: > On 10/01/17 09:44, Damian Tometzki wrote: > > > i resolved the issue with: > > sudo /etc/init.d/apparmor stop > > or boot with: apparmor=0 or systemctl mask apparmor

[PATCH] auxdisplay: img-ascii-lcd: Use setup_timer API

2017-10-01 Thread Himanshu Jha
Use setup_timer API instead of structure assignment. Signed-off-by: Himanshu Jha --- drivers/auxdisplay/img-ascii-lcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c index 25306fa..ea6875e 100644 --

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-01 Thread Borislav Petkov
On Sun, Oct 01, 2017 at 12:00:31PM -0500, Brijesh Singh wrote: > When SEV feature is disabled, KVM will not be able to launch any SEV > guests.  When SEV support is available, KVM can enable it in a specific > VM by setting SEV bit before executing the VMRUN instruction. So I want to be able to di

Donation for you!!

2017-10-01 Thread Carlos Slim Helu
GREETINGS, My name is Carlos Slim Helu, A philanthropist the CEO and Chairman of the Carlos Slim Helu Foundation Charitable Foundation, one of the largest private foundations in the world. I believe strongly in‘giving while living’ I had one idea that never changed in my mind — that you shoul

Project Funding Program

2017-10-01 Thread Daria Yoong Shang
Hello, Can i trust an investment project in your country? accepted please send email for more details. Best Regards Daria Yoong Shang

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Joe Perches
On Sun, 2017-10-01 at 14:37 +0200, Milian Wolff wrote: > On Dienstag, 19. September 2017 14:27:11 CEST Jiri Olsa wrote: [] > > nit, think we prefer the /* */ comment style > > I'll fix this, but note that there are more places outside this patch series > where this style has crept in. Some of the

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-01 Thread Greg KH
On Sun, Oct 01, 2017 at 02:25:00PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Sunday, October 1, 2017 8:24 AM > > To: Limonciello, Mario > > Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux- > >

Re: [PATCH v3 1/3] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names.

2017-10-01 Thread Martin Kepplinger
On 2017-09-30 19:59, Jonathan Cameron wrote: > On Wed, 27 Sep 2017 08:52:54 +0200 > Martin Kepplinger wrote: > >> Am 25.09.2017 12:40 schrieb Harinath Nampally: >>> Improves code readability, no impact on functionality. >>> >>> Signed-off-by: Harinath Nampally >>> --- >> >> I'd prefer a shorte

[PATCH] h8300: fix defconfig for edosk2674

2017-10-01 Thread Waldemar Brodkorb
This patch is required to create an uImage which boot on Hitachi edosk2674 into a shell. (tested with sash) The patch was tested with 4.4/4.9 LTS kernel. It seems >4.13 contains a regression, which does not allow to boot Linux on the device anymore. Signed-off-by: Waldemar Brodkorb --- arch/h830

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Linus Torvalds
On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar wrote: > > Right, re-introducing the iint->mutex and a new i_generation field in > the iint struct with a separate set of locks should work. It will be > reset if the file metadata changes (eg. setxattr, chown, chmod). Note that the "inner lock" could p

Re: How to verify linux-next

2017-10-01 Thread Pintu Kumar
On Sun, Oct 1, 2017 at 10:33 PM, Mike Galbraith wrote: > On Sun, 2017-10-01 at 09:48 -0700, Randy Dunlap wrote: >> On 10/01/17 09:44, Damian Tometzki wrote: >> >> > i resolved the issue with: >> > sudo /etc/init.d/apparmor stop >> >> or boot with: apparmor=0 > > or systemctl mask apparmor Ok, tha

[PATCH] nvme: make config_item_type __ro_after_init

2017-10-01 Thread Bhumika Goyal
Make these __ro_after_init as they are only stored as a reference in the ci_type field of a config_item structure during the init phase in the function config_group_init_type_name. None of the fields of these structures are modified after the init phase, so they can be __ro_after_init. Structures

[PATCH] staging: android: TODO: Removing an invalid issue

2017-10-01 Thread Joaquin Garmendia Cabrera
The first line of TODO is invalid because no file has an error or warning when running checkpatch.pl Signed-off-by: Joaquin Garmendia Cabrera --- drivers/staging/android/TODO | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/android/TODO b/drivers/staging/andr

Re: [f2fs-dev] [PATCH v4] f2fs: introduce discard_granularity sysfs entry

2017-10-01 Thread Ju Hyung Park
When 'fstrim' is called for manual trim, a BUG() can be triggered randomly with this patch. I'm seeing this issue on both x86 Desktop and arm64 Android phone. On x86 Desktop, this was caused during Ubuntu boot-up. I have a cronjob installed which calls 'fstrim -v /' during boot. On arm64 Android,

[PATCH 01/18] sound: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 02/18] tracing/filter: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
It is useless to re-invent the ARRAY_SIZE macro so let's use it instead of DATA_CNT. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Si

[PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Jérémy Lefaure
Hi everyone, Using ARRAY_SIZE improves the code readability. I used coccinelle (I made a change to the array_size.cocci file [1]) to find several places where ARRAY_SIZE could be used instead of other macros or sizeof division. I tried to divide the changes into a patch per subsystem (excepted for

[PATCH 16/18] media: staging: atomisp: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is useless to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E

[PATCH 09/18] nfsd: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 03/18] media: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p

[PATCH 07/18] scsi: bfa: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 18/18] staging: rtlwifi: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is useless to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E

[PATCH 11/18] dm space map metadata: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 17/18] staging: rtl8723bs: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p

[PATCH 12/18] x86: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p

[PATCH 13/18] tpm: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 15/18] acpi: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. It is useless to re-invent the ARRAY_SIZE macro so let's use it. It is useless to re-invent the ARRAY_SIZE macro so let's use it. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E;

[PATCH 08/18] ecryptfs: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 14/18] ipmi: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. In this case, it's useless to define the macro NUM_PO_FUNCS so let's use ARRAY_SIZE instead. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeo

[PATCH 10/18] orangefs: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

[PATCH 06/18] drm: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time nor to re-invent the ARRAY_SIZE macro. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T;

[PATCH 05/18] net: use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p

[PATCH 04/18] IB/mlx5: Use ARRAY_SIZE

2017-10-01 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-01 Thread Brijesh Singh
> > So I want to be able to disable SEV and the whole code that comes with > it in the *host*. We can add a new variable 'sme_only'. By default this variable should be set to false. When mem_encrypt=sme is passed then set it to true and based on sme_only state early_detect_mem_encrypt() can clear

Re: [2/2] hwmon: xgene: Support PCC shared memory in IO region

2017-10-01 Thread Guenter Roeck
On Sun, Oct 01, 2017 at 07:31:32AM -0700, Guenter Roeck wrote: > On Thu, Sep 21, 2017 at 10:17:10AM -0700, hotran wrote: > > As the PCC shared memory could be in IO region which doesn't > > support caching, this patch simply uses ioremap() for IO region. > > > > Signed-off-by: Hoan Tran > > Appl

[PATCH 2/3] iio: adc: ina2xx: Adhere to documented ABI, use Ohm instead of uOhm

2017-10-01 Thread Stefan Brüns
According to the ABI documentation, the shunt resistor value should be specificied in Ohm. As this is also used/documented for the MAX9611, use the same for the INA2xx driver. This poses an ABI break for anyone actually altering the shunt value through the sysfs interface, it does not alter the de

[PATCH 0/3] iio: adc: ina2xx: Fixes and extensions

2017-10-01 Thread Stefan Brüns
The first patch fixes an issue with the conversion-ready status flag showing up in the bus voltage raw value. The second patch changes the the shunt resistor value attribute to ohms (instead of microohms), to match both ABI documentation and other shunt resistor users, i.e. the MAX9611 IIO driver.

[PATCH 3/3] iio: adc: ina2xx: Allow setting Shunt Voltage PGA gain and Bus Voltage range

2017-10-01 Thread Stefan Brüns
Reducing shunt and bus voltage range improves the accuracy, so allow altering the default settings. Both settings are exposed as gain values. While for the shunt voltage this is straightforward, the bus range settings of 32V (default) and 16V are mapped to gain values of 1 resp. 2, to provide a un

[PATCH 1/3] iio: adc: ina2xx: Mask flag bits in bus voltage register

2017-10-01 Thread Stefan Brüns
Lower bits of the INA219/220 bus voltage register are conversion status flags, properly mask the value. Signed-off-by: Stefan Brüns --- drivers/iio/adc/ina2xx-adc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/

[PATCH 1/2] atm: Delete an error message for a failed memory allocation in adummy_init()

2017-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 1 Oct 2017 21:31:32 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/atm/adummy.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH 0/2] atm: Adjustments for adummy_init()

2017-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 1 Oct 2017 21:43:21 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/atm/adummy.c | 5 + 1 file changed,

[PATCH 2/2] atm: Improve a size determination in adummy_init()

2017-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 1 Oct 2017 21:35:18 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was dete

Loan

2017-10-01 Thread CAPITAL FINANCE
UNSECURED BUSINESS/PERSONAL LOAN BY LOAN CAPITAL FINANCE - NO COLLATERAL - MINIMUM DOCUMENTATION - BUSINESS LOAN UP TO FIVE(5) MILLION US DOLLARS CONTACT US TODAY VIA EMAIL: financecapital...@mail.com

Re: [RFC GIT Pull] core watchdog sanitizing

2017-10-01 Thread Linus Torvalds
I refuse to pull this. Look, I understand what you want to do, but the code is disgusting. Maybe most of it is fine, but I just couldn't stomach looking at it after just a few lines. Look at that abortion called "watchdog_nmi_reconfigure()". It's one single function that does two completely dif

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-10-01 Thread Brijesh Singh
On 9/30/17 11:11 AM, Borislav Petkov wrote: > I think just from having CRYPTO_DEV_CCP_DD depend on CPU_SUP_AMD || > ARM64, CRYPTO_DEV_SP_PSP gets almost the same dependency transitively. > But sure, let's make the PSP build only on x86. It should depend on > X86_64, to be precise. I think theore

[PATCH] exthdr: Add support for reserved header and address

2017-10-01 Thread Harsha Sharma
Add support for IPV6 type 0 routing header reserved field and address unable to test it with nft-test.py Signed-off-by: Harsha Sharma --- include/exthdr.h | 2 ++ src/exthdr.c | 7 +-- tests/py/ip6/rt.t | 2 ++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/exth

i2c-omap.c vs. qemu: too much work in one irq (and broken boot)

2017-10-01 Thread Pavel Machek
Hi! I'm trying to get qemu emulation of Nokia N900 to work, but unfortunately i2c-omap.c breaks boot in the emulator (real hardware works ok). [0.837524] omap2-onenand omap2-onenand: initializing on CS0, phys base 0x0100, virtual base d00c, freq 66 MHz [0.838958] Muxed OneNAND 256

Re: [RFC] yamldt v0.5, now a DTS compiler too

2017-10-01 Thread Rob Herring
On Thu, Sep 28, 2017 at 2:58 PM, Pantelis Antoniou wrote: > Hello again, > > Significant progress has been made on yamldt and is now capable of > not only generating yaml from DTS source but also compiling DTS sources > and being almost fully compatible with DTC. Can you quantify "almost"? > Com

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Tobin C. Harding
On Sun, Oct 01, 2017 at 03:30:38PM -0400, Jérémy Lefaure wrote: > Hi everyone, > Using ARRAY_SIZE improves the code readability. I used coccinelle (I > made a change to the array_size.cocci file [1]) to find several places > where ARRAY_SIZE could be used instead of other macros or sizeof > divisio

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-01 Thread Borislav Petkov
On Sun, Oct 01, 2017 at 02:45:09PM -0500, Brijesh Singh wrote: > > > > So I want to be able to disable SEV and the whole code that comes with > > it in the *host*. > > We can add a new variable 'sme_only'. By default this variable should be set > to false. When mem_encrypt=sme is passed then set i

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Eric W. Biederman
Linus Torvalds writes: > On Sep 30, 2017 18:33, "Eric W. Biederman" wrote:. > > That would require a task_work or another kind of work callback so that > the writes of the xattr are not synchronous with the vfs callback > correct? > > No, why? > > You should just invalidate the IMA on xattr w

Re: i2c-omap.c vs. qemu: too much work in one irq (and broken boot)

2017-10-01 Thread Pavel Machek
Hi! > I'm trying to get qemu emulation of Nokia N900 to work, but > unfortunately i2c-omap.c breaks boot in the emulator (real hardware > works ok). I started bisection. v4.6 works, v4.7 is broken. (It still may be config difference or something). This looked suspect, so I tried reverting it, bu

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Linus Torvalds
On Sun, Oct 1, 2017 at 3:06 PM, Eric W. Biederman wrote: > > Unless I misread something it was being pointed out there are some vfs > operations today on which ima writes an ima xattr as a side effect. And > those operations hold the i_sem. So perhaps I am misunderstanding > things or writing th

Re: [PATCH v4 1/5] cramfs: direct memory access support

2017-10-01 Thread Nicolas Pitre
On Sun, 1 Oct 2017, Christoph Hellwig wrote: > On Wed, Sep 27, 2017 at 07:32:20PM -0400, Nicolas Pitre wrote: > > To distinguish between both access types, the cramfs_physmem filesystem > > type must be specified when using a memory accessible cramfs image, and > > the physaddr argument must provi

Re: [PATCH v4 4/5] cramfs: add mmap support

2017-10-01 Thread Nicolas Pitre
On Sun, 1 Oct 2017, Christoph Hellwig wrote: > up_read(&mm->mmap_sem) in the fault path is a still a complete > no-go, > > NAK Care to elaborate? What about mm/filemap.c:__lock_page_or_retry() then? Why the special handling on mm->mmap_sem with VM_FAULT_RETRY? What are the potential problems

[PATCH net 0/3] net: TCP/IP: A few minor cleanups

2017-10-01 Thread Michael Witten
The following patch series is an ad hoc "cleanup" that I made while perusing the code (I'm not well versed in this code, so I would not be surprised if there were objections to the changes): [1] net: __sock_cmsg_send(): Remove unused parameter `msg' [2] net: inet_recvmsg(): Remove unnecessary

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar wrote: > > > > Right, re-introducing the iint->mutex and a new i_generation field in > > the iint struct with a separate set of locks should work. It will be > > reset if the file metadata

[PATCH net 1/3] net: __sock_cmsg_send(): Remove unused parameter `msg'

2017-10-01 Thread Michael Witten
Date: Thu, 7 Sep 2017 03:21:38 + Signed-off-by: Michael Witten --- include/net/sock.h | 2 +- net/core/sock.c| 4 ++-- net/ipv4/ip_sockglue.c | 2 +- net/ipv6/datagram.c| 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/net/sock.h b/include/net/sock

[PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Michael Witten
Date: Sat, 9 Sep 2017 05:50:23 + Hitherto, the queue's lock has been locked/unlocked every time an item is dequeued; this seems not only inefficient, but also incorrect, as the whole point of `skb_queue_purge()' is to clear the queue, presumably without giving any other thread a chance to manip

[PATCH net 2/3] net: inet_recvmsg(): Remove unnecessary bitwise operation

2017-10-01 Thread Michael Witten
Date: Fri, 8 Sep 2017 00:47:49 + The flag `MSG_DONTWAIT' is handled by passing an argument through the dedicated parameter `nonblock' of the function `tcp_recvmsg()'. Presumably because `MSG_DONTWAIT' is handled so explicitly, it is unset in the collection of flags that are passed to `tcp_recv

[PATCH v2] staging: android: TODO: Removing an invalid issue

2017-10-01 Thread Joaquin Garmendia Cabrera
The first line of TODO is invalid because no file has an error or warning when running checkpatch.pl Signed-off-by: Joaquin Garmendia Cabrera --- Changes in v2: - Fixing a Typo. drivers/staging/android/TODO | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/TODO b/driv

Linux 4.14-rc3

2017-10-01 Thread Linus Torvalds
So 4.14 continues to be a somewhat painful release, and I'm starting to at least partly blame the fact that it's meant to be an LTS release. The last LTS release we had (4.9) resulted in one of the biggest kernel releases we ever had because everybody wanted in; the 4.14 release doesn't seem to be

[PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-01 Thread Alexandru Moise
This attempts to bring more flexibility to how hugepages are allocated by making it possible to decide whether we want the hugepages to be allocated from ZONE_MOVABLE or to the zone allocated by the "kernelcore=" boot parameter for non-movable allocations. A new boot parameter is introduced, "huge

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Linus Torvalds
On Sun, Oct 1, 2017 at 3:34 PM, Dave Chinner wrote: > > We already have a change counter on the inode, which is modified on > any data or metadata write (i_version) under filesystem locks. The > i_version counter has well defined semantics - it's required by > NFSv4 to increment on any metadata o

4879b7ae05 ("Merge tag 'dmaengine-4.12-rc1' of .."): WARNING: kernel stack regs at bd92bc2e in 01-cpu-hotplug:3811 has bad 'bp' value 000001be

2017-10-01 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 4879b7ae05431ebcd228a4ff25a81120b3d85891 Merge: ecc721a72c121 be13ec668d043 Author: Linus Torvalds AuthorDate: Tue May 9 15:4

Re: [v8 0/4] cgroup-aware OOM killer

2017-10-01 Thread Shakeel Butt
> > Going back to Michal's example, say the user configured the following: > >root > /\ > A D > / \ >B C > > A global OOM event happens and we find this: > - A > D > - B, C, D are oomgroups > > What the user is telling us is that B, C, and D are compound memory

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Mimi Zohar
On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: > On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar wrote: > > > > > > Right, re-introducing the iint->mutex and a new i_generation field in > > > the iint struct with a separate set

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Mimi Zohar
On Sun, 2017-10-01 at 15:20 -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 3:06 PM, Eric W. Biederman > wrote: > > > > Unless I misread something it was being pointed out there are some vfs > > operations today on which ima writes an ima xattr as a side effect. And > > those operations ho

Re: [PATCH v2 01/16] hyper-v: trace vmbus_on_msg_dpc()

2017-10-01 Thread kbuild test robot
Hi Vitaly, [auto build test WARNING on linus/master] [also build test WARNING on v4.14-rc3 next-20170929] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Vitaly-Kuznetsov/hyper-v-trace-vmbus_on_m

[PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-10-01 Thread Leo Yan
Scheduler CFS class has variable 'capacity_margin' to calculate the capacity margin, and schedutil governor also needs to compensate the same margin for frequency tipping point. Below are formulas used in CFS class and schedutil governor separately: CFS: U` = U * capacity_margin / 1024 = U *

[PATCH v2 1/2] sched/fair: make capacity_margin __read_mostly

2017-10-01 Thread Leo Yan
Variable 'capacity_margin' is used with read operation for most cases to calculate the capacity margin, put it into __read_mostly section. Cc: Dietmar Eggemann Cc: Morten Rasmussen Cc: Chris Redpath Cc: Joel Fernandes Cc: Vincent Guittot Cc: Patrick Bellasi Signed-off-by: Leo Yan --- kerne

Re: [PATCH] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig

2017-10-01 Thread kbuild test robot
Hi Anup, [auto build test ERROR on v4.14-rc2] [cannot apply to rpmsg/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Anup-Patel/rpmsg-Allow-RPMSG_VIRTIO-to-be-enabled-via-menuconfig-or-

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Jérémy Lefaure
On Mon, 2 Oct 2017 09:01:31 +1100 "Tobin C. Harding" wrote: > > In order to reduce the size of the To: and Cc: lines, each patch of the > > series is sent only to the maintainers and lists concerned by the patch. > > This cover letter is sent to every list concerned by this series. > > Why don

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-01 Thread Darren Hart
On Sat, Sep 30, 2017 at 10:12:05AM +0200, Greg Kroah-Hartman wrote: > On Fri, Sep 29, 2017 at 06:52:28PM -0700, Darren Hart wrote: > > > > On Wed, Sep 27, 2017 at 11:02:16PM -0500, Mario Limonciello wrote: > > > For WMI operations that are only Set or Query read or write sysfs > > > attributes cre

Re: [PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Stephen Hemminger
On Sun, 01 Oct 2017 22:19:20 - Michael Witten wrote: > + spin_lock_irqsave(&q->lock, flags); > + skb = q->next; > + __skb_queue_head_init(q); > + spin_unlock_irqrestore(&q->lock, flags); Other code manipulating lists uses splice operation and a sk_buff_head temporary on the s

Re: [PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-10-01 Thread Joel Fernandes
Hi Leo, On Sun, Oct 1, 2017 at 5:30 PM, Leo Yan wrote: > Scheduler CFS class has variable 'capacity_margin' to calculate the s/calculate/represent/ ? > capacity margin, and schedutil governor also needs to compensate the > same margin for frequency tipping point. Below are formulas used in > CF

[PATCH v3 09/10] arm: dts: mt7623: enable bananapi-r2 display function

2017-10-01 Thread Ryder Lee
This patch adds missing MIPI pin macros in mt7623-pinfunc.h and enables pwm backlight support for bananapi-r2. Signed-off-by: Ryder Lee Acked-by: Linus Walleij --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 41 +-- include/dt-bindings/pinctrl/mt7623-pinfunc.h | 12

[PATCH v3 01/10] arm: dts: mt2701: add pwm backlight device node

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds the device node for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boo

[PATCH v3 10/10] arm: dts: mt7623: add PCIe related nodes

2017-10-01 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts |

[PATCH v3 08/10] arm: dts: mt7623: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
This patch adds the device nodes for the display function blocks. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 94 +++ 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index b25771

[PATCH v3 03/10] arm: dts: mt2701: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
From: YT Shen This patch adds the device nodes for MT2701 DISP function blocks. Signed-off-by: YT Shen Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git a/arch/arm/b

[PATCH v3 00/10] update MT7623 and MT2701 dts

2017-10-01 Thread Ryder Lee
Hi Matthias, This patch series adds/corrects some device nodes for both MT7623 and MT2701. changes since v3: - revert PIO register space. changes since v2: - move non-common part and non-display related nodes to different patches. - remove unused wdma node. - add display related nodes for MT2701

[PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-10-01 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 4 +++- arch/arm/boot/dts/mt7623.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/m

[PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes

2017-10-01 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm

[PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/mt

[PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-10-01 Thread Ryder Lee
This patch adds missing susbsystem clock controllers nodes for MT7623. (e.g., mmsys, imgsys, vdecsys and bdpsys) Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/a

[PATCH v3 07/10] arm: dts: mt7623: add iommu and jpecdec nodes

2017-10-01 Thread Ryder Lee
This patch adds iommu and jpecdec nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 74 +++ 1 file changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a877f9a..b257715 100

[Patch v4 18/22] CIFS: SMBD: Upper layer performs SMB write via RDMA read through memory registration

2017-10-01 Thread Long Li
From: Long Li When sending I/O, if size is larger than rdma_readwrite_threshold we prepare to send SMB write packet for a RDMA read via memory registration. The actual I/O is done by remote peer through local RDMA hardware. Modify the relevant fields in the packet accordingly, and append a smbd_b

<    1   2   3   >