[PATCH 1/2] gcc-plugins: arm_ssp_per_task_plugin: sign extend the SP mask

2019-01-18 Thread Ard Biesheuvel
The ARM per-task stack protector GCC plugin hits an assert in the compiler in some case, due to the fact the the SP mask expression is not sign-extended as it should be. So fix that. Suggested-by: Kugan Vivekanandarajah Signed-off-by: Ard Biesheuvel --- scripts/gcc-plugins/arm_ssp_per_task_plug

Re: [PATCH] bluetooth: hci_bcm: Check for driver_register failure

2019-01-18 Thread Marcel Holtmann
Hi Aditya, > While initializing the driver, the function platform_driver_register can > fail and return an error. Consistent with other invocations, this patch > returns the error upstream. > > Signed-off-by: Aditya Pakki > --- > drivers/bluetooth/hci_bcm.c | 7 ++- > 1 file changed, 6 insert

Re: [PATCH] bluetooth: hci_intel: Check for driver register failure

2019-01-18 Thread Marcel Holtmann
Hi Aditya, > While initializing the driver, the function platform_driver_register can > fail and return an error. Consistent with other invocations, this patch > returns the error upstream. > > Signed-off-by: Aditya Pakki > --- > drivers/bluetooth/hci_intel.c | 6 +- > 1 file changed, 5 inser

Re: [PATCH 2/2] sched: Document Energy Aware Scheduling

2019-01-18 Thread Rafael J. Wysocki
On Fri, Jan 18, 2019 at 11:58 AM Rafael J. Wysocki wrote: > > On Fri, Jan 18, 2019 at 11:34 AM Quentin Perret > wrote: > > > > Hi Rafael, > > > > On Friday 18 Jan 2019 at 10:57:08 (+0100), Rafael J. Wysocki wrote: > > > On Fri, Jan 18, 2019 at 10:16 AM Quentin Perret > > > wrote: > > > > > > >

Re: Need help: how to locate failure from irq_chip subsystem

2019-01-18 Thread Sai Prakash Ranjan
On 1/18/2019 4:18 PM, Pintu Agarwal wrote: On Fri, Jan 18, 2019 at 3:54 PM Sai Prakash Ranjan wrote: Hi Pintu-san, On 1/18/2019 3:38 PM, Pintu Agarwal wrote: Hi All, Currently, I am trying to debug a boot up crash on some qualcomm snapdragon arm64 board with kernel 4.9. I could find the cau

Re: [PATCH v3 5/5] Bluetooth: btusb: Use the hw_reset method to allow resetting the BT chip

2019-01-18 Thread Marcel Holtmann
Hi Rajat, > If the platform provides it, use the reset gpio to reset the BT > chip (requested by the HCI core if needed). This has been found helpful > on some of Intel bluetooth controllers where the firmware gets stuck and > the only way out is a hard reset pin provided by the platform. > > Sig

Re: [RFC PATCH 0/3] cgroup: fsio throttle controller

2019-01-18 Thread Paolo Valente
> Il giorno 18 gen 2019, alle ore 11:31, Andrea Righi > ha scritto: > > This is a redesign of my old cgroup-io-throttle controller: > https://lwn.net/Articles/330531/ > > I'm resuming this old patch to point out a problem that I think is still > not solved completely. > > = Problem = > > T

Re: [PATCH v5 3/3] PM/runtime:Replace jiffies based accounting with ktime based accounting

2019-01-18 Thread Rafael J. Wysocki
On Fri, Jan 18, 2019 at 11:53 AM Vincent Guittot wrote: > > On Fri, 18 Jan 2019 at 11:42, Vincent Guittot > wrote: > > > > Hi Guenter, > > > > Le Thursday 17 Jan 2019 à 14:16:28 (-0800), Guenter Roeck a écrit : > > > On Fri, Dec 21, 2018 at 11:33:56AM +0100, Vincent Guittot wrote: > > > > From: T

Re: [RFC PATCH 0/3] cgroup: fsio throttle controller

2019-01-18 Thread Andrea Righi
On Fri, Jan 18, 2019 at 12:04:17PM +0100, Paolo Valente wrote: > > > > Il giorno 18 gen 2019, alle ore 11:31, Andrea Righi > > ha scritto: > > > > This is a redesign of my old cgroup-io-throttle controller: > > https://lwn.net/Articles/330531/ > > > > I'm resuming this old patch to point out

[PATCH] x86/speculation: Update TIF_SPEC_IB before ibpb barrier

2019-01-18 Thread Zhenzhong Duan
When a task is set for updating TIF_SPEC_IB throuth SECCOMP by others and it's scheduled in the first time, a stale TIF_SPEC_IB value is picked in cond_ibpb(). This is due to TIF_SPEC_IB is updated later at __switch_to_xtra(). Add an extra call to speculation_ctrl_update_tif() to update it before

Re: use generic DMA mapping code in powerpc V4

2019-01-18 Thread Christian Zigotzky
For which commit? -- Christian On 18 January 2019 at 09:35AM, Christoph Hellwig wrote: Hi Christian, can you check if the debug printks in this patch trigger? diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 355d16acee6d..e46c9b64ec0d 100644 --- a/kernel/dma/direct.c +++ b/kernel/

Re: [PATCH 2/2] sched: Document Energy Aware Scheduling

2019-01-18 Thread Quentin Perret
On Friday 18 Jan 2019 at 12:01:35 (+0100), Rafael J. Wysocki wrote: > On Fri, Jan 18, 2019 at 11:58 AM Rafael J. Wysocki wrote: > > > > On Fri, Jan 18, 2019 at 11:34 AM Quentin Perret > > wrote: > > > > > > Hi Rafael, > > > > > > On Friday 18 Jan 2019 at 10:57:08 (+0100), Rafael J. Wysocki wrote

Re: [RFC PATCH 0/3] cgroup: fsio throttle controller

2019-01-18 Thread Paolo Valente
> Il giorno 18 gen 2019, alle ore 12:10, Andrea Righi > ha scritto: > > On Fri, Jan 18, 2019 at 12:04:17PM +0100, Paolo Valente wrote: >> >> >>> Il giorno 18 gen 2019, alle ore 11:31, Andrea Righi >>> ha scritto: >>> >>> This is a redesign of my old cgroup-io-throttle controller: >>> htt

Re: [PATCHv4 00/13] Heterogeneuos memory node attributes

2019-01-18 Thread Jonathan Cameron
On Thu, 17 Jan 2019 12:47:51 -0700 Keith Busch wrote: > On Thu, Jan 17, 2019 at 10:18:35AM -0800, Jonathan Cameron wrote: > > I've been having a play with various hand constructed HMAT tables to allow > > me to try breaking them in all sorts of ways. > > > > Mostly working as expected. > > > >

[PATCH v3 0/3] make kexec work with efi=noruntime or efi=old_map

2019-01-18 Thread Kairui Song
This patch series fix the kexec panic on efi=noruntime or efi=old_map pass acpi_rsdp_addr to the second kernel and make it boot up properly. Update from V2: - Store acpi rsdp value, and add an acpi_os_get_root_pointer_late as a helper, leveraging existing codes so we don't need to reparse RSDP

[PATCH v3 1/3] x86, kexec_file_load: Don't setup EFI info if EFI runtime is not enabled

2019-01-18 Thread Kairui Song
Currently with "efi=noruntime" in kernel command line, calling kexec_file_load will raise below problem: [ 97.967067] BUG: unable to handle kernel NULL pointer dereference at [ 97.967894] #PF error: [normal kernel read fault] ... [ 97.980456] Call Trace: [ 97.980724] efi

[PATCH v3 3/3] x86, kexec_file_load: make it work with efi=noruntime or efi=old_map

2019-01-18 Thread Kairui Song
When efi=noruntime or efi=oldmap is used, EFI services won't be available in the second kernel, therefore the second kernel will not be able to get the ACPI RSDP address from firmware by calling EFI services and won't boot. Previously we are expecting the user to set the acpi_rsdp= on kernel comman

[PATCH v3 2/3] acpi: store acpi_rsdp address for later kexec usage

2019-01-18 Thread Kairui Song
Currently we have acpi_os_get_root_pointer as the universal function to get RSDP address. But the function itself and some functions it depends on are in .init section and make it not easy to retrieve the RSDP value once kernel is initialized. And for kexec, it need to retrive RSDP again if EFI is

Re: Need help: how to locate failure from irq_chip subsystem

2019-01-18 Thread Pintu Agarwal
> >> Could you please tell which QCOM SoC this board is based on? > >> > > > > Snapdragon 845 with kernel 4.9.x > > I want to know from which subsystem it is triggered:drivers/soc/qcom/ > > > > Irqchip driver is "drivers/irqchip/irq-gic-v3.c". The kernel you are > using is msm-4.9 I suppose or some

Re: [PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes

2019-01-18 Thread Jonathan Cameron
On Wed, 16 Jan 2019 10:57:56 -0700 Keith Busch wrote: > Add entries for memory initiator and target node class attributes. > > Signed-off-by: Keith Busch > --- > Documentation/ABI/stable/sysfs-devices-node | 25 - > 1 file changed, 24 insertions(+), 1 deletion(-) > > d

Re: [PATCH 2/2] sched: Document Energy Aware Scheduling

2019-01-18 Thread Rafael J. Wysocki
On Fri, Jan 18, 2019 at 12:11 PM Quentin Perret wrote: > > On Friday 18 Jan 2019 at 12:01:35 (+0100), Rafael J. Wysocki wrote: > > On Fri, Jan 18, 2019 at 11:58 AM Rafael J. Wysocki > > wrote: > > > > > > On Fri, Jan 18, 2019 at 11:34 AM Quentin Perret > > > wrote: > > > > > > > > Hi Rafael, >

[GIT PULL] ACPI fixes for v5.0-rc3

2019-01-18 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.0-rc3 with top-most commit 11ee2a3808aebbec73096551a716dea03d417fcb Merge branch 'acpi-pci' on top of commit 1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8 Linux 5.0-rc2 to receive ACP

Re: [PATCH v3 2/3] acpi: store acpi_rsdp address for later kexec usage

2019-01-18 Thread Borislav Petkov
On Fri, Jan 18, 2019 at 07:13:09PM +0800, Kairui Song wrote: > Currently we have acpi_os_get_root_pointer as the universal function > to get RSDP address. But the function itself and some functions it > depends on are in .init section and make it not easy to retrieve the > RSDP value once kernel is

Re: [PATCH 2/2] sched: Document Energy Aware Scheduling

2019-01-18 Thread Quentin Perret
On Friday 18 Jan 2019 at 12:20:57 (+0100), Rafael J. Wysocki wrote: > On Fri, Jan 18, 2019 at 12:11 PM Quentin Perret > wrote: > > > > On Friday 18 Jan 2019 at 12:01:35 (+0100), Rafael J. Wysocki wrote: > > > On Fri, Jan 18, 2019 at 11:58 AM Rafael J. Wysocki > > > wrote: > > > > > > > > On Fri

Re: use generic DMA mapping code in powerpc V4

2019-01-18 Thread Christoph Hellwig
On Fri, Jan 18, 2019 at 12:10:26PM +0100, Christian Zigotzky wrote: > For which commit? On top of 257002094bc5935dd63207a380d9698ab81f0775, that is the first one you identified as breaking the detection of the SATA disks.

Re: [PATCH RFC 1/1] arm64: Use PSCI calls for CPU stop when hotplug is supported

2019-01-18 Thread Sudeep Holla
On Fri, Jan 18, 2019 at 11:16:20AM +0530, Pramod Kumar wrote: > If CPU hotplug is supported, ipi_cpu_stop should use PSCI cpudie > call to stop the CPU. This call ensures L1/L2 cache flush, > CPUs cache-cohenrecy setting w.r.to interconnect. > Firstly, this is not specific to PSCI and I don't see

Re: [PATCH] dma-debug: add dumping facility via debugfs

2019-01-18 Thread Christoph Hellwig
On Wed, Jan 16, 2019 at 06:10:13PM +, Robin Murphy wrote: > It's a shame that this is pretty much a duplication of > debug_dma_dump_mappings(), but there seems no straightforward way to define > one in terms of the other :/ We could always play some macro magic, but I think that is worse tha

[PATCH 1/2] regulator: lochnagar: Add missing MODULE_DEVICE_TABLE

2019-01-18 Thread Charles Keepax
Add the missing MODULE_DEVICE_TABLE and remove the comma from the separator on the end of the of_device_id array. Signed-off-by: Charles Keepax --- drivers/regulator/lochnagar-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/lochnagar-regulator.

[PATCH 2/2] regulator: lochnagar: Remove redundant MODULE_ALIAS

2019-01-18 Thread Charles Keepax
The module alias has no effect as the driver can only be loaded through device tree at this time. Signed-off-by: Charles Keepax --- drivers/regulator/lochnagar-regulator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-re

[PATCH 3/3] videobuf2: replace a layering violation with dma_map_resource

2019-01-18 Thread Christoph Hellwig
vb2_dc_get_userptr pokes into arm direct mapping details to get the resemblance of a dma address for a a physical address that does is not backed by a page struct. Not only is this not portable to other architectures with dma direct mapping offsets, but also not to uses of IOMMUs of any kind. Swi

[PATCH 1/3] dma-mapping: remove the default map_resource implementation

2019-01-18 Thread Christoph Hellwig
Instead provide a proper implementation in the direct mapping code, and also wire it up for arm and powerpc, leaving an error return for all the IOMMU or virtual mapping instances for which we'd have to wire up an actual implementation Signed-off-by: Christoph Hellwig --- arch/arm/mm/dma-mapping

[PATCH 2/3] dma-mapping: don't BUG when calling dma_map_resource on RAM

2019-01-18 Thread Christoph Hellwig
Use WARN_ON_ONCE to print a stack trace and return a proper error code instead. Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy --- include/linux/dma-mapping.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mappin

fix a layering violation in videobuf2 and improve dma_map_resource v2

2019-01-18 Thread Christoph Hellwig
Hi all, this series fixes a rather gross layering violation in videobuf2, which pokes into arm DMA mapping internals to get a DMA address for memory that does not have a page structure, and to do so fixes up the dma_map_resource implementation to not provide a somewhat dangerous default and improv

Re: [Xen-devel] [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-18 Thread Julien Grall
(+ Stefano) Hi, Sorry for jumping late in the conversation. On 18/01/2019 09:40, Oleksandr Andrushchenko wrote: On 1/17/19 11:18 AM, Christoph Hellwig wrote: On Wed, Jan 16, 2019 at 06:43:29AM +, Oleksandr Andrushchenko wrote: This whole issue keeps getting more and more confusing. Well

Re: [PATCH v3 2/3] acpi: store acpi_rsdp address for later kexec usage

2019-01-18 Thread Kairui Song
On Fri, Jan 18, 2019 at 7:26 PM Borislav Petkov wrote: > No, this is getting completely nuts: there's a bunch of functions which > all end up returning boot_params's field except pvh_get_root_pointer(). > > And now you're adding a late variant. And the cmdline paramater > acpi_rsdp is in a CONFIG

Re: mtd: rawnand: denali: get ->setup_data_interface() working again

2019-01-18 Thread Boris Brezillon
On Fri, 2019-01-18 at 05:30:38 UTC, Masahiro Yamada wrote: > Commit 7a08dbaedd36 ("mtd: rawnand: Move ->setup_data_interface() to > nand_controller_ops") missed to invert the if-conditonal for denali. > Since then, the Denali NAND driver cannnot invoke setup_data_interface. > > Fixes: 7a08dbaedd36

Re: [for-next][PATCH] x86/Kconfig: Select PCI_LOCKLESS_CONFIG if PCI is enabled

2019-01-18 Thread Rafael J. Wysocki
On Thu, Jan 17, 2019 at 11:10 PM Borislav Petkov wrote: > > On Thu, Jan 17, 2019 at 11:05:43PM +0100, Rafael J. Wysocki wrote: > > I have patches for intel_ips and intel_pmc_ipc queued up (will be > > pushed for -rc3), plus some others. > > Yeah, I saw the patchset and applied some of them locally

Re: [PATCHv2 2/4] arm64: dts: qcom: msm8996: Add Coresight support

2019-01-18 Thread Sai Prakash Ranjan
Hi Suzuki, On 1/18/2019 4:27 PM, Suzuki K Poulose wrote: If you want to use the scatter-gather mode, you must add "arm,scatter-gather" property to the node here. Have you tested the scatter-gather mode on the chip ? Does that work at all ? Note: You could try this by setting a buffer_size

Re: [PATCH 0/4] Allow persistent memory to be used like normal RAM

2019-01-18 Thread Fengguang Wu
With this patch set, an unmodified application would either use: 1) whatever memory it happened to get 2) only the faster dram (via numactl --membind=) 3) only the slower pmem (again, via numactl --membind1) 4) preferentially one or the other (numactl --preferred=) Yet another option: MemoryOp

[PATCH BUGFIX RFC 2/2] Revert "bfq: calculate shallow depths at init time"

2019-01-18 Thread Paolo Valente
This reverts commit f0635b8a416e3b99dc6fd9ac3ce534764869d0c8. --- block/bfq-iosched.c | 117 +--- 1 file changed, 57 insertions(+), 60 deletions(-) diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 8cc3032b66de..92214d58510c 100644 --- a/block/bf

[PATCH BUGFIX RFC 1/2] Revert "bfq-iosched: remove unused variable"

2019-01-18 Thread Paolo Valente
This reverts commit bd7d4ef6a4c9b3611fa487a0065bf042c71ce620. --- block/bfq-iosched.c | 15 --- block/bfq-iosched.h | 6 ++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index cd307767a134..8cc3032b66de 100644 --- a/block

[PATCH BUGFIX RFC 0/2] reverting two commits causing freezes

2019-01-18 Thread Paolo Valente
Hi Jens, a user reported a warning, followed by freezes, in case he increases nr_requests to more than 64 [1]. After reproducing the issues, I reverted the commit f0635b8a416e ("bfq: calculate shallow depths at init time"), plus the related commit bd7d4ef6a4c9 ("bfq-iosched: remove unused variable"

Re: Need help: how to locate failure from irq_chip subsystem

2019-01-18 Thread Sai Prakash Ranjan
On 1/18/2019 4:50 PM, Pintu Agarwal wrote: Could you please tell which QCOM SoC this board is based on? Snapdragon 845 with kernel 4.9.x I want to know from which subsystem it is triggered:drivers/soc/qcom/ Irqchip driver is "drivers/irqchip/irq-gic-v3.c". The kernel you are using is msm-4.

Re: [PATCH v4 0/2] let kexec_file_load use platform keyring to verify the kernel image

2019-01-18 Thread Mimi Zohar
On Fri, 2019-01-18 at 17:17 +0800, Kairui Song wrote: > This patch series adds a .platform_trusted_keys in system_keyring as the > reference to .platform keyring in integrity subsystem, when platform > keyring is being initialized it will be updated. So other component could > use this keyring as w

Re: [PATCH v10 00/27] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM)

2019-01-18 Thread Ulf Hansson
On Thu, 17 Jan 2019 at 18:44, Sudeep Holla wrote: > > On Wed, Jan 16, 2019 at 10:10:08AM +0100, Ulf Hansson wrote: > > On Thu, 3 Jan 2019 at 13:06, Sudeep Holla wrote: > > > > > > On Thu, Nov 29, 2018 at 06:46:33PM +0100, Ulf Hansson wrote: > > > > Over the years this series have been iterated an

Re: [GIT PULL] PHY: For 5.0 -rc

2019-01-18 Thread Greg Kroah-Hartman
On Fri, Jan 18, 2019 at 02:58:12PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the PHY pull request for 5.0 -rc below. > > It fixes a build issue in ahci platform driver caused due to a patch > merged in libahci_platform.c before a dependent patch merged in PHY. > The ahci pla

Re: [PATCH] 8250_pci.c: Update NI specific devices class to multi serial

2019-01-18 Thread Greg KH
On Mon, Jan 14, 2019 at 10:10:05PM +0800, Guan Yung Tseng wrote: > Modified NI devices class to PCI_CLASS_COMMUNICATION_MULTISERIAL. > The reason of doing this is because all NI multi port serial cards > use PCI_CLASS_COMMUNICATION_OTHER class and thus fail the > serial_pci_is_class_communication t

Re: [PATCH 1/1] doc: pinctrl: fix bad reference to pinctrl.txt file

2019-01-18 Thread Charles Keepax
On Wed, Jan 09, 2019 at 08:06:54PM +0100, Otto Sabart wrote: > The pinctrl.txt file was converted into reStructuredText and moved into > driver-api folder. This patch updates the broken reference. > > Fixes: 5a9b73832e9e ("pinctrl.txt: move it to the driver-api book") > Signed-off-by: Otto Sabart

workqueue: Is flush_work() without INIT_WORK() OK?

2019-01-18 Thread Tetsuo Handa
Hello, Tejun. syzbot is reporting "INFO: trying to register non-static key in __flush_work" at https://syzkaller.appspot.com/bug?id=a5954455fcfa51c29ca2ab55b203076337e1c770 , and I think that the caller is passing a work_struct allocated by kzalloc() to flush_work(). But I can't judge which prob

Re: [PATCH 0/3] serdev support for n_gsm

2019-01-18 Thread Greg Kroah-Hartman
On Sun, Jan 13, 2019 at 05:25:25PM -0800, Tony Lindgren wrote: > Hi all, > > Here's a series of patches to add initial serdev support to n_gsm > TS 27.010 line discipline. > > This allows handling vendor specific protocols on top of TS 27.010 and > allows creating simple serdev drivers where it m

Re: perf: rdpmc bug when viewing all procs on remote cpu

2019-01-18 Thread Peter Zijlstra
On Fri, Jan 11, 2019 at 04:52:22PM -0500, Vince Weaver wrote: > On Thu, 10 Jan 2019, Vince Weaver wrote: > > > On Thu, 10 Jan 2019, Vince Weaver wrote: > > > > > On Thu, 10 Jan 2019, Vince Weaver wrote: > > > > > > > However if you create an all-process attached to CPU event: > > > > per

Re: [PATCH] serial: 8250: Fix serial8250 initialization crash

2019-01-18 Thread Greg KH
On Thu, Jan 17, 2019 at 05:00:19PM +0800, zhe...@windriver.com wrote: > From: He Zhe > > The initialization code of interrupt backoff work might reference NULL > pointer and cause the following crash, if no port was found. > > [ 10.017727] CPU 0 Unable to handle kernel paging request at virtua

Re: [PATCHv2 2/4] arm64: dts: qcom: msm8996: Add Coresight support

2019-01-18 Thread Suzuki K Poulose
Hi, On 18/01/2019 11:48, Sai Prakash Ranjan wrote: Hi Suzuki, On 1/18/2019 4:27 PM, Suzuki K Poulose wrote: If you want to use the scatter-gather mode, you must add "arm,scatter-gather" property to the node here. Have you tested the scatter-gather mode on the chip ? Does that work at all ? N

Re: [PATCH v5 3/3] PM/runtime:Replace jiffies based accounting with ktime based accounting

2019-01-18 Thread Guenter Roeck
On 1/18/19 2:42 AM, Vincent Guittot wrote: Hi Guenter, Le Thursday 17 Jan 2019 à 14:16:28 (-0800), Guenter Roeck a écrit : On Fri, Dec 21, 2018 at 11:33:56AM +0100, Vincent Guittot wrote: From: Thara Gopinath This patch replaces jiffies based accounting for runtime_active_time and runtime_su

Re: use generic DMA mapping code in powerpc V4

2019-01-18 Thread Christian Zigotzky
git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a git checkout 257002094bc5935dd63207a380d9698ab81f0775 I get the following error message with your patch: patching file a/kernel/dma/direct.c Hunk #1 FAILED at 118. Hunk #2 FAILED at 139. 2 out of 2 hunks FAILED -- saving r

Re: [PATCH v4 0/2] let kexec_file_load use platform keyring to verify the kernel image

2019-01-18 Thread Kairui Song
On Fri, Jan 18, 2019, 19:54 Mimi Zohar > On Fri, 2019-01-18 at 17:17 +0800, Kairui Song wrote: > > This patch series adds a .platform_trusted_keys in system_keyring as the > > reference to .platform keyring in integrity subsystem, when platform > > keyring is being initialized it will be updated.

Re: [PATCH] x86/fpu: Get rid of CONFIG_AS_FXSAVEQ

2019-01-18 Thread Sebastian Andrzej Siewior
On 2019-01-18 00:24:08 [+0100], Borislav Petkov wrote: > From: Borislav Petkov > > This was a "workaround" to probe for binutils which could generate > FXSAVEQ, apparently gas with min version 2.16. In the meantime, minimal > required gas version is 2.20 so all those workarounds for older binutil

Re: [PATCHv2 2/4] arm64: dts: qcom: msm8996: Add Coresight support

2019-01-18 Thread Sai Prakash Ranjan
Hi Suzuki, On 1/18/2019 5:34 PM, Suzuki K Poulose wrote: If you would like to use the scatter-gather mode, you must specify it explicitly. We have had some other boards with broken scatter-gather mode integration which causes mysterious issues when used. So we have a white-list approach for enab

Re: [PATCH V2] wlcore: sdio: Fixup power on/off sequence

2019-01-18 Thread Jan Kiszka
On 17.01.19 10:54, Ulf Hansson wrote: On Wed, 16 Jan 2019 at 21:26, Jan Kiszka wrote: On 16.01.19 12:37, Ulf Hansson wrote: During "wlan-up", we are programming the FW into the WiFi-chip. However, re-programming the FW doesn't work, unless a power cycle of the WiFi-chip is made in-between the

Re: [PATCH v5 3/3] PM/runtime:Replace jiffies based accounting with ktime based accounting

2019-01-18 Thread Guenter Roeck
On 1/18/19 3:05 AM, Rafael J. Wysocki wrote: On Fri, Jan 18, 2019 at 11:53 AM Vincent Guittot wrote: On Fri, 18 Jan 2019 at 11:42, Vincent Guittot wrote: Hi Guenter, Le Thursday 17 Jan 2019 à 14:16:28 (-0800), Guenter Roeck a écrit : On Fri, Dec 21, 2018 at 11:33:56AM +0100, Vincent Guitt

GPL revocation (GPC-Slots 2): Alex "Skud" Bayley, Leigh Honeywell

2019-01-18 Thread sicevar
Quote: " Then you should have used them. Not necessary, the language used in the press release identifies them easily. should As if I somehow can't just rescind using their names either. License to use/modify/etc the GPC Slots 2 code is hereby terminated for. Alex "Skud" Bayley, and Leigh

[PATCH] iommu/intel: quirk to disable DMAR for QM57 igfx

2019-01-18 Thread Eric Wong
Joonas Lahtinen wrote: > Quoting Eric Wong (2019-01-04 03:06:26) > > Yeah, so the Debian bpo 4.17(.17) kernel did not set > > CONFIG_INTEL_IOMMU_DEFAULT_ON, so I didn't encounter problems. > > My self-built kernels all set CONFIG_INTEL_IOMMU_DEFAULT_ON. > > So it's the case that IOMMU never worke

GPL Revocation - Slashdot

2019-01-18 Thread sicevar
https://slashdot.org/submission/9113350/author-of-program-rescinds-gpl-from-geek-feminists

Re: use generic DMA mapping code in powerpc V4

2019-01-18 Thread Christoph Hellwig
On Fri, Jan 18, 2019 at 01:07:54PM +0100, Christian Zigotzky wrote: > git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a > > git checkout 257002094bc5935dd63207a380d9698ab81f0775 > > > I get the following error message with your patch: Hmm. Did I attached the wrong patch? He

[PATCH v3 20/23] drm/qxl: add mode/framebuffer check functions

2019-01-18 Thread Gerd Hoffmann
Add a helper functions to check video modes. Also add a helper to check framebuffer buffer objects, using the former for consistency. That way we should not fail in qxl_primary_atomic_check() because video modes which are too big will not be added to the mode list in the first place. Signed-off-

[PATCH v3 07/23] drm/qxl: allow both PRIV and VRAM placement for QXL_GEM_DOMAIN_SURFACE

2019-01-18 Thread Gerd Hoffmann
qxl surfaces (used for framebuffers and gem objects) can live in both VRAM and PRIV ttm domains. Update placement setup to include both. Put PRIV first in the list so it is preferred, so VRAM will have more room for objects which must be allocated there. Signed-off-by: Gerd Hoffmann --- drivers

[PATCH v3 05/23] drm/qxl: drop unused fields from struct qxl_device

2019-01-18 Thread Gerd Hoffmann
slot_id_bits and slot_gen_bits can be read directly from qxlrom instead. va_slot_mask is never used anywhere. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 3 --- drivers/gpu/drm/qxl/qxl_kms.c | 10 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/dr

[PATCH v3 23/23] drm/qxl: add overflow checks to qxl_mode_dumb_create()

2019-01-18 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_dumb.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_dumb.c b/drivers/gpu/drm/qxl/qxl_dumb.c index 272d19b677..bed6d06ee4 100644 --- a/drivers/gpu/drm/qxl/qxl_dumb.c +++ b/drivers/gpu

[PATCH v3 14/23] drm/qxl: cover all crtcs in shadow bo.

2019-01-18 Thread Gerd Hoffmann
The qxl device supports only a single active framebuffer ("primary surface" in spice terminology). In multihead configurations are handled by defining rectangles within the primary surface for each head/crtc. Userspace which uses the qxl ioctl interface (xorg qxl driver) is aware of this limitati

[PATCH v3 03/23] drm/qxl: simplify slot management

2019-01-18 Thread Gerd Hoffmann
Drop pointless indirection, remove the mem_slots array and index variables, drop dynamic allocation. Store memslots in qxl_device instead. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 15 + drivers/gpu/drm/qxl/qxl_kms.c | 72 +-

[PATCH v3 10/23] drm/qxl: move qxl_primary_apply_cursor to correct place

2019-01-18 Thread Gerd Hoffmann
The cursor must be set again after creating the primary surface. Also drop the error message. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl

[PATCH v3 22/23] drm/qxl: use kernel mode db

2019-01-18 Thread Gerd Hoffmann
Add all standard modes from the kernel's video mode data base. Keep a few non-standard modes in the qxl mode list. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 27 +++ 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/q

[PATCH v3 11/23] drm/qxl: drop unused offset parameter from qxl_io_create_primary()

2019-01-18 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 1 - drivers/gpu/drm/qxl/qxl_cmd.c | 7 +++ drivers/gpu/drm/qxl/qxl_display.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 27e

[PATCH v3 19/23] drm/qxl: implement qxl_gem_prime_(un)pin

2019-01-18 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_prime.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_prime.c b/drivers/gpu/drm/qxl/qxl_prime.c index 708378844c..22e1faf047 100644 --- a/drivers/gpu/drm/qxl/qxl_prime.c +++ b/drivers

[PATCH v3 04/23] drm/qxl: change the way slot is detected

2019-01-18 Thread Gerd Hoffmann
From: Frediano Ziglio Instead of relaying on surface type use the actual placement. This allow to have different placement for a single type of surface. Signed-off-by: Frediano Ziglio [ kraxel: rebased, adapted to upstream changes ] Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_d

[PATCH v3 13/23] drm/qxl: use shadow bo directly

2019-01-18 Thread Gerd Hoffmann
Pass the shadow bo to qxl_io_create_primary() instead of expecting qxl_io_create_primary to check bo->shadow. Set is_primary flag on the shadow bo. Move the is_primary tracking into qxl_io_create_primary() and qxl_io_destroy_primary() functions. That simplifies primary surface tracking and the w

[PATCH v3 02/23] drm/qxl: drop unused qxl_fb_virtual_address

2019-01-18 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 38c5a8b1df..7eabf4a9ed 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h +++ b/drivers/gpu/drm/qxl/qxl_drv.h @@ -30

[PATCH v3 15/23] drm/qxl: use qxl_num_crtc directly

2019-01-18 Thread Gerd Hoffmann
qdev->monitors_config->max_allowed is effectively set by the qxl.num_heads module parameter, stored in the qxl_num_crtc variable. Lets get rid of the indirection and use the variable qxl_num_crtc directly. The kernel doesn't need to dereference pointers each time it needs the value, and when readi

[PATCH v3 16/23] drm/qxl: implement prime kmap/kunmap

2019-01-18 Thread Gerd Hoffmann
Generic fbdev emulation needs this. Also: We must keep track of the number of mappings now, so we don't unmap early in case two users want a kmap of the same bo. Add a sanity check to destroy callback to make sure kmap/kunmap is balanced. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qx

[PATCH v3 17/23] drm/qxl: use generic fbdev emulation

2019-01-18 Thread Gerd Hoffmann
Switch qxl over to the new generic fbdev emulation. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 7 --- drivers/gpu/drm/qxl/qxl_drv.c | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qx

[PATCH v3 08/23] drm/qxl: use QXL_GEM_DOMAIN_SURFACE for shadow bo.

2019-01-18 Thread Gerd Hoffmann
The shadow bo is used as qxl surface, so allocate it as QXL_GEM_DOMAIN_SURFACE. Should usually be allocated in PRIV ttm domain then, so this reduces VRAM memory pressure. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH v3 09/23] drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects

2019-01-18 Thread Gerd Hoffmann
dumb buffers are used as qxl surfaces, so allocate them as QXL_GEM_DOMAIN_SURFACE. Should usually be allocated in PRIV ttm domain then, so this reduces VRAM memory pressure. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_dumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH v3 18/23] drm/qxl: remove dead qxl fbdev emulation code

2019-01-18 Thread Gerd Hoffmann
Lovely diffstat, thanks to the new generic fbdev emulation. drm/qxl/Makefile |2 drm/qxl/qxl_draw.c | 232 drm/qxl/qxl_drv.h | 21 --- drm/qxl/qxl_fb.c | 300 - Signed-off-by: Gerd Hoffmann

[PATCH v3 21/23] drm/qxl: add qxl_add_mode helper function

2019-01-18 Thread Gerd Hoffmann
Add a helper function to add custom video modes to a connector. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 84 +++ 1 file changed, 49 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qx

[PATCH v3 12/23] drm/qxl: track primary bo

2019-01-18 Thread Gerd Hoffmann
Track which bo is used as primary surface. With that in place we don't need the primary_created flag any more, we can just check the primary bo pointer instead. Also verify we don't already have a primary surface in qxl_io_create_primary(). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/

[PATCH v3 06/23] drm/qxl: use separate offset spaces for the two slots / ttm memory types.

2019-01-18 Thread Gerd Hoffmann
Without that ttm offsets are not unique, they can refer to objects in both VRAM and PRIV memory (aka main and surfaces slot). One of those "why things didn't blow up without this" moments. Probably offset conflicts are rare enough by pure luck. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/q

[PATCH v3 01/23] drm/qxl: drop ttm_mem_reg arg from qxl_hw_surface_alloc()

2019-01-18 Thread Gerd Hoffmann
Not used, is always NULL. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h| 3 +-- drivers/gpu/drm/qxl/qxl_cmd.c| 14 ++ drivers/gpu/drm/qxl/qxl_object.c | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/dr

[PATCHv3 2/4] arm64: dts: qcom: msm8996: Add Coresight support

2019-01-18 Thread Sai Prakash Ranjan
From: Vivek Gautam Enable coresight support by adding device nodes for the available source, sinks and channel blocks on msm8996. This also adds coresight cpu debug nodes. Signed-off-by: Vivek Gautam Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 448 ++

Re: bisected: ttyS panic on pa-risc

2019-01-18 Thread Greg Kroah-Hartman
On Thu, Jan 10, 2019 at 05:54:50PM +0200, Meelis Roos wrote: > My HP 9000 A500 (pa-risc architecture) paniced in 5.0-rc1. It happened after > printing dmesg lines about ttyS and before moving on to scsi printk-s. > I bisected it and the panic symptoms changed during that (some had backtrace, > so

[PATCHv3 1/4] arm64: dts: qcom: sdm845: Add Coresight support

2019-01-18 Thread Sai Prakash Ranjan
Add coresight components found on Qualcomm SDM845 SoC. Signed-off-by: Sai Prakash Ranjan --- This depends on AMBA bus pclk change by Bjorn Andersson [1]. Also depends on patch ("arm64: dts: qcom: sdm845: Increase address and size cells for soc") [2]. [1] https://lore.kernel.org/lkml/2019010608

[PATCHv3 0/4] Add coresight support for SDM845 and MSM8996

2019-01-18 Thread Sai Prakash Ranjan
This patch series adds support for coresight on SDM845 and MSM8996. * Patch 1 adds device tree nodes for SDM845 coresight components. * Patch 2 adds device tree nodes for MSM8996 coresight components. * Patch 3 enables support for ETMv4.2 and enables SDM845 to make use of same driver(etm4x).

[PATCHv3 3/4] coresight: etm4x: Add support to enable ETMv4.2

2019-01-18 Thread Sai Prakash Ranjan
SDM845 has ETMv4.2 and can use the existing etm4x driver. But the current etm driver checks only for ETMv4.0 and errors out for other etm4x versions. This patch adds this missing support to enable SoC's with ETMv4x to use same driver by checking only the ETM architecture major version number. With

[PATCHv3 4/4] arm64: dts: qcom: sdm845: Remove the duplicate header inclusion

2019-01-18 Thread Sai Prakash Ranjan
Remove the duplicate inclusion of qcom,gcc-sdm845.h mistakenly introduced by commit 6e17f8140521 ("arm64: dts: sdm845: add prng-ee node"). Signed-off-by: Sai Prakash Ranjan Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/

Re: [PATCH v5 04/14] spmi: pmic-arb: convert to v2 irq interfaces to support hierarchical IRQ chips

2019-01-18 Thread Brian Masney
Hi Marc, On Thu, Jan 17, 2019 at 11:22:59AM +, Marc Zyngier wrote: > > -static int qpnpint_irq_domain_map(struct irq_domain *d, > > - unsigned int virq, > > - irq_hw_number_t hwirq) > > -{ > > - struct spmi_pmic_arb *pmic_arb = d->host_

[PATCH 0/5] sched refcount_t conversions

2019-01-18 Thread Elena Reshetova
I would really love finally to merge these old patches (now rebased on top of linux-next/master as of last friday), since as far as I remember none has raised any more concerns on them. refcount_t has been now successfully used in kernel in many places, helped to detect bugs and mistakes in logic

[PATCH 5/5] sched/task_struct: convert task_struct.stack_refcount to refcount_t

2019-01-18 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 2/5] sched: convert signal_struct.sigcnt to refcount_t

2019-01-18 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 1/5] sched: convert sighand_struct.count to refcount_t

2019-01-18 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 4/5] sched/task_struct: convert task_struct.usage to refcount_t

2019-01-18 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 3/5] sched: convert numa_group.refcount to refcount_t

2019-01-18 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

<    1   2   3   4   5   6   7   8   9   10   >