Re: [PATCH] security: smack: smack.h - style fix

2017-06-13 Thread Casey Schaufler
On 6/9/2017 5:28 PM, Derek Robson wrote: > Fixed checkpatch.pl warnings of "function definition argument FOO should > also have an identifier name" > Found using checkpatch > > Signed-off-by: Derek Robson Can you please update this to apply to: git://github.com/cschaufler/smack-next#sma

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Stefan Berger
On 06/13/2017 01:18 PM, Serge E. Hallyn wrote: Quoting Stefan Berger (stef...@linux.vnet.ibm.com): On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: Root in a non-initial user ns cannot be trusted to write a traditional security.capability xattr. If it were allowed to do so, then any unprivileged

Re: [PATCH 1/2] power: supply: sbs-battery: Prevent CAPACITY_MODE races

2017-06-13 Thread Guenter Roeck
On Tue, Jun 13, 2017 at 10:53 AM, Shawn Nematbakhsh wrote: > A subset of smart battery commands return charge or energy depending on > the CAPACITY_MODE bit setting of BatteryMode(). In order to > unambiguously read a charge or energy value, it is necessary to ensure > that CAPACITY_MODE is set as

Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls

2017-06-13 Thread Gleb Fotengauer-Malinovskiy
On Tue, May 30, 2017 at 04:33:57PM -0700, Laura Abbott wrote: > On 05/30/2017 07:11 AM, Gleb Fotengauer-Malinovskiy wrote: > > This problem was found by strace ioctl list generator. > > > > Fixes: 15c6098cfec5 ("staging: android: ion: Remove ion_handle and > > ion_client") As this commit fixes a

Re: [PATCH 2/2] power: supply: sbs-battery: Don't needlessly set CAPACITY_MODE

2017-06-13 Thread Guenter Roeck
On Tue, Jun 13, 2017 at 10:53 AM, Shawn Nematbakhsh wrote: > According to the smart battery spec (1), the CAPACITY_MODE bit does not > influence the value read from RelativeStateOfCharge(), so don't bother > changing CAPACITY_MODE when doing such a read. > > (1) - Smart Battery Data Specification,

Re: [PATCH RFC v3 1/4] tracing: Remove unused declaration of trace_stop_cmdline_recording

2017-06-13 Thread Steven Rostedt
On Thu, 8 Jun 2017 19:53:24 -0700 Joel Fernandes wrote: > trace_stop_cmdline_recording declaration isn't in use, remove it. OK, I just pulled this one in. No need to send it out again. -- Steve > > Cc: kernel-t...@android.com > Cc: Ingo Molnar > Cc: Steven Rostedt > Signed-off-by: Joel Fer

Re: [PATCH 4/4] KVM: async_pf: Let host know whether the guest support delivery async_pf as #PF vmexit

2017-06-13 Thread Radim Krčmář
2017-06-12 23:08-0700, Wanpeng Li: > From: Wanpeng Li > > Adds another flag bit (bit 2) to MSR_KVM_ASYNC_PF_EN. If bit 2 is 1, async > page faults are delivered to L1 as #PF vmexits; if bit 2 is 0, > kvm_can_do_async_pf > returns 0 if in guest mode. > > Cc: Paolo Bonzini > Cc: Radim Krčmář

Re: [PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 10:50:44AM -0700, Brian Norris wrote: > On Tue, Jun 13, 2017 at 01:25:43PM +0800, Jeffy Chen wrote: > > The cros_ec requires CS line to be active after last message. But the CS > > would be toggled when powering off/on rockchip spi, which breaks ec xfer. > > Use GPIO CS to p

Re: [PATCH v3] PCI: Workaround wrong flags completions for IDT switch

2017-06-13 Thread james puthukattukaran
On 6/13/2017 1:00 PM, Yinghai Lu wrote: On Mon, Jun 12, 2017 at 2:48 PM, Bjorn Helgaas wrote: On Fri, Jun 09, 2017 at 04:16:17PM -0700, Yinghai Lu wrote: From: James Puthukattukaran The IDT switch incorrectly flags an ACS source violation on a read config request to an end point device on

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-06-13 Thread Darren Hart
On Tue, Jun 13, 2017 at 08:04:57PM +0200, Pali Rohár wrote: > On Tuesday 13 June 2017 18:49:51 Darren Hart wrote: > > On Sat, Jun 10, 2017 at 09:15:57PM +0200, Pali Rohár wrote: > > > On Saturday 27 May 2017 13:55:34 Pali Rohár wrote: > > > > instance_count defines number of instances of data block

Re: [PATCH] goldfish_pipe: use GFP_ATOMIC under spin lock

2017-06-13 Thread Jin Qian
I meant that the patch needs Cc: sta...@vger.kernel.org. Thanks, jin On Mon, Jun 12, 2017 at 11:02 PM, Greg Kroah-Hartman wrote: > On Fri, Jun 09, 2017 at 12:15:42PM -0700, Jin Qian wrote: >> Reviewed-by: Jin Qian >> >> Can we merge this to stable? > > I don't understand the question, what k

Re: [PATCH 1/9] [media] s5p-jpeg: Reset the Codec before doing a soft reset

2017-06-13 Thread Jacek Anaszewski
Hi Thierry, On 06/07/2017 02:34 PM, Thierry Escande wrote: > Hi Jacek, > > On 02/06/2017 21:50, Jacek Anaszewski wrote: >> Hi Thierry, >> >> On 06/02/2017 06:02 PM, Thierry Escande wrote: >>> From: Abhilash Kesavan >>> >>> This patch resets the encoding and decoding register bits before doing a

Re: [PATCH RFC v3 2/4] tracing: Add support for recording tgid of tasks

2017-06-13 Thread Steven Rostedt
On Thu, 8 Jun 2017 19:53:25 -0700 Joel Fernandes wrote: > Inorder to support recording of tgid, the following changes are made: > > * Introduce a new API (tracing_record_taskinfo) to additionally record the > tgid > along with the task's comm at the same time. The API is flexible to > opti

Re: [PATCH v4 12/16] perf header: add a buffer to struct feat_fd

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:28PM -0700, David Carrillo-Cisneros wrote: SNIP > /* Return: 0 if succeded, -ERR if failed. */ > int write_padded(struct feat_fd *ff, const void *bf, >size_t count, size_t count_aligned) > @@ -125,13 +151,32 @@ static int do_write_string(struct feat

Re: [PATCH v4 09/16] perf header: don't pass struct perf_file_section to process_##_feat

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:25PM -0700, David Carrillo-Cisneros wrote: SNIP > struct cpu_cache_level *caches; > u32 cnt, i, version; > @@ -2084,8 +2073,7 @@ static int process_cache(struct perf_file_section > *section __maybe_unused, > struct feature_ops { > int (*write)(str

Re: [PATCH v4 15/16] perf tools: add feature header record to pipe-mode

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:31PM -0700, David Carrillo-Cisneros wrote: SNIP > + > + for_each_set_bit(feat, header->adds_features, HEADER_FEAT_BITS) { > + if (!feat_ops[feat].synthesize) { > + pr_debug("No record header feature for header :%d\n", > feat); > +

Re: [PATCH v4 00/16] perf tool: add meta-data header support for pipe-mode

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:16PM -0700, David Carrillo-Cisneros wrote: > v4: - Limit write_* functions to page_size. > - Fixed bugs spotted by Jiri. > - Add information about pipe-mode to some error messages. hum, looks like we have pipe report broken.. on arnaldo's perf/core branch: [

Re: [PATCH v4 00/16] perf tool: add meta-data header support for pipe-mode

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:16PM -0700, David Carrillo-Cisneros wrote: > v4: - Limit write_* functions to page_size. > - Fixed bugs spotted by Jiri. > - Add information about pipe-mode to some error messages. looks like this version breaks the normal report [jolsa@krava perf]$ ./perf r

Re: [PATCH v11 3/6] virtio-balloon: VIRTIO_BALLOON_F_PAGE_CHUNKS

2017-06-13 Thread Michael S. Tsirkin
On Tue, Jun 13, 2017 at 10:59:07AM -0700, Dave Hansen wrote: > On 06/13/2017 10:56 AM, Michael S. Tsirkin wrote: > >> +/* The size of one page_bmap used to record inflated/deflated pages. */ > >> +#define VIRTIO_BALLOON_PAGE_BMAP_SIZE (8 * PAGE_SIZE) > > At this size, you probably want alloc_pa

Re: [PATCH v4 15/16] perf tools: add feature header record to pipe-mode

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:31PM -0700, David Carrillo-Cisneros wrote: SNIP > > void perf_event__print_totals(void); > diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c > index ddfaf157913d..6f6a54c15cb0 100644 > --- a/tools/perf/util/header.c > +++ b/tools/perf/util/header.c

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Radim Krčmář
2017-06-12 23:08-0700, Wanpeng Li: > From: Wanpeng Li > > Add an async_page_fault field to vcpu->arch.exception to identify an async > page fault, and constructs the expected vm-exit information fields. Force > a nested VM exit from nested_vmx_check_exception() if the injected #PF > is async p

Re: [PATCH v4 14/16] perf tool: add show_feature_header to perf_tool

2017-06-13 Thread Jiri Olsa
On Mon, Jun 12, 2017 at 09:29:30PM -0700, David Carrillo-Cisneros wrote: > Add show_feat_hdr to control level of printed information > of feature headers. > > Signed-off-by: David Carrillo-Cisneros > --- > tools/perf/builtin-report.c | 11 --- > tools/perf/builtin-script.c | 3 +++ > to

Re: [PATCH 11/11] Staging: rtl8712: ieee80211: fixed coding style issue

2017-06-13 Thread Dan Carpenter
Greg is never going to merge your patches until you fix your numbering so you may as well do that before anything else. This patch fixes a bug in a patch which is never going to be merged so it's not needed. Google "how to send a v2 patch". regards, dan carpenter

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Gabriele Paoloni
Hi Mika > -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: 13 June 2017 16:10 > To: Gabriele Paoloni > Cc: Lorenzo Pieralisi; raf...@kernel.org; Rafael J. Wysocki; > catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@

Re: [PATCH 03/12] coresight: Extend the PIDR mask to cover relevant bits in PIDR2

2017-06-13 Thread Mathieu Poirier
On 13 June 2017 at 11:55, Suzuki K Poulose wrote: > On 13/06/17 18:53, Mathieu Poirier wrote: >> >> On Mon, Jun 12, 2017 at 03:36:42PM +0100, Suzuki K Poulose wrote: >>> >>> As per coresight standards, PIDR2 register has the following format : >>> >>> [2-0] - JEP106_bits6to4 >>> [3]- JEDEC,

RE: [Possible Phish Fraud][PATCH] storvsc: use default I/O timeout handler for FC devices

2017-06-13 Thread Long Li
> -Original Message- > From: Bart Van Assche [mailto:bart.vanass...@sandisk.com] > Sent: Tuesday, June 13, 2017 8:38 AM > To: linux-kernel@vger.kernel.org; KY Srinivasan ; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; Stephen Hemminger > ; Long Li ; > j...@linux.vnet.ibm.com;

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Sven-Haegar Koch
On Tue, 13 Jun 2017, Greg Kroah-Hartman wrote: > On Tue, Jun 13, 2017 at 10:25:40AM -0600, Logan Gunthorpe wrote: > > > > On 12/06/17 10:35 PM, Greg Kroah-Hartman wrote: > > > Or better yet, just turn all char major allocations into dynamic, which > > > would be really good for test systems. I t

Re: [PATCH][netdev-next] net: hns: make guid hns_dsaf_acpi_dsm_guid static

2017-06-13 Thread Andy Shevchenko
On Tue, Jun 13, 2017 at 8:56 PM, David Miller wrote: > From: Colin King > Date: Tue, 13 Jun 2017 14:03:21 +0100 > >> From: Colin Ian King >> >> The guid hns_dsaf_acpi_dsm_guid does not need to be in global >> scope, so make it static. >> >> Cleans up sparse warning: >> "symbol 'hns_dsaf_acpi_dsm

GRSecurity goes full commercial, no more free testing patches, threatens programmer trying to port.

2017-06-13 Thread aconcernedfossdev
GRSecurity goes full commercial, no more free testing patches, threatens programmer trying to port. (*1) https://lwn.net/Articles/723169/ (*2) https://www.phoronix.com/forums/forum/software/general-linux-open-source/948623-grsecurity-kernel-patches-will-no-longer-be-free-to-the-public?page=1 (*

Re: [PATCH v2] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Juergen Gross
On 13/06/17 18:31, Joe Perches wrote: > On Tue, 2017-06-13 at 18:13 +0200, Juergen Gross wrote: >> On 13/06/17 17:20, Ingo Molnar wrote: >>> * Juergen Gross wrote: >>> When running under Xen as dom0 /dev/mcelog is being registered by Xen instead of the normal mcelog driver. Avoid an erro

RE: RE: GRSecurity goes full commercial, no more free testing patches, threatens programmer trying to port. - Contemplation

2017-06-13 Thread aconcernedfossdev
Here is a song recorded in contemplation of the current GRSecurity situation (And the violation of the terms under-which the linux kernel is licensed for modification and distribution (that is: their implicit (or perhaps even explicit but by another channel other than the writing) addition of a

Re: [PATCH v2] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Joe Perches
On Tue, 2017-06-13 at 21:27 +0200, Juergen Gross wrote: > On 13/06/17 18:31, Joe Perches wrote: > > On Tue, 2017-06-13 at 18:13 +0200, Juergen Gross wrote: > > > On 13/06/17 17:20, Ingo Molnar wrote: > > > > * Juergen Gross wrote: > > > > > > > > > When running under Xen as dom0 /dev/mcelog is be

[PATCH v4 01/11] [media] vimc: sen: Integrate the tpg on the sensor

2017-06-13 Thread Helen Koike
Initialize the test pattern generator on the sensor Generate a colored bar image instead of a grey one Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: sen: Integrate the tpg on the sensor - Declare frame_size as a local variable - Set tpg frame fo

[PATCH v4 02/11] [media] vimc: Move common code from the core

2017-06-13 Thread Helen Koike
Remove helper functions from vimc-core and add it in vimc-common to clean up the core. Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: Move common code from the core - This is a new patch in the series Changes in v2: None --- drivers/media/platform/vi

[PATCH v4 03/11] [media] vimc: common: Add vimc_ent_sd_* helper

2017-06-13 Thread Helen Koike
As all the subdevices in the topology will be initialized in the same way, to avoid code repetition the vimc_ent_sd_{register, unregister} helper functions were created Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: common: Add vimc_ent_sd_* helper - add

[PATCH v4 04/11] [media] vimc: common: Add vimc_pipeline_s_stream helper

2017-06-13 Thread Helen Koike
Move the vimc_cap_pipeline_s_stream from the vimc-cap.c to vimc-common.c as this core will be reused by other subdevices to activate the stream in their directly connected nodes Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: Add vimc_pipeline_s_stream in the cor

[PATCH v4 09/11] [media] vimc: Subdevices as modules

2017-06-13 Thread Helen Koike
Change the core structure for adding subdevices in the topology. Instead of calling the specific create function for each subdevice, inject a child platform_device with the driver's name. Each type of node in the topology (sensor, capture, debayer, scaler) will register a platform_driver with the c

[PATCH v4 07/11] [media] vimc: sen: Support several image formats

2017-06-13 Thread Helen Koike
Allow user space to change the image format as the frame size, the media bus pixel format, colorspace, quantization, field YCbCr encoding and the transfer function Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: sen: Support several image formats - use vimc_colorimetry_clamp

[PATCH v4 06/11] [media] vimc: common: Add vimc_colorimetry_clamp

2017-06-13 Thread Helen Koike
Colorimetry value will always be checked in the same way. Adding a helper macro for that Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: common: Add vimc_colorimetry_clamp - this is a new patch in the series Changes in v3: None Changes in v2: None --- drivers/media/platf

[PATCH v4 08/11] [media] vimc: cap: Support several image formats

2017-06-13 Thread Helen Koike
Allow user space to change the image format as the frame size, the pixel format, colorspace, quantization, field YCbCr encoding and the transfer function Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: cap: Support several image formats - add vimc_colorimetry_clamp macro

[PATCH v4 11/11] [media] vimc: sca: Add scaler

2017-06-13 Thread Helen Koike
Implement scaler and integrated with the core Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: sca: Add scaler - use vimc_colorimetry_clamp - replace V4L2_COLORSPACE_SRGB by V4L2_COLORSPACE_DEFAULT in the default format struct - use struct vimc_platfor

Re: [GIT PULL 1/4] bcm2835-defconfig-next-2017-06-12

2017-06-13 Thread Florian Fainelli
On 06/13/2017 10:43 AM, Eric Anholt wrote: > The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: > > Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) > > are available in the git repository at: > > git://github.com/anholt/linux tags/bcm2835-defconfig-next-2017-06-12 > > f

[PATCH v4 10/11] [media] vimc: deb: Add debayer filter

2017-06-13 Thread Helen Koike
Implement the debayer filter and integrate it with the core Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: deb: Add debayer filter - Rebase without [media] vimc: Optimize frame generation through pipe - use vimc_colorimetry_clamp - replace V4L2_COLOR

[PATCH v4 05/11] [media] vimc: common: Add vimc_link_validate

2017-06-13 Thread Helen Koike
All links will be checked in the same way. Adding a helper function for that Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: common: Add vimc_link_validate - remove vimc_fmt_pix_to_mbus(), replaced by v4l2_fill_mbus_format() - remove EXPORT_SYMBOL(vimc_link_v

Re: [PATCH v9 1/5] firmware: add extensible driver data params

2017-06-13 Thread Luis R. Rodriguez
On Tue, Jun 13, 2017 at 11:05:48AM +0200, Greg KH wrote: > On Mon, Jun 05, 2017 at 02:39:33PM -0700, Luis R. Rodriguez wrote: > > As the firmware API evolves we keep extending functions with more arguments. > > Stop this nonsense by proving an extensible data structure which can be used > > to repr

Re: [RESEND x3][PATCH v4] arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support

2017-06-13 Thread John Stultz
On Mon, Jun 12, 2017 at 7:09 PM, Kuninori Morimoto wrote: > > Hi John > >> On Mon, Jun 12, 2017 at 3:10 PM, Mark Brown wrote: >> > On Mon, Jun 12, 2017 at 01:52:46PM -0700, John Stultz wrote: >> > >> >> + sound { >> >> + compatible = "simple-audio-card"; >> >> + simple

Re: [GIT PULL 3/4] bcm2835-dt-next-2017-06-12

2017-06-13 Thread Florian Fainelli
On 06/13/2017 10:43 AM, Eric Anholt wrote: > The following changes since commit 1f8216e7f78c2e55b07117c77887a314bc36f690: > > Merge tag 'bcm2835-dt-next-2017-03-30' into devicetree/next (2017-05-13 > 20:22:59 -0700) > > are available in the git repository at: > > git://github.com/anholt/lin

Re: [GIT PULL 2/4] bcm2835-maintainers-next-2017-06-08

2017-06-13 Thread Florian Fainelli
On 06/13/2017 10:43 AM, Eric Anholt wrote: > The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: > > Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) > > are available in the git repository at: > > git://github.com/anholt/linux tags/bcm2835-maintainers-next-2017-06-08 > >

Re: [GIT PULL 4/4] bcm2835-dt-64-next-2017-06-08

2017-06-13 Thread Florian Fainelli
On 06/13/2017 10:43 AM, Eric Anholt wrote: > Hi Florian, > > Here's the last pull request in this series. I've based this summary > on the bcm2835-dt-next tag, to clarify what's in this patch series, > but it does require being careful since it involves a cross-merge > between branches. Merged,

Re: [RESEND x3][PATCH v4] arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 12:40:28PM -0700, John Stultz wrote: > description across the two namespaces of display and audio). While > I'm sure for many cases the graph approach is much cleaner, I'm not > sure for this one how its improving over the much simpler > simple-audio-card binding. It mean

[PATCH] char: tpm: remove unnecessary NULL check

2017-06-13 Thread Gustavo A. R. Silva
Remove unnecessary NULL check. Pointer _chip_ cannot be NULL in this instance. Addresses-Coverity-ID: 1397646 Cc: Jarkko Sakkinen Signed-off-by: Gustavo A. R. Silva --- drivers/char/tpm/tpm_atmel.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/char/tpm

Re: [PATCH 2/2] tty/serial: atmel: make the driver DT only

2017-06-13 Thread Alexandre Belloni
On 13/06/2017 at 17:50:25 +0300, Andy Shevchenko wrote: > On Tue, Jun 13, 2017 at 4:40 PM, Alexandre Belloni > wrote: > > Now that AVR32 is gone, platform_data are not used to initialize the driver > > anymore, remove that path from the driver. Also remove the now unused > > struct atmel_uart_data

Re: [RESEND x3][PATCH v4] arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support

2017-06-13 Thread John Stultz
On Tue, Jun 13, 2017 at 12:54 PM, Mark Brown wrote: > On Tue, Jun 13, 2017 at 12:40:28PM -0700, John Stultz wrote: > >> description across the two namespaces of display and audio). While >> I'm sure for many cases the graph approach is much cleaner, I'm not >> sure for this one how its improving

Re: [PATCH v2] HID: Replace semaphore driver_lock with mutex

2017-06-13 Thread Arnd Bergmann
On Tue, Jun 13, 2017 at 12:09 PM, Binoy Jayan wrote: > Hi, > > On 13 June 2017 at 15:26, Benjamin Tissoires > wrote: > >>> Looks good to me, but I see you didn't include David and Andrew on >>> Cc, it would be good for at least one of them to provide an Ack as well. >> >> Please also CC linux-inp

Re: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Mika Westerberg
On Tue, Jun 13, 2017 at 07:01:38PM +, Gabriele Paoloni wrote: > I am not very familiar with Linux MFD however the main issue here is that > 1) for IPMI we want to re-use the standard IPMI driver without touching it: >see > >static const struct acpi_device_id acpi_ipmi_match[] = { >

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-06-13 Thread Michael Bringmann
Hello: On 06/12/2017 12:32 PM, Tejun Heo wrote: > Hello, > > On Mon, Jun 12, 2017 at 12:10:49PM -0500, Michael Bringmann wrote: >>> The reason why we're ending up with empty masks is because >>> wq_calc_node_cpumask() is assuming that the possible node cpumask is >>> always a superset of online (

Re: Ftrace vs perf user page fault statistics differences

2017-06-13 Thread Steven Rostedt
On Tue, 13 Jun 2017 14:02:08 -0400 Will Hawkins wrote: > Thank you for pointing this out. I had been using -F for exactly the > reason that you mentioned. I failed to include it in the command that > I sent along. Very sorry for the confusion. Here is an updated version > of the command that I is

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-06-13 Thread Tejun Heo
Hello, On Tue, Jun 13, 2017 at 03:04:30PM -0500, Michael Bringmann wrote: > @@ -3564,19 +3564,28 @@ static struct pool_workqueue > *alloc_unbound_pwq(struct workqueue_struct *wq, > static bool wq_calc_node_cpumask(const struct workqueue_attrs *attrs, int > node, >

Re: [PATCH] iio hid-sensor-trigger: add Kconfig depends on IIO_BUFFER

2017-06-13 Thread Jonathan Cameron
On Mon, 12 Jun 2017 13:56:05 +0200 Alexander Wuerstlein wrote: > Building a kernel with my configuration failed with: > > drivers/built-in.o: In function `hid_sensor_setup_batch_mode': > > staging/drivers/iio/common/hid-sensors/hid-sensor-trigger.c:104: undefined > > reference to `iio_buffer_se

Re: [PATCH] af_iucv: Move sockaddr length checks to before accessing sa_family in bind and connect handlers

2017-06-13 Thread David Miller
From: Mateusz Jurczyk Date: Tue, 13 Jun 2017 19:42:28 +0200 > Verify that the caller-provided sockaddr structure is large enough to > contain the sa_family field, before accessing it in bind() and connect() > handlers of the AF_IUCV socket. Since neither syscall enforces a minimum > size of the c

Re: [RESEND x3][PATCH v4] arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 12:57:44PM -0700, John Stultz wrote: > On Tue, Jun 13, 2017 at 12:54 PM, Mark Brown wrote: > > On Tue, Jun 13, 2017 at 12:40:28PM -0700, John Stultz wrote: > >> The simple-audio-card bindings are still valid, so maybe could we > >> merge the proposed dts change I've submit

Re: [PATCH] dt-bindings: Drop k2g genpd device ID macros

2017-06-13 Thread Dave Gerlach
Santosh, On 05/31/2017 11:28 AM, Rob Herring wrote: > On Mon, May 22, 2017 at 01:37:37PM -0500, Dave Gerlach wrote: >> Commit 7cc119f29b19 ("dt-bindings: Add TI SCI PM Domains") introduced a >> number of K2G_DEV_x macros to represent each device ID available on the >> K2G platform for use by the ge

Re: [PATCH v2 2/2] regulator: tps65910: Allow supply references to the same chip

2017-06-13 Thread Michał Mirosław
On Tue, Jun 13, 2017 at 06:46:28PM +0100, Mark Brown wrote: > On Tue, Jun 13, 2017 at 04:41:58PM +0200, Michał Mirosław wrote: > > This allows for (acyclic) references from tps6591x supplies to > > its outputs. > This is clearly not something that should be open coded in individual > drivers, aside

[PATCH v2 2/2] tty/serial: atmel: make the driver DT only

2017-06-13 Thread Alexandre Belloni
Now that AVR32 is gone, platform_data are not used to initialize the driver anymore, remove that path from the driver. Also remove the now unused struct atmel_uart_data. Signed-off-by: Alexandre Belloni --- drivers/tty/serial/atmel_serial.c | 96 + include/l

[PATCH v2 1/2] tty/serial: atmel: remove atmel_default_console_device handling

2017-06-13 Thread Alexandre Belloni
atmel_default_console_device was only used by AVR32, in particular arch/avr32/mach-at32ap/at32ap700x.c which is now gone. Remove it from the driver. Signed-off-by: Alexandre Belloni --- Changes in v2: - added an empty line as suggested by Andy - properly based the patch on v4.12-rc1 drivers/

[PATCH] tty/serial: remove AVR32 specific access wrappers

2017-06-13 Thread Alexandre Belloni
Now that AVR32 is gone, the specific wrappers for that architecture are unnecessary and will not be compiled anymore. Signed-off-by: Alexandre Belloni --- drivers/tty/serial/atmel_serial.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/

Re: [PATCH v2] HID: Replace semaphore driver_lock with mutex

2017-06-13 Thread Arnd Bergmann
On Tue, Jun 13, 2017 at 5:43 PM, David Herrmann wrote: > Hi > > On Tue, Jun 13, 2017 at 11:56 AM, Benjamin Tissoires > wrote: >>> > - struct semaphore driver_lock; >>> > /* protects the current driver, except during input */ >>> > + struct mutex driv

Re: [PATCH] dt-bindings: Drop k2g genpd device ID macros

2017-06-13 Thread Santosh Shilimkar
On 6/13/2017 1:16 PM, Dave Gerlach wrote: Santosh, On 05/31/2017 11:28 AM, Rob Herring wrote: On Mon, May 22, 2017 at 01:37:37PM -0500, Dave Gerlach wrote: [...] [1] https://www.spinics.net/lists/arm-kernel/msg577079.html .../devicetree/bindings/soc/ti/sci-pm-domain.txt | 5 +- include

[PATCH] tty/serial: Kconfig: remove AVR32

2017-06-13 Thread Alexandre Belloni
AVR32 is now removed from the kernel, removed the config symbol that doesn't exist anymore. Also take the opportunity to reword the help to include sama5. Signed-off-by: Alexandre Belloni --- drivers/tty/serial/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dri

Re: [PATCH v6 5/8] regulator: hi6421v530: add driver for hi6421v530 voltage regulator

2017-06-13 Thread Mark Brown
On Fri, Jun 09, 2017 at 06:08:38AM +0800, Guodong Xu wrote: > From: Wang Xiaoyin > > add the driver for hi6421v530 voltage regulator Please don't resubmit patches that have already been applied, you should submit patches against current code in the tree you're expecting things to be applied to.

[PATCH 0/2] drivers/watchdog ASPEED: Add optional dev tree configs

2017-06-13 Thread Christopher Bostic
Add optional device tree attribute 'external-signal'. Configure watchdog to drive external signal on timeout if this attribute is present. Add optional device tree attribute 'no-system-reset'. Configure watchdog to not reset system on timeout if this attribute is present. This mode is used when

[PATCH 1/2] drivers/watchdog: Document new aspeed optional dev tree properties.

2017-06-13 Thread Christopher Bostic
Describe new optional property 'external-signal'. When present in the system device tree an exernal signal is generated on watchdog timeout. Describe new optional property 'no-system-reset'. When present in the system device tree no system reset is to occur on watchdog timeout. System reset in t

[PATCH 2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-06-13 Thread Christopher Bostic
Reference the system device tree when configuring the watchdog. Configure for external signal generation if optional attribute 'external-signal' is present in device tree. Configure for reset system after timeout if the optional attribute 'no-system-reset' is not present. Disabling system reset m

Re: [PATCH][netdev-next] net: hns: make guid hns_dsaf_acpi_dsm_guid static

2017-06-13 Thread Colin Ian King
On 13/06/17 20:24, Andy Shevchenko wrote: > On Tue, Jun 13, 2017 at 8:56 PM, David Miller wrote: >> From: Colin King >> Date: Tue, 13 Jun 2017 14:03:21 +0100 >> >>> From: Colin Ian King >>> >>> The guid hns_dsaf_acpi_dsm_guid does not need to be in global >>> scope, so make it static. >>> >>> Cl

Re: [RESEND x3][PATCH v4] arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support

2017-06-13 Thread John Stultz
On Tue, Jun 13, 2017 at 1:16 PM, Mark Brown wrote: > On Tue, Jun 13, 2017 at 12:57:44PM -0700, John Stultz wrote: >> On Tue, Jun 13, 2017 at 12:54 PM, Mark Brown wrote: >> > On Tue, Jun 13, 2017 at 12:40:28PM -0700, John Stultz wrote: > >> >> The simple-audio-card bindings are still valid, so may

[PATCH] rtlwifi: rtl8821ae: remove unused variable

2017-06-13 Thread Gustavo A. R. Silva
Remove unused variable rtlhal. Addresses-Coverity-ID: 1248810 Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/realtek/rtlwi

Re: [PATCH v2 2/2] regulator: tps65910: Allow supply references to the same chip

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 10:22:17PM +0200, Michał Mirosław wrote: > On Tue, Jun 13, 2017 at 06:46:28PM +0100, Mark Brown wrote: > > at all. Is this happening for you with current kernels, we have a few > > mechanisms for deferring bindings of supplies which should help here. > What mechanisms wou

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Tycho Andersen
On Tue, Jun 13, 2017 at 10:45:02AM -0700, James Bottomley wrote: > On Tue, 2017-06-13 at 11:14 -0600, Tycho Andersen via Containers wrote: > > Hi Stefan, > > > > On Tue, Jun 13, 2017 at 11:47:26AM -0400, Stefan Berger wrote: > > > On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: > > > > Root in a no

Re: [PATCH v1 2/4] ASoC: rockchip: i2s: add support for i2s bclk fs configuration

2017-06-13 Thread Mark Brown
On Fri, Jun 09, 2017 at 04:52:47PM +0800, Sugar Zhang wrote: > +- rockchip,bclk-fs: configure the i2s bclk fs. Rather than having a driver DT property for this the device should implement a set_bclk_ratio() operation and let the ratio be set by the machine driver. The simple and graph cards may

RE: [PATCH net-next 6/9] net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC

2017-06-13 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Sunday, June 11, 2017 3:43 AM > To: Florian Fainelli > Cc: Salil Mehta; da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; > lipeng (Y); mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker..

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Stefan Berger
On 06/13/2017 04:46 PM, Tycho Andersen wrote: On Tue, Jun 13, 2017 at 10:45:02AM -0700, James Bottomley wrote: On Tue, 2017-06-13 at 11:14 -0600, Tycho Andersen via Containers wrote: Hi Stefan, On Tue, Jun 13, 2017 at 11:47:26AM -0400, Stefan Berger wrote: On 05/08/2017 02:11 PM, Serge E. Hal

Re: [PATCH v1 4/4] ASoC: rockchip: i2s: fixup clk div

2017-06-13 Thread Mark Brown
On Fri, Jun 09, 2017 at 04:52:49PM +0800, Sugar Zhang wrote: > we found mclk maybe not precise as required because of PLL, > but it still can be used and no side effect. for example, if we > require mclk 11289600, but get 11289598, it doesn't matter. > so using DIV_ROUND_CLOSEST to fix it. This is

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Tycho Andersen
On Tue, Jun 13, 2017 at 01:42:24PM -0400, Stefan Berger wrote: > On 06/13/2017 01:14 PM, Tycho Andersen wrote: > > Hi Stefan, > > > > On Tue, Jun 13, 2017 at 11:47:26AM -0400, Stefan Berger wrote: > > > On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: > > > > Root in a non-initial user ns cannot be

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Tycho Andersen
On Tue, Jun 13, 2017 at 04:49:03PM -0400, Stefan Berger wrote: > On 06/13/2017 04:46 PM, Tycho Andersen wrote: > > On Tue, Jun 13, 2017 at 10:45:02AM -0700, James Bottomley wrote: > > > On Tue, 2017-06-13 at 11:14 -0600, Tycho Andersen via Containers wrote: > > > > Hi Stefan, > > > > > > > > On Tu

Re: [PATCH] of: Provide dummy of_device_compatible_match() for compile-testing

2017-06-13 Thread Rob Herring
On Tue, Jun 13, 2017 at 5:32 AM, Geert Uytterhoeven wrote: > On Tue, Apr 25, 2017 at 7:38 PM, Geert Uytterhoeven > wrote: >> Most of_device_*() functions have dummy versions for CONFIG_OF=n, >> but of_device_compatible_match() hasn't. Fix that to improve the >> ability to do compile-testing. >>

[PATCH v2] arm64/dma-mapping: Remove extraneous null-pointer checks

2017-06-13 Thread Olav Haugan
The current null-pointer check in __dma_alloc_coherent and __dma_free_coherent is not needed anymore since the __dma_alloc/__dma_free functions won't be called if !dev (dummy ops will be called instead). Signed-off-by: Olav Haugan --- arch/arm64/include/asm/dma-mapping.h | 2 -- arch/arm64/mm/dm

Re: [PATCH v2 pci] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2017-06-13 Thread Khuong Dinh
Hi Lorenzo, On Thu, Jun 8, 2017 at 3:39 AM, Lorenzo Pieralisi wrote: > On Tue, Jun 06, 2017 at 09:44:15AM -0700, Khuong Dinh wrote: >> Hi Lorenzo, >> >> On Tue, May 9, 2017 at 3:55 PM, Khuong Dinh wrote: >> > Hi Lorenzo, >> > >> > On Fri, May 5, 2017 at 9:51 AM, Lorenzo Pieralisi >> > wrote: >>

Re: WARN_ON_ONCE() in process_one_work()?

2017-06-13 Thread Tejun Heo
Hello, Paul. On Fri, May 05, 2017 at 10:11:59AM -0700, Paul E. McKenney wrote: > Just following up... I have hit this bug a couple of times over the > past few days. Anything I can do to help? My apologies for dropping the ball on this. I've gone over the hot plug code in workqueue several tim

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Stefan Berger
On 06/13/2017 04:53 PM, Tycho Andersen wrote: On Tue, Jun 13, 2017 at 04:49:03PM -0400, Stefan Berger wrote: On 06/13/2017 04:46 PM, Tycho Andersen wrote: On Tue, Jun 13, 2017 at 10:45:02AM -0700, James Bottomley wrote: On Tue, 2017-06-13 at 11:14 -0600, Tycho Andersen via Containers wrote: H

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Mimi Zohar
On Tue, 2017-06-13 at 14:53 -0600, Tycho Andersen wrote: > On Tue, Jun 13, 2017 at 04:49:03PM -0400, Stefan Berger wrote: > > On 06/13/2017 04:46 PM, Tycho Andersen wrote: > > > On Tue, Jun 13, 2017 at 10:45:02AM -0700, James Bottomley wrote: > > > > On Tue, 2017-06-13 at 11:14 -0600, Tycho Anderse

Re: WARNING: CPU: 2 PID: 7 at kernel/workqueue.c:2041 process_one_work

2017-06-13 Thread Tejun Heo
On Tue, May 30, 2017 at 01:24:06PM +0530, Abdul Haleem wrote: > Hi, > > Test : stress-ng > Machine : Power 8 Bare Metal > Kernel : 4.12.0-rc3 > Config : attached > gcc version: 4.8.5 > > > In file kernel/workqueue.c at line 2041 > > /* ensure we're on the correct CPU */ > WARN_ON_ONCE(!

Re: [PATCH v1] shebang: restrict python interactive prompt/interpreter

2017-06-13 Thread Mickaël Salaün
On 12/06/2017 16:27, Mimi Zohar wrote: > On Sun, 2017-06-11 at 22:32 -0400, Mimi Zohar wrote: >> On Sun, 2017-06-11 at 13:44 +0200, Mickaël Salaün wrote: > >>> Using filesystem xattr seems like a good idea for this kind of >>> exceptions and instead of a hardcoded interpreter path. Something lik

Re: [PATCH v1] shebang: restrict python interactive prompt/interpreter

2017-06-13 Thread Mickaël Salaün
On 12/06/2017 04:32, Mimi Zohar wrote: > On Sun, 2017-06-11 at 13:44 +0200, Mickaël Salaün wrote: >> On 10/06/2017 07:27, Tetsuo Handa wrote: >>> Kees Cook wrote: On Fri, Jun 9, 2017 at 10:23 AM, Matt Brown wrote: > what does everyone thing about a envp_blacklist option that is a list of

Re: [PATCH V5] rxe: Fix a sleep-in-atomic bug in post_one_send

2017-06-13 Thread Doug Ledford
On Mon, 2017-06-05 at 20:23 +0800, Jia-Ju Bai wrote: > The driver may sleep under a spin lock, and the function call path > is: > post_one_send (acquire the lock by spin_lock_irqsave) >   init_send_wqe >     copy_from_user --> may sleep > > There is no flow that makes "qp->is_user" true, and copy_

[PATCH v2 4/5] staging: rtl8723bs: wifi_regd.c: adjust alignment to match open parenthesis

2017-06-13 Thread Fabian Wolff
This patch adjusts the alignment of several lines to match their respective opening parenthesis. Signed-off-by: Fabian Wolff Signed-off-by: Mate Horvath --- v1->v2: refresh patch drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[PATCH v2 3/5] staging: rtl8723bs: wifi_regd.c: remove superfluous spaces from pointer arguments

2017-06-13 Thread Fabian Wolff
This patch implements the suggestions of checkpatch.pl to remove unnecessary spaces before function pointer arguments as well as in statements of the form "foo * bar" (which should be "foo *bar"). Signed-off-by: Fabian Wolff Signed-off-by: Mate Horvath --- v1->v2: refresh patch drivers

[PATCH v2 2/5] staging: rtl8723bs: wifi_regd.c: fix comment formatting

2017-06-13 Thread Fabian Wolff
This patch improves the formatting of block comments and removes one commented-out line of code entirely (keeping it would be redundant thanks to version control). Signed-off-by: Fabian Wolff Signed-off-by: Mate Horvath --- v1->v2: refresh patch drivers/staging/rtl8723bs/os_dep/wifi_re

[PATCH v2 1/5] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators

2017-06-13 Thread Fabian Wolff
This patch adds spaces around the binary operators '-' and '+'. Signed-off-by: Fabian Wolff Signed-off-by: Mate Horvath --- v1->v2: apply changes only to arithmetic operators drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v2 5/5] staging: rtl8723bs: wifi_regd.c: insert blank line after declarations

2017-06-13 Thread Fabian Wolff
This patch inserts a missing blank line after variable declarations. Signed-off-by: Fabian Wolff Signed-off-by: Mate Horvath --- v1->v2: refresh patch drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8723bs/os_dep/wifi_

[PATCH v2 0/5] staging: rtl8723bs: wifi_regd.c: fix checkpatch errors and warnings

2017-06-13 Thread Fabian Wolff
v1->v2: Refresh patches and restrict the first patch to arithmetic operators This patch series fixes all errors and warnings generated by checkpatch.pl for wifi_regd.c. Fabian Wolff (5): staging: rtl8723bs: wifi_regd.c: put spaces around binary operators staging: rtl8723bs: wifi_regd.c: fix c

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