Re: [PATCH v2 5/5] PCI: qcom: Add support for configuring BDF to SID mapping for SM8250

2020-09-30 Thread Manivannan Sadhasivam
Hi Stan, On Thu, Oct 01, 2020 at 12:46:46AM +0300, Stanimir Varbanov wrote: > Hi Mani, > > On 9/30/20 6:09 PM, Manivannan Sadhasivam wrote: > > For SM8250, we need to write the BDF to SID mapping in PCIe controller > > register space for proper working. This is accomplished by extracting > > the

[GIT PULL]: soundwire updates for v5.10-rc1

2020-09-30 Thread Vinod Koul
Hi Greg, Please pull to receive updates for soundwire subsystem. The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire.git

Re: [musl] [PATCH 1/1] linux/sysinfo.h: Add guarder for struct sysinfo

2020-09-30 Thread Petr Vorel
Hi Rich, ... > I don't think this is the right way to do it. It prevents getting > access to the kernel uapi structure (which may be wanted) if you're > not using glibc or if you include kernel headers before any libc > headers. Rather, , whose only real purpose is > providing this structure to

[rcu:rcu/next] BUILD SUCCESS c6769e4694d8035cf1bf18e0d63406cde469639a

2020-09-30 Thread kernel test robot
randconfig-a003-20200930 i386 randconfig-a002-20200930 i386 randconfig-a006-20200930 i386 randconfig-a005-20200930 i386 randconfig-a004-20200930 i386 randconfig-a001-20200930 x86_64 randconfig

Re: [PATCH v2 4/4] mtd: spi-nor: implement OTP support for Winbond and similar flashes

2020-09-30 Thread Heiko Thiery
HI Michael, Am Sa., 12. Sept. 2020 um 00:26 Uhr schrieb Michael Walle : > > Use the new OTP ops to implement OTP access on Winbond flashes. Most > Winbond flashes provides up to four different OTP areas ("Security > Registers"). Newer flashes uses the first OTP area for SFDP data. Thus, > for

Re: [PATCH 3/3] drm/ingenic: Alloc cached GEM buffers with dma_alloc_noncoherent

2020-09-30 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 07:16:44PM +0200, Paul Cercueil wrote: > It turns out that if you want to mmap GEM buffers fully cached, then > they should be allocated as such as well. Who would have known? > > Introduce a custom .dumb_create callback, that will behave just like >

Re: [PATCH 9/9] perf tools: Align buildid list output for short build ids

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > With shorter md5 build ids we need to align their > paths properly with other build ids: > > $ perf buildid-list > 17f4e448cc746582ea1881528deb549f7fdb3fd5 [kernel.kallsyms] > a50e350e97c43b4708d09bcd85ebfff7

Re: [PATCH v2 4/5] PCI: qcom: Add SM8250 SoC support

2020-09-30 Thread Manivannan Sadhasivam
Hi Stan, On Thu, Oct 01, 2020 at 12:56:28AM +0300, Stanimir Varbanov wrote: > Hi Mani, > > On 9/30/20 6:09 PM, Manivannan Sadhasivam wrote: > > The PCIe IP on SM8250 SoC is similar to the one used on SDM845. Hence > > the support is added reusing the members of ops_2_7_0. The key > > difference

Re: [PATCH v2 3/4] mtd: spi-nor: implement OTP support for Macronix and similar flashes

2020-09-30 Thread Heiko Thiery
Hi Michael, Am Sa., 12. Sept. 2020 um 00:26 Uhr schrieb Michael Walle : > > Use the new OTP ops to implement OTP access on Macronix flashes. The > Macronix flashes provides one OTP area which is either programmed with > an electrical serial number and locked by the factory or is empty and can >

Re: [PATCH v2 2/4] mtd: spi-nor: add OTP support

2020-09-30 Thread Heiko Thiery
Hi Michael, Am Sa., 12. Sept. 2020 um 00:26 Uhr schrieb Michael Walle : > > Implement the MTD callbacks for the OTP methods for the SPI NOR > subsystem. > > Usually, the OTP area of a SPI flash can be accessed like the normal > memory, eg by offset addressing; except that you either have to use >

Re: [PATCH 2/3] drm/ingenic: Update code to mmap GEM buffers cached

2020-09-30 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 07:16:43PM +0200, Paul Cercueil wrote: > The DMA API changed at the same time commit 37054fc81443 ("gpu/drm: > ingenic: Add option to mmap GEM buffers cached") was added. Rework the > code to work with the new DMA API. > > Signed-off-by: Paul Cercueil > --- >

Re: [PATCH 8/9] perf tools: Add size to struct perf_record_header_build_id

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > We do not store size with build ids in perf data, > but there's enough space to do it. Adding misc bit > PERF_RECORD_MISC_BUILD_ID_SIZE to mark build id event > with size. > > With this fix the dso with md5 build id will have correct > build

Re: [PATCH v1] i2c: npcm7xx: Support changing bus speed using debugfs.

2020-09-30 Thread Tali Perry
On Wed, Sep 30, 2020 at 12:31 PM Andy Shevchenko wrote: > > On Wed, Sep 30, 2020 at 10:13:42AM +0300, Tali Perry wrote: > > Systems that can dinamically add and remove slave devices > > dynamically > > > often need to change the bus speed in runtime. > > > This patch exposes the bus frequency to

Re: [PATCH v2 2/3] tracing: Fix parse_synth_field() error handling

2020-09-30 Thread Masami Hiramatsu
Hi Tom, On Wed, 30 Sep 2020 13:40:51 -0500 Tom Zanussi wrote: > synth_field_size() returns either a positive size or an error (zero or > a negative value). However, the existing code assumes the only error > value is 0. It doesn't handle negative error codes, as it assigns > directly to

Re: [PATCH 7/9] perf tools: Pass build_id object to dso__build_id_equal

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Passing build_id object to dso__build_id_equal, so we can > properly check build id with different size than sha1. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/dso.c| 5 +++-- >

Re: [PATCH 6/9] perf tools: Pass build_id object to dso__set_build_id

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Passing build_id object to dso__set_build_id, so it's easier > to initialize dos's build id object. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/dso.c| 4 ++-- > tools/perf/util/dso.h

Re: [PATCH 5/9] perf tools: Pass build_id object to build_id__sprintf

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Passing build_id object to build_id__sprintf function, > so it can operate with the proper size of build id. > > This will create proper md5 build id readable names, > like following: > a50e350e97c43b4708d09bcd85ebfff7 > > instead of: >

Re: [PATCH v2] ARM: kprobes: Avoid fortify_panic() when copying optprobe template

2020-09-30 Thread Masami Hiramatsu
On Thu, 1 Oct 2020 13:59:27 +0930 Andrew Jeffery wrote: > Setting both CONFIG_KPROBES=y and CONFIG_FORTIFY_SOURCE=y on ARM leads > to a panic in memcpy() when injecting a kprobe despite the fixes found > in commit e46daee53bb5 ("ARM: 8806/1: kprobes: Fix false positive with > FORTIFY_SOURCE")

Re: [PATCH 4/9] perf tools: Pass build id object to sysfs__read_build_id

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Passing build id object to sysfs__read_build_id function, > so it can populate the size of the build_id object. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/build-id.c | 6 +++--- >

Re: [PATCH v4 5/7] clk: axi-clkgen: Respect ZYNQMP PFD/VCO frequency limits

2020-09-30 Thread Alexandru Ardelean
On Wed, Sep 30, 2020 at 8:16 PM Moritz Fischer wrote: > > On Wed, Sep 30, 2020 at 08:22:23AM +0300, Alexandru Ardelean wrote: > > On Tue, Sep 29, 2020 at 6:30 PM Moritz Fischer wrote: > > > > > > Hi Alexandru, > > > > > > On Tue, Sep 29, 2020 at 05:44:15PM +0300, Alexandru Ardelean wrote: > > >

Re: [PATCH 3/9] perf tools: Pass build_id object to filename__read_build_id

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Passing build_id object to filename__read_build_id function, > so it can populate the size of the build_id object. > > Changing filename__read_build_id code for both elf/non-elf > code. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers

Re: dma-coherent property for PCIe Root

2020-09-30 Thread Jon Masters
On 9/14/20 1:23 AM, Valmiki wrote: Hi All, How does "dma-coherent" property will work for PCIe as RC on an ARM SOC ? Because the end point device drivers are the one which will request dma buffers and Root port driver doesn't involve in data path of end point except for handling interrupts.

Re: [PATCH v2 3/3] doc: dev-tools: kselftest.rst: Update examples and paths

2020-09-30 Thread Naresh Kamboju
On Tue, 29 Sep 2020 at 01:56, Kees Cook wrote: > > Update the installation commands and path details, detail the new > options available in the run_kselftests.sh script. > > Signed-off-by: Kees Cook Reviewed-by: Naresh Kamboju > --- > Documentation/dev-tools/kselftest.rst | 35

Re: [PATCH v2 2/3] selftests/run_kselftest.sh: Make each test individually selectable

2020-09-30 Thread Naresh Kamboju
On Tue, 29 Sep 2020 at 01:56, Kees Cook wrote: > > Currently with run_kselftest.sh there is no way to choose which test > we could run. All the tests listed in kselftest-list.txt are all run > every time. This patch enhanced the run_kselftest.sh to make the test > collections (or tests)

Re: [PATCH v2 1/3] selftests: Extract run_kselftest.sh and generate stand-alone test list

2020-09-30 Thread Naresh Kamboju
On Tue, 29 Sep 2020 at 01:56, Kees Cook wrote: > > Instead of building a script on the fly (which just repeats the same > thing for each test collection), move the script out of the Makefile and > into run_kselftest.sh, which reads kselftest-list.txt. > > Adjust the emit_tests target to report

Re: [PATCH blk-next 0/2] Delete the get_vector_affinity leftovers

2020-09-30 Thread Leon Romanovsky
On Tue, Sep 29, 2020 at 12:13:56PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > There are no drivers that implement .get_vector_affinity(), so delete > the RDMA function and simplify block code. > > Thanks > > P.S. Probably it should go through block tree. > > Leon Romanovsky (2): >

Litmus test for question from Al Viro

2020-09-30 Thread Paul E. McKenney
Hello! Al Viro posted the following query: fun question regarding barriers, if you have time for that V->A = V->B = 1; CPU1: to_free = NULL spin_lock() if (!smp_load_acquire(>B))

RE: [PATCH 5/8] usb: cdns3: Changed type of gadget_dev in cdns structure

2020-09-30 Thread Pawel Laszczak
> >On 20-09-28 14:27:38, Pawel Laszczak wrote: >> Patch changes the type for gadget_dev pointer in cdns structure from >> pointer to cdns3_device structure to void pointer. >> This filed is in reusable code and after this change it will be used to >> point to both cdns3_device or cdnsp_device

Re: [PATCH] mmc: core: don't set limits.discard_granularity as 0

2020-09-30 Thread Coly Li
On 2020/10/1 01:23, Adrian Hunter wrote: > On 30/09/20 7:08 pm, Coly Li wrote: >> In mmc_queue_setup_discard() the mmc driver queue's discard_granularity >> might be set as 0 (when card->pref_erase > max_discard) while the mmc >> device still declares to support discard operation. This is buggy

[PATCH v2] ARM: kprobes: Avoid fortify_panic() when copying optprobe template

2020-09-30 Thread Andrew Jeffery
Setting both CONFIG_KPROBES=y and CONFIG_FORTIFY_SOURCE=y on ARM leads to a panic in memcpy() when injecting a kprobe despite the fixes found in commit e46daee53bb5 ("ARM: 8806/1: kprobes: Fix false positive with FORTIFY_SOURCE") and commit 0ac569bf6a79 ("ARM: 8834/1: Fix: kprobes: optimized

Re: [PATCH v6 0/5] Add shared workqueue support for idxd driver

2020-09-30 Thread Vinod Koul
Hi Dave, On 30-09-20, 15:19, Dave Jiang wrote: > > > On 9/24/2020 2:51 PM, Borislav Petkov wrote: > > On Thu, Sep 24, 2020 at 02:32:35PM -0700, Dave Jiang wrote: > > > Hi Vinod, > > > Looks like we are cleared on the x86 patches for this series with sign > > > offs > > > from maintainer Boris.

DONATION ..... 211

2020-09-30 Thread L. Wanczyk.
Hello, I'm Mrs. Mavis Wanczyk, the mega winner of $758 Million in Mega Millions Jackpot, I am donating to 5 random individuals if you get this email then your email was selected after a spin ball. I have spread most of my wealth over a number of charities and organizations. I have voluntarily

Re: [PATCH V3 1/8] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-09-30 Thread Joe Perches
On Wed, 2020-09-30 at 21:17 -0700, Kees Cook wrote: > On Wed, Sep 30, 2020 at 01:57:40PM +0200, Greg Kroah-Hartman wrote: > > Kees, and Rafael, I don't know if you saw this proposal from Joe for > > sysfs files, questions below: > > I'm a fan. I think the use of sprintf() in sysfs might have been

Re: [PATCH V3 1/8] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-09-30 Thread Kees Cook
On Wed, Sep 30, 2020 at 01:57:40PM +0200, Greg Kroah-Hartman wrote: > Kees, and Rafael, I don't know if you saw this proposal from Joe for > sysfs files, questions below: I'm a fan. I think the use of sprintf() in sysfs might have been one of my earliest complaints about unsafe code patterns in

Re: [PATCH v5 03/15] misc: bcm-vk: add autoload support

2020-09-30 Thread kernel test robot
Hi Scott, I love your patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on soc/for-next kees/for-next/pstore linus/master v5.9-rc7 next-20200930] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Dmitry Osipenko
01.10.2020 05:48, Nicolin Chen пишет: > On Thu, Oct 01, 2020 at 05:06:19AM +0300, Dmitry Osipenko wrote: >> 01.10.2020 04:26, Nicolin Chen пишет: >>> On Thu, Oct 01, 2020 at 12:56:46AM +0300, Dmitry Osipenko wrote: 01.10.2020 00:32, Nicolin Chen пишет: > On Thu, Oct 01, 2020 at 12:24:25AM

Re: [net-next PATCH v1 3/7] net: phy: Introduce fwnode_get_phy_id()

2020-09-30 Thread Calvin Johnson
On Wed, Sep 30, 2020 at 08:19:02PM +0200, Andrew Lunn wrote: > On Wed, Sep 30, 2020 at 07:07:25PM +0100, Russell King - ARM Linux admin > wrote: > > On Wed, Sep 30, 2020 at 06:34:40PM +0200, Andrew Lunn wrote: > > > > @@ -2866,7 +2888,15 @@ EXPORT_SYMBOL_GPL(device_phy_find_device); > > > > */

Re: [net-next PATCH v1 2/7] net: phy: Introduce phy related fwnode functions

2020-09-30 Thread Calvin Johnson
On Wed, Sep 30, 2020 at 03:03:49PM -0700, David Miller wrote: > From: Calvin Johnson > Date: Wed, 30 Sep 2020 21:34:25 +0530 > > > +struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode) > > +{ > > + struct device *d; > > + struct mdio_device *mdiodev; > > Please use

Re: [PATCH v2 10/12] dt-bindings: arm: fsl: document i.MX6DL Aristainetos boards

2020-09-30 Thread Heiko Schocher
Hello Krzysztof, Am 30.09.2020 um 21:01 schrieb Krzysztof Kozlowski: Document and adjust the compatibles for i.MX6DL based Aristainetos boards from ABB. Cc: Heiko Schocher Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Use ABB vendor prefix ---

linux-next: manual merge of the net-next tree with the net tree

2020-09-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/mptcp/protocol.h between commit: 1a49b2c2a501 ("mptcp: Handle incoming 32-bit DATA_FIN values") from the net tree and commit: 5c8c1640956e ("mptcp: add mptcp_destroy_common helper") from the net-next tree. I

Re: [PATCH v2 11/12] ARM: dts: imx6dl: add compatibles for Aristainetos boards

2020-09-30 Thread Heiko Schocher
Hello Krzysztof, Am 30.09.2020 um 21:01 schrieb Krzysztof Kozlowski: The Aristainetos and Aristainetos2 boards have only SoC compatible. Cc: Heiko Schocher Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Use ABB vendor prefix --- arch/arm/boot/dts/imx6dl-aristainetos2_4.dts |

linux-next: manual merge of the net-next tree with the net tree

2020-09-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/mptcp/protocol.c between commit: 917944da3bfc ("mptcp: Consistently use READ_ONCE/WRITE_ONCE with msk->ack_seq") from the net tree and commit: 8268ed4c9d19 ("mptcp: introduce and use mptcp_try_coalesce()")

Re: [PATCH v2 09/12] dt-bindings: vendor-prefixes: add ABB

2020-09-30 Thread Heiko Schocher
Hello Krzysztof, Am 30.09.2020 um 21:01 schrieb Krzysztof Kozlowski: Document binding for ABB. Cc: Heiko Schocher Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Use ABB vendor prefix --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2

Re: [PATCH v6 4/4] bus: mhi: Add userspace client interface driver

2020-09-30 Thread Hemant Kumar
Hi Loic, On 9/22/20 4:10 AM, Loic Poulain wrote: Hi Hemant, See comments inline, but globally, the locking and ref counting is more complicated than it should be. On Wed, 16 Sep 2020 at 21:57, Hemant Kumar wrote: This MHI client driver allows userspace clients to transfer raw data between

[PATCH 1/2] dt-bindings: phy: Allow defining the SATA AFE TX amplitude

2020-09-30 Thread Florian Fainelli
Document a new property which allows the selection of the SATA AFE TX amplitude in milli Volts. Possible values are 400, 500, 600 and 800mV. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/phy/brcm-sata-phy.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 2/2] phy: phy-brcm-sata: Allow configuration SATA AFE TX amplitude

2020-09-30 Thread Florian Fainelli
Read the 'brcm,tx-amplitude-millivolt' property from Device Tree and propagate its value into the appropriate test transmit register to change the TX amplitude. Signed-off-by: Florian Fainelli --- drivers/phy/broadcom/phy-brcm-sata.c | 32 1 file changed, 32

[PATCH 0/2] phy: phy-brcm-sata: Allow configuration SATA AFE TX amplitude

2020-09-30 Thread Florian Fainelli
Hi Kishon, This patch series allows the configuration of the Broadcom SATA PHY TX amplitude which may be required in order to meet specific tests. Thanks! Florian Fainelli (2): dt-bindings: phy: Allow defining the SATA AFE TX amplitude phy: phy-brcm-sata: Allow configuration SATA AFE TX

[PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging

2020-09-30 Thread Florian Fainelli
The intent of 412a1526d067 ("net: dsa: untag the bridge pvid from rx skbs") is to transparently untag the bridge's default_pvid when the Ethernet switch can only support egress tagged of that default_pvid towards the CPU port. Prior to this commit, users would have to configure an 802.1Q upper on

Re: [PATCH v2] pipe: Fix memory leaks in create_pipe_files()

2020-09-30 Thread Eric Biggers
On Wed, Sep 30, 2020 at 10:52:55PM -0400, Qian Cai wrote: > diff --git a/include/linux/watch_queue.h b/include/linux/watch_queue.h > index 5e08db2adc31..20665fbe0552 100644 > --- a/include/linux/watch_queue.h > +++ b/include/linux/watch_queue.h > @@ -123,5 +123,9 @@ static inline void

Re: kernel BUG at mm/mmap.c:LINE!

2020-09-30 Thread Souptick Joarder
On Fri, Sep 4, 2020 at 12:39 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1127b219 Merge tag 'fallthrough-fixes-5.9-rc3' of git://gi.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=136d098e90 > kernel config:

Re: [External] Re: [RFC PATCH 05/24] mm/hugetlb: Introduce nr_free_vmemmap_pages in the struct hstate

2020-09-30 Thread Muchun Song
On Thu, Oct 1, 2020 at 6:41 AM Mike Kravetz wrote: > > On 9/15/20 5:59 AM, Muchun Song wrote: > > If the size of hugetlb page is 2MB, we need 512 struct page structures > > (8 pages) to be associated with it. As far as I know, we only use the > > first 3 struct page structures and only read the

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Nicolin Chen
On Thu, Oct 01, 2020 at 05:06:19AM +0300, Dmitry Osipenko wrote: > 01.10.2020 04:26, Nicolin Chen пишет: > > On Thu, Oct 01, 2020 at 12:56:46AM +0300, Dmitry Osipenko wrote: > >> 01.10.2020 00:32, Nicolin Chen пишет: > >>> On Thu, Oct 01, 2020 at 12:24:25AM +0300, Dmitry Osipenko wrote: > ...

linux-next: build failure after merge of the hwmon-staging tree

2020-09-30 Thread Stephen Rothwell
pmbus_do_probe(struct i2c_client *client, struct pmbus_driver_info *info); | ^~ Caused by commit dd38ac315b23 ("hwmon: (pmbus) Add support for MPS Multi-phase mp2975 controller") I have used the hwmon-staging tree from next-20200930 for today. -- Cheers, Stephe

[PATCH v2] pipe: Fix memory leaks in create_pipe_files()

2020-09-30 Thread Qian Cai
Calling pipe2() with O_NOTIFICATION_PIPE could results in memory leaks in an error path or CONFIG_WATCH_QUEUE=n. Plug them. unreferenced object 0xc0141114a0d8 (size 992): comm "trinity-c61", pid 1353192, jiffies 4296255779 (age 25989.560s) hex dump (first 32 bytes): 80 11 00 00 e8 03

Re: [PATCH v5 00/15] Add Broadcom VK driver

2020-09-30 Thread Florian Fainelli
On 9/30/2020 6:27 PM, Scott Branden wrote: This patch series drops previous patches in [1] that were incorporated by Kees Cook into patch series "Introduce partial kernel_read_file() support" [2]. Remaining patches are contained in this series to add Broadcom VK driver. (which depends on

Re: [PATCH v5 15/15] misc: bcm-vk: add ttyVK support

2020-09-30 Thread Florian Fainelli
On 9/30/2020 6:28 PM, Scott Branden wrote: Add ttyVK support to driver to allow console access to VK card from host. Device node will be in the follow form /dev/bcm-vk.x_ttyVKy where: x is the instance of the VK card y is the tty device number on the VK card Signed-off-by: Scott Branden

Re: [PATCH v5 11/15] misc: bcm-vk: add BCM_VK_QSTATS

2020-09-30 Thread Florian Fainelli
On 9/30/2020 6:28 PM, Scott Branden wrote: Add BCM_VK_QSTATS Kconfig option to allow for enabling debug VK queue statistics. These statistics keep track of max, abs_max, and average for the messages queues. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Signed-off-by: Scott

Re: [PATCH v5 12/15] misc: bcm-vk: add sysfs interface

2020-09-30 Thread Florian Fainelli
On 9/30/2020 6:28 PM, Scott Branden wrote: Add sysfs support to query the VK card status and monitor sense points. The vk-card-status and vk-card-mon details are provided in the README file in the bcm-vk driver directory. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan

Re: dsa: mv88e6xxx: serdes link without phy

2020-09-30 Thread Chris Packham
On 1/10/20 2:24 pm, Andrew Lunn wrote: >>     port@8 { >>     reg = <8>; >>     label = "internal8"; >>     phy-mode = "rgmii-id"; >>     fixed-link { >>

Re: For review: seccomp_user_notif(2) manual page

2020-09-30 Thread Jann Horn
On Thu, Oct 1, 2020 at 3:52 AM Jann Horn wrote: > On Thu, Oct 1, 2020 at 1:25 AM Tycho Andersen wrote: > > On Thu, Oct 01, 2020 at 01:11:33AM +0200, Jann Horn wrote: > > > On Thu, Oct 1, 2020 at 1:03 AM Tycho Andersen wrote: > > > > On Wed, Sep 30, 2020 at 10:34:51PM +0200, Michael Kerrisk

[PATCH 00/25] ASoC: sun8i-codec: support for AIF2 and AIF3

2020-09-30 Thread Samuel Holland
This series adds support the other two AIFs present in the sun8i codec, which can be used for codec2codec DAI links. This series first cleans up the DAPM component driver so there is an organized place to put the new widgets. Then it fills out the DAI driver, removing assumptions that were made

[PATCH 05/25] ASoC: sun8i-codec: Correct DAPM widget types

2020-09-30 Thread Samuel Holland
Whie the aif_in and aif_out widget types are handled exactly the same in the core DAPM code, a future widget event hook will need the correct widget type to derive the associated substream. Clean up the widget type for that reason, and so these widgets will match newly-added widgets for the other

[PATCH 15/25] ASoC: sun8i-codec: Support the TDM slot binding

2020-09-30 Thread Samuel Holland
Now that BCLK and LRCK rate calculations can handle any hardware-supported slot width and number of slots, enable support for overriding these parameters from the device tree. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 28 ++-- 1 file changed, 26

[PATCH 17/25] ASoC: sun8i-codec: Enable all supported sample rates

2020-09-30 Thread Samuel Holland
The system sample rate programmed into the hardware is really a clock divider from SYSCLK to the ADC and DAC. Since we support two SYSCLK frequencies, we can use all sample rates corresponding to one of those frequencies divided by any available divisor. This commit enables support for those

[PATCH 13/25] ASoC: sun8i-codec: Round up the LRCK divisor

2020-09-30 Thread Samuel Holland
The codec supports only power-of-two BCLK/LRCK divisors. If either the slot width or the number of slots is not a power of two, the LRCK divisor must be rounded up to provide enough space. To do that, use order_base_2 (instead of ilog2, which rounds down). Since the rounded divisor is also needed

[PATCH 02/25] ASoC: sun8i-codec: Swap module clock/reset dependencies

2020-09-30 Thread Samuel Holland
This matches the module power-up/down sequence from the vendor's driver. While updating these widgets/routes, reorder them to match the register and bit layout of the hardware. This puts them in the same place in the widget and route arrays (previously they were at opposite ends), and it makes it

[PATCH 14/25] ASoC: sun8i-codec: Correct the BCLK divisor calculation

2020-09-30 Thread Samuel Holland
Previously, the BCLK divisor calculation assumed a power-of-two slot width and exactly two slots. In order to support the TDM slot binding and 20/24-bit word sizes, those assumptions must be removed. Due to hardware limitations, the BCLK/LRCK ratio is not as simple as "slot_width * slots".

[PATCH 11/25] ASoC: sun8i-codec: Enable all supported clock inversions

2020-09-30 Thread Samuel Holland
When using the I2S, LEFT_J, or RIGHT_J format, the hardware supports independent BCLK and LRCK inversion control. When using DSP_A or DSP_B, LRCK inversion is not supported. The register bit is repurposed to select between DSP_A and DSP_B. Extend the driver to support this. Signed-off-by: Samuel

[PATCH 22/25] ASoC: sun8i-codec: Enable all supported PCM formats

2020-09-30 Thread Samuel Holland
Now that the DAI clock setup is correct for all hardware-supported PCM formats, we can enable them in the driver. With the appropriate support in the CPU DAI driver, this allows userspace to access the additional formats. Since this codec is connected to the CPU via a DAI, not directly, we do not

[PATCH 21/25] ASoC: sun8i-codec: Require an exact BCLK divisor match

2020-09-30 Thread Samuel Holland
Now that we guarantee that SYSCLK is running at the optimal rate when hw_params succeeds, and that it will continue running at that rate, SYSCLK will always be an integer multiple of BCLK. So we can always pick the exact divider, not just the closest divider. Signed-off-by: Samuel Holland ---

[PATCH 10/25] ASoC: sun8i-codec: Program format before clock inversion

2020-09-30 Thread Samuel Holland
The LRCK inversion bit has a different meaning in DSP mode: it selects between DSP A and DSP B formats. To support this, we need to know if the selected format is a DSP format. One easy way to do this is to set the format field before the inversion fields. Signed-off-by: Samuel Holland ---

[PATCH 04/25] ASoC: sun8i-codec: Consistently name DAPM widgets and routes

2020-09-30 Thread Samuel Holland
This cleans up the mixer widget names. The AIF1 AD0 Mixer names were previously wrong -- they do not control the digital side of the ADC. The DAC mixer widgets were not wrong, but they were verbose and did not match the naming scheme of the other widgets. The mixer controls are not renamed

[PATCH 12/25] ASoC: sun8i-codec: Program the correct word size

2020-09-30 Thread Samuel Holland
The hardware supports 8 to 24-bit word sizes on all three of its DAIs, only one of which is connected to the CPU DAI. Program the word size based on the actual selected format, instead of relying on limitations in another driver (which, incedentally, has patches pending to remove that limitation).

[PATCH 18/25] ASoC: sun8i-codec: Automatically set the system sample rate

2020-09-30 Thread Samuel Holland
The sun8i codec has three clock/sample rate domains: - The AIF1 domain, with a sample rate equal to AIF1 LRCK - The AIF2 domain, with a sample rate equal to AIF2 LRCK - The SYSCLK domain, containing the ADC, DAC, and effects (AGC/DRC), with a sample rate given by a divisor from SYSCLK. The

[PATCH 19/25] ASoC: sun8i-codec: Constrain to compatible sample rates

2020-09-30 Thread Samuel Holland
While another stream is active, only allow userspace to use sample rates that are compatible with the current SYSCLK frequency. This ensures the actual sample rate will always match what is given in hw_params. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 59

[PATCH 20/25] ASoC: sun8i-codec: Protect the clock rate while streams are open

2020-09-30 Thread Samuel Holland
The codec's clock input is shared among all AIFs, and shared with other audio-related hardware in the SoC, including I2S and SPDIF controllers. To ensure sample rates selected by userspace or by codec2codec DAI links are maintained, the clock rate must be protected while it is in use.

[PATCH 09/25] ASoC: sun8i-codec: Prepare to extend the DAI driver

2020-09-30 Thread Samuel Holland
In preparation for adding additional DAIs to this component, convert the DAI driver definition to an array. Since this changes all of the lines in the definition anyway, let's move it closer to the ops function definitions, instead of on the far side of the DAPM arrays. And while moving the DAI

[PATCH 25/25] ASoC: sun8i-codec: Add a DAI, widgets, and routes for AIF3

2020-09-30 Thread Samuel Holland
AIF3 has some differences from AIF1 and AIF2: - It supports mono only - It supports master mode only - It is not directly connected to any of the mixers; instead all audio goes through a mux with AIF2. - It does not have its own clock dividers; instead it reuses AIF2 BCLK. This means

[PATCH 08/25] ASoC: sun8i-codec: Use snd_soc_dai_get_drvdata

2020-09-30 Thread Samuel Holland
Remove a level of indirection by getting the device directly from the passed-in struct snd_soc_dai, instead of going through its component. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 07/25] ASoC: sun8i-codec: Enable AIF mono/stereo control

2020-09-30 Thread Samuel Holland
Each left/right pair of AIF input/output channels can be swapped or combined. This is useful for sending a mono audio source to both sides of a stereo sink, or for creating complex mixing scenarios. Add the support to control this feature from userspace. Signed-off-by: Samuel Holland ---

[PATCH 24/25] ASoC: sun8i-codec: Add a DAI, widgets, and routes for AIF2

2020-09-30 Thread Samuel Holland
This adds support for AIF2, which is stereo and has full clocking capability, making it very similar to AIF1. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 215 ++ 1 file changed, 215 insertions(+) diff --git a/sound/soc/sunxi/sun8i-codec.c

[PATCH 16/25] ASoC: sun8i-codec: Enforce symmetric DAI parameters

2020-09-30 Thread Samuel Holland
The AIFs have a single register controlling DAI parameters in both directions, including BCLK/LRCK divisor word size. The DAIs produce only noise or silence if any of these parameters is wrong. Therefore, we need to enforce symmetry for these parameters, so starting a new substream will not break

[PATCH 23/25] ASoC: sun8i-codec: Generalize AIF clock control

2020-09-30 Thread Samuel Holland
The AIF clock control register has the same layout for all three AIFs. The only difference between them is that AIF3 is missing some fields. We can reuse the same register field definitions for all three registers, and use the DAI ID to select the correct register address. Signed-off-by: Samuel

[PATCH 03/25] ASoC: sun8i-codec: Sort DAPM controls, widgets, and routes

2020-09-30 Thread Samuel Holland
Sort the remaining pieces of the DAPM driver so that they are all in the same order among controls/widgets/routes, and so they roughly match the register word and bit order of the hardware. This nicely separates the AIF-related widgets from the ADC/DAC widgets, which allows the AIF widgets to stay

[PATCH 01/25] ASoC: sun8i-codec: Set up clock tree at probe time

2020-09-30 Thread Samuel Holland
The sun8i codec is effectively an on-die variant of the X-Powers AC100 codec. The AC100 can derive its clocks from either of two I2S master clocks or an internal PLL. For the on-die variant, Allwinner replaced the codec's own PLL with a connection to SoC's existing PLL_AUDIO, and they connected

[PATCH 06/25] ASoC: sun8i-codec: Fix AIF widget channel references

2020-09-30 Thread Samuel Holland
Both the left and right side widgets referenced channel 0. This would unnecessarily power on the right side widget (and its associated path) when a mono stream was active. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Dmitry Osipenko
30.09.2020 19:47, Thierry Reding пишет: > On Wed, Sep 30, 2020 at 07:25:41PM +0300, Dmitry Osipenko wrote: >> 30.09.2020 19:06, Thierry Reding пишет: >>> On Wed, Sep 30, 2020 at 06:36:52PM +0300, Dmitry Osipenko wrote: I'... >> +struct tegra_mc *mc =

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Dmitry Osipenko
01.10.2020 04:26, Nicolin Chen пишет: > On Thu, Oct 01, 2020 at 12:56:46AM +0300, Dmitry Osipenko wrote: >> 01.10.2020 00:32, Nicolin Chen пишет: >>> On Thu, Oct 01, 2020 at 12:24:25AM +0300, Dmitry Osipenko wrote: ... >> It looks to me like the only reason why you need this new global

Re: [PATCH 2/9] perf tools: Use build_id object in dso

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Replace build_id byte array with struct build_id > object and all the code that references it. > > The objective is to carry size together with build > id array, so it's better to keep both together. > > This is preparatory change for

Re: [PATCH 1/9] perf tools: Add build id shell test

2020-09-30 Thread Ian Rogers
On Wed, Sep 30, 2020 at 10:15 AM Jiri Olsa wrote: > > Adding test for build id cache that adds binary > with sha1 and md5 build ids and verifies it's > added properly. > > The test updates build id cache with perf record > and perf buildid-cache -a. > > Signed-off-by: Jiri Olsa Acked-by: Ian

Re: For review: seccomp_user_notif(2) manual page

2020-09-30 Thread Jann Horn
On Thu, Oct 1, 2020 at 1:25 AM Tycho Andersen wrote: > On Thu, Oct 01, 2020 at 01:11:33AM +0200, Jann Horn wrote: > > On Thu, Oct 1, 2020 at 1:03 AM Tycho Andersen wrote: > > > On Wed, Sep 30, 2020 at 10:34:51PM +0200, Michael Kerrisk (man-pages) > > > wrote: > > > > On 9/30/20 5:03 PM, Tycho

Re: [PATCH v3 2/2] Input: synaptics-rmi4 - add support for F3A

2020-09-30 Thread Andrew Duggan
On Wed, Sep 30, 2020, at 2:41 AM, Vincent Huang wrote: > RMI4 F3A supports the touchpad GPIO function, it's designed to > support more GPIOs and used on newer touchpads. This patch adds > support of the touchpad buttons. > > Signed-off-by: Vincent Huang > Reviewed-by: Hans de Goede >

Re: [PATCH 4.4 00/85] 4.4.238-rc1 review

2020-09-30 Thread Dan Rue
On Tue, Sep 29, 2020 at 12:59:27PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.238 release. > There are 85 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v3 1/2] Input: synaptics-rmi4 - rename f30_data to gpio_data

2020-09-30 Thread Andrew Duggan
On Wed, Sep 30, 2020, at 2:41 AM, Vincent Huang wrote: > f30_data in rmi_device_platform_data could be also referenced by RMI > function 3A, so rename it and the structure name to avoid confusion. > > Signed-off-by: Vincent Huang > Reviewed-by: Hans de Goede > Tested-by: Hans de Goede

Re: [PATCH v5 09/15] misc: bcm-vk: add VK messaging support

2020-09-30 Thread Joe Perches
On Wed, 2020-09-30 at 18:28 -0700, Scott Branden wrote: > Add message support in order to be able to communicate > to VK card via message queues. trivia: > +/* structure that is used to faciliate displaying of register content */ > +struct bcm_vk_entry { > + const u32 mask; > + const u32

[PATCH V7 3/5] platform/x86: Intel PMT class driver

2020-09-30 Thread David E. Box
From: Alexander Duyck Intel Platform Monitoring Technology is meant to provide a common way to access telemetry and system metrics. Register mappings are not provided by the driver. Instead, a GUID is read from a header for each endpoint. The GUID identifies the device and is to be used with an

[PATCH V7 4/5] platform/x86: Intel PMT Telemetry capability driver

2020-09-30 Thread David E. Box
From: Alexander Duyck PMT Telemetry is a capability of the Intel Platform Monitoring Technology. The Telemetry capability provides access to device telemetry metrics that provide hardware performance data to users from read-only register spaces. With this driver present the intel_pmt directory

[PATCH V7 1/5] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-09-30 Thread David E. Box
Add PCIe Designated Vendor-Specific Extended Capability (DVSEC) and defines for the header offsets. Defined in PCIe r5.0, sec 7.9.6. Signed-off-by: David E. Box Acked-by: Bjorn Helgaas Reviewed-by: Andy Shevchenko --- include/uapi/linux/pci_regs.h | 5 + 1 file changed, 5 insertions(+)

[PATCH V7 0/5] Intel Platform Monitoring Technology

2020-09-30 Thread David E. Box
Intel Platform Monitoring Technology (PMT) is an architecture for enumerating and accessing hardware monitoring capabilities on a device. With customers increasingly asking for hardware telemetry, engineers not only have to figure out how to measure and collect data, but also how to deliver it and

[PATCH V7 5/5] platform/x86: Intel PMT Crashlog capability driver

2020-09-30 Thread David E. Box
From: Alexander Duyck Add support for the Intel Platform Monitoring Technology crashlog interface. This interface provides a few sysfs values to allow for controlling the crashlog telemetry interface as well as a character driver to allow for mapping the crashlog memory region so that it can be

  1   2   3   4   5   6   7   8   9   10   >