Re: [PATCH] drivers/s390/char/tty3270: Remove function callback casts

2020-07-04 Thread Oscar Carter
On Sat, Jun 27, 2020 at 09:10:56AM -0700, Kees Cook wrote: > On Sat, Jun 27, 2020 at 02:54:17PM +0200, Oscar Carter wrote: > > In an effort to enable -Wcast-function-type in the top-level Makefile to > > support Control Flow Integrity builds, remove all the function callback > > casts. > > > > To d

[PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init

2020-07-04 Thread Konrad Dybcio
This adds the downstream property required to support SMMUs on SDM630 and other platforms (the need for it most likely depends on firmware configuration). Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/iommu/arm,smmu.yaml | 10 ++ drivers/iommu/arm-smmu.c

Re: [PATCH 06/17] Documentation/driver-api: generic-counter: drop doubled word

2020-07-04 Thread William Breathitt Gray
On Fri, Jul 03, 2020 at 08:44:51PM -0700, Randy Dunlap wrote: > Drop the doubled word "the". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: William Breathitt Gray > Cc: linux-...@vger.kernel.org > --- > Documentation/driver-api/generic-counter.rst |

Re: [PATCH 00/17] Documentation/driver-api: eliminate duplicated words

2020-07-04 Thread William Breathitt Gray
On Fri, Jul 03, 2020 at 08:44:45PM -0700, Randy Dunlap wrote: > Remove occurrences of duplicated words in Documentation/driver-api/. > > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: Vinod Koul > Cc: dmaeng...@vger.kernel.org > Cc: Luis Chamberlain > Cc: Greg Kroah-Hartman > Cc: Wi

Re: ptrace: seccomp: Return value when the call was already invalid

2020-07-04 Thread Will Deacon
On Fri, Jul 03, 2020 at 08:52:05AM -0700, Kees Cook wrote: > On Fri, Jul 03, 2020 at 04:44:27PM +0100, Will Deacon wrote: > > On Fri, Jul 03, 2020 at 08:17:19AM -0700, Kees Cook wrote: > > > On Fri, Jul 03, 2020 at 09:39:14AM +0100, Will Deacon wrote: > > > > diff --git a/arch/arm64/kernel/syscall.

Re: [PATCH 4/9] media: add Mediatek's MM21 format

2020-07-04 Thread Alexandre Courbot
On Fri, Jul 3, 2020 at 5:39 PM Hans Verkuil wrote: > > On 30/06/2020 08:27, Alexandre Courbot wrote: > > Add Mediatek's non-compressed 8 bit block video mode. This format is > > produced by the MT8183 codec and can be converted to a non-proprietary > > format by the MDP3 component. > > > > Signed-

Re: [PATCH v2 16/18] media: mtk-vcodec: venc: make S_PARM return -ENOTTY for CAPTURE queue

2020-07-04 Thread Alexandre Courbot
On Fri, Jul 3, 2020 at 5:30 PM Hans Verkuil wrote: > > On 26/06/2020 10:04, Alexandre Courbot wrote: > > v4l2-compliance expects ENOTTY to be returned when a given queue does > > not support S_PARM. > > > > Signed-off-by: Alexandre Courbot > > --- > > drivers/media/platform/mtk-vcodec/mtk_vcodec

Re: [PATCH v29 00/16] Multicolor Framework v29

2020-07-04 Thread Pavel Machek
Hi! > This is the multi color LED framework. This framework presents clustered > colored LEDs into an array and allows the user space to adjust the brightness > of the cluster using a single file write. The individual colored LEDs > intensities are controlled via a single file that is an array

Re: [PATCH v29 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-07-04 Thread Pavel Machek
Hi! > Add DT bindings for the LEDs multicolor class framework. > Add multicolor ID to the color ID list for device tree bindings. Rob, can we get some reviews here? It would be good to move this forward. Best regards, Pavel > CC: R

Re: ptrace: seccomp: Return value when the call was already invalid

2020-07-04 Thread Will Deacon
On Fri, Jul 03, 2020 at 04:27:37PM -0400, Keno Fischer wrote: > > > Now, if we have a seccomp filter that simply does > > > SECCOMP_RET_TRACE, and a ptracer that simply > > > does PTRACE_CONT > > > > Ok, so this means that we're _skipping_ the system call, right? > > If the system call were positi

Re: [PATCH RFC] leds: Add support for per-LED device triggers

2020-07-04 Thread Pavel Machek
Hi! > Some criticism to this approach to HW triggers: > - every hw trigger for each LED has to be registered via current trigger > API. This will grow code size and memory footprint once this API is > widely used > - one HW trigger can only master one LED device (via private_led > member). S

[GIT PULL] arm64 fixes for -rc4

2020-07-04 Thread Will Deacon
Hi Linus, Please pull these arm64 fixes for -rc4. Nothing Earth-shattering, really; some CPU errata workarounds (one day they'll get it right, ha!) and a fix for a boot failure with very large kernel images where the alternative patching gets confused when patching relative branches using veneers.

Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init

2020-07-04 Thread Will Deacon
[Adding Bjorn, Jordan and John because I really don't want a bunch of different ways to tell the driver that the firmware is screwing things up] On Sat, Jul 04, 2020 at 02:28:09PM +0200, Konrad Dybcio wrote: > This adds the downstream property required to support > SMMUs on SDM630 and other platfo

Re: [PATCH v14 15/20] mm/swap: serialize memcg changes during pagevec_lru_move_fn

2020-07-04 Thread Alex Shi
在 2020/7/4 下午7:39, Matthew Wilcox 写道: > On Sat, Jul 04, 2020 at 07:34:59PM +0800, Alex Shi wrote: >> That's a great idea! Guess what the new struct we need would be like this? >> I like to try this. :) >> >> >> diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h >> index 081d934eda64.

Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init

2020-07-04 Thread Konrad Dybcio
> It would probably be better to know _which_ context banks we shouldn't > touch, no? Otherwise what happens to the others? > Do we not need to worry about the SMRs as well? This was mimicked from CAF (think [1]) and the SMMUs don't make the hypervisor angry anymore, so I wouldn't be too picky on

Re: [PATCH ghak90 V9 02/13] audit: add container id

2020-07-04 Thread Paul Moore
On Sat, Jun 27, 2020 at 9:22 AM Richard Guy Briggs wrote: > > Implement the proc fs write to set the audit container identifier of a > process, emitting an AUDIT_CONTAINER_OP record to document the event. > > This is a write from the container orchestrator task to a proc entry of > the form /proc/

Re: [PATCH ghak90 V9 02/13] audit: add container id

2020-07-04 Thread Paul Moore
On Sat, Jul 4, 2020 at 9:29 AM Paul Moore wrote: > On Sat, Jun 27, 2020 at 9:22 AM Richard Guy Briggs wrote: > > > > Implement the proc fs write to set the audit container identifier of a > > process, emitting an AUDIT_CONTAINER_OP record to document the event. Sorry about the email misfire, you

[GIT PULL] Please pull powerpc/linux.git powerpc-5.8-5 tag

2020-07-04 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.8: The following changes since commit 896066aa0685af3434637998b76218c2045142a8: selftests/powerpc: Fix build failure in ebb tests (2020-06-26 12:53:09 +1000) are available in the git repositor

Re: [PATCH v14 15/20] mm/swap: serialize memcg changes during pagevec_lru_move_fn

2020-07-04 Thread Matthew Wilcox
On Sat, Jul 04, 2020 at 09:12:46PM +0800, Alex Shi wrote: > 在 2020/7/4 下午7:39, Matthew Wilcox 写道: > > On Sat, Jul 04, 2020 at 07:34:59PM +0800, Alex Shi wrote: > >> That's a great idea! Guess what the new struct we need would be like this? > >> I like to try this. :) > >> > >> > >> diff --git a/inc

Re: Are there some potentially serious problems that I should be aware of if I totally disable the CONFIG_ACPI option on the X86_64 platform?

2020-07-04 Thread 孙世龙 sunshilong
Thank you for taking the time to respond to me. >These machines are still mostly IBM-PC compatible, so it is likely to >somehow work. You'll likely get worse power and thermal >management. Try it. It's an industrial personal computer with an Intel processor. What I am worried about is that it may

Re: [PATCH 17/17] Documentation/driver-api: xillybus: drop doubled word

2020-07-04 Thread Eli Billauer
Acked-by: Eli Billauer On 04/07/20 06:45, Randy Dunlap wrote: Drop the doubled word "the". Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org Cc: Eli Billauer --- Documentation/driver-api/xillybus.rst |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- l

[PATCH] mac80211: mesh: Free ie data when leaving mesh

2020-07-04 Thread Remi Pommarel
At ieee80211_join_mesh() some ie data could have been allocated (see copy_mesh_setup()) and need to be cleaned up when leaving the mesh. This fixes the following kmemleak report: unreferenced object 0x116bc600 (size 128): comm "wpa_supplicant", pid 608, jiffies 4294898983 (age 293.484s)

[PATCH] mac80211: mesh: Free pending skb when destroying a mpath

2020-07-04 Thread Remi Pommarel
A mpath object can hold reference on a list of skb that are waiting for mpath resolution to be sent. When destroying a mpath this skb list should be cleaned up in order to not leak memory. Fixing that kind of leak: unreferenced object 0x181c9300 (size 1088): comm "openvpn", pid 1782, ji

Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-07-04 Thread Ard Biesheuvel
On Sat, 4 Jul 2020 at 14:09, Will Deacon wrote: > > On Fri, Jul 03, 2020 at 05:47:24PM -0700, Saravana Kannan wrote: > > On Thu, Jul 2, 2020 at 8:30 AM Ard Biesheuvel wrote: > > > On Tue, 23 Jun 2020 at 03:27, Saravana Kannan > > > wrote: > > > > diff --git a/arch/arm64/kernel/module-plts.c >

[PATCH 1/3] readfile: implement readfile syscall

2020-07-04 Thread Greg Kroah-Hartman
It's a tiny syscall, meant to allow a user to do a single "open this file, read into this buffer, and close the file" all in a single shot. Should be good for reading "tiny" files like sysfs, procfs, and other "small" files. There is no restarting the syscall, this is a "simple" syscall, with the

[PATCH 3/3] selftests: add readfile(2) selftests

2020-07-04 Thread Greg Kroah-Hartman
Test the functionality of readfile(2) in various ways. Also provide a simple speed test program to benchmark using readfile() instead of using open()/read()/close(). Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/readfile/.gi

[PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-04 Thread Greg Kroah-Hartman
Here is a tiny new syscall, readfile, that makes it simpler to read small/medium sized files all in one shot, no need to do open/read/close. This is especially helpful for tools that poke around in procfs or sysfs, making a little bit of a less system load than before, especially as syscall overhea

[PATCH 2/3] arch: wire up the readfile syscall

2020-07-04 Thread Greg Kroah-Hartman
This wires up the readfile syscall for all architectures Signed-off-by: Greg Kroah-Hartman --- arch/alpha/kernel/syscalls/syscall.tbl | 1 + arch/arm/tools/syscall.tbl | 1 + arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h | 2

[PATCH] readfile.2: new page describing readfile(2)

2020-07-04 Thread Greg Kroah-Hartman
readfile(2) is a new syscall to remove the need to do the open/read/close dance for small virtual files in places like procfs or sysfs. Signed-off-by: Greg Kroah-Hartman --- This patch is for the man-pages project, not the kernel source tree man2/readfile.2 | 159 ++

Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-04 Thread Sven Van Asbroeck
Hi Fabio, Andy, On Thu, Jul 2, 2020 at 6:29 PM Fabio Estevam wrote: > > With the device tree approach, I think that a better place to touch > GPR5 would be inside the fec driver. > Are we 100% sure this is the best way forward, though? All the FEC driver should care about is the FEC logic block

Re: [PATCH net-next v2 0/7] Add devlink-health support for devlink ports

2020-07-04 Thread Jiri Pirko
Sat, Jul 04, 2020 at 01:44:39AM CEST, k...@kernel.org wrote: >On Fri, 3 Jul 2020 06:27:31 +0300 Moshe Shemesh wrote: >> Implement support for devlink health reporters on per-port basis. First >> part in the series prepares common functions parts for health reporter >> implementation. Second introd

mainline/master bisection: baseline.dmesg.crit on qemu_arm-vexpress-a15

2020-07-04 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the problem

[PATCH] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-04 Thread Guenter Roeck
The EC reports a variety of error codes. Most of those, with the exception of EC_RES_INVALID_VERSION, are converted to -EPROTO. As result, the actual error code gets lost. Convert all EC errors to Linux error codes to report a more meaningful error to the caller to aid debugging. Cc: Yu-Hsuan Hsu

RE: [PATCH v2] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-07-04 Thread M Tamseel Shams
> On Sun, Jun 28, 2020 at 12:30:07PM +0530, Tamseel Shams wrote: > > In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP > > is having 2 interrupt lines. > > However, in other SoCs like s3c6400, s5pv210, exynos5433, and > > exynos4210 UART is having only 1 interrupt line. Due to th

[PATCH v3] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-07-04 Thread Tamseel Shams
In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP is having 2 interrupt lines. However, in other SoCs like s3c6400, s5pv210, exynos5433, and exynos4210 UART is having only 1 interrupt line. Due to this, "platform_get_irq(platdev, 1)" call in the driver gives the following warning

Re: [PATCH] nfsd: Use seq_putc() in two functions

2020-07-04 Thread Chuck Lever
Hi- > On Jun 17, 2020, at 9:56 PM, Xu Wang wrote: > > A single character (line break) should be put into a sequence. > Thus use the corresponding function "seq_putc()". > > Signed-off-by: Xu Wang Applied to nfsd-5.9. Thanks. > --- > fs/nfsd/nfs4idmap.c | 4 ++-- > 1 file changed, 2 insertion

Re: [PATCH v4 1/9] bus: mhi: core: Remove double occurrence for mhi_ctrl_ev_task() declaration

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:34AM -0700, Bhaumik Bhatt wrote: > mhi_ctrl_ev_task() in the internal header file occurred twice. > Remove one of the occurrences for clean-up. > > Signed-off-by: Bhaumik Bhatt Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/bus/mhi/core/internal

Re: [PATCH v4 2/9] bus: mhi: core: Abort suspends due to outgoing pending packets

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:35AM -0700, Bhaumik Bhatt wrote: > Add the missing check to abort suspends if a client has pending outgoing > packets to send to the device. This allows better utilization of the MHI > bus wherein clients on the host are not left waiting for longer suspend > or resume

Re: [PATCH v2] HID: logitech-hidpp: add support for Logitech G533 headset

2020-07-04 Thread Filipe Laíns
On Sat, 2020-07-04 at 02:37 +0200, Kamil Domański wrote: > Hi Filipe, > > > My main point here is that long means different things in different > > architectures, and we only want one byte so I would go for u8. > > I used long, because the test_bit macro accepts long and the similar > function fo

Re: [PATCH v4 3/9] bus: mhi: core: Use helper API to trigger a non-blocking host resume

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:36AM -0700, Bhaumik Bhatt wrote: > Autonomous low power mode support requires the MHI host to resume from > multiple places and post a wakeup source to exit system suspend. This > needs to be done in a non-blocking manner. Introduce a helper API to > trigger the host r

NICE DAY

2020-07-04 Thread Nayef Abu Sakran
Do you received the mail i send to you?

Re: [PATCH V1 0/5] riscv: Add k/uprobe supported

2020-07-04 Thread Guo Ren
Hi Pekka, On Sat, Jul 4, 2020 at 2:40 PM Pekka Enberg wrote: > > On Sat, Jul 4, 2020 at 6:34 AM wrote: > > The patchset includes kprobe/uprobe support and some related fixups. > > Nice! > > On Sat, Jul 4, 2020 at 6:34 AM wrote: > > There is no single step exception in riscv ISA, so utilize ebre

Re: [PATCH v3] HID: logitech-hidpp: add support for Logitech G533 headset

2020-07-04 Thread Filipe Laíns
On Sat, 2020-07-04 at 02:47 +0200, Kamil Domański wrote: > Changelog: > v2: > - changed charging status parsing to account for invalid states > v3: > - rebased against Linux v5.7 > - changed variable naming in hidpp20_adc_map_status_voltage > to camel case > - corrected comment styl

Re: [PATCH v4 4/9] bus: mhi: core: Trigger a host resume when device vote is requested

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:37AM -0700, Bhaumik Bhatt wrote: > It is possible that the host may be suspending or suspended and may > not allow an outgoing device wake assert immediately if a client has > requested for it. Ensure that the host wakes up and allows for it so > the client does not ha

Re: [PATCH v2 13/14] [DO NOT MERGE] arm64: dts: allwinner: h6: Add GPU OPP table

2020-07-04 Thread Clément Péron
Hi Maxime, On Sat, 4 Jul 2020 at 14:13, Maxime Ripard wrote: > > Hi, > > On Sat, Jul 04, 2020 at 12:25:34PM +0200, Clément Péron wrote: > > Add an Operating Performance Points table for the GPU to > > enable Dynamic Voltage & Frequency Scaling on the H6. > > > > The voltage range is set with mini

Re: [PATCH v4 05/18] nitro_enclaves: Handle PCI device command requests

2020-07-04 Thread Paraschiv, Andra-Irina
On 02/07/2020 18:19, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves PCI device exposes a MMIO space that this driver uses to submit command requests and to receive command replies e.g. for enclave creation / termination or setting enclave resources. Add

Re: [PATCH v4 5/9] bus: mhi: core: Use generic name field for an MHI device

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:38AM -0700, Bhaumik Bhatt wrote: > An MHI device is not necessarily associated with only channels as we can > have one associated with the controller itself. Hence, the chan_name > field within the mhi_device structure should instead be replaced with a > generic name t

Re: [PATCH 4/4] X86: Use KVM CR pin MSRs

2020-07-04 Thread Arvind Sankar
On Fri, Jul 03, 2020 at 09:48:14PM +, Andersen, John wrote: > > > Is there a plan for fixing this for real? I'm wondering if there is a > > > sane weakening of this feature that still allows things like kexec. > > > > > > > I'm pretty sure kexec can be fixed. I had it working at one point, I

Re: [PATCH v4 6/9] bus: mhi: core: Introduce helper function to check device state

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:39AM -0700, Bhaumik Bhatt wrote: > Introduce a helper function to determine whether the device is in a > powered ON state and resides in one of the active MHI states. This will > allow for some use cases where access can be pre-determined. > > Signed-off-by: Bhaumik B

Bought Samsung Galaxy S20+ at ZERO DOLLAR on 2nd July 2020 Thursday

2020-07-04 Thread Turritopsis Dohrnii Teo En Ming
Subject: Bought Samsung Galaxy S20+ at ZERO DOLLAR on 2nd July 2020 Thursday Mr. Turritopsis Dohrnii Teo En Ming (Singaporean Targeted Individual) bought a Samsung Galaxy S20+ at ZERO DOLLAR on 2nd July 2020 Thursday. It is an Android 10 smartphone. Android is based on Linux. The Linux Kernel

Re: [PATCH] dt-bindings: iio: bmc150_magn: Document missing compatibles

2020-07-04 Thread Jonathan Cameron
On Mon, 29 Jun 2020 08:49:25 +0200 Krzysztof Kozlowski wrote: > On Sat, Jun 27, 2020 at 03:57:14PM +0100, Jonathan Cameron wrote: > > On Mon, 22 Jun 2020 07:19:40 +0200 > > Krzysztof Kozlowski wrote: > > > > > On Sat, Jun 20, 2020 at 04:40:49PM +0100, Jonathan Cameron wrote: > > > > On Wed,

Re: [PATCH v6 1/3] iio: adc: rockchip_saradc: move all of probe to devm-functions

2020-07-04 Thread Jonathan Cameron
On Fri, 03 Jul 2020 09:48:42 +0200 Heiko Stuebner wrote: > Am Samstag, 27. Juni 2020, 14:03:29 CEST schrieb Jonathan Cameron: > > On Wed, 24 Jun 2020 01:30:09 +0200 > > Heiko Stuebner wrote: > > > > > From: Heiko Stuebner > > > > > > Parts of the saradc probe rely on devm functions and late

Re: [PATCH v4 7/9] bus: mhi: core: Introduce debugfs entries and counters for MHI

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:40AM -0700, Bhaumik Bhatt wrote: > Introduce debugfs entries to show state, register, channel, and event > ring information. Add MHI state counters to keep track of the state > changes on the device. Also, allow the host to trigger a device reset, > issue votes, and ch

Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support

2020-07-04 Thread Uwe Kleine-König
On Sat, Jul 04, 2020 at 02:23:09PM +0300, Andy Shevchenko wrote: > On Fri, Jul 3, 2020 at 5:53 PM Uwe Kleine-König > wrote: > > On Sun, May 03, 2020 at 12:54:53PM +0200, Miquel Raynal wrote: > > ... > > > > + ret = regmap_read(pca_chip->regmap, reg, &val); > > > + mutex_unlock(&pca_chip-

Re: [PATCH v4 06/18] nitro_enclaves: Handle out-of-band PCI device events

2020-07-04 Thread Paraschiv, Andra-Irina
On 02/07/2020 18:24, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: In addition to the replies sent by the Nitro Enclaves PCI device in response to command requests, out-of-band enclave events can happen e.g. an enclave crashes. In this case, the Nitro Enclaves driver needs

Re: [PATCH v14 15/20] mm/swap: serialize memcg changes during pagevec_lru_move_fn

2020-07-04 Thread Alex Shi
在 2020/7/4 下午9:33, Matthew Wilcox 写道: > On Sat, Jul 04, 2020 at 09:12:46PM +0800, Alex Shi wrote: >> 在 2020/7/4 下午7:39, Matthew Wilcox 写道: >>> On Sat, Jul 04, 2020 at 07:34:59PM +0800, Alex Shi wrote: That's a great idea! Guess what the new struct we need would be like this? I like to

Re: [PATCH v4 8/9] bus: mhi: core: Read and save device hardware information from BHI

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:41AM -0700, Bhaumik Bhatt wrote: > Device hardware specific information such as serial number and the OEM > PK hash can be read using BHI and saved on host to identify the > endpoint. > > Signed-off-by: Bhaumik Bhatt > Reviewed-by: Jeffrey Hugo Reviewed-by: Manivan

Re: [PATCH v3 13/16] exit: Factor thread_group_exited out of pidfd_poll

2020-07-04 Thread Christian Brauner
On Fri, Jul 03, 2020 at 04:37:47PM -0500, Eric W. Biederman wrote: > Alexei Starovoitov writes: > > > On Thu, Jul 02, 2020 at 11:41:37AM -0500, Eric W. Biederman wrote: > >> Create an independent helper thread_group_exited report return true > >> when all threads have passed exit_notify in do_exi

[PATCH v2] parisc/kernel/ftrace: Remove function callback casts

2020-07-04 Thread Oscar Carter
In an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds, remove all the function callback casts. To do this add an inline function helper to get the address of a function. This helper uses the "dereference_function_descriptor" as the parisc64

Re: [PATCH v4 9/9] bus: mhi: core: Introduce sysfs entries for MHI

2020-07-04 Thread Manivannan Sadhasivam
On Mon, Jun 29, 2020 at 09:39:42AM -0700, Bhaumik Bhatt wrote: > Introduce sysfs entries to enable userspace clients the ability to read > the serial number and the OEM PK Hash values obtained from BHI. OEMs > need to read these device-specific hardware information values through > userspace for fa

Re: [PATCH v3 13/16] exit: Factor thread_group_exited out of pidfd_poll

2020-07-04 Thread Christian Brauner
On Thu, Jul 02, 2020 at 11:41:37AM -0500, Eric W. Biederman wrote: > Create an independent helper thread_group_exited report return true s/report return/which reports/ > when all threads have passed exit_notify in do_exit. AKA all of the > threads are at least zombies and might be dead or comple

Re: [PATCH] net: fm10k: check size from dma region

2020-07-04 Thread Alexander Duyck
On Fri, Jul 3, 2020 at 11:21 AM Zekun Shen wrote: > > Size is read from a dma region as input from device. Add sanity > check of size before calling dma_sync_single_range_for_cpu > with it. > > This would prevent DMA-API warning: device driver tries to sync DMA > memory it has not allocated. > > S

Re: [PATCH 06/17] Documentation/driver-api: generic-counter: drop doubled word

2020-07-04 Thread Jonathan Cameron
On Sat, 4 Jul 2020 08:30:41 -0400 William Breathitt Gray wrote: > On Fri, Jul 03, 2020 at 08:44:51PM -0700, Randy Dunlap wrote: > > Drop the doubled word "the". > > > > Signed-off-by: Randy Dunlap > > Cc: Jonathan Corbet > > Cc: linux-...@vger.kernel.org > > Cc: William Breathitt Gray > > Cc:

Re: [PATCH 07/17] Documentation/driver-api: iio/buffers: drop doubled word

2020-07-04 Thread Jonathan Cameron
On Fri, 3 Jul 2020 20:44:52 -0700 Randy Dunlap wrote: > Drop the doubled word "struct". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: William Breathitt Gray > Cc: linux-...@vger.kernel.org Applied to the togreg branch of iio.git. Thanks, Jonath

Re: [PATCH v3] firewire: Remove function callback casts

2020-07-04 Thread Oscar Carter
Hi, Anyone has had time to review this patch? Any comments on this? On Sat, May 30, 2020 at 11:08:39AM +0200, Oscar Carter wrote: > In 1394 OHCI specification, Isochronous Receive DMA context has several > modes. One of mode is 'BufferFill' and Linux FireWire stack uses it to > receive isochronou

Re: [PATCH] Replace HTTP links with HTTPS ones: drivers/iio

2020-07-04 Thread Jonathan Cameron
On Sat, 4 Jul 2020 00:31:24 +0200 "Alexander A. Klimov" wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't

Re: [PATCH] iio: light: stk3310: add chip id for STK3311-X variant

2020-07-04 Thread Jonathan Cameron
On Fri, 3 Jul 2020 21:44:05 +0200 Ondrej Jirman wrote: > From: Icenowy Zheng > > The STK3311 chip has a variant called STK3311-X, which has a different > chip id of 0x12. > > Add the chip id to the driver. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Ondrej Jirman Given this is clear

Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/iio

2020-07-04 Thread Jonathan Cameron
On Fri, 3 Jul 2020 20:57:25 +0200 "Alexander A. Klimov" wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't

Re: [PATCH] net: fm10k: check size from dma region

2020-07-04 Thread Zekun Shen
On Sat, Jul 04, 2020 at 09:05:48AM -0700, Alexander Duyck wrote: > The upper limitation for the size should be 2K or FM10K_RX_BUFSZ, not > PAGE_SIZE. Otherwise you are still capable of going out of bounds > because the offset is used within the page to push the start of the > region up by 2K. PAGE_

Re: KASAN: stack-out-of-bounds Read in csd_lock_record

2020-07-04 Thread Paul E. McKenney
On Fri, Jul 03, 2020 at 04:31:22PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:9e50b94b Add linux-next specific files for 20200703 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1024b40510 > kernel config

Re: [PATCH 0/2] Documentation: RCU: eliminate duplicated words

2020-07-04 Thread Paul E. McKenney
On Fri, Jul 03, 2020 at 02:33:40PM -0700, Randy Dunlap wrote: > Drop all doubled words from RCU documentation. > > > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: "Paul E. McKenney" > Cc: Josh Triplett > Cc: Steven Rostedt > Cc: Mathieu Desnoyers > Cc: Lai Jiangshan > Cc: Joel F

Re: [PATCH v3 2/2] iio: magnetometer: bmc150: Add proper compatible for BMM150

2020-07-04 Thread Jonathan Cameron
On Mon, 29 Jun 2020 12:05:37 +0200 Krzysztof Kozlowski wrote: > The compatible for BMM150 should not have "_magn" suffix because, unlike > two other Bosch devices, it is only a magnetometer. > > Signed-off-by: Krzysztof Kozlowski Both applied to the togreg branch of iio.git and pushed out as t

reset-intel-gw.c:undefined reference to `devm_platform_ioremap_resource'

2020-07-04 Thread kernel test robot
Hi Dilip, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 35e884f89df4c48566d745dc5a97a0d058d04263 commit: c9aef213e38cde27d4689a5cbe25a7c1b1db9fad reset: intel: Add system reset controller driver date: 6 months a

[PATCH] powerpc/pseries: detect secure and trusted boot state of the system.

2020-07-04 Thread Nayna Jain
The device-tree property to check secure and trusted boot state is different for guests(pseries) compared to baremetal(powernv). This patch updates the existing is_ppc_secureboot_enabled() and is_ppc_trustedboot_enabled() function to add support for pseries. Signed-off-by: Nayna Jain --- arch/p

Re: [PATCH] iio: light: stk3310: add chip id for STK3311-X variant

2020-07-04 Thread Icenowy Zheng
在 2020-07-04星期六的 17:29 +0100,Jonathan Cameron写道: > On Fri, 3 Jul 2020 21:44:05 +0200 > Ondrej Jirman wrote: > > > From: Icenowy Zheng > > > > The STK3311 chip has a variant called STK3311-X, which has a > > different > > chip id of 0x12. > > > > Add the chip id to the driver. > > > > Signed-

[PATCH] firmware: qcom_scm: Fix legacy convention SCM accessors

2020-07-04 Thread Jonathan McDowell
The move to a combined driver for the QCOM SCM hardware changed the io_writel and io_readl helpers to use non-atomic calls, despite the commit message saying that atomic was a better option. This breaks these helpers on hardware that uses the old legacy convention (access fails with a -95 return co

RE: [PATCH 1/3] usb: dwc2: override PHY input signals with usb role switch support

2020-07-04 Thread Martin Blumenstingl
Hello Amelie, thank you for this patch - I am hoping that it will help us on Amlogic Meson8, Meson8b, Meson8m2 and GXBB SoCs as well. On these SoCs the ID detection is performed by the PHY IP and needs to be polled. I think usb_role_switch is the perfect framework for this on dwc2 side. For the PH

[tip: x86/urgent] x86/entry, selftests: Further improve user entry sanity checks

2020-07-04 Thread tip-bot2 for Andy Lutomirski
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 3c73b81a9164d0c1b6379d6672d2772a9e95168e Gitweb: https://git.kernel.org/tip/3c73b81a9164d0c1b6379d6672d2772a9e95168e Author:Andy Lutomirski AuthorDate:Fri, 03 Jul 2020 10:02:54 -07:00 Commit

[tip: x86/urgent] x86/entry/compat: Clear RAX high bits on Xen PV SYSENTER

2020-07-04 Thread tip-bot2 for Andy Lutomirski
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: db5b2c5a90a111618f071d231a8b945cf522313e Gitweb: https://git.kernel.org/tip/db5b2c5a90a111618f071d231a8b945cf522313e Author:Andy Lutomirski AuthorDate:Fri, 03 Jul 2020 10:02:53 -07:00 Commit

[tip: x86/urgent] x86/entry/xen: Route #DB correctly on Xen PV

2020-07-04 Thread tip-bot2 for Andy Lutomirski
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: f41f0824224eb12ad84de8972962dd54be5abe3b Gitweb: https://git.kernel.org/tip/f41f0824224eb12ad84de8972962dd54be5abe3b Author:Andy Lutomirski AuthorDate:Fri, 03 Jul 2020 10:02:55 -07:00 Commit

Re: [PATCH] iio: light: stk3310: add chip id for STK3311-X variant

2020-07-04 Thread Ondřej Jirman
Hi, On Sun, Jul 05, 2020 at 01:09:37AM +0800, Icenowy Zheng wrote: > 在 2020-07-04星期六的 17:29 +0100,Jonathan Cameron写道: > > On Fri, 3 Jul 2020 21:44:05 +0200 > > Ondrej Jirman wrote: > > > > > From: Icenowy Zheng > > > > > > The STK3311 chip has a variant called STK3311-X, which has a > > > dif

[tip: x86/urgent] x86/entry/32: Fix #MC and #DB wiring on x86_32

2020-07-04 Thread tip-bot2 for Andy Lutomirski
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 13cbc0cd4a30c815984ad88e3a2e5976493516a3 Gitweb: https://git.kernel.org/tip/13cbc0cd4a30c815984ad88e3a2e5976493516a3 Author:Andy Lutomirski AuthorDate:Fri, 03 Jul 2020 10:02:56 -07:00 Commit

[tip: x86/urgent] x86/ldt: Disable 16-bit segments on Xen PV

2020-07-04 Thread tip-bot2 for Andy Lutomirski
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: cc801833a171163edb6385425349ba8903bd1b20 Gitweb: https://git.kernel.org/tip/cc801833a171163edb6385425349ba8903bd1b20 Author:Andy Lutomirski AuthorDate:Fri, 03 Jul 2020 10:02:57 -07:00 Commit

Re: [PATCH V1 0/5] riscv: Add k/uprobe supported

2020-07-04 Thread Pekka Enberg
Hi Guo, On Sat, Jul 4, 2020 at 6:34 AM wrote: > > > There is no single step exception in riscv ISA, so utilize ebreak to > > > simulate. Some pc related instructions couldn't be executed out of line > > > and some system/fence instructions couldn't be a trace site at all. > > > So we give out a r

Re: KASAN: stack-out-of-bounds Read in csd_lock_record

2020-07-04 Thread Dmitry Vyukov
On Sat, Jul 4, 2020 at 6:45 PM Paul E. McKenney wrote: > > On Fri, Jul 03, 2020 at 04:31:22PM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:9e50b94b Add linux-next specific files for 20200703 > > git tree: linux-next > > console output:

Re: [PATCH 1/3] readfile: implement readfile syscall

2020-07-04 Thread Geert Uytterhoeven
Hi Greg, On Sat, Jul 4, 2020 at 4:05 PM Greg Kroah-Hartman wrote: > It's a tiny syscall, meant to allow a user to do a single "open this > file, read into this buffer, and close the file" all in a single shot. > > Should be good for reading "tiny" files like sysfs, procfs, and other > "small" fil

Re: [PATCH 2/3] arch: wire up the readfile syscall

2020-07-04 Thread Geert Uytterhoeven
On Sat, Jul 4, 2020 at 4:05 PM Greg Kroah-Hartman wrote: > This wires up the readfile syscall for all architectures > > Signed-off-by: Greg Kroah-Hartman > arch/m68k/kernel/syscalls/syscall.tbl | 1 + Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Ge

Re: [PATCH 3/3] selftests: add readfile(2) selftests

2020-07-04 Thread Geert Uytterhoeven
Hi Greg, On Sat, Jul 4, 2020 at 4:05 PM Greg Kroah-Hartman wrote: > Test the functionality of readfile(2) in various ways. > > Also provide a simple speed test program to benchmark using readfile() > instead of using open()/read()/close(). > > Signed-off-by: Greg Kroah-Hartman Any benchmark res

Re: [PATCH v2] rtc: rtc-ds1374: wdt: Use watchdog core for watchdog part

2020-07-04 Thread kernel test robot
Hi "Johnson, Thank you for the patch! Yet something to improve: [auto build test ERROR on abelloni/rtc-next] [also build test ERROR on linux/master linus/master v5.8-rc3 next-20200703] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH 1/3] readfile: implement readfile syscall

2020-07-04 Thread Matthew Wilcox
On Sat, Jul 04, 2020 at 04:02:47PM +0200, Greg Kroah-Hartman wrote: > + /* only accept a small subset of O_ flags that make sense */ > + if ((flags & (O_NOFOLLOW | O_NOATIME)) != flags) > + return -EINVAL; > + > + /* add some needed flags to be able to open the file properly

Re: [RFC PATCH 08/10] rtc: New driver for RTC in Netronix embedded controller

2020-07-04 Thread Jonathan Neuschäfer
Hi, On Sun, Jun 21, 2020 at 02:11:06AM +0200, Alexandre Belloni wrote: > On 21/06/2020 00:42:19+0200, Jonathan Neuschäfer wrote: > > With this driver, mainline Linux can keep its time and date in sync with > > the vendor kernel. > > > > Advanced functionality like alarm and automatic power-on is

[PATCH v2] Replace HTTP links with HTTPS ones: drivers/iio

2020-07-04 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-04 Thread Al Viro
On Sat, Jul 04, 2020 at 04:02:46PM +0200, Greg Kroah-Hartman wrote: > Here is a tiny new syscall, readfile, that makes it simpler to read > small/medium sized files all in one shot, no need to do open/read/close. > This is especially helpful for tools that poke around in procfs or > sysfs, making a

[PATCH v2] Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/iio

2020-07-04 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[rcu:rcu/next] BUILD SUCCESS e8a2cb2717be343c9837318c28a4a87e4083a4e1

2020-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: e8a2cb2717be343c9837318c28a4a87e4083a4e1 torture: document --allcpus argument added to the kvm.sh script elapsed time: 1267m configs tested: 161 configs skipped: 16 The following configs

Re: [PATCH] net: fm10k: check size from dma region

2020-07-04 Thread Alexander Duyck
On Sat, Jul 4, 2020 at 9:37 AM Zekun Shen wrote: > > On Sat, Jul 04, 2020 at 09:05:48AM -0700, Alexander Duyck wrote: > > The upper limitation for the size should be 2K or FM10K_RX_BUFSZ, not > > PAGE_SIZE. Otherwise you are still capable of going out of bounds > > because the offset is used withi

Re: [PATCH 1/3] readfile: implement readfile syscall

2020-07-04 Thread Miklos Szeredi
On Sat, Jul 4, 2020 at 4:03 PM Greg Kroah-Hartman wrote: > > It's a tiny syscall, meant to allow a user to do a single "open this > file, read into this buffer, and close the file" all in a single shot. > > Should be good for reading "tiny" files like sysfs, procfs, and other > "small" files. > >

[PATCH] habanalbas: rephrase error message

2020-07-04 Thread Omer Shpigelman
Rephrase F/W error message to make it more understandable to ordinary users. Signed-off-by: Omer Shpigelman --- drivers/misc/habanalabs/firmware_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/habanalabs/firmware_if.c b/drivers/misc/habanalabs/firmware_if

Re: [PATCH RFC] leds: Add support for per-LED device triggers

2020-07-04 Thread Pavel Machek
Hi! > > > Add support for registering per-LED device trigger. > > > > > > Names of private triggers need to be globally unique, but may clash > > > with other private triggers. This is enforced during trigger > > > > Globally unique name is going to be a problem, no? If you have two > > keyboard

Re: Are there some potentially serious problems that I should be aware of if I totally disable the CONFIG_ACPI option on the X86_64 platform?

2020-07-04 Thread Pavel Machek
On Sat 2020-07-04 21:34:36, 孙世龙 sunshilong wrote: > Thank you for taking the time to respond to me. > > >These machines are still mostly IBM-PC compatible, so it is likely to > >somehow work. You'll likely get worse power and thermal > >management. Try it. > It's an industrial personal computer wi

<    1   2   3   4   >