[PATCH] uaccess: Add missing __must_check attributes

2019-08-28 Thread Kees Cook
The usercopy implementation comments describe that callers of the copy_*_user() family of functions must always have their return values checked. This can be enforced at compile time with __must_check, so add it where needed. Signed-off-by: Kees Cook --- include/linux/thread_info.h | 2 +- incl

Re: [PATCH v5 4/4] tpm: tpm_tis_spi: Support cr50 devices

2019-08-28 Thread Heiko Stuebner
Am Mittwoch, 28. August 2019, 10:21:50 CEST schrieb Stephen Boyd: > Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 > firmware. The firmware running on the currently supported H1 Secure > Microcontroller requires a special driver to handle its specifics: > > - need to ensure a ce

Re: [PATCH v2 0/6] Rework REFCOUNT_FULL using atomic_fetch_* operations

2019-08-28 Thread Kees Cook
On Tue, Aug 27, 2019 at 05:31:58PM +0100, Will Deacon wrote: > Hi all, > > This is version two of the patches I previously posted here: > > https://lkml.kernel.org/r/20190802101000.12958-1-w...@kernel.org > > Changes since v1 include: > > * Avoid duplicate WARNs when incrementing from zero

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread Kees Cook
On Fri, Aug 23, 2019 at 05:30:53PM -0700, Paul Walmsley wrote: > On Thu, 22 Aug 2019, David Abdurachmanov wrote: > > > There is one failing kernel selftest: global.user_notification_signal > > Is this the only failing test? Or are the rest of the selftests skipped > when this test fails, and no

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread Kees Cook
On Mon, Aug 26, 2019 at 09:39:50AM -0700, David Abdurachmanov wrote: > I don't have the a build with SECCOMP for the board right now, so it > will have to wait. I just finished a new kernel (almost rc6) for Fedora, FWIW, I don't think this should block landing the code: all the tests fail without

Re: [PATCH v9 2/3] fdt: add support for rng-seed

2019-08-28 Thread Kees Cook
On Thu, Aug 22, 2019 at 10:39:51AM -0700, Stephen Boyd wrote: > Quoting Hsin-Yi Wang (2019-08-22 00:15:22) > > Introducing a chosen node, rng-seed, which is an entropy that can be > > passed to kernel called very early to increase initial device > > randomness. Bootloader should provide this entrop

[GIT PULL drivers/misc] lkdtm updates for next

2019-08-28 Thread Kees Cook
Hi Greg, Please pull these LKDTM updates for next. Thanks! -Kees The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git t

Re: [PATCH] lkdtm/bugs: fix build error in lkdtm_EXHAUST_STACK

2019-08-28 Thread Kees Cook
On Tue, Aug 27, 2019 at 10:44:13AM -0600, Raul E Rangel wrote: > Building an x86 64 bit kernel: > > lkdtm/bugs.c:94:2: error: format '%d' expects argument of type 'int', but > argument 2 has type 'long unsigned int' [-Werror=format=] > pr_info("Calling function with %d frame size to depth %d ..

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread Kees Cook
On Thu, Aug 22, 2019 at 01:55:22PM -0700, David Abdurachmanov wrote: > This patch was extensively tested on Fedora/RISCV (applied by default on > top of 5.2-rc7 kernel for <2 months). The patch was also tested with 5.3-rc > on QEMU and SiFive Unleashed board. Oops, I see the mention of QEMU here.

[PATCH] arm-smmu: check for generic bindings first

2019-08-28 Thread Stefano Stabellini
From: Stefano Stabellini Today, the arm-smmu driver checks for mmu-masters on device tree, the legacy property, if it is absent it assumes that we are using the new bindings. If it is present it assumes that we are using the legacy bindings. All arm-smmus need to use the same bindings: legacy or

Re: [PATCH] kbuild: Do not enable -Wimplicit-fallthrough for clang for now

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 9:45 AM Miguel Ojeda wrote: > > On Wed, Aug 28, 2019 at 6:21 PM Masahiro Yamada > wrote: > > > > Applied to linux-kbuild. Thanks. > > > > (If other clang folks give tags, I will add them later.) > > Acked-by: Miguel Ojeda I verified that GCC didn't get support for -Wimpl

Re: [linux-next][BUG][driver/scsi/lpfc][c00f62e6] Kernel panics when booting next kernel on my Power 9 box

2019-08-28 Thread Abdul Haleem
On Wed, 2019-08-28 at 08:22 -0700, James Smart wrote: > On 8/27/2019 10:02 PM, Abdul Haleem wrote: > > Greetings, > > > > linux-next kernel 5.3.0-rc1 failed to boot with kernel Oops on Power 9 > > box > > > > I see a recent changes to lpfc code was from commit > > 10541f03 scsi: lpfc: Update lpfc

Re: [PATCH] kbuild: Do not enable -Wimplicit-fallthrough for clang for now

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 10:39 AM Nick Desaulniers wrote: > > On Wed, Aug 28, 2019 at 9:45 AM Miguel Ojeda > wrote: > > > > On Wed, Aug 28, 2019 at 6:21 PM Masahiro Yamada > > wrote: > > > > > > Applied to linux-kbuild. Thanks. > > > > > > (If other clang folks give tags, I will add them later.)

Re: Regression in 5.1.20: Reading long directory fails

2019-08-28 Thread J. Bruce Fields
On Thu, Aug 22, 2019 at 02:39:26PM -0500, Jason L Tibbitts III wrote: > I now have another user reporting the same failure of readdir on a long > directory which showed up in 5.1.20 and was traced to > 3536b79ba75ba44b9ac1a9f1634f2e833bbb735c. I'm not sure what to do to > get more traction besides

[RFC net-next v2 1/5] net: phy: make mdiobus_create_device() function callable from Eth driver

2019-08-28 Thread Ong Boon Leong
PHY converter and external PHY drivers depend on MDIO functions of Eth driver and such MDIO read/write completion may fire IRQ. The ISR for MDIO completion IRQ is done in the open() function of driver. For PHY converter mdio driver that registers ISR event that uses MDIO read/write function during

[RFC net-next v2 2/5] net: phy: introduce mdiobus_get_mdio_device

2019-08-28 Thread Ong Boon Leong
Add the function to get mdio_device based on the mdio addr. Signed-off-by: Ong Boon Leong --- drivers/net/phy/mdio_bus.c | 6 ++ include/linux/mdio.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 06658d9197a1..96ef94

[RFC net-next v2 0/5] PHY converter driver for DW xPCS IP

2019-08-28 Thread Ong Boon Leong
My apology for sending RFC v1 with incorrect email for peppe.cavall...@st.com. Please use RFC v2 for discussion. Thanks. Following review comment from Florian and discussion in below thread:- https://patchwork.ozlabs.org/patch/1109777/ This RFC is to solicit feedback on the implementation of PH

[RFC net-next v2 4/5] net: phy: introducing support for DWC xPCS logics for EHL & TGL

2019-08-28 Thread Ong Boon Leong
xPCS is DWC Ethernet Physical Coding Sublayer that can be integrated with Ethernet MAC controller and acts as converter between GMII and SGMII. An example is as shown below whereby DWC xPCS is integrated with DW EQoS MAC to form GbE Controller. <-GbE Controller-->|<--Exte

[RFC net-next v2 3/5] net: phy: add private data to mdio_device

2019-08-28 Thread Ong Boon Leong
PHY converter device is represented as mdio_device and requires private data. So, we add pointer for private data to mdio_device struct. Signed-off-by: Ong Boon Leong --- include/linux/mdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mdio.h b/include/linux/mdio.h index

Re: Linux Foundation Technical Advisory Board Elections -- Call for nominations

2019-08-28 Thread Laura Abbott
> On Aug 9, 2019, at 2:26 AM, Laura Abbott wrote: > > Hello everyone, > > Friendly reminder that the TAB elections are coming soon: > > The Linux Foundation Technical Advisory Board (TAB) serves as the > interface between the kernel development community and the Linux > Foundation. The TAB ad

Re: [GIT PULL rcu/next] Supplementary RCU commits for 5.4

2019-08-28 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This pull request contains the following changes: > > 1.A one-line change that affects only Tiny RCU that is needed > by the RISC-V guys, courtesy of Christoph Hellwig. > > 2.An update to my email address. The old one still works, a

[RFC net-next v2 5/5] net: stmmac: add dwxpcs boardinfo for mdio_device registration

2019-08-28 Thread Ong Boon Leong
For EHL & TGL Ethernet PCS, the mdio bus address is the same across all TSN controller instances. External PHY is using default mdio bus address of 0x0. As Ethernet DW PCS is only applicable for SGMII interface, we only register setup_intel_mgbe_phy_conv() for all TSN controller with SGMII interfac

Re: Follow up on hid2hci: Fix udev rules for linux-4.14+

2019-08-28 Thread Ville Syrjälä
On Wed, Aug 28, 2019 at 01:34:07PM -0400, Dan Streetman wrote: > It looks like this patch got lost at some point: > https://lore.kernel.org/patchwork/patch/902126/#1138115 > > but it seems to still be a problem and I'd like to pull it into Ubuntu: > https://bugs.launchpad.net/ubuntu/+source/bluez/

Re: [patch 2/2] x86/mm/pti: Do not invoke PTI functions when PTI is disabled

2019-08-28 Thread Song Liu
> On Aug 28, 2019, at 7:24 AM, Thomas Gleixner wrote: > > When PTI is disabled at boot time either because the CPU is not affected or > PTI has been disabled on the command line, the boot code still calls into > pti_finalize() which then unconditionally invokes: > > pti_clone_entry_text()

[PATCH v2] x86/PCI: Add missing log facility and move to use pr_ macros in pcbios.c

2019-08-28 Thread Krzysztof Wilczynski
Add missing log facility where two instances of printk() that did not use any (so it would be using MESSAGE_LOGLEVEL_DEFAULT set in Kconfig) to make all the warnings in the arch/x86/pci/pcbios.c to be printed consistently at the same log facility. Also resolve the following checkpatch.pl script wa

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread Andy Lutomirski
> On Aug 25, 2019, at 2:59 PM, Kees Cook wrote: > >> On Thu, Aug 22, 2019 at 01:55:22PM -0700, David Abdurachmanov wrote: >> This patch was extensively tested on Fedora/RISCV (applied by default on >> top of 5.2-rc7 kernel for <2 months). The patch was also tested with 5.3-rc >> on QEMU and Si

Re: [PATCH v3 06/14] dt-bindings: cpufreq: qcom-nvmem: Support pstates provided by a power domain

2019-08-28 Thread Stephen Boyd
Quoting Niklas Cassel (2019-08-22 03:27:23) > On Mon, Aug 19, 2019 at 10:59:36AM -0700, Stephen Boyd wrote: > > Quoting Niklas Cassel (2019-08-19 03:09:57) > > > + > > > +soc { > > > + > > > + cprpd: cpr@b018000 { > > > > Maybe node name should be 'avs' for the industry standard adaptive

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Nathan Chancellor
On Wed, Aug 28, 2019 at 11:43:53PM +1000, Michael Ellerman wrote: > Nathan Chancellor writes: > > > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > > setjmp is used") disabled -Wbuiltin-requires-header because of a warning > > about the setjmp and longjmp declarations. > >

Re: [PATCH v3 0/3] arm64: meson-sm1: add support for the SM1 based VIM3L

2019-08-28 Thread Kevin Hilman
Neil Armstrong writes: > This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant. > > The S903D3 package variant of SM1 is pin-to-pin compatible with the > S922X and A311d, so only internal DT changes are needed : > - DVFS support is different > - Audio support not yet available

Re: [PATCH v2 1/3] libnvdimm/security: Introduce a 'frozen' attribute

2019-08-28 Thread Jeff Moyer
Dan Williams writes: > In the process of debugging a system with an NVDIMM that was failing to > unlock it was found that the kernel is reporting 'locked' while the DIMM > security interface is 'frozen'. Unfortunately the security state is > tracked internally as an enum which prevents it from co

Re: [PATCH v2 2/3] libnvdimm/security: Tighten scope of nvdimm->busy vs security operations

2019-08-28 Thread Jeff Moyer
Dan Williams writes: > An attempt to freeze DIMMs currently runs afoul of default blocking of > all security operations in the entry to the 'store' routine for the > 'security' sysfs attribute. > > The blanket blocking of all security operations while the DIMM is in > active use in a region is to

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Josh Poimboeuf
On Wed, Aug 28, 2019 at 05:29:39PM +0200, Arnd Bergmann wrote: > On Wed, Aug 28, 2019 at 4:51 PM Josh Poimboeuf wrote: > > On Wed, Aug 28, 2019 at 11:00:04AM +0200, Arnd Bergmann wrote: > > > On Tue, Aug 27, 2019 at 11:22 PM 'Nick Desaulniers' via Clang Built > > > Linux wrote: > > > > On Tue, Au

Re: mmotm 2019-08-27-20-39 uploaded (objtool: xen)

2019-08-28 Thread Randy Dunlap
On 8/28/19 10:19 AM, Josh Poimboeuf wrote: > On Wed, Aug 28, 2019 at 09:58:37AM -0700, Randy Dunlap wrote: >> On 8/27/19 8:40 PM, a...@linux-foundation.org wrote: >>> The mm-of-the-moment snapshot 2019-08-27-20-39 has been uploaded to >>> >>>http://www.ozlabs.org/~akpm/mmotm/ >>> >>> mmotm-read

Re: [PATCH v2 0/3] libnvdimm/security: Enumerate the frozen state and other cleanups

2019-08-28 Thread Jeff Moyer
Dan Williams writes: > Changes since v1 [1]: > - Cleanup patch1, simplify flags return in the overwrite case and > consolidate frozen-state cases (Jeff) > - Clarify the motivation for patch2 (Jeff) > - Collect Dave's Reviewed-by The series tests out fine for me. Thanks, Dan! -Jeff > > [1]:

Re: [PATCH v3 0/6] hugetlb_cgroup: Add hugetlb_cgroup reservation limits

2019-08-28 Thread Mina Almasry
On Wed, Aug 28, 2019 at 4:23 AM Michal Hocko wrote: > > On Mon 26-08-19 16:32:34, Mina Almasry wrote: > > mm/hugetlb.c | 493 -- > > mm/hugetlb_cgroup.c | 187 +-- > > This is a lot of changes to an already subtle code

Re: [PATCH 01/19] dax: remove block device dependencies

2019-08-28 Thread Vivek Goyal
On Tue, Aug 27, 2019 at 11:58:09PM -0700, Christoph Hellwig wrote: > On Tue, Aug 27, 2019 at 12:38:28PM -0400, Vivek Goyal wrote: > > > For bdev_dax_pgoff > > > I'd much rather have the partition offset if there is on in the daxdev > > > somehow so that we can get rid of the block device entirely.

Re: [patch 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Song Liu
> On Aug 28, 2019, at 8:51 AM, Thomas Gleixner wrote: > > On Wed, 28 Aug 2019, Dave Hansen wrote: >> On 8/28/19 7:24 AM, Thomas Gleixner wrote: >>> From: Song Liu >>> >>> pti_clone_pmds() assumes that the supplied address is either: >>> >>> - properly PUD/PMD aligned >>> or >>> - the addres

Re: Follow up on hid2hci: Fix udev rules for linux-4.14+

2019-08-28 Thread Ville Syrjälä
On Wed, Aug 28, 2019 at 08:50:51PM +0300, Ville Syrjälä wrote: > On Wed, Aug 28, 2019 at 01:34:07PM -0400, Dan Streetman wrote: > > It looks like this patch got lost at some point: > > https://lore.kernel.org/patchwork/patch/902126/#1138115 > > > > but it seems to still be a problem and I'd like t

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-08-28 Thread Kees Cook
On Wed, Aug 28, 2019 at 10:52:05AM -0700, Andy Lutomirski wrote: > > > > On Aug 25, 2019, at 2:59 PM, Kees Cook wrote: > > > >> On Thu, Aug 22, 2019 at 01:55:22PM -0700, David Abdurachmanov wrote: > >> This patch was extensively tested on Fedora/RISCV (applied by default on > >> top of 5.2-rc7

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 10:53 AM Nathan Chancellor wrote: > > On Wed, Aug 28, 2019 at 11:43:53PM +1000, Michael Ellerman wrote: > > Nathan Chancellor writes: > > > > > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > > > setjmp is used") disabled -Wbuiltin-requires-header b

[PATCH v2 2/2] ALSA: hda: Allow HDA to be runtime suspended when dGPU is not bound

2019-08-28 Thread Kai-Heng Feng
It's a common practice to let dGPU unbound and use PCI platform power management to disable its power through _OFF method of power resource, which is listed by _PR3. When the dGPU comes with an HDA function, the HDA won't be suspended if the dGPU is unbound, so the power resource can't be turned of

Re: [PATCH] kbuild: Do not enable -Wimplicit-fallthrough for clang for now

2019-08-28 Thread Gustavo A. R. Silva
On 8/28/19 11:20 AM, Masahiro Yamada wrote: >> >> Given these two problems need discussion and coordination, do not enable >> -Wimplicit-fallthrough with clang right now. Add a comment to explain >> what is going on as well. This commit should be reverted once these two >> issues are fully flus

Re: [PATCH v2] x86/PCI: Add missing log facility and move to use pr_ macros in pcbios.c

2019-08-28 Thread Joe Perches
On Wed, 2019-08-28 at 19:51 +0200, Krzysztof Wilczynski wrote: > Add missing log facility where two instances of printk() that did not > use any (so it would be using MESSAGE_LOGLEVEL_DEFAULT set in Kconfig) > to make all the warnings in the arch/x86/pci/pcbios.c to be printed > consistently at the

Re: [RFC net-next v2 3/5] net: phy: add private data to mdio_device

2019-08-28 Thread Andrew Lunn
On Thu, Aug 29, 2019 at 01:47:20AM +0800, Ong Boon Leong wrote: > PHY converter device is represented as mdio_device and requires private > data. So, we add pointer for private data to mdio_device struct. Hi Ong This was discussed recently with regard to the xilinx_gmii2rgmii.c driver. You can us

Re: [PATCH v5 4/4] tpm: tpm_tis_spi: Support cr50 devices

2019-08-28 Thread Stephen Boyd
Quoting Heiko Stuebner (2019-08-28 10:36:29) > Am Mittwoch, 28. August 2019, 10:21:50 CEST schrieb Stephen Boyd: > > Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 > > firmware. The firmware running on the currently supported H1 Secure > > Microcontroller requires a special driver

Re: [RFC] perf/x86/amd: add support for Large Increment per Cycle Events

2019-08-28 Thread Stephane Eranian
On Wed, Aug 28, 2019 at 5:47 AM Peter Zijlstra wrote: > > On Mon, Aug 26, 2019 at 02:59:15PM -0500, Kim Phillips wrote: > > The core AMD PMU has a 4-bit wide per-cycle increment for each > > performance monitor counter. That works for most counters, but > > now with AMD Family 17h and above proce

Re: [PATCH v8 1/4] mtd: spi-nor: add support for is25wp256

2019-08-28 Thread Sagar Kadam
Hi Bin, On Mon, Aug 26, 2019 at 2:49 AM Bin Meng wrote: > > On Tue, Aug 13, 2019 at 8:40 PM Sagar Shrikant Kadam > wrote: > > > > Update spi_nor_id table for is25wp256 (32MB) device from ISSI, > > present on HiFive Unleashed dev board (Rev: A00). > > > > Set method to enable quad mode for ISSI d

Re: [PATCH] clk: Evict unregistered clks from parent caches

2019-08-28 Thread Stephen Boyd
Quoting kbuild test robot (2019-08-27 03:28:35) > Hi Stephen, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3-rc6 next-20190827] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the sys

RE: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-08-28 Thread Stefano Stabellini
On Wed, 28 Aug 2019, Peng Fan wrote: > Hi Robin, > > > Subject: Re: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64 > > > > On 09/07/2019 09:22, Peng Fan wrote: > > > arm64 shares some code under arch/arm/xen, including mm.c. > > > However ZONE_DMA is removed by commit > > > ad67f5a6545("arm64: r

Re: [PATCH 1/4] fs: always build llseek.

2019-08-28 Thread Eric W. Biederman
Michal Suchanek writes: > 64bit !COMPAT does not build because the llseek syscall is in the > tables. Do I read this right you have a 128 bit offset to llseek on ppc64? Looking at the signature it does not appear to make sense to build this function on any 64bit platform. Perhaps the proper fi

Re: [PATCH 1/4] fs: always build llseek.

2019-08-28 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Michal Suchanek writes: > >> 64bit !COMPAT does not build because the llseek syscall is in the >> tables. > > Do I read this right you have a 128 bit offset to llseek on ppc64? > > Looking at the signature it does not appear to make sense to bui

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Nathan Chancellor
On Wed, Aug 28, 2019 at 02:54:24PM +0900, Masahiro Yamada wrote: > Instead of the warning-[123] magic, let's accumulate compiler options > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > easier to understand what is going on in this file. > > This commit slightly changes t

[PATCH v2] clk: Evict unregistered clks from parent caches

2019-08-28 Thread Stephen Boyd
We leave a dangling pointer in each clk_core::parents array that has an unregistered clk as a potential parent when that clk_core pointer is freed by clk{_hw}_unregister(). It is impossible for the true parent of a clk to be set with clk_set_parent() once the dangling pointer is left in the cache b

Re: [PATCH 2/2] kbuild: allow Clang to find unused static inline functions for W=1 build

2019-08-28 Thread Nathan Chancellor
On Wed, Aug 28, 2019 at 02:54:25PM +0900, Masahiro Yamada wrote: > GCC and Clang have different policy for -Wunused-function; GCC does not > warn unused static inline functions at all whereas Clang does if they > are defined in source files instead of included headers although it has > been suppres

Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf

2019-08-28 Thread Aaro Koskinen
Hi, On Wed, Aug 28, 2019 at 03:02:36PM +0200, Arnd Bergmann wrote: > On Tue, Aug 27, 2019 at 9:05 PM Aaro Koskinen wrote: > > On Tue, Aug 27, 2019 at 06:33:01PM +0200, Arnd Bergmann wrote: > > > On Fri, Aug 16, 2019 at 10:34 AM Aaro Koskinen > > > wrote: > > > > However with earlyprintk it seem

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 12:20 AM Sedat Dilek wrote: > > On Wed, Aug 28, 2019 at 7:55 AM Masahiro Yamada > wrote: > > > > Instead of the warning-[123] magic, let's accumulate compiler options > > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > > easier to understand what i

Re: [PATCH 00/23] libperf: Add rest of events to perf/event.h

2019-08-28 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 28, 2019 at 03:56:54PM +0200, Jiri Olsa escreveu: > hi, > to export 'union perf_event' we need to export the rest of events. Thanks, applied to perf/core. - Arnaldo > It's also available in here: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > perf/fixes > > th

Re: [PATCH v5 4/4] tpm: tpm_tis_spi: Support cr50 devices

2019-08-28 Thread Heiko Stuebner
Am Mittwoch, 28. August 2019, 20:07:26 CEST schrieb Stephen Boyd: > Quoting Heiko Stuebner (2019-08-28 10:36:29) > > Am Mittwoch, 28. August 2019, 10:21:50 CEST schrieb Stephen Boyd: > > > Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 > > > firmware. The firmware running on the c

Re: Regression in 5.1.20: Reading long directory fails

2019-08-28 Thread Jason L Tibbitts III
> "BF" == J Bruce Fields writes: BF> Looks like that's db531db951f950b8 upstream. (Do you know if it's BF> reproduceable upstream as well?) Yes, it's reproducible up in the 5.3.0 RCs as well. However, while trying to do some further bisecting I ran into an odd problem. Now kernels which w

Re: [PATCH] ARM: OMAP2+: Delete an unnecessary kfree() call in omap_hsmmc_pdata_init()

2019-08-28 Thread Tony Lindgren
* Ladislav Michl [190827 18:15]: > On Mon, Aug 26, 2019 at 09:20:50AM -0700, Tony Lindgren wrote: > > * Markus Elfring [190826 06:31]: > > > From: Markus Elfring > > > Date: Mon, 26 Aug 2019 15:05:31 +0200 > > > > > > A null pointer would be passed to a call of the function "kfree" directly > >

Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc()

2019-08-28 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this, please? Thanks -- Gustavo On 6/10/19 4:06 PM, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of e

Re: mmotm 2019-08-27-20-39 uploaded (sound/hda/intel-nhlt.c)

2019-08-28 Thread Randy Dunlap
On 8/27/19 8:40 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2019-08-27-20-39 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my -m

Re: Regression in 5.1.20: Reading long directory fails

2019-08-28 Thread J. Bruce Fields
On Wed, Aug 28, 2019 at 01:29:00PM -0500, Jason L Tibbitts III wrote: > If I had any idea how to do that, I happily would. I'm certainly > willing to learn. At least I can run strace to see where ls bombs: Somewhat of a caveman, I might start at the code for getdents, sprinkle printk's around un

[PATCH 1/3] ARM: omap2plus_defconfig: Fix missing video

2019-08-28 Thread Adam Ford
When the panel-dpi driver was removed, the simple-panels driver was never enabled, so anyone who used the panel-dpi driver lost video, and those who used it inconjunction with simple-panels would have to manually enable CONFIG_DRM_PANEL_SIMPLE. This patch makes CONFIG_DRM_PANEL_SIMPLE a module in

[PATCH 2/3] ARM: dts: logicpd-torpedo-baseboard: Fix missing video

2019-08-28 Thread Adam Ford
A previous commit removed the panel-dpi driver, which made the Torpedo video stop working because it relied on the dpi driver for setting video timings. Now that the simple-panel driver is available in omap2plus, this patch migrates the Torpedo dev kits to use a similar panel and remove the manual

[PATCH 3/3] ARM: dts: am3517-evm: Fix missing video

2019-08-28 Thread Adam Ford
A previous commit removed the panel-dpi driver, which made the video on the AM3517-evm stop working because it relied on the dpi driver for setting video timings. Now that the simple-panel driver is available in omap2plus, this patch migrates the am3517-evm to use a similar panel and remove the ma

Re: [PATCH v2 4/6] dt-bindings: misc: atmel-ssc: LRCLK from TF/RF pin option

2019-08-28 Thread Rob Herring
On Wed, Aug 28, 2019 at 8:03 AM Michał Mirosław wrote: > > On Tue, Aug 27, 2019 at 05:37:16PM -0500, Rob Herring wrote: > > On Sat, Aug 24, 2019 at 10:26:55PM +0200, Michał Mirosław wrote: > > > Add single-pin LRCLK source options for Atmel SSC module. > > > > > > Signed-off-by: Michał Mirosław >

Re: [PATCH v2 2/3] KVM: x86: make exception_class() and exception_type() globally visible

2019-08-28 Thread Sean Christopherson
On Wed, Aug 28, 2019 at 05:02:57PM +, Jan Dakinevich wrote: > exception_type() function was moved for upcoming sanity check in > emulation code. exceptions_class() function is not supposed to be used > right now, but it was moved as well to keep things together. Doh, I didn't realize exception

[PATCH v3 6/8] arm64: dts: renesas: Add EK874 board with idk-2121wr display support

2019-08-28 Thread Fabrizio Castro
The EK874 is advertised as compatible with panel IDK-2121WR from Advantech, however the panel isn't sold alongside the board. A new dts, adding everything that's required to get the panel to to work with the EK874, is the most convenient way to support the EK874 when it's connected to the IDK-2121W

[PATCH v3 7/8] [HACK] arm64: dts: renesas: draak: Enable LVDS

2019-08-28 Thread Fabrizio Castro
Enable and connect the second LVDS encoder to the second LVDS input of the THC63LVD1024 for dual-link LVDS operation. This requires changing the default settings of SW45 and SW47 to OFF and ON respectively. This patch is based on Laurent's dual-LVDS work: https://patchwork.kernel.org/patch/1096504

[PATCH v3 8/8] [HACK] arm64: dts: renesas: draak: Enable LVDS dual-link operation

2019-08-28 Thread Fabrizio Castro
Enable and connect the second LVDS encoder to the second LVDS input of the THC63LVD1024 for dual-link LVDS operation. This requires changing the default settings of SW45 and SW47 to OFF and ON respectively. This patch is based on Laurent's dual-LVDS work: https://patchwork.kernel.org/patch/1096504

[PATCH v3 4/8] drm: rcar-du: lvds: Add dual-LVDS panels support

2019-08-28 Thread Fabrizio Castro
The driver doesn't support dual-link LVDS displays, and the way it identifies bridges won't allow for dual-LVDS displays to be connected. Also, it's not possible to swap even and odd pixels around in case the wiring isn't taking advantage of the default hardware configuration. Further more, the "mo

[PATCH v3 0/8] Add dual-LVDS panel support to EK874

2019-08-28 Thread Fabrizio Castro
Dear All, this series adds support for dual-LVDS panel IDK-2121WR from Advantech: https://buy.advantech.eu/Displays/Embedded-LCD-Kits-High-Brightness/model-IDK-2121WR-K2FHA2E.htm V3 approaches the problem in a completely different way, we now have two new properties to mark the ports in the DT as

Re: [PATCH v2 04/15] kvm: x86: Add per-VM APICv state debugfs

2019-08-28 Thread Suthikulpanit, Suravee
Alex, On 8/27/19 3:20 AM, Alexander Graf wrote: > > > On 26.08.19 21:41, Suthikulpanit, Suravee wrote: >> Alex, >> >> On 8/19/2019 4:57 AM, Alexander Graf wrote: >>> >>> >>> On 15.08.19 18:25, Suthikulpanit, Suravee wrote: Currently, there is no way to tell whether APICv is active on a

Re: [PATCH v2] x86/PCI: Add missing log facility and move to use pr_ macros in pcbios.c

2019-08-28 Thread Krzysztof Wilczynski
Hello Joe, Thank you for feedback. [...] Move to pr_debug() over using DBG() from arch/x86/include/asm/pci_x86.h. You might also consider the checkpatch output for this patch. arch/x86/pci/pcbios.c:116: WARNING: line over 80 characters arch/x86/pci/pcbios.c:116: WARNING: Prefer using '"%s.

[PATCH] ioat/dca: Use struct_size() helper

2019-08-28 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct ioat_dca_priv { ... struct ioat_dca_slot req_slots[0]; }; M

Re: [PATCH v2] x86/PCI: Add missing log facility and move to use pr_ macros in pcbios.c

2019-08-28 Thread Joe Perches
On Wed, 2019-08-28 at 20:40 +0200, Krzysztof Wilczynski wrote: > Hello Joe, > > Thank you for feedback. > [...] > > >Move to pr_debug() over using DBG() from > > > arch/x86/include/asm/pci_x86.h. > > > > You might also consider the checkpatch output for this patch. > > > > arch/x86/pci/pcbi

Re: Follow up on hid2hci: Fix udev rules for linux-4.14+

2019-08-28 Thread Dan Streetman
On Wed, Aug 28, 2019 at 1:59 PM Ville Syrjälä wrote: > > On Wed, Aug 28, 2019 at 08:50:51PM +0300, Ville Syrjälä wrote: > > On Wed, Aug 28, 2019 at 01:34:07PM -0400, Dan Streetman wrote: > > > It looks like this patch got lost at some point: > > > https://lore.kernel.org/patchwork/patch/902126/#11

Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf

2019-08-28 Thread Tony Lindgren
* Aaro Koskinen [190828 18:23]: > On Wed, Aug 28, 2019 at 03:02:36PM +0200, Arnd Bergmann wrote: > > I assume you checked that the uart output wasn't already broken > > by one of the earlier patches, right? > > Correct, it's only with the mapping change patch it hangs. > > > Also, looking at arc

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Nathan Chancellor
On Wed, Aug 28, 2019 at 11:01:14AM -0700, Nick Desaulniers wrote: > On Wed, Aug 28, 2019 at 10:53 AM Nathan Chancellor > wrote: > > > > On Wed, Aug 28, 2019 at 11:43:53PM +1000, Michael Ellerman wrote: > > > Nathan Chancellor writes: > > > > > > > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-

Re: [PATCH] ima: use struct_size() in kzalloc()

2019-08-28 Thread Mimi Zohar
On Wed, 2019-08-28 at 13:29 -0500, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this, please? Thank you for the reminder. I'm just getting back from LSS and a very short vacation.  I'll look at it shortly. Mimi

Re: [PATCH] thermal: armada: Fix -Wshift-negative-value

2019-08-28 Thread Nick Desaulniers
On Wed, Aug 28, 2019 at 1:53 AM Zhang Rui wrote: > > On Mon, 2019-08-19 at 10:21 +0200, Miquel Raynal wrote: > > Hello, > > > > Daniel Lezcano wrote on Thu, 15 Aug 2019 > > 01:06:21 +0200: > > > > > On 15/08/2019 00:12, Nick Desaulniers wrote: > > > > On Tue, Aug 13, 2019 at 10:28 AM 'Nathan Huck

Re: [PATCH] ima: use struct_size() in kzalloc()

2019-08-28 Thread Gustavo A. R. Silva
On 8/28/19 1:46 PM, Mimi Zohar wrote: > On Wed, 2019-08-28 at 13:29 -0500, Gustavo A. R. Silva wrote: >> Hi all, >> >> Friendly ping: >> >> Who can take this, please? > > Thank you for the reminder. I'm just getting back from LSS and a very > short vacation.  I'll look at it shortly. > Thank

Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc()

2019-08-28 Thread Verma, Vishal L
On Mon, 2019-06-10 at 16:06 -0500, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is > finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct nd_reg

Re: [PATCH] ima: use struct_size() in kzalloc()

2019-08-28 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this, please? Thanks -- Gustavo On 5/29/19 11:53 AM, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of

Re: [PATCH] arm-smmu: check for generic bindings first

2019-08-28 Thread Robin Murphy
On 28/08/2019 18:38, Stefano Stabellini wrote: From: Stefano Stabellini Today, the arm-smmu driver checks for mmu-masters on device tree, the legacy property, if it is absent it assumes that we are using the new bindings. If it is present it assumes that we are using the legacy bindings. All ar

[tip: core/rcu] MAINTAINERS: Update from paul...@linux.ibm.com to paul...@kernel.org

2019-08-28 Thread tip-bot2 for Paul E. McKenney
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 049b405029c00f3fd9e4ffa269bdd29b429c4672 Gitweb: https://git.kernel.org/tip/049b405029c00f3fd9e4ffa269bdd29b429c4672 Author:Paul E. McKenney AuthorDate:Mon, 26 Aug 2019 16:02:56 -07:00 Committ

Re: [PATCH][next] ima: ima_modsig: Fix use-after-free bug in ima_read_modsig

2019-08-28 Thread Gustavo A. R. Silva
On 8/28/19 8:50 AM, Mimi Zohar wrote: > Hi Gustavo, > > On Sun, 2019-08-11 at 18:55 -0500, Gustavo A. R. Silva wrote: >> hdr is being freed and then dereferenced by accessing hdr->pkcs7_msg >> >> Fix this by copying the value returned by PTR_ERR(hdr->pkcs7_msg) into >> automatic variable err fo

[tip: core/rcu] rcu: Don't include in rcutiny.h

2019-08-28 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 24691069a348f82a95e0fa9697bb5656c6d8c48c Gitweb: https://git.kernel.org/tip/24691069a348f82a95e0fa9697bb5656c6d8c48c Author:Christoph Hellwig AuthorDate:Thu, 22 Aug 2019 10:53:43 +09:00 Commit

Re: [patch 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Song Liu > > pti_clone_pmds() assumes that the supplied address is either: > > - properly PUD/PMD aligned > or > - the address is actually mapped which means that independent >of the mapping level (PUD/PMD/PTE) the next higher mapping >exist. s/ind

[PATCH v1] cpuidle-haltpoll: vcpu hotplug support

2019-08-28 Thread Joao Martins
When cpus != maxcpus cpuidle-haltpoll will fail to register all vcpus past the online ones and thus fail to register the idle driver. This is because cpuidle_add_sysfs() will return with -ENODEV as a consequence from get_cpu_device() return no device for a non-existing CPU. Instead switch to cpuid

Re: [PATCH v2] x86/PCI: Add missing log facility and move to use pr_ macros in pcbios.c

2019-08-28 Thread Krzysztof Wilczynski
Hello Joe, [...] The lines over 80 characters wide would be taken care of when moving to using the pr_ macros as the line length will now be shorter contrary to when the e.g., printk(KERNEL_INFO ...), etc., was used. Not really, those were the warnings checkpatch emits on your actual patch.

Re: [patch 2/2] x86/mm/pti: Do not invoke PTI functions when PTI is disabled

2019-08-28 Thread Ingo Molnar
* Thomas Gleixner wrote: > When PTI is disabled at boot time either because the CPU is not affected or > PTI has been disabled on the command line, the boot code still calls into > pti_finalize() which then unconditionally invokes: > > pti_clone_entry_text() > pti_clone_kernel_text()

[PATCH] mmc: sdhi: fill in actual_clock

2019-08-28 Thread Tamás Szűcs
Save set clock in mmc_host actual_clock enabling exporting it via debugfs. This will indicate the precise SD clock in I/O settings rather than only the sometimes misleading requested clock. Signed-off-by: Tamás Szűcs --- drivers/mmc/host/renesas_sdhi_core.c | 8 +--- 1 file changed, 5 insert

Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics

2019-08-28 Thread Andi Kleen
On Wed, Aug 28, 2019 at 05:02:38PM +0200, Peter Zijlstra wrote: > > > > To avoid reading the METRICS register multiple times, the metrics and > > slots value can only be updated by the first slots/metrics event in a > > group. All active slots and metrics events will be updated one time. > > Can'

Re: [PATCH 1/2] x86/microcode: Update late microcode in parallel

2019-08-28 Thread Borislav Petkov
On Tue, Aug 27, 2019 at 05:56:30PM -0700, Raj, Ashok wrote: > > "Cloud customers have expressed discontent as services disappear for > > a prolonged time. The restriction is that only one core (or only one > > thread of a core in the case of an SMT system) goes through the update > > while other co

Re: [PATCH 1/2] x86/microcode: Update late microcode in parallel

2019-08-28 Thread Borislav Petkov
On Tue, Aug 27, 2019 at 05:24:07PM -0400, Boris Ostrovsky wrote: > This was a bit too aggressive with changes to arch-specific code, only > changes to __reload_late() would be needed. Yeah, it is not that ugly but the moment the microcode engine is not shared between the SMT threads anymore, this

[PATCH v4 0/3] Qualcomm UFS device reset support

2019-08-28 Thread Bjorn Andersson
This series adds a new ufs vops to allow platform specific methods for resetting an attached UFS device, then implements this for the Qualcomm driver. This reset seems to be necessary for the majority of Dragonboard845c devices. Bean requested in v3 that a software fallback mechanism, using UIC_CM

[PATCH v4 1/3] scsi: ufs: Introduce vops for resetting device

2019-08-28 Thread Bjorn Andersson
Some UFS memory devices needs their reset line toggled in order to get them into a good state for initialization. Provide a new vops to allow the platform driver to implement this operation. Reviewed-by: Alim Akhtar Signed-off-by: Bjorn Andersson --- Changes since v3: - None drivers/scsi/ufs/

[PATCH 2/2] tools lib traceevent: Remove unneeded qsort and uses memmove instead

2019-08-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" While reading a trace data file that had 100,000s of tasks, the process took an extremely long time. I profiled it down to add_new_comm(), which was doing a qsort() call on an array that was pretty much already sorted (all but the last element. qsort() isn't very e

<    5   6   7   8   9   10   11   12   >