Re: [PATCH 05/13] x86/paravirt: Move paravirt asm macros to paravirt-asm.h

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > The paravirt.h file is quite big and the asm interfaces for paravirt > don't need to be in the same file as the C interfaces. Move the asm > interfaces to a dedicated header file. > > Signed-off-by: Josh Poimboeuf Reviewed-by: Juergen Gross Juergen

[PATCH] f2fs: fix to keep backward compatibility of flexible inline xattr feature

2017-10-25 Thread Chao Yu
Previously, in inode layout, we will always reserve 200 bytes for inline xattr space no matter the inode enables inline xattr feature or not, due to this reason, max inline size of inode is fixed, but now, if inline xattr is not enabled, max inline size of inode will be enlarged by 200 bytes, for r

Re: [PATCH] Input: gtco - fix potential out-of-bound access

2017-10-25 Thread Andrey Konovalov
On Tue, Oct 24, 2017 at 6:39 PM, Dmitry Torokhov wrote: > On Tue, Oct 24, 2017 at 01:04:03PM +0200, Andrey Konovalov wrote: >> On Tue, Oct 24, 2017 at 7:28 AM, Dmitry Torokhov >> wrote: >> > parse_hid_report_descriptor() has a while (i < length) loop, which >> > only guarantees that there's at le

[PATCH] x86, calgary: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Muli Ben-Yehuda Cc: Jon Mason Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@ker

Re: [v2,2/2] watchdog: Add Spreadtrum watchdog driver

2017-10-25 Thread Eric Long
Hi Guenter, Sorry for late reply, and thanks for your detail comments. On Sun, Oct 22, 2017 at 09:07:29AM -0700, Guenter Roeck wrote: > On Tue, Sep 12, 2017 at 07:40:09PM +0800, Eric Long wrote: > > This patch adds the watchdog driver for Spreadtrum SC9860 platform. > > > > Signed-off-by: Eric L

Re: [PATCH] watchdog: cpwd: Convert timers to use timer_setup()

2017-10-25 Thread Guenter Roeck
On 10/25/2017 03:32 AM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Switches to using the global that is used everywhere else. Cc: Wi

Re: [PATCH v5 09/10] KVM: arm/arm64: Document KVM_DEV_ARM_ITS_CTRL_RESET

2017-10-25 Thread Marc Zyngier
On Mon, Oct 23 2017 at 4:08:28 pm BST, Eric Auger wrote: > At the moment, the in-kernel emulated ITS is not properly reset. > On guest restart/reset some registers keep their old values and > internal structures like device, ITE, and collection lists are not > freed. > > This may lead to various

Re: [PATCH] mm,page_alloc: Serialize out_of_memory() and allocation stall messages.

2017-10-25 Thread Tetsuo Handa
Tetsuo Handa wrote: > While warn_alloc() messages are completely unreadable, what we should note > are that > > (a) out_of_memory() => oom_kill_process() => dump_header() => show_mem() => > printk() > got stuck at console_unlock() despite this is schedulable context. > > -- > 2180

[PATCH] drivers/net: 3com/3c515: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Thomas Gleixner Cc: Stephen Hemminger Cc: Johannes Berg Cc: net...@vger.kernel

[PATCH] drivers/net: nuvoton: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Wan ZongShun Cc: linux-arm-ker...@lists.infradead.org Cc: net...@vger.kernel.org Signed-off-by: Kees Co

[PATCH] drivers/net: hippi: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jes Sorensen Cc: linux-hi...@sunsite.dk Cc: net...@vger.kernel.org Signed-off-by: Kees Cook --- drive

[PATCH] drivers/net: netronome: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jakub Kicinski Cc: "David S. Miller" Cc: Jiri Pirko Cc: Jamal Hadi Salim Cc: Simon Horman Cc: oss-d

[PATCH] drivers/net: can: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Wolfgang Grandegger Cc: Marc Kleine-Budde Cc: "David S. Miller" Cc: Allen Pais Cc: linux-...@vger.ke

[PATCH] drivers/net: hamradio/yam: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Initialization was entirely missing. Cc: Jean-Paul Roubelat Cc: linux-h...@vger.kernel.org Cc: net...@vger.

Re: [PATCH v5 10/10] KVM: arm/arm64: vgic-its: Implement KVM_DEV_ARM_ITS_CTRL_RESET

2017-10-25 Thread Marc Zyngier
On Mon, Oct 23 2017 at 4:08:29 pm BST, Eric Auger wrote: > On reset we clear the valid bits of GITS_CBASER and GITS_BASER. > We also clear command queue registers and free the cache (device, > collection, and lpi lists). > > Signed-off-by: Eric Auger > Reviewed-by: Christoffer Dall > > --- > >

[PATCH] drivers/net: wan/dscc4: Remove unused timer

2017-10-25 Thread Kees Cook
This removes an entirely unused timer, which avoids needing to convert it to timer_setup(). Cc: Francois Romieu Cc: net...@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net/wan/dscc4.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/net/wan/dscc4.c b/driv

[PATCH] drivers/net: realtek: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Realtek linux nic maintainers Cc: "David S. Miller" Cc: David Howells Cc: Jay Vosburgh Cc: Allen Pai

[PATCH] drivers/net: sxgbe: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Byungho An Cc: Girish K S Cc: Vipul Pandya Cc: net...@vger.kernel.org Signed-off-by: Kees Cook ---

[PATCH] drivers/net: wan/lmc: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Allen Pais Cc: "David S. Miller" Cc: net...@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net

[PATCH] drivers/net: wan/sdla: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Allen Pais Cc: "David S. Miller" Cc: Tobias Klauser Cc: net...@vger.kernel.org Signed-off-by: Kees Co

[PATCH] drivers/net: arcnet: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Michael Grzeschik Cc: net...@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net/arcnet/arcnet.c

Re: [PATCH net-next 2/2] net: dsa: lan9303: Learn addresses on CPU port when bridged

2017-10-25 Thread Egil Hjelmeland
Hi Woojung! On 24. okt. 2017 19:18, woojung@microchip.com wrote: Hi Egil, +static inline int lan9303_tx_use_arl(struct dsa_port *dp, u8 *dest_addr) +{ + struct lan9303 *chip = dp->ds->priv; + + return chip->is_bridged && !ether_addr_equal(dest_addr, eth_stp_addr); +} static

Re: [PATCH 06/13] x86/paravirt: Clean up paravirt-asm.h

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > Some cleanup to make the code easier to read and understand: > > - Use the common "PV_" prefix > - Simplify the PV_SITE macro interface > - Improve whitespace > > Signed-off-by: Josh Poimboeuf Reviewed-by: Juergen Gross Juergen

Re: [PATCH 07/13] x86/paravirt: Simplify ____PVOP_CALL()

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > Remove the inline asm duplication in PVOP_CALL(). > > Also add 'IS_ENABLED(CONFIG_X86_32)' to the return variable logic, > making the code clearer and rendering the comment unnecessary. > > Signed-off-by: Josh Poimboeuf Reviewed-by: Juergen Gross

Re: [PATCH 08/13] x86/paravirt: Clean up paravirt_types.h

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > Make paravirt_types.h more understandable: > > - Use more consistent and logical naming > - Simplify interfaces > - Put related macros together > - Improve whitespace > > Signed-off-by: Josh Poimboeuf Reviewed-by: Juergen Gross Juergen

Re: [PATCH net-next 1/2] net: dsa: lan9303: Move struct lan9303 to include/linux/lan9303.h

2017-10-25 Thread Egil Hjelmeland
On 24. okt. 2017 18:31, Andrew Lunn wrote: On Tue, Oct 24, 2017 at 11:35:14AM +0200, Egil Hjelmeland wrote: The next patch require net/dsa/tag_lan9303.c to access struct lan9303. Therefore move struct lan9303 definitions from drivers/net/dsa/lan9303.h to new file include/linux/lan9303.h. Signed

Re: [PATCH] perf/tools : remove default system_wide in sched record

2017-10-25 Thread chengjian (D)
On 2017/10/25 10:23, Namhyung Kim wrote: On Tue, Oct 24, 2017 at 10:46:44AM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 03:45:34PM +0800, Cheng Jian escreveu: When running perf sched record, there is a bug. It's system_wide when we specify a command line. Humm, isn't this

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-25 Thread John Garry
On 25/10/2017 11:06, Ganapatrao Kulkarni wrote: Hi John, On Thu, Oct 19, 2017 at 3:59 PM, John Garry wrote: #Family-model,Version,Filename,EventType 0x420f5160,v1,cavium,core 0x420f5161,v1,cavium,core certainly, there is Part number(PartNum, bits [15:4] ) change from thunde

Re: [v2,2/2] watchdog: Add Spreadtrum watchdog driver

2017-10-25 Thread Guenter Roeck
On 10/25/2017 03:29 AM, Eric Long wrote: Hi Guenter, Sorry for late reply, and thanks for your detail comments. On Sun, Oct 22, 2017 at 09:07:29AM -0700, Guenter Roeck wrote: On Tue, Sep 12, 2017 at 07:40:09PM +0800, Eric Long wrote: This patch adds the watchdog driver for Spreadtrum SC9860 p

[tip:efi/urgent] efi/efi_test: Prevent an Oops in efi_runtime_query_capsulecaps()

2017-10-25 Thread tip-bot for Dan Carpenter
Commit-ID: 092e72c9edab16d4d6ad10c683a95047d53b6db4 Gitweb: https://git.kernel.org/tip/092e72c9edab16d4d6ad10c683a95047d53b6db4 Author: Dan Carpenter AuthorDate: Wed, 25 Oct 2017 11:04:47 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:10:59 +0200 efi/efi_test: Prevent an

[tip:locking/core] block: Use DECLARE_COMPLETION_ONSTACK() in submit_bio_wait()

2017-10-25 Thread tip-bot for Christoph Hellwig
Commit-ID: 65e53aab6d54385dea799356defcbdcc456fb1a7 Gitweb: https://git.kernel.org/tip/65e53aab6d54385dea799356defcbdcc456fb1a7 Author: Christoph Hellwig AuthorDate: Wed, 25 Oct 2017 17:55:57 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:18:59 +0200 block: Use DECLARE_CO

Re: [PATCH 09/13] x86/asm: Convert ALTERNATIVE*() assembler macros to preprocessor macros

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > The ALTERNATIVE() and ALTERNATIVE_2() macros are GNU assembler macros, > which makes them quite inflexible for future changes. Convert them to > preprocessor macros. > > Signed-off-by: Josh Poimboeuf Reviewed-by: Juergen Gross Juergen

[tip:locking/core] locking/lockdep: Provide empty lockdep_map structure for !CONFIG_LOCKDEP

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: 6f0397d7e100f3b3978d6ebb6b2dea29ee7c4a95 Gitweb: https://git.kernel.org/tip/6f0397d7e100f3b3978d6ebb6b2dea29ee7c4a95 Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:55:58 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:00 +0200 locking/lockdep: Provide

[tip:locking/core] locking/lockdep, sched/completions: Change the prefix of lock name for completion variables

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: 24208435e343679b21502fb90786084dfaf15369 Gitweb: https://git.kernel.org/tip/24208435e343679b21502fb90786084dfaf15369 Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:55:59 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:00 +0200 locking/lockdep, sched/c

[tip:locking/core] locking/lockdep: Add a boot parameter allowing unwind in cross-release and disable it by default

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: d141babe4244945f1d001118578e0eb3ce12729d Gitweb: https://git.kernel.org/tip/d141babe4244945f1d001118578e0eb3ce12729d Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:56:00 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:01 +0200 locking/lockdep: Add a b

[tip:efi/urgent] efi/libstub/arm: Don't randomize runtime regions when CONFIG_HIBERNATION=y

2017-10-25 Thread tip-bot for Ard Biesheuvel
Commit-ID: 38fb6652229c2149e8694d57db442878fdf8a1bd Gitweb: https://git.kernel.org/tip/38fb6652229c2149e8694d57db442878fdf8a1bd Author: Ard Biesheuvel AuthorDate: Wed, 25 Oct 2017 11:04:48 +0100 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:10:59 +0200 efi/libstub/arm: Don't r

[tip:locking/core] locking/lockdep: Remove the BROKEN flag from CONFIG_LOCKDEP_CROSSRELEASE and CONFIG_LOCKDEP_COMPLETIONS

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: 2dcd5adfb7401b762ddbe4b86dcacc2f3de6b97b Gitweb: https://git.kernel.org/tip/2dcd5adfb7401b762ddbe4b86dcacc2f3de6b97b Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:56:01 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:01 +0200 locking/lockdep: Remove

[PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: Rui Feng Because Realtek card reader drivers are pcie and usb drivers, and they bridge mmc subsystem and memstick subsystem, they are not mfd drivers. Greg and Lee Jones had a discussion about where to put the drivers, the result is that misc is a good place for them, so I move all files to

[tip:locking/core] sched/completions: Add support for initializing completions with lockdep_map

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: a7967bc31584bd282682981295861e7bcba19e65 Gitweb: https://git.kernel.org/tip/a7967bc31584bd282682981295861e7bcba19e65 Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:56:03 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:03 +0200 sched/completions: Add s

[tip:locking/core] locking/lockdep: Introduce CONFIG_BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK=y

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: e121d64e16484d4a5eba94cd2fa9eb3848b7c9c2 Gitweb: https://git.kernel.org/tip/e121d64e16484d4a5eba94cd2fa9eb3848b7c9c2 Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:56:02 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:02 +0200 locking/lockdep: Introdu

[PATCH v2,2/2] misc: rtsx: Add support for RTS5260

2017-10-25 Thread rui_feng
From: Rui Feng Add support for new chip rts5260. In order to support rts5260, the definitions of some internal registers and workflow have to be modified and are different from its predecessors and OCP function is added for RTS5260. So we need this patch to ensure RTS5260 can work. Signed-off-by

[tip:locking/core] workqueue: Remove now redundant lock acquisitions wrt. workqueue flushes

2017-10-25 Thread tip-bot for Byungchul Park
Commit-ID: fd1a5b04dfb899f84ddeb8acdaea6b98283df1e5 Gitweb: https://git.kernel.org/tip/fd1a5b04dfb899f84ddeb8acdaea6b98283df1e5 Author: Byungchul Park AuthorDate: Wed, 25 Oct 2017 17:56:04 +0900 Committer: Ingo Molnar CommitDate: Wed, 25 Oct 2017 12:19:03 +0200 workqueue: Remove now re

[PATCH] sched/idle: fetch smp_processor_id out of the idle loop

2017-10-25 Thread Cheng Jian
The commit c1de45ca831a ("sched/idle: Add support for tasks that inject idle") redesigns the code for idle loop to support for tasks that inject idle. it fetches the current CPU using smp_processor_id( ) every time when the idle task runs. Now idle task is no longer limited to PID == 0, but the cu

Re: [PATCH 10/13] x86/alternative: Support indirect call replacement

2017-10-25 Thread Juergen Gross
On 04/10/17 17:58, Josh Poimboeuf wrote: > Add alternative patching support for replacing an instruction with an > indirect call. This will be needed for the paravirt alternatives. > > Signed-off-by: Josh Poimboeuf > --- > arch/x86/kernel/alternative.c | 22 +++--- > 1 file chan

[PATCH] spi: sprd: Fix the possible negative value of BIT()

2017-10-25 Thread Baolin Wang
When enabling the ADI hardware channels, if the channel id is 31, then we will get one negative value -1 for BIT() macro, which will write incorrect value to register. Fixes: 7e2903cb91df ("spi: Add ADI driver for Spreadtrum platform") Reported-by: Dan Carpenter Signed-off-by: Baolin Wang --- d

Re: Resizable PCI BAR support V9

2017-10-25 Thread Christian König
Am 24.10.2017 um 21:44 schrieb Bjorn Helgaas: On Wed, Oct 18, 2017 at 03:58:16PM +0200, Christian König wrote: Hi everyone, This is the ninth and hopefully last incarnation of this set of patches. It enables device drivers to resize and most likely also relocate the PCI BAR of devices they mana

[PATCH v4] PCI: pciehp: Drop checking of PCI_BRIDGE_CONTROL in pciehp_unconfigure_device()

2017-10-25 Thread Mika Westerberg
During surprise hot-unplug the device is not accessible anymore and register reads return 0x. When that happens pciehp_unconfigure_device() may inadvertently think the device below the bridge may be a display device of somesort as reading PCI_BRIDGE_CONTROL register also returns 0xff. This

[PATCH] tracing: Allocate mask_str buffer dynamically

2017-10-25 Thread changbin . du
From: Changbin Du The default NR_CPUS can be very large, but actual possible nr_cpu_ids usually is very small. For my x86 distribution, the NR_CPUS is 8192 and nr_cpu_ids is 4. About 2 pages are wasted. Most machines don't have so many CPUs, so define a array with NR_CPUS just wastes memory. So

Re: [v2,2/2] watchdog: Add Spreadtrum watchdog driver

2017-10-25 Thread Baolin Wang
Just add the driver author Eric. On 25 October 2017 at 19:13, Guenter Roeck wrote: > On 10/25/2017 03:29 AM, Eric Long wrote: >> >> Hi Guenter, >> >> Sorry for late reply, and thanks for your detail comments. >> >> On Sun, Oct 22, 2017 at 09:07:29AM -0700, Guenter Roeck wrote: >>> >>> On Tue, Sep

[PATCH] I2C-PIIX4: Use common error handling code in piix4_probe()

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 13:30:18 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/i2c/busses/i2c-piix4.c | 16 ++

Re: [PATCH v2 7/7] fanotify: clean up CONFIG_FANOTIFY_ACCESS_PERMISSIONS ifdefs

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: > The only negative from this patch should be an addition of 32bytes to > 'struct fsnotify_group' if CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not > defined. > Thanks for this cleanup! See one question and coding style nits below. > Signed-off-

Re: [PATCH v2 6/7] fsnotify: clean up fsnotify()

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: > Use helpers to get first and next marks from connector. > > Also get rid of inode_node/vfsmount_node local variables, which just refers > to the same objects as iter_info. There was an srcu_dereference() for > foo_node, but that's complete

[GIT PULL] phy: for 4.15 merge window

2017-10-25 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for 4.15 merge window below. It includes a couple of phy core changes (adds phy_calibrate() API and return NULL for optional phy_get even if CONFIG_GENERIC_PHY is not selected). Apart from that, it adds a new USB PHY driver for Broadcom STB SoCs and includes o

Re: [RESEND PATCH 1/3] completion: Add support for initializing completion with lockdep_map

2017-10-25 Thread Byungchul Park
On Wed, Oct 25, 2017 at 07:07:06AM +, Bart Van Assche wrote: > > Please, point out logical problems of cross-release than saying it's > > impossbile according to the paper. > > Isn't that the same? If it's impossible to use lock-graphs for detecting > deadlocks > in programs that use mutexes,

Re: [PATCH v5 03/10] KVM: arm/arm64: vgic-its: Check CBASER/BASER validity before enabling the ITS

2017-10-25 Thread Christoffer Dall
On Mon, Oct 23, 2017 at 04:08:22PM +0200, Eric Auger wrote: > The spec says it is UNPREDICTABLE to enable the ITS > if any of the following conditions are true: > > - GITS_CBASER.Valid == 0. > - GITS_BASER.Valid == 0, for any GITS_BASER register > where the Type field indicates Device. > - GITS_

[PATCH v2] tpm: use struct tpm_chip for tpm_chip_find_get()

2017-10-25 Thread Jarkko Sakkinen
Device number (the character device index) is not a stable identifier for a TPM chip. That is the reason why every call site passes TPM_ANY_NUM to tpm_chip_find_get(). This commit changes the API in a way that instead a struct tpm_chip instance is given and NULL means the default chip. In addition

Re: [PATCH v9 0/7] Add support for Qualcomm A53 CPU clock

2017-10-25 Thread Georgi Djakov
On 09/21/2017 07:49 PM, Georgi Djakov wrote: > This patchset adds support for the A53 CPU clock on MSM8916 platforms > and allows scaling of the CPU frequency on msm8916 based platforms. > > Changes since v8 (https://lkml.org/lkml/2017/6/23/476) > * Converted APCS mailbox driver to use regmap and

Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-25 Thread Kishon Vijay Abraham I
Hi, On Wednesday 25 October 2017 01:32 AM, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: >> controller_group allocation in pci_ep_cfs_init function can fail >> so we should have a check while using it in pci_ep_cfs_add_epc_group >> for registering group, else

Applied "spi: sprd: Fix the possible negative value of BIT()" to the spi tree

2017-10-25 Thread Mark Brown
The patch spi: sprd: Fix the possible negative value of BIT() has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Re: [PATCH v2 1/7] fsnotify: clean up fsnotify_prepare/finish_user_wait()

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: > This patch doesn't actually fix any bug, just paves the way for fixing mark > and group pinning. > > Signed-off-by: Miklos Szeredi > Cc: # v4.12 > --- > fs/notify/mark.c | 89 > ++-- >

Re: [PATCH v2 1/7] fsnotify: clean up fsnotify_prepare/finish_user_wait()

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 3:06 PM, Amir Goldstein wrote: > On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: >> This patch doesn't actually fix any bug, just paves the way for fixing mark >> and group pinning. >> >> Signed-off-by: Miklos Szeredi >> Cc: # v4.12 >> --- >> fs/notify/mark.c |

Re: [PATCH v4 04/21] doc: media/v4l-drivers: Add Qualcomm Camera Subsystem driver document

2017-10-25 Thread Todor Tomov
Hi Daniel, On 16.10.2017 18:01, Daniel Mack wrote: > Hi, > > On 28.08.2017 09:10, Todor Tomov wrote: >> On 25.08.2017 17:10, Daniel Mack wrote: >>> Could you explain how ISPIF, CSID and CSIPHY are related? >>> >>> I have a userspace test setup that works fine for USB webcams, but when >>> operati

[PATCH 3/3 v4] x86/smpboot: Fix __max_logical_packages estimate

2017-10-25 Thread Prarit Bhargava
A system booted with a small number of cores enabled per package panics because the estimate of __max_logical_packages is too low. This occurs when the total number of active cores across all packages is less than the maximum core count for a single package. ie) On a 4 package system with 20 cores

[PATCH 0/3 v4] Fix panic in logical packages calculation

2017-10-25 Thread Prarit Bhargava
A system booted with a small number of cores enabled per package panics because the estimate of __max_logical_packages is too low. This occurs when the total number of active cores across all packages is less than the maximum core count for a single package. Andi noted that the logical_packages ca

[PATCH 2/3 v4] x86/topology: Avoid wasting 128k for package id array

2017-10-25 Thread Prarit Bhargava
From: Andi Kleen I was looking at large early boot allocations and noticed that since (1f12e32f x86/topology: Create logical package id) every 64bit system allocates a 128k array to convert logical package ids. This happens because the array is sized to (MAX_LOCAL_APIC * u16) = 128k. This is a l

[PATCH 1/3 v4] perf/x86/intel/uncore: Cache logical pkg id in uncore driver

2017-10-25 Thread Prarit Bhargava
From: Andi Kleen The SNB-EP uncore driver is the only user of topology_phys_to_logical_pkg in a performance critical path. Change it query the logical pkg ID only once at initialization time and then cache it in box structure. Signed-off-by: Andi Kleen Cc: Thomas Gleixner Cc: Ingo Molnar Cc:

Re: [PATCH] bitmap: Fix optimization of bitmap_set/clear for big-endian machines

2017-10-25 Thread Matthew Wilcox
(I don't think I can reliably send patches from outlook; sorry for breaking the threading) I see where we're not incrementing the failure count ... try this patch! --- 8< --- Subject: Fix bitmap optimisation tests to report errors correctly From: Matthew Wilcox I had neglected to increment th

Re: How to power gate a specific single device from outside?

2017-10-25 Thread Waldemar Rymarkiewicz
On 25 October 2017 at 01:56, Alan Cox wrote: > > For a lot of devices if you close it then it will try and put the device > into a low power state. If a driver isn't doing that then (unless there > are hardware constraints preventing it) it would make sense to fix it. > > There are some things ent

Re: [PATCH v4 04/21] doc: media/v4l-drivers: Add Qualcomm Camera Subsystem driver document

2017-10-25 Thread Daniel Mack
Hi Todor, On Wednesday, October 25, 2017 02:07 PM, Todor Tomov wrote: > On 16.10.2017 18:01, Daniel Mack wrote: >> I'd be grateful for any pointer about what I could investigate on. >> > > Everything that you have described seems correct. > > As you say that frames do not contain any data, do >

Re: [fstests PATCH v2] generic: add test for DAX MAP_SYNC support

2017-10-25 Thread Amir Goldstein
On Sun, Oct 22, 2017 at 9:56 AM, Amir Goldstein wrote: > On Sat, Oct 21, 2017 at 12:25 AM, Ross Zwisler > wrote: >> Add a test that exercises DAX's new MAP_SYNC flag. >> >> This test creates a file and writes to it via an mmap(), but never syncs >> via fsync/msync. This process is tracked via dm

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Meelis Roos
> > (Added linux-pci to CC) > > > > > > I run Gentoo Linux on my alphas, with latest git kernels for test. > > > > 4.13.0 worked well on 3 alphas but 4.13.0-09217-g5969d1bb3082 hangs on > > > > boot on all 3 of them. Tried bisecting on PC164, got into unrelated > > > > stuff, so probably it doe

Re: [PATCH v2 3/5] kbuild: Use relative path for $(objtree)

2017-10-25 Thread Masahiro Yamada
Hi Geert, (+CC Michal's new address) 2017-10-16 19:26 GMT+09:00 Geert Uytterhoeven : > Hi Michal, > > On Thu, Jun 5, 2014 at 5:56 PM, Michal Marek wrote: >> On Wed, Jun 04, 2014 at 03:12:33PM +0200, Michal Marek wrote: >>> On 2014-06-04 11:43, Michal Marek wrote: >>> > On 2014-06-04 11:03, Rich

Re: [PATCH v3] f2fs: add cur_reserved_blocks to support soft block reservation

2017-10-25 Thread Chao Yu
On 2017/10/25 18:02, Yunlong Song wrote: > ping... I've replied in this thread, check your email list please, or you can check the comments in below link: https://patchwork.kernel.org/patch/9909407/ Anyway, see comments below. > > On 2017/8/18 23:09, Yunlong Song wrote: >> This patch adds cur_

Re: [PATCH 00/19] hisi_sas: misc fixes, improvements, and new features

2017-10-25 Thread Martin K. Petersen
John, > This patchset contains many misc fixes, improvements, and a few new > features. > > Here is a list of the significant changes: > - more fixes for hisi_hba.locking > - v3 hw DFX feature > - random error handling bugfixes > - reporting v2 hw errors to userspace Applied to 4.15/scsi-queue.

[PATCH] kernel/kprobes: add check to avoid memory leaks

2017-10-25 Thread Bixuan Cui
The register_kretprobe(struct kretprobe *rp) creates and initializes a hash list for rp->free_instances when register kretprobe every time. Then malloc memory for it. The test case: static struct kretprobe rp; struct kretprobe *rps[2]={&rp, &rp}; static int ret_handler(struct kretprobe_instance *

Re: [PATCH 2/2] scsi: megaraid: Track the page allocations for struct fusion_context

2017-10-25 Thread Martin K. Petersen
Yisheng, > I have get many kmemleak reports just similar to commit 70c54e210ee9 > (scsi: megaraid_sas: fix memleak in megasas_alloc_cmdlist_fusion) > on v4.14-rc6, however it seems have a different stroy: Do you still see leaks reported with the megaraid driver update recently merged into 4.15/s

Re: [PATCH v2 0/3] pinctrl: sunxi: Start to enforce the strict mode

2017-10-25 Thread Maxime Ripard
Hi Linus, On Mon, Oct 09, 2017 at 10:53:36PM +0200, Maxime Ripard wrote: > Hi, > > Here is an attempt to enable pinctrl's strict mode on our pinctrl drivers. > Indeed, our controllers should have had that mode enabled since its > introduction. > > However, there's a number of issues with old dev

Re: [PATCH] iscsi-target: Convert timers to use timer_setup()

2017-10-25 Thread Jason A. Donenfeld
On Wed, Oct 25, 2017 at 12:01 PM, Kees Cook wrote: > sess->time2retain_timer.expires = > (get_jiffies_64() + sess->sess_ops->DefaultTime2Retain * HZ); > add_timer(&sess->time2retain_timer); > cmd->dataout_timer.expires = (get_jiffies_64() + na->dataout_timeo

Re: [PATCH 1/2 v2] fdmap(2)

2017-10-25 Thread Alexey Dobriyan
On 10/23/17, Pavel Machek wrote: > Binary fdmap looks... quite ugly to me. But close_all(from, to) > syscall kindof makes sense to me... and is not that ugly. > > Given that openbsd has something similar... perhaps we can take that? closefrom() can be implemented on top of fdmap(). fdmap as is i

[RFC 03/14] bootsplash: Flush framebuffer after drawing

2017-10-25 Thread Max Staudt
Framebuffers with deferred I/O need to be flushed to the screen explicitly, since we use neither the mmap nor the file I/O abstractions that handle this for userspace FB clients. Example: xenfb Some framebuffer drivers implement lazy access to the screen without actually exposing a fbdefio interf

[RFC 14/14] bootsplash: Update MAINTAINERS

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a74227ad082e..ee792797cee9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2705,6 +2705,15 @@ S: Supported F: drivers/net/bo

[RFC 13/14] bootsplash: Add main documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/fb/bootsplash.txt | 169 1 file changed, 169 insertions(+) create mode 100644 Documentation/fb/bootsplash.txt diff --git a/Documentation/fb/bootsplash.txt b/Documentation/fb/bootspla

[RFC 04/14] bootsplash: Redraw on suspend/hibernate

2017-10-25 Thread Max Staudt
When the system is woken from sleep or restored after hibernating, we cannot expect the screen contents to still be present in VRAM. Thus, we have to redraw the splash if we're currently active. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 22

[RFC 11/14] bootsplash: Redraw fully on console_unblank

2017-10-25 Thread Max Staudt
After exiting a KD_GRAPHICS program and falling back to the text console, a previously enabled splash needs to be fully redrawn. Without this patch, the following fails: 1. Switch to a text console 2. Enable splash 3. Start X (or any other KD_GRAPHICS program) 4. Exit X 5. Splash is not seen, apa

[RFC 09/14] bootsplash: Add corner positioning

2017-10-25 Thread Max Staudt
This allows showing multiple logos, each in its own position, relative to the eight screen corners. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash_file.h | 42 - drivers/video/fbdev/core/bootsplash_render.c | 55 +++

[RFC 06/14] bootsplash: Disable on SysRq SAK

2017-10-25 Thread Max Staudt
When the user requests a clean TTY via the SAK SysRq, that means he really wants to use the console. Let's disable the bootsplash, even if the request is not on a VT, as the user probably knows what he's doing and it's more helpful to get out of his way. Signed-off-by: Max Staudt Reviewed-by: Ol

[RFC 10/14] bootsplash: Add animation support

2017-10-25 Thread Max Staudt
Each 'picture' in the splash file can consist of multiple 'blobs'. If animation is enabled, these blobs become the frames of an animation, in the order in which they are stored in the file. Note: There is only one global timer, so all animations happen at the same frame rate. It doesn't rea

[RFC 08/14] bootsplash: Add file reading and picture rendering

2017-10-25 Thread Max Staudt
Load logo(s) from a file and render them in the center of the screen. This removes the "black screen" functionality, which can now be emulated by providing a splash file with no pictures and a black background. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/console/Kcon

[RFC 07/14] bootsplash: Add VT keyboard hook

2017-10-25 Thread Max Staudt
Let's disable the splash if the user presses ESC or F1-F12 on a VT. The F1-F12 check is to disable the splash on VT switches. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/tty/vt/keyboard.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/tty/vt/keybo

[RFC 12/14] bootsplash: Add sysfs ABI documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/ABI/testing/sysfs-platform-bootsplash | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-platform-bootsplash diff --git a/Documentation/ABI/testing/sysfs-platform

[RFC 05/14] bootsplash: Disable splash on oops

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/fbcon.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index 4ac1a33be418..cbe8a4480037 100644 --- a/drivers/video/fbdev/core/fbcon.

[RFC 00/14] Kernel based bootsplash

2017-10-25 Thread Max Staudt
Dear fbdev and fbcon developers, Could you please voice your opinion on the following patch series? This series adds simple bootsplash functionality on top of fbcon. A (simple!) kernel based bootsplash allows system integrators to show an earlier and more reliable bootsplash, completely hiding

[RFC 02/14] bootsplash: Add platform device

2017-10-25 Thread Max Staudt
This allows us to export a userland API via sysfs, showing/hiding the splash on request by dracut, systemd, or other init systems. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 83 ++ drivers/video/fbdev/core/bo

[RFC 01/14] bootsplash: Initial implementation showing black screen

2017-10-25 Thread Max Staudt
This is the initial prototype for a lean Linux kernel bootsplash. It works by replacing fbcon's FB manipulation routines (such as bitblit, tileblit) with dummy functions, effectively disabling text output, and drawing the splash directly onto the FB device. As it is now, it will show a black scre

Re: [PATCH] drivers/net: hippi: Convert timers to use timer_setup()

2017-10-25 Thread Jes Sorensen
On 10/25/2017 06:51 AM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jes Sorensen Cc: linux-hi...@sunsite.dk Cc: net...@vger.kern

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Rob Herring
On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: > > > On 10/24/2017 08:58 PM, Rob Herring wrote: >> >> On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: >>> >>> Some regulators require keeping their voltage spread below defined >>> max_spread. >>> >>> Add properties to provide i

[PATCH] I2C-S3C2410: Use common error handling code in s3c24xx_i2c_probe()

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 15:00:35 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/i2c/busses/i2c-s3c2410.c | 19

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Maciej Purski
On 10/25/2017 02:59 PM, Rob Herring wrote: On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: On 10/24/2017 08:58 PM, Rob Herring wrote: On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: Some regulators require keeping their voltage spread below defined max_spread. Add

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Chris Wilson
Quoting Chris Wilson (2017-10-25 11:24:19) > Quoting Chris Wilson (2017-10-24 17:17:09) > > Quoting Kees Cook (2017-10-24 16:13:44) > > > In preparation for unconditionally passing the struct timer_list pointer > > > to > > > all timer callbacks, switch to using the new timer_setup() and > > > fr

Re: [1/2,v2] fdmap(2)

2017-10-25 Thread Alexey Dobriyan
On 10/20/17, Greg KH wrote: > On Thu, Oct 19, 2017 at 05:34:35PM +0200, Alexey Dobriyan wrote: >> So the answer it not to fix /proc, the answer it to leave /proc alone. > > No, because: > >> The answer is make Unix shell people move their lazy asses and >> implement minimal type system and a way t

<    1   2   3   4   5   6   7   8   >