[PATCH AUTOSEL 4.18 46/58] bpf: test_maps, only support ESTABLISHED socks

2018-10-08 Thread Sasha Levin
From: John Fastabend [ Upstream commit 5028027844cfc6168e39650abecd817ba64c9d98 ] Ensure that sockets added to a sock{map|hash} that is not in the ESTABLISHED state is rejected. Fixes: 1aa12bdf1bfb ("bpf: sockmap, add sock close() hook to remove socks") Signed-off-by: John Fastabend Acked-by:

[PATCH AUTOSEL 4.18 42/58] scsi: ipr: System hung while dlpar adding primary ipr adapter back

2018-10-08 Thread Sasha Levin
From: Wen Xiong [ Upstream commit 318ddb34b2052f838aa243d07173e2badf3e630e ] While dlpar adding primary ipr adapter back, driver goes through adapter initialization then schedule ipr_worker_thread to start te disk scan by dropping the host lock, calling scsi_add_device. Then get the adapter res

Re: [PATCH stable v2 0/2] termios: Alpha BOTHER/IBSHIFT, tty_baudrate fix

2018-10-08 Thread Johan Hovold
On Sun, Oct 07, 2018 at 09:06:18PM -0700, H. Peter Anvin wrote: > From: "H. Peter Anvin (Intel)" > > It turns out that Alpha is the only architecture that never > implemented BOTHER and IBSHIFT, which is otherwise ages old. This is > one thing that has held up glibc support for this feature (all

[PATCH AUTOSEL 4.18 40/58] drm: mali-dp: Call drm_crtc_vblank_reset on device init

2018-10-08 Thread Sasha Levin
From: Alexandru Gheorghe [ Upstream commit 69be1984ded00a11b1ed0888c6d8e4f35370372f ] Currently, if userspace calls drm_wait_vblank before the crtc is activated the crtc vblank_enable hook is called, which in case of malidp driver triggers some warninngs. This happens because on device init we d

[PATCH AUTOSEL 4.18 41/58] net: mscc: fix the frame extraction into the skb

2018-10-08 Thread Sasha Levin
From: Antoine Tenart [ Upstream commit 652ef42c134da1bbb03bd4c9b4291dfaf8d7febb ] When extracting frames from the Ocelot switch, the frame check sequence (FCS) is present at the end of the data extracted. The FCS was put into the sk buffer which introduced some issues (as length related ones), a

Re: [PATCH 0/3] spi-nor: Add Octal SPI support

2018-10-08 Thread Vignesh R
Hi Boris, Sorry I missed this mail. On Thursday 04 October 2018 04:47 PM, Boris Brezillon wrote: > On Thu, 4 Oct 2018 16:05:36 +0530 > Vignesh R wrote: > .../devicetree/bindings/mtd/cadence-quadspi.txt | 1 + drivers/mtd/spi-nor/cadence-quadspi.c | 9

[PATCH AUTOSEL 4.18 39/58] scsi: lpfc: Synchronize access to remoteport via rport

2018-10-08 Thread Sasha Levin
From: James Smart [ Upstream commit 9e210178267b80c4eeb832fade7e146a18c84915 ] The driver currently uses the ndlp to get the local rport which is then used to get the nvme transport remoteport pointer. There can be cases where a stale remoteport pointer is obtained as synchronization isn't done

[PATCH AUTOSEL 4.18 38/58] RDMA/uverbs: Fix validity check for modify QP

2018-10-08 Thread Sasha Levin
From: Majd Dibbiny [ Upstream commit 4eeed3686981ff887bbdd7254139e2eca276534c ] Uverbs shouldn't enforce QP state in the command unless the user set the QP state bit in the attribute mask. In addition, only copy qp attr fields which have the corresponding bit set in the attribute mask over to t

[PATCH AUTOSEL 4.18 37/58] PCI: dwc: Fix scheduling while atomic issues

2018-10-08 Thread Sasha Levin
From: Jisheng Zhang [ Upstream commit 9024143e700f89d74b8cdaf316a3499d74fc56fe ] When programming the inbound/outbound ATUs, we call usleep_range() after each checking PCIE_ATU_ENABLE bit. Unfortunately, the ATU programming can be executed in atomic context: inbound ATU programming could be cal

[PATCH AUTOSEL 4.18 35/58] qed: Do not add VLAN 0 tag to untagged frames in multi-function mode.

2018-10-08 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit 0216da9413afa546627a1b0d319dfd17fef34050 ] In certain multi-function switch dependent modes, firmware adds vlan tag 0 to the untagged frames. This leads to double tagging for the traffic if the dcbx is enabled, which is not the desired behavior. To

[PATCH AUTOSEL 4.18 32/58] net: mvpp2: fix a txq_done race condition

2018-10-08 Thread Sasha Levin
From: Antoine Tenart [ Upstream commit 774268f3e51b53ed432a1ec516574fd5ba469398 ] When no Tx IRQ is available, the txq_done() routine (called from tx_done()) shouldn't be called from the polling function, as in such case it is already called in the Tx path thanks to an hrtimer. This mostly occur

[PATCH AUTOSEL 4.18 33/58] sfp: fix oops with ethtool -m

2018-10-08 Thread Sasha Levin
From: Russell King [ Upstream commit 126d6848ef13958e1cb959e96c21d19bc498ade9 ] If a network interface is created prior to the SFP socket being available, ethtool can request module information. This unfortunately leads to an oops: Unable to handle kernel NULL pointer dereference at virtual ad

[PATCH AUTOSEL 4.18 29/58] ravb: do not write 1 to reserved bits

2018-10-08 Thread Sasha Levin
From: Kazuya Mizuguchi [ Upstream commit 2fe397a3959de8a472f165e6d152f64cb77fa2cc ] EtherAVB hardware requires 0 to be written to status register bits in order to clear them, however, care must be taken not to: 1. Clear other bits, by writing zero to them 2. Write one to reserved bits This pat

[PATCH AUTOSEL 4.18 31/58] net/smc: fix sizeof to int comparison

2018-10-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 381897798a94065ffcad0772eecdc6b04a7ff23d ] Comparing an int to a size, which is unsigned, causes the int to become unsigned, giving the wrong result. kernel_sendmsg can return a negative error code. Signed-off-by: YueHaibing Signed-off-by: Ursula Braun Signe

[PATCH AUTOSEL 4.18 30/58] net/smc: fix non-blocking connect problem

2018-10-08 Thread Sasha Levin
From: Ursula Braun [ Upstream commit 648a5a7aed346c3b8fe7c32a835edfb0dfbf4451 ] In state SMC_INIT smc_poll() delegates polling to the internal CLC socket. This means, once the connect worker has finished its kernel_connect() step, the poll wake-up may occur. This is not intended. The wake-up sho

[PATCH AUTOSEL 4.18 25/58] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-10-08 Thread Sasha Levin
From: Jose Abreu [ Upstream commit 8fce3331702316d4bcfeb0771c09ac75d2192bbc ] This follows David Miller advice and tries to fix coalesce timer in multi-queue scenarios. We are now using per-queue coalesce values and per-queue TX timer. Coalesce timer default values was changed to 1ms and the c

[PATCH AUTOSEL 4.18 27/58] selftests: pmtu: properly redirect stderr to /dev/null

2018-10-08 Thread Sasha Levin
From: Sabrina Dubroca [ Upstream commit 0a286afee5a1e8dca86d824209dbd3200294f86f ] The cleanup function uses "$CMD 2 > /dev/null", which doesn't actually send stderr to /dev/null, so when the netns doesn't exist, the error message is shown. Use "2> /dev/null" instead, so that those messages disa

[PATCH AUTOSEL 4.18 24/58] Input: atakbd - fix Atari CapsLock behaviour

2018-10-08 Thread Sasha Levin
From: Michael Schmitz [ Upstream commit 52d2c7bf7c90217fbe875d2d76f310979c48eb83 ] The CapsLock key on Atari keyboards is not a toggle, it does send the normal make and break scancodes. Drop the CapsLock toggle handling code, which did cause the CapsLock key to merely act as a Shift key. Teste

[PATCH AUTOSEL 4.18 26/58] net: stmmac: Fixup the tail addr setting in xmit path

2018-10-08 Thread Sasha Levin
From: Jose Abreu [ Upstream commit 0431100b3d82c509729ece1ab22ada2484e209c1 ] Currently we are always setting the tail address of descriptor list to the end of the pre-allocated list. According to databook this is not correct. Tail address should point to the last available descriptor + 1, whic

[PATCH AUTOSEL 4.18 20/58] scsi: ibmvscsis: Ensure partition name is properly NUL terminated

2018-10-08 Thread Sasha Levin
From: Laura Abbott [ Upstream commit adad633af7b970bfa5dd1b624a4afc83cac9b235 ] While reviewing another part of the code, Kees noticed that the strncpy of the partition name might not always be NUL terminated. Switch to using strscpy which does this safely. Reported-by: Kees Cook Signed-off-by

[PATCH AUTOSEL 4.18 22/58] intel_th: pci: Add Ice Lake PCH support

2018-10-08 Thread Sasha Levin
From: Alexander Shishkin [ Upstream commit 59d08d00d43c644ee2011d7ff1807bdd69f31fe0 ] This adds Intel(R) Trace Hub PCI ID for Ice Lake PCH. Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file c

[PATCH AUTOSEL 4.18 18/58] ucma: fix a use-after-free in ucma_resolve_ip()

2018-10-08 Thread Sasha Levin
From: Cong Wang [ Upstream commit 5fe23f262e0548ca7f19fb79f89059a60d087d22 ] There is a race condition between ucma_close() and ucma_resolve_ip(): CPU0CPU1 ucma_resolve_ip(): ucma_close(): ctx = ucma_get_ctx(file, cmd.id); list_for_each_entry_s

[PATCH AUTOSEL 4.18 17/58] clocksource/drivers/ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs

2018-10-08 Thread Sasha Levin
From: Keerthy [ Upstream commit 3b7d96a0dbb6b630878597a1838fc39f808b761b ] The 32k clocksource is NONSTOP for non-am43 SoCs. Hence add the flag for all the other SoCs. Reported-by: Tony Lindgren Signed-off-by: Keerthy Acked-by: Tony Lindgren Signed-off-by: Daniel Lezcano Signed-off-by: Sash

[PATCH AUTOSEL 4.18 15/58] batman-adv: fix hardif_neigh refcount on queue_work() failure

2018-10-08 Thread Sasha Levin
From: Marek Lindner [ Upstream commit 4c4af6900844ab04c9434c972021d7b48610e06a ] The hardif_neigh refcounter is to be decreased by the queued work and currently is never decreased if the queue_work() call fails. Fix by checking the queue_work() return value and decrease refcount if necessary. S

[PATCH AUTOSEL 4.18 14/58] batman-adv: fix backbone_gw refcount on queue_work() failure

2018-10-08 Thread Sasha Levin
From: Marek Lindner [ Upstream commit 5af96b9c59c72fb2af2d19c5cc2f3cdcee391dff ] The backbone_gw refcounter is to be decreased by the queued work and currently is never decreased if the queue_work() call fails. Fix by checking the queue_work() return value and decrease refcount if necessary. Si

Re: [PATCH] ceph: use an enum instead of 'static const' to define constants

2018-10-08 Thread Arnd Bergmann
On Mon, Oct 8, 2018 at 4:23 PM Ilya Dryomov wrote: > On Fri, Oct 5, 2018 at 6:18 PM Arnd Bergmann wrote: > > @@ -71,7 +71,7 @@ > > * This ensures that no two versions who have different meanings for > > * the bit ever speak to each other. > > */ > > - > > +enum ceph_features { > > DEFINE_C

[PATCH AUTOSEL 4.18 16/58] cxgb4: fix abort_req_rss6 struct

2018-10-08 Thread Sasha Levin
From: Steve Wise [ Upstream commit 9f34519a82356f6cf0ccb8480ee0ed99b3d0af75 ] Remove the incorrect WR_HDR field which can cause a misinterpretation of ABORT CPL by ULDs, such as iw_cxgb4. Fixes: a3cdaa69e4ae ("cxgb4: Adds CPL support for Shared Receive Queues") Signed-off-by: Steve Wise Signed

Re: [Ksummit-discuss] [PATCH 2/2] code-of-conduct: Strip the enforcement paragraph pending community discussion

2018-10-08 Thread Alan Cox
> I happen to think that the fact that the TAB cannot compel where it > cannot persuade is a huge strength of the system because it means > there's no power structure to subvert if someone were interested in > using it to try to impose their own viewpoint on the community. But > that's just my o

[PATCH AUTOSEL 4.18 13/58] batman-adv: Prevent duplicated tvlv handler

2018-10-08 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit ae3cdc97dc10c7a3b31f297dab429bfb774c9ccb ] The function batadv_tvlv_handler_register is responsible for adding new tvlv_handler to the handler_list. It first checks whether the entry already is in the list or not. If it is, then the creation of a new entry

Re: [PATCH v11 1/3]: perf util: map data buffer for preserving collected data

2018-10-08 Thread Alexey Budankov
Hi, On 08.10.2018 18:12, Jiri Olsa wrote: > On Mon, Oct 08, 2018 at 05:43:38PM +0300, Alexey Budankov wrote: >> Hi, >> >> On 08.10.2018 15:38, Jiri Olsa wrote: >>> On Mon, Oct 08, 2018 at 03:03:18PM +0300, Alexey Budankov wrote: >> Well, let's go with stub functions design as opposite t

[PATCH AUTOSEL 4.18 11/58] batman-adv: Prevent duplicated softif_vlan entry

2018-10-08 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 94cb82f594ed86be303398d6dfc7640a6f1d45d4 ] The function batadv_softif_vlan_get is responsible for adding new softif_vlan to the softif_vlan_list. It first checks whether the entry already is in the list or not. If it is, then the creation of a new entry is

[PATCH AUTOSEL 4.18 12/58] batman-adv: Prevent duplicated global TT entry

2018-10-08 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit e7136e48ffdfb9f37b0820f619380485eb407361 ] The function batadv_tt_global_orig_entry_add is responsible for adding new tt_orig_list_entry to the orig_list. It first checks whether the entry already is in the list or not. If it is, then the creation of a new

[PATCH AUTOSEL 4.18 09/58] batman-adv: Prevent duplicated gateway_node entry

2018-10-08 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit dff9bc42ab0b2d38c5e90ddd79b238fed5b4c7ad ] The function batadv_gw_node_add is responsible for adding new gw_node to the gateway_list. It is expecting that the caller already checked that there is not already an entry with the same key or not. But the lock

[PATCH AUTOSEL 4.18 07/58] batman-adv: Fix segfault when writing to throughput_override

2018-10-08 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit b9fd14c20871e6189f635e49b32d7789e430b3c8 ] The per hardif sysfs file "batman_adv/throughput_override" prints the resulting change as info text when the users writes to this file. It uses the helper function batadv_info to add it at the same time to the kern

RE: [PATCH v5 0/8] usb: dwc3: Fix broken BULK stream support to dwc3 gadget driver

2018-10-08 Thread Anurag Kumar Vulisha
Hi Felipe, Please let us know if you have any suggestions / comments on this patch series. If you feel this patch series are okay, can we proceed with them? Thanks, Anurag Kumar Vulisha >-Original Message- >From: Anurag Kumar Vulisha [mailto:anurag.kumar.vuli...@xilinx.com] >Sent: Satu

[PATCH AUTOSEL 4.18 03/58] soundwire: Fix acquiring bus lock twice during master release

2018-10-08 Thread Sasha Levin
From: Sanyog Kale [ Upstream commit 8d6ccf5cebbc7ed1dee9986e36853a78dfb64084 ] As part of sdw_stream_remove_master(), sdw_stream_remove_slave() is called which results in bus lock being acquired twice. So, fix it by performing specific Slave remove operations in sdw_release_master_stream() inst

Re: [PATCH v11 2/3]: perf record: enable asynchronous trace writing

2018-10-08 Thread Alexey Budankov
Hi, On 08.10.2018 18:11, Jiri Olsa wrote: > On Mon, Oct 08, 2018 at 05:42:18PM +0300, Alexey Budankov wrote: >> Hi, >> On 08.10.2018 15:53, Jiri Olsa wrote: >>> On Mon, Oct 08, 2018 at 03:24:31PM +0300, Alexey Budankov wrote: Hi, On 08.10.2018 13:52, Jiri Olsa wrote: > On Mon, Oc

[PATCH AUTOSEL 4.18 04/58] media: af9035: prevent buffer overflow on write

2018-10-08 Thread Sasha Levin
From: Jozef Balga [ Upstream commit 312f73b648626a0526a3aceebb0a3192aaba05ce ] When less than 3 bytes are written to the device, memcpy is called with negative array size which leads to buffer overflow and kernel panic. This patch adds a condition and returns -EOPNOTSUPP instead. Fixes bugzilla

[PATCH AUTOSEL 4.18 05/58] spi: gpio: Fix copy-and-paste error

2018-10-08 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 1723c3155f117ee6e00f28fadf6e9eda4fc85806 ] This fixes an embarrassing copy-and-paste error in the errorpath of spi_gpio_request(): we were checking the wrong struct member for error code right after retrieveing the sck GPIO. Fixes: 9b00bc7b901ff672 ("spi: s

[PATCH AUTOSEL 4.18 01/58] soundwire: Fix duplicate stream state assignment

2018-10-08 Thread Sasha Levin
From: Shreyas NC [ Upstream commit 0aebe40bae6cf5652fdc3d05ecee15fbf5748194 ] For a SoundWire stream it is expected that a Slave is added to the stream before Master is added. So, move the stream state to CONFIGURED after the first Slave is added and remove the stream state assignment for Maste

[PATCH AUTOSEL 4.18 02/58] soundwire: Fix incorrect exit after configuring stream

2018-10-08 Thread Sasha Levin
From: Shreyas NC [ Upstream commit 3fef1a2259c556cce34df2791688cb3001f81c92 ] In sdw_stream_add_master() after the Master ports are configured, the stream is released incorrectly. So, fix it by avoiding stream release after configuring the Master for the stream. While at it, rename the label ap

Re: list iterator spacing: clang-format vs checkpatch

2018-10-08 Thread Joe Perches
On Mon, 2018-10-08 at 09:31 +0200, Miguel Ojeda wrote: > On Mon, Oct 8, 2018 at 4:01 AM Jason A. Donenfeld wrote: > > The shiny new .clang-format file lists a number of nice iterators in > > the ForEachMacros category, the consequence being that there is a > > space between the iterator name and t

Re: [Ksummit-discuss] [PATCH] code-of-conduct: Remove explicit list of discrimination factors

2018-10-08 Thread Alan Cox
> In any case, this is not the appropriate place for such patches, any > more than it's the place for patches to the GPL. I disagree. We had the GPLv2 or GPLv3 discussion on the kernel mailing list. The syscall clarification was discussed on the list. The EXPORT_SYMBOL and EXPORT_SYMBOL_GPL stuff

Re: [PATCH] printk: inject caller information into the body of message

2018-10-08 Thread Petr Mladek
On Tue 2018-10-02 15:38:51, Sergey Senozhatsky wrote: > On (10/01/18 20:21), Tetsuo Handa wrote: > > Maybe "struct printk_buffer" after all becomes identical to "struct cont". > > But > > I guess that even 16 printk_buffer-s is practically sufficient for 1024 CPUs > > system, and allocating NR_CPU

Re: [GIT PULL 11/16] stm class: Document the MIPI SyS-T protocol usage

2018-10-08 Thread Randy Dunlap
On 10/8/18 4:39 AM, Alexander Shishkin wrote: > Randy Dunlap writes: > >> Hi, >> one small typo/spello below... >> >>> +If the protocol name is omitted, the STM class will chose whichever >> >> s/chose/choose/ > > Aw shucks, me can has spelling good. Do you mind if I fix it in later > rcs? No p

Re: [Ksummit-discuss] [PATCH] code-of-conduct: Remove explicit list of discrimination factors

2018-10-08 Thread Geert Uytterhoeven
On Mon, Oct 8, 2018 at 4:30 PM Geert Uytterhoeven wrote: > FTR, I've submitted my patch earlier today, too: > https://github.com/ContributorCovenant/contributor_covenant/issues/610 Will be clarified in the (external-to-Linux) FAQ. Quoting Coraline: "However, any adopting project is free to modif

Re: [PATCH v2 2/2] treewide: use bus_find_device_by_fwnode

2018-10-08 Thread Rob Herring
In the future, please use get_maintainers.pl and send to the right lists and people. Perhaps the coresight, i2c, network, nvmem and spi maintainers would like to see and be aware of this change. On Tue, Sep 25, 2018 at 2:42 AM Silesh C V wrote: > > Use bus_find_device_by_fwnode helper to find the

Re: [PATCH] staging: bcm2835-camera: remove extraneous setting of dev->colourfx.enable

2018-10-08 Thread Stefan Wahren
Hi Colin, Am 08.10.2018 um 16:50 schrieb Colin King: > From: Colin Ian King > > Currently dev->colourfx.enable is being set twice, hence the first > occurrance is redundant and can be removed, so remove it. This minor > issue was introduced by commit 7b3ad5abf027 ("staging: Import the > BCM2835 M

Re: [PATCH v3 0/3] get_user_pages*() and RDMA: first steps

2018-10-08 Thread Dennis Dalessandro
On 10/5/2018 10:49 PM, john.hubb...@gmail.com wrote: From: John Hubbard Changes since v2: -- Absorbed more dirty page handling logic into the put_user_page*(), and handled some page releasing loops in infiniband more thoroughly, as per Jason Gunthorpe's feedback. -- Fixed a bug in the

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Peter Zijlstra
On Mon, Oct 08, 2018 at 01:33:14AM -0700, Andy Lutomirski wrote: > > Can't we hijack the relocation records for these functions before they > > get thrown out in the (final) link pass or something? > > I could be talking out my arse here, but I thought we could do this, > too, then changed my mind

[PATCH] pinctrl: mediatek: select GPIOLIB

2018-10-08 Thread Arnd Bergmann
Removing the linux/gpio.h include means we no longer have a declaration of gpiochip_lock_as_irq() when CONFIG_GPIOLIB is disabled: drivers/pinctrl/mediatek/mtk-eint.c: In function 'mtk_eint_irq_request_resources': drivers/pinctrl/mediatek/mtk-eint.c:247:8: error: implicit declaration of function

Re: [PATCH] ceph: use an enum instead of 'static const' to define constants

2018-10-08 Thread Ilya Dryomov
On Mon, Oct 8, 2018 at 5:37 PM Arnd Bergmann wrote: > > On Mon, Oct 8, 2018 at 4:23 PM Ilya Dryomov wrote: > > On Fri, Oct 5, 2018 at 6:18 PM Arnd Bergmann wrote: > > > @@ -71,7 +71,7 @@ > > > * This ensures that no two versions who have different meanings for > > > * the bit ever speak to e

Re: list iterator spacing: clang-format vs checkpatch

2018-10-08 Thread Miguel Ojeda
On Mon, Oct 8, 2018 at 5:40 PM Joe Perches wrote: > > On Mon, 2018-10-08 at 09:31 +0200, Miguel Ojeda wrote: > > On Mon, Oct 8, 2018 at 4:01 AM Jason A. Donenfeld wrote: > > > The shiny new .clang-format file lists a number of nice iterators in > > > the ForEachMacros category, the consequence be

Re: [PATCH stable v2 1/2] arch/alpha, termios: implement BOTHER, IBSHIFT and termios2

2018-10-08 Thread H. Peter Anvin
On 10/8/18 8:38 AM, Johan Hovold wrote: > On Sun, Oct 07, 2018 at 09:06:19PM -0700, H. Peter Anvin wrote: >> From: "H. Peter Anvin (Intel)" >> >> Alpha has had c_ispeed and c_ospeed, but still set speeds in c_cflags >> using arbitrary flags. Because BOTHER is not defined, the general >> Linux code

RE: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values to DC for smu7/8

2018-10-08 Thread Deucher, Alexander
> -Original Message- > From: Greg Kroah-Hartman > Sent: Monday, October 8, 2018 10:44 AM > To: Deucher, Alexander > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Wentland, Harry > ; Zhu, Rex ; Sasha Levin > > Subject: Re: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values

[PATCH] Input: cyapa - mark expected switch fall-throughs

2018-10-08 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case, I replaced the "Fallthrough state" commern with a proper "Fall through", which is what GCC is expecting to find. Addresses-Coverity-ID: 114758 ("Missin

Re: [PATCH] printk: inject caller information into the body of message

2018-10-08 Thread Petr Mladek
On Mon 2018-10-08 19:31:58, Tetsuo Handa wrote: > On 2018/10/02 15:38, Sergey Senozhatsky wrote: > > I have sketched a very silly, quick-and-dirty implementation using > > struct cont. It derives all the good features of the existing pr_cont. > > I didn't spend enough time on this. It's just a sket

Re: 4.19-rcX: WARN_ON() arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions

2018-10-08 Thread James Morse
Hi Paolo! On 08/10/2018 16:11, Paolo Pisati wrote: > This on my dragonboard 410c: > > ... > [0.170657] WARNING: CPU: 2 PID: 1 at arch/arm64/kernel/setup.c:271 > reserve_memblock_reserved_regions+0xd4/0x150 > [0.170666] Modules linked in: > [0.170680] CPU: 2 PID: 1 Comm: swapper/0 Not

RE: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values to DC for smu7/8

2018-10-08 Thread Zhu, Rex
Hi Alex, Yes, we have fixed this issue in drm-next. I am trying to dig out the patches in drm-next and will sent them out. Regards Rex > -Original Message- > From: Deucher, Alexander > Sent: Tuesday, October 9, 2018 12:02 AM > To: Greg Kroah-Hartman > Cc: linux-kernel@vger.kernel.org; s

Re: list iterator spacing: clang-format vs checkpatch

2018-10-08 Thread Jason A. Donenfeld
Thanks for the clarification Joe. I'll adjust my codebase to roll with checkpatch's conventions.

WARNING in __put_task_struct (2)

2018-10-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ae16eea39a86 Add linux-next specific files for 20181008 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12e7c6a140 kernel config: https://syzkaller.appspot.com/x/.config?x=42525ce985d1a955

Re: [Ksummit-discuss] [PATCH] code-of-conduct: Remove explicit list of discrimination factors

2018-10-08 Thread Josh Triplett
On Mon, Oct 08, 2018 at 04:42:47PM +0100, Alan Cox wrote: > > In any case, this is not the appropriate place for such patches, any > > more than it's the place for patches to the GPL. > > I disagree. We had the GPLv2 or GPLv3 discussion on the kernel mailing > list. The syscall clarification was d

[PATCH] regulator: bd718x7: include linux/of.h

2018-10-08 Thread Arnd Bergmann
Without this header, we get a lengthy build error: drivers/regulator/bd718x7-regulator.c:364:16: error: implicit declaration of function 'of_match_ptr'; did you mean 'hash_ptr'? [-Werror=implicit-function-declaration] .of_match = of_match_ptr("BUCK1"), ^~~~

Re: WARNING in __put_task_struct (2)

2018-10-08 Thread Dmitry Vyukov
On Mon, Oct 8, 2018 at 6:12 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:ae16eea39a86 Add linux-next specific files for 20181008 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=12e7c6a14

Re: [PATCH 00/12] error handling and pciehp maintenance

2018-10-08 Thread Keith Busch
On Fri, Oct 05, 2018 at 12:31:45PM -0500, Bjorn Helgaas wrote: > [+cc arm64 folks, LKML: This conversation is about this patch: > > > https://lore.kernel.org/linux-pci/20180918235848.26694-3-keith.bu...@intel.com > > which fixes some PCIe AER error injection bugs, but also makes the error > in

RE: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values to DC for smu7/8

2018-10-08 Thread Deucher, Alexander
> -Original Message- > From: Sasha Levin > Sent: Monday, October 8, 2018 10:49 AM > To: Deucher, Alexander > Cc: Greg Kroah-Hartman ; linux- > ker...@vger.kernel.org; sta...@vger.kernel.org; Wentland, Harry > ; Zhu, Rex ; Sasha Levin > > Subject: Re: [PATCH 4.18 222/235] drm/amd/pp: Send

WARNING in ext4_invalidatepage

2018-10-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c1d84a1b42ef Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=161588d640 kernel config: https://syzkaller.appspot.com/x/.config?x=c0af03fe452b65fb da

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-10-08 Thread Christian Brauner
On Mon, Oct 08, 2018 at 05:33:22PM +0200, Jann Horn wrote: > On Mon, Oct 8, 2018 at 5:16 PM Christian Brauner wrote: > > > > On Thu, Sep 27, 2018 at 09:11:16AM -0600, Tycho Andersen wrote: > > > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > > > version which can acqui

Re: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices

2018-10-08 Thread Bjorn Andersson
On Mon 08 Oct 06:08 PDT 2018, Arnaud Pouliquen wrote: > Hi Arun, Bjorn, > > On 10/08/2018 08:38 AM, Arun Kumar Neelakantam wrote: > > Glink transport support signals to exchange state notification between > > local and remote side clients. Adding support to send/receive the signal > > command and

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Andy Lutomirski
> On Oct 8, 2018, at 8:57 AM, Peter Zijlstra wrote: > > On Mon, Oct 08, 2018 at 01:33:14AM -0700, Andy Lutomirski wrote: >>> Can't we hijack the relocation records for these functions before they >>> get thrown out in the (final) link pass or something? >> >> I could be talking out my arse he

[PATCH v3 5/8] dt-bindings: input: document stpmic1 pmic onkey

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet The stpmic1 pmic is able to manage an onkey button. It can be configured to shut-down the power supplies on a long key-press with an adjustable duration. Signed-off-by: pascal paillet --- changes in v3: * Replace st,onkey-long-press-seconds and st,onkey-pwroff-enabled by p

Re: WARNING in ext4_invalidatepage

2018-10-08 Thread Dmitry Vyukov
On Mon, Oct 8, 2018 at 6:18 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c1d84a1b42ef Merge git://git.kernel.org/pub/scm/linux/kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=161588d640 > kernel config: h

[PATCH v3 2/8] mfd: stpmic1: add stpmic1 driver

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet stpmic1 is a pmic from STMicroelectronics. The STPMIC1 integrates 10 regulators ,3 switches, a watchdog and an input for a power on key. Signed-off-by: pascal paillet --- changes in v3: * Rename struct stpmic1_dev by struct stpmic1. * Rework i2c client data. * Clean device

[PATCH v3 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon as the watchdog is started, it must be refreshed periodically otherwise the PMIC goes off. Signed-off-by: pascal paillet --- changes in v3: * Rename struct stpmic1_dev by struct stpmic1. * Add nowayout

Re: [PATCH v5 4/4] printk: Give error on attempt to set log buffer length to over 4G

2018-10-08 Thread He Zhe
On 2018年10月08日 21:59, Petr Mladek wrote: > I tried this patch with log_buf_len=5G. The kernel did not crash > but dmesg shown some mess. There are several 32-bit variables > to store the size, for example: > > static u32 log_buf_len = __LOG_BUF_LEN; > u32 log_buf_len_get(void) > static u32 log_f

[PATCH v3 0/8] Introduce STPMIC1 PMIC Driver

2018-10-08 Thread Pascal PAILLET-LME
The goal of this patch-set is to propose a driver for the STPMIC1 PMIC from STMicroelectronics. The STPMIC1 regulators supply power to an application processor as well as to external system peripherals such as DDR, Flash memories and system devices. It also features onkey button input and an har

[PATCH v3 7/8] dt-bindings: watchdog: document stpmic1 pmic watchdog

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet The stpmic1 PMIC embeds a watchdog which is disabled by default. In case of watchdog, the PMIC goes off. Signed-off-by: pascal paillet Reviewed-by: Rob Herring --- changes in v3: nothing Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt | 11 +++ 1 fi

[PATCH v3 4/8] regulator: stpmic1: add stpmic1 regulator driver

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet The stpmic1 PMIC embeds several regulators and switches with different capabilities. Signed-off-by: pascal paillet --- changes in v3: * Rename struct stpmic1_dev by struct stpmic1. * Remove useless struct stpmic1_device_data. * Fix typo in commit message. * Add email addre

[PATCH v3 6/8] input: stpmic1: add stpmic1 onkey driver

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet The stpmic1 pmic is able to manage an onkey button. This driver exposes the stpmic1 onkey as an input device. It can also be configured to shut-down the power supplies on a long key-press with an adjustable duration. Signed-off-by: pascal paillet --- changes in v3: * Rename

[PATCH v3 3/8] dt-bindings: regulator: document stpmic1 pmic regulators

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet The STPMIC1 regulators supply power to the application processor as well as to the external system peripherals such as DDR, Flash memories and system devices. Signed-off-by: pascal paillet --- changes in v3: nothing .../bindings/regulator/st,stpmic1-regulator.txt| 68

[PATCH v3 1/8] dt-bindings: mfd: document stpmic1

2018-10-08 Thread Pascal PAILLET-LME
From: pascal paillet stpmic1 is a pmic from STMicroelectronics. The STPMIC1 integrates 10 regulators ,3 switches, a watchdog and an input for a power on key. Signed-off-by: pascal paillet --- changes in v3: * Replace st,onkey-long-press-seconds by power-off-time-sec. * Replace interrupts-extend

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Steven Rostedt
On Mon, 8 Oct 2018 17:57:57 +0200 Peter Zijlstra wrote: > On Mon, Oct 08, 2018 at 01:33:14AM -0700, Andy Lutomirski wrote: > > > Can't we hijack the relocation records for these functions before they > > > get thrown out in the (final) link pass or something? > > > > I could be talking out my

[PATCH 0/4] gpio chip cascade fixes

2018-10-08 Thread Stephen Boyd
Originally this was a single patch but then I noticed some other things that didn't seem quite right so I added on a few more patches after that. The first patch is the important one because it fixes a bug where a stack pointer is assigned to the gpio_irq_chip structure and used later on when that

[PATCH 4/4] gpio: Clarify kerneldoc on gpiochip_set_chained_irqchip()

2018-10-08 Thread Stephen Boyd
This doesn't support nested anymore, so drivers shouldn't call it with the handler set to NULL. Cc: Evan Green Cc: Thierry Reding Cc: Grygorii Strashko Signed-off-by: Stephen Boyd --- drivers/gpio/gpiolib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpi

[PATCH 1/4] gpio: Assign gpio_irq_chip::parents to non-stack pointer

2018-10-08 Thread Stephen Boyd
gpiochip_set_cascaded_irqchip() is passed 'parent_irq' as an argument and then the address of that argument is assigned to the gpio chips gpio_irq_chip 'parents' pointer shortly thereafter. This can't ever work, because we've just assigned some stack address to a pointer that we plan to dereference

[PATCH 3/4] gpio: Remove unused 'irqchip' argument to gpiochip_set_cascaded_irqchip()

2018-10-08 Thread Stephen Boyd
This argument hasn't ever been used since it was introduced in commit 1425052097b5 ("gpio: add IRQ chip helpers in gpiolib"). Let's drop it to reduce reading confusion. Cc: Evan Green Cc: Thierry Reding Cc: Grygorii Strashko Signed-off-by: Stephen Boyd --- drivers/gpio/gpiolib.c | 8 ++--

[PATCH 2/4] gpio: Drop parent irq assignment during cascade setup

2018-10-08 Thread Stephen Boyd
We want to set the irq parent for interrupts that we're setting up to be cascaded from another interrupt controller, but we may or may not have already mapped the gpiochip irqs into the kernel's virtual irq number space at this point. If we have mapped irqs before calling here, then we've gone thro

Re: [PATCH] samples/rpmsg: Introduce a module parameter for message count

2018-10-08 Thread Suman Anna
Hi Bjorn, On 10/06/2018 01:22 AM, Bjorn Andersson wrote: > On Tue 11 Sep 10:46 PDT 2018, Suman Anna wrote: > >> The current rpmsg_client_sample uses a fixed number of messages to >> be sent to each instance. This is currently set at 100. Introduce >> an optional module parameter 'count' so that t

Re: Adding a Basic DT for the Linksys ea6500 v2 wireless home router

2018-10-08 Thread René Kjellerup
Hi Hauke, Updated the file header per your suggestion. >From e97c15ef78d2535c23f32ebbec43bced72b5eaf7 Mon Sep 17 00:00:00 2001 From: Rene Kjellerup Date: Mon, 1 Oct 2018 14:11:56 -0700 Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Linksys EA6500 V2 It's wireless home router based on BCM

Re: [PATCH V10 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-08 Thread Marc Zyngier
Hi Guo, On 04/10/18 18:22, Guo Ren wrote: - Irq-csky-mpintc is C-SKY smp system interrupt controller and it could support 16 soft irqs, 16 private irqs, and 992 max common irqs. Changelog: - pass checkpatch.pl - Move IPI_IRQ into the driver - Remove irq_set_default_host() and us

Re: [PATCH v3 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

2018-10-08 Thread Randy Dunlap
On 10/8/18 9:29 AM, Pascal PAILLET-LME wrote: > From: pascal paillet > > The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon > as the watchdog is started, it must be refreshed periodically otherwise > the PMIC goes off. > > Signed-off-by: pascal paillet > --- > changes in v

Re: Linux 4.19-rc4 released, an apology, and a maintainership note

2018-10-08 Thread Enrico Weigelt, metux IT consult
On 16.09.2018 21:22, Linus Torvalds wrote: Hi, > One was simply my own reaction to having screwed up my scheduling of > the maintainership summit: yes, I was somewhat embarrassed about > having screwed up my calendar, but honestly, I was mostly hopeful that > I wouldn't have to go to the kernel

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Steven Rostedt
On Mon, 8 Oct 2018 09:29:56 -0700 Andy Lutomirski wrote: > > On Oct 8, 2018, at 8:57 AM, Peter Zijlstra wrote: > > > > On Mon, Oct 08, 2018 at 01:33:14AM -0700, Andy Lutomirski wrote: > >>> Can't we hijack the relocation records for these functions before they > >>> get thrown out in the (fin

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Peter Zijlstra
On Mon, Oct 08, 2018 at 09:29:56AM -0700, Andy Lutomirski wrote: > > > > On Oct 8, 2018, at 8:57 AM, Peter Zijlstra wrote: > > > > On Mon, Oct 08, 2018 at 01:33:14AM -0700, Andy Lutomirski wrote: > >>> Can't we hijack the relocation records for these functions before they > >>> get thrown out i

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-10-08 Thread Jann Horn
On Mon, Oct 8, 2018 at 6:21 PM Christian Brauner wrote: > On Mon, Oct 08, 2018 at 05:33:22PM +0200, Jann Horn wrote: > > On Mon, Oct 8, 2018 at 5:16 PM Christian Brauner > > wrote: > > > > > > On Thu, Sep 27, 2018 at 09:11:16AM -0600, Tycho Andersen wrote: > > > > As an alternative to SECCOMP_FI

Re: [PATCH 1/5] remoteproc: Fix unbalanced boot with sysfs for no auto-boot rprocs

2018-10-08 Thread Suman Anna
On 10/06/2018 01:13 AM, Bjorn Andersson wrote: > On Fri 14 Sep 17:37 PDT 2018, Suman Anna wrote: > >> The remoteproc core performs automatic boot and shutdown of a >> remote processor during rproc_add() and rproc_del() for remote >> processors supporting 'auto-boot'. The remoteproc devices not usi

Re: [PATCH] drivers/vfio: Fix a redundant copy bug

2018-10-08 Thread Alex Williamson
Hi, On Sun, 7 Oct 2018 09:44:25 -0500 Wenwen Wang wrote: > In vfio_spapr_iommu_eeh_ioctl(), if the ioctl command is VFIO_EEH_PE_OP, > the user-space buffer 'arg' is copied to the kernel object 'op' and the > 'argsz' and 'flags' fields of 'op' are checked. If the check fails, an > error code EIN

Re: [PATCH v3 2/3] mm: introduce put_user_page*(), placeholder versions

2018-10-08 Thread Jan Kara
On Fri 05-10-18 19:49:48, john.hubb...@gmail.com wrote: > From: John Hubbard > > Introduces put_user_page(), which simply calls put_page(). > This provides a way to update all get_user_pages*() callers, > so that they call put_user_page(), instead of put_page(). > > Also introduces put_user_page

RE: [GIT PULL v2] for-next updates for soc/fsl drivers for v4.20 take 2

2018-10-08 Thread Leo Li
> -Original Message- > From: Arnd Bergmann > Sent: Monday, October 8, 2018 7:51 AM > To: Leo Li > Cc: arm-soc ; Linux ARM ker...@lists.infradead.org>; Linux Kernel Mailing List ker...@vger.kernel.org>; Shawn Guo > Subject: Re: [GIT PULL v2] for-next updates for soc/fsl drivers for v4

Re: [PATCH v3 3/3] infiniband/mm: convert put_page() to put_user_page*()

2018-10-08 Thread Jan Kara
On Fri 05-10-18 19:49:49, john.hubb...@gmail.com wrote: > From: John Hubbard > > For code that retains pages via get_user_pages*(), > release those pages via the new put_user_page(), or > put_user_pages*(), instead of put_page() > > This prepares for eventually fixing the problem described > in

<    4   5   6   7   8   9   10   11   12   13   >