Re: [GIT PULL 0/5] perf/core improvements and fixes

2018-02-20 Thread Ingo Molnar
;perf-core-for-mingo-4.17-20180216' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core > (2018-02-17 11:39:47 +0100) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-

Re: A "domain invalid" cgroup *can* sometimes have member tasks

2018-02-20 Thread Michael Kerrisk (man-pages)
Hi Tehjun, On 21 February 2018 at 00:01, Tejun Heo wrote: > On Tue, Feb 20, 2018 at 11:35:47AM -0800, Tejun Heo wrote: >> Hmm... nr_populated_domain_children check should have caught that >> condition and rejected it. Will look into what's going on. > > Ah, okay, I was special-casing the first l

Re: [PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-02-20 Thread Rasmus Villemoes
On 2018-02-21 00:55, Joe Perches wrote: > On Tue, 2018-02-20 at 23:43 +0200, Andy Shevchenko wrote: >> There are users which print time and date represented by content of >> struct rtc_time in human readable format. >> >> Instead of open coding that each time introduce %ptR[dt][rv] specifier. >> >>

Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-02-20 Thread Masahiro Yamada
2018-02-20 0:18 GMT+09:00 Ulf Magnusson : >> >> I'm not happy that we in one context can reference CONFIG variables >> directly, but inside the $(call ...) and $(shell ...) needs the $ prefix. >> But I could not come up with something un-ambigious where this could be >> avoided. > > I think we sh

Re: [RFCv4 16/21] v4l2: video_device: support for creating requests

2018-02-20 Thread Hans Verkuil
On 02/21/2018 07:01 AM, Alexandre Courbot wrote: > On Wed, Feb 21, 2018 at 1:35 AM, Hans Verkuil wrote: >> On 02/20/2018 05:44 AM, Alexandre Courbot wrote: >>> Add a new VIDIOC_NEW_REQUEST ioctl, which allows to instanciate requests >>> on devices that support the request API. Requests created tha

Re: [PATCH v4] tpm: Trigger only missing TPM 2.0 self tests

2018-02-20 Thread Jarkko Sakkinen
On Wed, Feb 21, 2018 at 12:53:47AM +0200, Jarkko Sakkinen wrote: > From: Alexander Steffen > > My Nuvoton 6xx in a Dell XPS-13 has been intermittently failing to work > (necessitating a reboot). The problem seems to be that the TPM gets into a > state where the partial self-test doesn't return TP

Re: [RFCv4 01/21] media: add request API core and UAPI

2018-02-20 Thread Hans Verkuil
On 02/21/2018 07:01 AM, Alexandre Courbot wrote: > Hi Hans, > > On Tue, Feb 20, 2018 at 7:36 PM, Hans Verkuil wrote: >> On 02/20/18 05:44, Alexandre Courbot wrote: >>> +#define MEDIA_REQUEST_IOC(__cmd, func) >>> \ >>> + [_IOC_NR(MEDIA_REQUEST_IOC_##__

Re: [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-02-20 Thread Konstantin Khlebnikov
On 21.02.2018 03:16, Andrew Morton wrote: On Tue, 23 Jan 2018 16:57:21 +0300 Konstantin Khlebnikov wrote: # stress-ng --clone 100 -t 10s --metrics-brief at 32-core machine shows boost 35000 -> 36000 bogo ops Patch 4/4 is a kind of RFC. Actually per-cpu cache of preallocated stacks works fa

Re: [PATCH v7 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-02-20 Thread Greentime Hu
2018-02-13 17:13 GMT+08:00 Greentime Hu : > Hi, all: > > ATCPIT100 is often used on the Andes architecture, > This timer provide 4 PIT channels. Each PIT channel is a > multi-function timer, can be configured as 32,16,8 bit timers > or PWM as well. > > For system timer it will set channel 1 32-bit

[PATCH v4] iommu/amd: Add support for fast IOTLB flushing

2018-02-20 Thread Suravee Suthikulpanit
Since AMD IOMMU driver currently flushes all TLB entries when page size is more than one, use the same interface for both iommu_ops.flush_iotlb_all() and iommu_ops.iotlb_sync(). Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- Changes from v3 (https://patchwork.kernel.org/patch/10193235

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-20 Thread Mikko Perttunen
AIUI, the PWM framework already exposes a sysfs node with period information. We should just use that instead of adding a new driver for this. In any case, we cannot add something like this to device tree since it's not a hardware device. Mikko On 21.02.2018 08:58, Rajkumar Rampelli wrote:

Re: [PATCH 0/6] DISCONTIGMEM support for PPC32

2018-02-20 Thread Christophe LEROY
Le 20/02/2018 à 17:14, Jonathan Neuschäfer a écrit : This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is required to properly support the Nintendo Wii's memory layout, in which there are two blocks of RAM and MMIO in the middle. Previously, this memory layout was handled by

Re: [PATCH v3] iommu/amd: Add support for fast IOTLB flushing

2018-02-20 Thread Suravee Suthikulpanit
Hi Joerg, On 2/13/18 8:29 PM, Joerg Roedel wrote: Hi Suravee, thanks for working on this. On Wed, Jan 31, 2018 at 12:01:14AM -0500, Suravee Suthikulpanit wrote: +static void amd_iommu_iotlb_range_add(struct iommu_domain *domain, + unsigned long iova, size_t

[PATCH 08/10] arm64: defconfig: enable Nvidia Tegra Tachometer as a module

2018-02-20 Thread Rajkumar Rampelli
Tegra Tachometer driver implements PWM capture to measure period. Enable this driver as a module in the ARM64 defconfig. Signed-off-by: Rajkumar Rampelli --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconf

[PATCH 07/10] arm64: tegra: Add PWM based Tachometer support on Tegra186

2018-02-20 Thread Rajkumar Rampelli
Add PWM based Tachometer support on Tegra186 to measure number of rotations of a Fan per minute by using PWM capture interface Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra1

[PATCH 10/10] arm64: tegra: Add PWM controller on Tegra186 soc

2018-02-20 Thread Rajkumar Rampelli
The NVIDIA Tegra186 SoC has a PWM controller which is used in FAN control use case. Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidi

[PATCH 09/10] arm64: defconfig: Enable Generic PWM based Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
Enable Generic PWM based Tachometer driver which implements a simple interface for monitoring the speed of a fan in roatations per minute, and exposes it to the user space by using the hwmon's sysfs interface. Enable this driver as a module in the ARM64 defconfig. Signed-off-by: Rajkumar Rampelli

[PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-20 Thread Rajkumar Rampelli
Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM IP which captures the motor PWM output. This driver implements a simple interface for monitoring the speed of a fan and exposes it in roatations per minute (RPM)

[PATCH 06/10] arm64: tegra: Add Tachometer Controller on Tegra186

2018-02-20 Thread Rajkumar Rampelli
The NVIDIA Tegra186 SoC has a Tachometer Controller that analyzes the PWM signal of a Fan and reports the period value through pwm interface. Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186-p2771-.dts | 5 + arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1

[PATCH 04/10] hwmon: generic-pwm-tachometer: Add DT binding details

2018-02-20 Thread Rajkumar Rampelli
Add DT binding details for the PWM based generic tachometer driver which gets the period of the PWM tach-output from Fan via PWM IP having capability of capturing the signal. Signed-off-by: Rajkumar Rampelli --- .../bindings/hwmon/generic-pwm-tachometer.txt | 25 ++ 1 fi

[PATCH 03/10] pwm: tegra: Add PWM based Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
PWM Tachometer driver capture the PWM signal which is output of FAN in general and provide the period of PWM signal which is converted to RPM by SW. Add Tegra Tachometer driver which implements the pwm-capture to measure period. Signed-off-by: Rajkumar Rampelli Signed-off-by: Laxman Dewangan --

[PATCH 02/10] dt-bindings: Tegra186 tachometer device tree bindings

2018-02-20 Thread Rajkumar Rampelli
Supply Device tree binding documentation for the NVIDIA Tegra186 SoC's Tachometer Controller Signed-off-by: Rajkumar Rampelli --- .../bindings/pwm/pwm-tegra-tachometer.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH 01/10] pwm: core: Add support for PWM HW driver with pwm capture only

2018-02-20 Thread Rajkumar Rampelli
Add support for pwm HW driver which has only capture functionality. This helps to implement the PWM based Tachometer driver which reads the PWM output signals from electronic fans. PWM Tachometer captures the period and duty cycle of the PWM signal Signed-off-by: Rajkumar Rampelli --- drivers/p

[PATCH 00/10] Implementation of Tegra Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
The following patches adds support for PWM based Tegra Tachometer driver which implements PWM capture interface to analyze the PWM signal of a electronic fan and reports it in periods and duty cycles. Generic PWM Tachometer implemented to monitor the speed of fan in rpms using PWM interface. RPM o

Re: [PATCH] audit: return on memory error to avoid null pointer dereference

2018-02-20 Thread Richard Guy Briggs
On 2018-02-21 01:47, Richard Guy Briggs wrote: > If there is a memory allocation error when trying to change an audit > kernel feature value, the ignored allocation error will trigger a NULL > pointer dereference oops on subsequent use of that pointer. Return > instead. > > See: https://github.co

[PATCH] audit: return on memory error to avoid null pointer dereference

2018-02-20 Thread Richard Guy Briggs
If there is a memory allocation error when trying to change an audit kernel feature value, the ignored allocation error will trigger a NULL pointer dereference oops on subsequent use of that pointer. Return instead. See: https://github.com/linux-audit/audit-kernel/issues/76 Signed-off-by: Richard

Re: [PATCH] ocxl: Add get_metadata IOCTL to share OCXL information to userspace

2018-02-20 Thread Balbir Singh
On Wed, Feb 21, 2018 at 3:57 PM, Alastair D'Silva wrote: > From: Alastair D'Silva > > Some required information is not exposed to userspace currently (eg. the > PASID), pass this information back, along with other information which > is currently communicated via sysfs, which saves some parsing e

Re: [PATCH -mm -v5 RESEND] mm, swap: Fix race between swapoff and some swap operations

2018-02-20 Thread huang ying
On Wed, Feb 21, 2018 at 7:38 AM, Andrew Morton wrote: > On Sun, 18 Feb 2018 09:06:47 +0800 huang ying > wrote: > >> >> >> +struct swap_info_struct *get_swap_device(swp_entry_t entry) >> >> >> +{ >> >> >> + struct swap_info_struct *si; >> >> >> + unsigned long type, offset; >> >> >> + >> >> >>

/kbuild/src/stress/include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_queue'

2018-02-20 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af3e79d29555b97dd096e2f8e36a0f50213808a8 commit: b46dc8ae17a427c50c00241898832807576fd28a media: videobuf2: fix up for "media: annotate ->poll() instances" date: 2 weeks ago config: x86_64-randconfig-s5-02

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Mike, On 2/20/2018 5:58 PM, Mike Kravetz wrote: > On 02/20/2018 03:21 PM, Thomas Gleixner wrote: >> On Tue, 20 Feb 2018, Reinette Chatre wrote: >>> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: On Tue, 13 Feb 2018, Reinette Chatre wrote: Now the remaining thing is the memory alloc

RE: [RFC PATCH] mmc: sdhci-of-arasan: Add auto tuning support for ZynqMP Platform

2018-02-20 Thread Manish Narani
Hi Adrian, > -Original Message- > From: Adrian Hunter [mailto:adrian.hun...@intel.com] > Sent: Friday, February 16, 2018 7:37 PM > To: Manish Narani ; michal.si...@xilinx.com; > ulf.hans...@linaro.org; linux-arm-ker...@lists.infradead.org; linux- > m...@vger.kernel.org; linux-kernel@vger.

Re: [RFCv4 10/21] videodev2.h: Add request_fd field to v4l2_buffer

2018-02-20 Thread Alexandre Courbot
On Wed, Feb 21, 2018 at 12:20 AM, Hans Verkuil wrote: > On 02/20/18 05:44, Alexandre Courbot wrote: >> From: Hans Verkuil >> >> When queuing buffers allow for passing the request that should >> be associated with this buffer. >> >> Signed-off-by: Hans Verkuil >> [acour...@chromium.org: make requ

Re: [RFCv4 13/21] media: videobuf2-v4l2: support for requests

2018-02-20 Thread Alexandre Courbot
On Wed, Feb 21, 2018 at 1:18 AM, Hans Verkuil wrote: > On 02/20/2018 05:44 AM, Alexandre Courbot wrote: >> Add a new vb2_qbuf_request() (a request-aware version of vb2_qbuf()) >> that request-aware drivers can call to queue a buffer into a request >> instead of directly into the vb2 queue if relev

Re: [RFCv4 11/21] media: v4l2_fh: add request entity field

2018-02-20 Thread Alexandre Courbot
On Wed, Feb 21, 2018 at 12:24 AM, Hans Verkuil wrote: > On 02/20/18 05:44, Alexandre Courbot wrote: >> Allow drivers to assign a request entity to v4l2_fh. This will be useful >> for request-aware ioctls to find out which request entity to use. >> >> Signed-off-by: Alexandre Courbot >> --- >> in

Re: [RFCv4 09/21] v4l2: add request API support

2018-02-20 Thread Alexandre Courbot
On Tue, Feb 20, 2018 at 10:25 PM, Hans Verkuil wrote: > On 02/20/18 05:44, Alexandre Courbot wrote: >> Add a v4l2 request entity data structure that takes care of storing the >> request-related state of a V4L2 device ; in this case, its controls. >> >> Signed-off-by: Alexandre Courbot >> --- >>

Re: [RFCv4 16/21] v4l2: video_device: support for creating requests

2018-02-20 Thread Alexandre Courbot
On Wed, Feb 21, 2018 at 1:35 AM, Hans Verkuil wrote: > On 02/20/2018 05:44 AM, Alexandre Courbot wrote: >> Add a new VIDIOC_NEW_REQUEST ioctl, which allows to instanciate requests >> on devices that support the request API. Requests created that way can >> only control the device they originate fr

Re: [RFCv4 01/21] media: add request API core and UAPI

2018-02-20 Thread Alexandre Courbot
Hi Hans, On Tue, Feb 20, 2018 at 7:36 PM, Hans Verkuil wrote: > On 02/20/18 05:44, Alexandre Courbot wrote: >> The request API provides a way to group buffers and device parameters >> into units of work to be queued and executed. This patch introduces the >> UAPI and core framework. >> >> This pa

nla_put_string() vs NLA_STRING

2018-02-20 Thread Kees Cook
Hi, It seems that in at least one case[1], nla_put_string() is being used on an NLA_STRING, which lacks a NULL terminator, which leads to silliness when nla_put_string() uses strlen() to figure out the size: /** * nla_put_string - Add a string netlink attribute to a socket buffer * @skb: socket

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 3:21 PM, Thomas Gleixner wrote: > On Tue, 20 Feb 2018, Reinette Chatre wrote: >> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>> Are you really sure that the life time rules of plr are correct vs. an >>> application which

Re: [PATCH] cpufreq: powernv: Check negative value returned by cpufreq_table_find_index_dl()

2018-02-20 Thread Viresh Kumar
On 21-02-18, 16:39, Michael Ellerman wrote: > Viresh Kumar writes: > > AFAICT, you will get -1 here only if the freq table had no valid > > frequencies (or the freq table is empty). Why would that happen ? > > Bugs? The cupfreq driver shouldn't have registered itself in that case (i.e. if the c

Re: [PATCH] ocxl: Add get_metadata IOCTL to share OCXL information to userspace

2018-02-20 Thread Andrew Donnellan
On 21/02/18 15:57, Alastair D'Silva wrote: From: Alastair D'Silva Some required information is not exposed to userspace currently (eg. the PASID), pass this information back, along with other information which is currently communicated via sysfs, which saves some parsing effort in userspace. S

Re: [PATCH] netlink: put module reference if dump start fails

2018-02-20 Thread Eric Dumazet
On Wed, 2018-02-21 at 04:41 +0100, Jason A. Donenfeld wrote: > Before, if cb->start() failed, the module reference would never be put, > because cb->cb_running is intentionally false at this point. Users are > generally annoyed by this because they can no longer unload modules that > leak reference

[PATCH] kconfig: Print reverse dependencies in groups

2018-02-20 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- This patch requires the following as a pre-requisite: https://patchwork.kernel.org/patch/10229545/ These two will work equivalently to the following three: https://patchwork.kernel.org/patch/10226951/ https://patchwork.kernel.org/patch/10226953/ https://patchw

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-20 Thread Jaehoon Chung
Hi Geert, On 02/20/2018 07:50 PM, Geert Uytterhoeven wrote: > On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven > wrote: >> The hs_timing_cfg[] array is indexed using a value derived from the >> "mshcN" alias in DT, which may lead to an out-of-bounds access. >> >> Fix this by adding a range ch

Re: [PATCH] cpufreq: powernv: Check negative value returned by cpufreq_table_find_index_dl()

2018-02-20 Thread Michael Ellerman
Viresh Kumar writes: > On 12-02-18, 15:51, Shilpasri G Bhat wrote: >> This patch fixes the below Coverity warning: >> >> *** CID 182816: Memory - illegal accesses (NEGATIVE_RETURNS) >> /drivers/cpufreq/powernv-cpufreq.c: 1008 in powernv_fast_switch() >> 1002

Re: [PATCH 2/3] Input: gpio-keys - allow setting wakeup interrupt trigger type in DT

2018-02-20 Thread Brian Norris
Hi, On Sun, Feb 18, 2018 at 05:34:53PM -0600, Rob Herring wrote: > On Fri, Feb 09, 2018 at 03:42:47PM -0800, Brian Norris wrote: > > On Fri, Feb 09, 2018 at 07:55:09PM +0800, Jeffy Chen wrote: > > > Allow specifying a different interrupt trigger type for wakeup when > > > using the gpio-keys input

Re: [PATCH v2 1/3] HID: add driver for Valve Steam Controller

2018-02-20 Thread Cameron Gutman
On 02/20/2018 11:33 AM, Rodrigo Rivas Costa wrote: > +static void steam_work_connect_cb(struct work_struct *work) > +{ > + struct steam_device *steam = container_of(work, struct steam_device, > + work_connect); > + unsigned long flags; > +

Re: [PATCH ipmi/kcs_bmc v2] ipmi: kcs_bmc: make the code be more clean

2018-02-20 Thread Wang, Haiyue
On 2018-02-20 21:29, Corey Minyard wrote: On 02/19/2018 09:55 AM, Haiyue Wang wrote: --- When you use ---, it means everything following is not in the commit text, including your signature. Got it. v1 -> v2: Do you want me to fold this into the previous patch?  That's generally not how

[PATCH 8/9] scsi: ufs: fix irq return code

2018-02-20 Thread Asutosh Das
From: Venkat Gopalakrishnan Return IRQ_HANDLED only if the irq is really handled, this will help in catching spurious interrupts that go unhandled. Signed-off-by: Venkat Gopalakrishnan Signed-off-by: Can Guo Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufshcd.c | 137 +

[PATCH 1/9] scsi: ufs: Allowing power mode change

2018-02-20 Thread Asutosh Das
From: Yaniv Gardi Due to M-PHY issues, moving from HS to any other mode or gear or even Hibern8 causes some un-predicted behavior of the device. This patch fixes this issues. Signed-off-by: Yaniv Gardi Signed-off-by: Subhash Jadavani Signed-off-by: Can Guo Signed-off-by: Asutosh Das --- dri

[PATCH 3/9] scsi: ufs: fix exception event handling

2018-02-20 Thread Asutosh Das
From: Maya Erez The device can set the exception event bit in one of the response UPIU, for example to notify the need for urgent BKOPs operation. In such a case the host driver calls ufshcd_exception_event_handler to handle this notification. When trying to check the exception event status (for

[PATCH 2/9] scsi: ufs: Add LCC quirk for host and device

2018-02-20 Thread Asutosh Das
From: Subhash Jadavani LCC (Line Control Command) is being used for communication between UFS host and UFS device. But some hosts might have the issue with issuing the LCC commands to UFS device and in this case LCC could be explicitly disabled. But there could be a need where we don't want to d

[PATCH 5/9] scsi: ufs: add reference counting for scsi block requests

2018-02-20 Thread Asutosh Das
From: Subhash Jadavani Currently we call the scsi_block_requests()/scsi_unblock_requests() whenever we want to block/unblock scsi requests but as there is no reference counting, nesting of these calls could leave us in undesired state sometime. Consider following call flow sequence: 1. func1() ca

[PATCH 9/9] scsi: ufs: Add clock ungating to a separate workqueue

2018-02-20 Thread Asutosh Das
From: Vijay Viswanath UFS driver can receive a request during memory reclaim by kswapd. So when ufs driver puts the ungate work in queue, and if there are no idle workers, kthreadd is invoked to create a new kworker. Since kswapd task holds a mutex which kthreadd also needs, this can cause a dead

[PATCH 4/9] scsi: ufshcd: fix possible unclocked register access

2018-02-20 Thread Asutosh Das
From: Subhash Jadavani vendor specific setup_clocks ops may depend on clocks managed by ufshcd driver so if the vendor specific setup_clocks callback is called when the required clocks are turned off, it results into unclocked register access. This change make sure that required clocks are enabl

[PATCH 6/9] scsi: ufs-qcom: remove broken hci version quirk

2018-02-20 Thread Asutosh Das
From: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change removes this quirk for version 3.x.y onwards. Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das

[PATCH 7/9] scsi: ufs: make sure all interrupts are processed

2018-02-20 Thread Asutosh Das
From: Venkat Gopalakrishnan As multiple requests are submitted to the ufs host controller in parallel there could be instances where the command completion interrupt arrives later for a request that is already processed earlier as the corresponding doorbell was cleared when handling the previous

Re: [PATCH 11/23] kconfig: add 'shell-stdout' function

2018-02-20 Thread Masahiro Yamada
2018-02-20 3:01 GMT+09:00 Linus Torvalds : > On Mon, Feb 19, 2018 at 9:44 AM, Linus Torvalds > wrote: >> >> I do like your "success"/"stdout" more than "shell"/"shell-stdout", >> because with that naming I don't get the feeling that one should >> subsume the other. > > Hmm. Thinking about it some

[PATCH] ocxl: Add get_metadata IOCTL to share OCXL information to userspace

2018-02-20 Thread Alastair D'Silva
From: Alastair D'Silva Some required information is not exposed to userspace currently (eg. the PASID), pass this information back, along with other information which is currently communicated via sysfs, which saves some parsing effort in userspace. Signed-off-by: Alastair D'Silva --- drivers/

Pls assist me to come and establish an industry in your country

2018-02-20 Thread Dim Deng
Genuine offer How are you today and your family, I am a citizen of Sudan but currently staying in Burkina Faso. My name is Miss Mariam Dim Deng, 25years old originated from Sudan. My late father Dr. Dominic Dim Deng was the former Minister for SPLA Affair and Special Adviser to President Salva Kii

Re: [PATCH v2 1/1] clk: npcm750: update text with fixed clocks

2018-02-20 Thread Brendan Higgins
On Mon, Feb 19, 2018 at 6:49 AM, Rob Herring wrote: > On Thu, Feb 15, 2018 at 02:38:12PM -0800, Brendan Higgins wrote: >> On Thu, Feb 15, 2018 at 5:39 AM, Tali Perry wrote: >> > >> > Signed-off-by: Tali Perry >> > >> >> >> I think this should probably be rolled into [PATCH v2 1/1] npcm750: add

Re: [PATCH 10/23] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-02-20 Thread Masahiro Yamada
2018-02-17 3:38 GMT+09:00 Masahiro Yamada : > Add CC_HAS_STACKPROTECTOR(_STRONG) to test if the compiler supports > -fstack-protector(-strong) option. > > X86 has additional shell scripts in case the compiler supports the > option, but generates broken code. I added CC_HAS_SANE_STACKPROTECTOR > to

[PATCH 2/2] ASoC: support ROHM BD28623 codec

2018-02-20 Thread Katsuhiro Suzuki
This patch adds support of the ROHM BD28623MUV Class D speaker amplifier for Flat-panel TVs. This IC delivers an output power of 20W + 20W. Signed-off-by: Katsuhiro Suzuki --- sound/soc/codecs/Kconfig | 8 ++ sound/soc/codecs/Makefile | 2 + sound/soc/codecs/bd28623.c | 258 ++

[PATCH 0/2] ASoC: add support for ROHM BD28623 codec

2018-02-20 Thread Katsuhiro Suzuki
This patch adds support for ROHM BD28623MUV class D speaker amplifier codec driver. This driver only refers information of HW specification document that can be derivered at website of ROHM. http://www.rohm.com/web/global/products/-/product/BD28623MUV Katsuhiro Suzuki (2): ASoC: add DT binding

[PATCH 1/2] ASoC: add DT bindings documentation for ROHM BD28623 codec

2018-02-20 Thread Katsuhiro Suzuki
This patch adds DT bindings documentation for ROHM BD28623MUV class D speaker amplifier. Signed-off-by: Katsuhiro Suzuki --- .../devicetree/bindings/sound/rohm,bd28623.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/soun

[PATCH RFC] kbuild: drop superfluous GCC_PLUGINS_CFLAGS assignment

2018-02-20 Thread Cao jin
GCC_PLUGINS_CFLAGS is already in the environment, so it is superfluous to add it in commanline of final build of init/ Signed-off-by: Cao jin --- This is only tested with Randomizing Structure Layout plugin. The test method is not so grace but I think it can prove the correctness of this patch. O

Re: [PATCH 5/6] mm, hugetlb: further simplify hugetlb allocation API

2018-02-20 Thread Dan Rue
On Wed, Jan 03, 2018 at 10:32:12AM +0100, Michal Hocko wrote: > From: Michal Hocko > > Hugetlb allocator has several layer of allocation functions depending > and the purpose of the allocation. There are two allocators depending > on whether the page can be allocated from the page allocator or we

[PATCH 5/7] sched/isolation: Offload residual 1Hz scheduler tick

2018-02-20 Thread Frederic Weisbecker
When a CPU runs in full dynticks mode, a 1Hz tick remains in order to keep the scheduler stats alive. However this residual tick is a burden for bare metal tasks that can't stand any interruption at all, or want to minimize them. The usual boot parameters "nohz_full=" or "isolcpus=nohz" will now o

[PATCH 6/7] sched/nohz: Remove the 1 Hz tick code

2018-02-20 Thread Frederic Weisbecker
Now that the 1Hz tick is offloaded to workqueues, we can safely remove the residual code that used to handle it locally. Reviewed-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Pe

[PATCH 4/7] sched/isolation: Isolate workqueues when "nohz_full=" is set

2018-02-20 Thread Frederic Weisbecker
As we prepare for offloading the residual 1hz scheduler ticks to workqueue, let's affine those to housekeepers so that they don't interrupt the CPUs that don't want to be disturbed. Reviewed-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz

[PATCH 7/7] sched/isolation: Update nohz documentation to explain tick offload

2018-02-20 Thread Frederic Weisbecker
Update the documentation to reflect the 1Hz tick offload changes. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Wanpeng Li Cc: Ingo Molnar

[PATCH 2/7] nohz: Convert tick_nohz_tick_stopped() to bool

2018-02-20 Thread Frederic Weisbecker
It makes this function more self-explanatory about what it does and how to use it. Reported-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: Th

[PATCH 0/7] isolation: 1Hz residual tick offloading v7

2018-02-20 Thread Frederic Weisbecker
This version addresses comments from Thomas: * Convert tick_nohz_tick_stopped[_cpu]() to bool * Add comments to each sched_class::task_tick() to make sure that datas are always fetched from rq and task passed in parameters to allow for remote ticks. * Add reviewed-by tags git://git.kernel.org

[PATCH 1/7] sched: Rename init_rq_hrtick to hrtick_rq_init

2018-02-20 Thread Frederic Weisbecker
Do that rename in order to normalize the hrtick namespace. Reviewed-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Wanpe

[PATCH 3/7] nohz: Allow to check if remote CPU tick is stopped

2018-02-20 Thread Frederic Weisbecker
This check is racy but provides a good heuristic to determine whether a CPU may need a remote tick or not. Reviewed-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra

Re: [PATCH v21 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-02-20 Thread CK Hu
Hi, Houlong: I've one inline comment. On Wed, 2018-01-31 at 15:28 +0800, houlong@mediatek.com wrote: > From: "hs.l...@mediatek.com" > > This patch is first version of Mediatek Command Queue(CMDQ) driver. The > CMDQ is used to help write registers with critical time limitation, > such as upd

Re: [PATCH 2/3] ARM: orion: mark orion_ge00_mvmdio_bus_name as const

2018-02-20 Thread Andrew Lunn
On Tue, Feb 20, 2018 at 05:24:51PM +0100, Arnd Bergmann wrote: > A section type mismatch warning shows up when building with LTO, > since orion_ge00_mvmdio_bus_name was put in __initconst but not marked > const itself: > > include/linux/of.h: In function 'spear_setup_of_timer': > arch/arm/mach-spe

[PATCH] netlink: put module reference if dump start fails

2018-02-20 Thread Jason A. Donenfeld
Before, if cb->start() failed, the module reference would never be put, because cb->cb_running is intentionally false at this point. Users are generally annoyed by this because they can no longer unload modules that leak references. Also, it may be possible to tediously wrap a reference counter bac

Re: [PATCH] cpufreq: scpi: invoke frequency-invariance setter function

2018-02-20 Thread Viresh Kumar
On 20-02-18, 11:10, Dietmar Eggemann wrote: > Commit 343a8d17fa8d ("cpufreq: scpi: remove arm_big_little dependency") > changed the cpufreq driver on juno from arm_big_little to scpi. > > The scpi set_target function does not call the frequency-invariance > setter function arch_set_freq_scale() li

Re: [PATCH] Carrier detect ok, don't turn off negotiation

2018-02-20 Thread Denis Du
Hi, David: How  is your thinking about this patch? >From b5902a4dfc709b62b704997ab64f31c9ef69a6db Mon Sep 17 00:00:00 2001 From: Denis Du Date: Mon, 15 Jan 2018 17:26:06 -0500 Subject: [PATCH] netdev: carrier detect ok, don't turn off negotiation Sometimes when physical lines have a just

linux-next: Tree for Feb 21

2018-02-20 Thread Stephen Rothwell
Hi all, Changes since 20180220: Non-merge commits (relative to Linus' tree): 2620 3067 files changed, 109463 insertions(+), 57328 deletions(-) I have created today's linux-next tree at git://git.kernel.o

Re: [PATCH 5/7] ARM: fix __inflate_kernel_data stack warning for LTO

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Arnd Bergmann wrote: > Commit ca8b5d97d6bf ("ARM: XIP kernel: store .data compressed in ROM") > moved the decompressor workspace to the stack and added a compiler > flag to avoid the stack size warning. > > With LTO, that warning comes back. Moving the workspace into an initd

Re: [PATCH] scsi: cxlflash: Select SCSI_SCAN_ASYNC

2018-02-20 Thread Matthew R. Ochs
On Tue, Feb 20, 2018 at 07:56:35PM +1100, Michael Ellerman wrote: > Vaibhav Jain writes: > > > The cxlflash driver uses "Asynchronous SCSI scanning" enabled by > > CONFIG_SCSI_SCAN_ASYNC. Without this enabled the modprobe of cxlflash > > module gets hung with following backtrace: > > > > Call Tra

Re: why scripts/link-vmlinux.sh has a final build of init/

2018-02-20 Thread Cao jin
Sorry for late. On 02/14/2018 07:31 PM, Masahiro Yamada wrote: > 2018-02-13 16:08 GMT+09:00 Cao jin : > >> BTW, I still have 2 questions. >> >> 1. In final build, why need >> >>GCC_PLUGINS_CFLAGS="${GCC_PLUGINS_CFLAGS}" >> >> Doesn't GCC_PLUGINS_CFLAGS already exist in the environment? >> >>

[PATCH V2] PCI: Add ACS quirk for Ampere root ports

2018-02-20 Thread Feng Kan
The Ampere Computing PCIe root port does not support ACS at this point. However, the hardware provides isolation and source validation through the SMMU. The stream ID generated by the PCIe ports contain both the bus/device/function number as well as the port ID in its 3 most significant bits. Turn

Re: [PATCH 1/3] seccomp, ptrace: switch get_metadata types to arch independent

2018-02-20 Thread Dmitry V. Levin
On Tue, Feb 20, 2018 at 07:47:45PM -0700, Tycho Andersen wrote: > Commit 26500475ac1b ("ptrace, seccomp: add support for retrieving seccomp > metadata") introduced `struct seccomp_metadata`, which contained unsigned > longs that should be arch independent. The type of the flags member was > chosen

Re: [PATCH 3/7] [HACK] pass endianess flag to LTO linker

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Arnd Bergmann wrote: > We need some way to pass -mbig-endian to the linker during the > LTO link stage, otherwise we get a waning like > > arm-linux-gnueabi/bin/ld: arch/arm/lib/clearbit.o: compiled for a big endian > system and target is little endian > > for each file we

Re: [PATCH 2/7] ARM: LTO: avoid THUMB2_KERNEL+LTO

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Arnd Bergmann wrote: > Trying to build an LTO-Enabled kernel with Thumb2 instructions failed > horribly for me, with an endless output of things like > > ccVnNycO.s:2665: Error: thumb conditional instruction should be in IT block > -- `bxne lr' > ccVnNycO.s:7128: Error: thum

Re: [PATCH] random: always fill buffer in get_random_bytes_wait

2018-02-20 Thread Jason A. Donenfeld
Hi Ted, Can you apply this? Thanks, Jason

[PATCH v2 1/3] mm: memcg: plumbing memcg for kmem cache allocations

2018-02-20 Thread Shakeel Butt
Introducing the memcg variant for kmem cache allocation functions. Currently the kernel switches the root kmem cache with the memcg specific kmem cache for __GFP_ACCOUNT allocations to charge those allocations to the memcg. However, the memcg to charge is extracted from the current task_struct. Thi

Re: [PATCH 1/7] ARM: disallow combining XIP and LTO

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Arnd Bergmann wrote: > This fails during deflate_xip_data.sh > > /home/arnd/cross-gcc/bin/arm-linux-gnueabi-objcopy -O binary -R .comment -S > vmlinux arch/arm/boot/xipImage && /bin/bash -c > '/git/arm-soc/arch/arm/boot/deflate_xip_data.sh vmlinux > arch/arm/boot/xipIma

[PATCH v2 2/3] mm: memcg: plumbing memcg for kmalloc allocations

2018-02-20 Thread Shakeel Butt
Introducing the memcg variant for kmalloc allocation functions. The kmalloc allocations are underlying served using the kmem caches unless the size of the allocation request is larger than KMALLOC_MAX_CACHE_SIZE, in which case, the kmem caches are bypassed and the request is routed directly to page

[PATCH v2 3/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-20 Thread Shakeel Butt
A lot of memory can be consumed by the events generated for the huge or unlimited queues if there is either no or slow listener. This can cause system level memory pressure or OOMs. So, it's better to account the fsnotify kmem caches to the memcg of the listener. There are seven fsnotify kmem cach

[PATCH v2 0/3] Directed kmem charging

2018-02-20 Thread Shakeel Butt
This patchset introduces memcg variant memory allocation functions. The caller can explicitly pass the memcg to charge for kmem allocations. Currently the kernel, for __GFP_ACCOUNT memory allocation requests, extract the memcg of the current task to charge for the kmem allocation. This patch series

Re: [PATCH v4 2/2] ptrace, seccomp: add support for retrieving seccomp metadata

2018-02-20 Thread Tycho Andersen
On Tue, Feb 20, 2018 at 09:13:28PM +0100, Eugene Syromiatnikov wrote: > On Tue, Nov 14, 2017 at 07:00:19PM -0700, Tycho Andersen wrote: > > With the new SECCOMP_FILTER_FLAG_LOG, we need to be able to extract these > > flags for checkpoint restore, since they describe the state of a filter. > > > >

Re: [PATCH v4 2/2] ptrace, seccomp: add support for retrieving seccomp metadata

2018-02-20 Thread Tycho Andersen
On Tue, Feb 20, 2018 at 10:30:52PM +0300, Dmitry V. Levin wrote: > > +struct seccomp_metadata { > > + unsigned long filter_off; /* Input: which filter */ > > + unsigned int flags; /* Output: filter's flags */ > > +}; > > This "unsigned long" field is unacceptable unless you a

Re: [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms

2018-02-20 Thread Alan Kao
On Tue, Feb 13, 2018 at 01:13:15PM +0800, Alan Quey-Liang Kao(高魁良) wrote: > This patch set includes the building blocks of dynamic ftrace features > for RISC-V machines. > > Changes in v4: > - Organize code structure according to changes in v3 > - Rebase onto the riscv-linux-4.15 branch at githu

[PATCH 2/3] ptrace, seccomp: tweak get_metadata behavior slightly

2018-02-20 Thread Tycho Andersen
Previously if users passed a small size for the input structure size, they would get get odd behavior. It doesn't make sense to pass a structure smaller than at least filter_off size, so let's just give -EINVAL in this case. This changes userspace visible behavior, but was only introduced in commi

[PATCH 1/3] seccomp, ptrace: switch get_metadata types to arch independent

2018-02-20 Thread Tycho Andersen
Commit 26500475ac1b ("ptrace, seccomp: add support for retrieving seccomp metadata") introduced `struct seccomp_metadata`, which contained unsigned longs that should be arch independent. The type of the flags member was chosen to match the corresponding argument to seccomp(), and so we need somethi

[PATCH 0/3] some fixups for PTRACE_SECCOMP_GET_METADATA

2018-02-20 Thread Tycho Andersen
Hi Kees, Here are a couple of tweaks/fixes people suggested to the get_metadata functionality, plus a test to ensure that things work the way they're supposed to and stay that way. Cheers, Tycho Tycho Andersen (3): seccomp, ptrace: switch get_metadata types to arch independent ptrace, secco

  1   2   3   4   5   6   7   8   9   >