Re: [PATCH v2] selftest: txtimestamp: fix net ns entry logic

2020-07-22 Thread Paolo Pisati
On Tue, Jul 21, 2020 at 6:26 PM Willem de Bruijn wrote: > > Fixes: cda261f421ba ("selftests: add txtimestamp kselftest") > > Acked-by: Willem de Bruijn Besides, is it just me or this test fails frequently? I've been running it on 5.4.x, 5.7.x and 5.8-rcX and it often fails: ... USR: 1595405

[PATCH v2] selftest: txtimestamp: fix net ns entry logic

2020-07-21 Thread Paolo Pisati
According to 'man 8 ip-netns', if `ip netns identify` returns an empty string, there's no net namespace associated with current PID: fix the net ns entrance logic. Signed-off-by: Paolo Pisati --- tools/testing/selftests/net/txtimestamp.sh | 2 +- 1 file changed, 1 insertion

[PATCH] selftests: txtimestamp: tear down setup() 'tc' and 'ip' env on EXIT

2020-07-21 Thread Paolo Pisati
on, cannot modify. Signed-off-by: Paolo Pisati --- tools/testing/selftests/net/txtimestamp.sh | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/testing/selftests/net/txtimestamp.sh b/tools/testing/selftests/net/txtimestamp.sh index eea6f5193693..77f29cabff87 100755 --- a/too

[PATCH v2] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support

2020-07-16 Thread Paolo Pisati
: No such file or directory $ sudo modprobe nf_defrag_ipv6 $ ls -la /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh -rw-r--r-- 1 root root 0 Jul 14 12:34 /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh Signed-off-by: Paolo Pisati --- tools/testing/selftests/net/ip_defrag.sh | 2

Re: [PATCH] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support

2020-07-16 Thread Paolo Pisati
On Thu, Jul 16, 2020 at 5:38 PM Jakub Kicinski wrote: > > I don't think modprobe fails when code is built in. > > $ sudo modprobe pstore > $ echo $? > 0 > $ grep CONFIG_PSTORE= /boot/config-5.7.8-200.fc32.x86_64 > CONFIG_PSTORE=y > $ lsmod | grep pstore > $ Ah, i didn't know - i'll send a V2 then

Re: [PATCH] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support

2020-07-16 Thread Paolo Pisati
On Thu, Jul 16, 2020 at 3:01 AM Jakub Kicinski wrote: > > Any reason you add this command before set -e ? > > It seems we want the script to fail if module can't be loaded. Cause if CONFIG_NF_DEFRAG_IPV6=y, the script would unnecessarily fail. -- bye, p.

[PATCH] selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion

2020-07-14 Thread Paolo Pisati
n-zero return code, make kselftests fail (even if the test itself is fine): ... not ok 34 selftests: net: fib_nexthop_multiprefix.sh # exit=1 ... Signed-off-by: Paolo Pisati --- tools/testing/selftests/net/fib_nexthop_multiprefix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support

2020-07-14 Thread Paolo Pisati
: No such file or directory $ sudo modprobe nf_defrag_ipv6 $ ls -la /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh -rw-r--r-- 1 root root 0 Jul 14 12:34 /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh Signed-off-by: Paolo Pisati --- tools/testing/selftests/net/ip_defrag.sh | 2

Re: msm8996: sdhci-msm: apq8096-db820c sdhci fails to init - "Timeout waiting for hardware interrupt."

2019-10-11 Thread Paolo Pisati
On Fri, Oct 11, 2019 at 02:47:05PM +0200, Loic Poulain wrote: > > No dice, same exact problem. > > > > But the patch is present downstream[1]: > > > > commit c26727f853308dc4a6645dad09e9565429f8604f > > Author: Loic Poulain > > Date: Wed Dec 12 17:51:48 2018 +0100 > > > > arm64: dts: apq8096-db8

Re: msm8996: sdhci-msm: apq8096-db820c sdhci fails to init - "Timeout waiting for hardware interrupt."

2019-10-11 Thread Paolo Pisati
On Fri, Oct 11, 2019 at 02:01:30AM -0400, Brian Masney wrote: > I encountered that same error working on the Nexus 5 support upstream. > Here's the fix: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=03864e57770a9541e7ff3990bacf2d9a2fffcd5d No dice, same exact p

Re: msm8996: sdhci-msm: apq8096-db820c sdhci fails to init - "Timeout waiting for hardware interrupt."

2019-10-10 Thread Paolo Pisati
On Thu, Oct 10, 2019 at 4:36 PM Jeffrey Hugo wrote: > > I'm using sdhci-msm on msm8998, so its not completely broken upstream. > > What speed card are you trying to use? Sandisk SDHC 4 - i forgot to mention that the sd slot / card works fine when using the qcomlt-4.14 branch[1], so it's definitel

msm8996: sdhci-msm: apq8096-db820c sdhci fails to init - "Timeout waiting for hardware interrupt."

2019-10-10 Thread Paolo Pisati
Sdhci consistenlty fails to initialize (and thus work) on my apq8096-db820c. The issue is present since v5.0[*] mainline up to latest v5.4-rc2, using defconfig and: CONFIG_SCSI_UFS_QCOM=y CONFIG_PHY_QCOM_QMP=y CONFIG_PHY_QCOM_UFS=y CONFIG_ATL1C=y but can be 100% reproduced with a clean defconfi

[PATCH 2/2] bpf, selftest: fix checksum value for test #13

2019-07-11 Thread Paolo Pisati
From: Paolo Pisati Signed-off-by: Paolo Pisati --- tools/testing/selftests/bpf/verifier/array_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/verifier/array_access.c b/tools/testing/selftests/bpf/verifier/array_access.c index

[PATCH 0/2] [RESEND] Fold checksum at the end of bpf_csum_diff and fix

2019-07-11 Thread Paolo Pisati
From: Paolo Pisati After applying patch 0001, all checksum implementations i could test (x86-64, arm64 and arm), now agree on the return value. Patch 0002 fix the expected return value for test #13: i did the calculation manually, and it correspond. Unfortunately, after applying patch 0001

[PATCH 1/2] bpf: bpf_csum_diff: fold the checksum before returning the value

2019-07-11 Thread Paolo Pisati
From: Paolo Pisati With this change, bpf_csum_diff behave homogeneously among different checksum calculation code / csum_partial() (tested on x86-64, arm64 and arm). Signed-off-by: Paolo Pisati --- net/core/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core

[PATCH 0/2] Fold checksum at the end of bpf_csum_diff and fix

2019-07-11 Thread Paolo Pisati
From: Paolo Pisati After applying patch 0001, all checksum implementations i could test (x86-64, arm64 and arm), now agree on the return value. Patch 0002 fix the expected return value for test #13: i did the calculation manually, and it correspond. Unfortunately, after applying patch 0001

[PATCH 2/2] bpf, selftest: fix checksum value for test #13

2019-07-11 Thread Paolo Pisati
From: Paolo Pisati Signed-off-by: Paolo Pisati --- tools/testing/selftests/bpf/verifier/array_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/verifier/array_access.c b/tools/testing/selftests/bpf/verifier/array_access.c index

[PATCH 1/2] bpf: bpf_csum_diff: fold the checksum before returning the value

2019-07-11 Thread Paolo Pisati
From: Paolo Pisati With this change, bpf_csum_diff behave homogeneously among different checksum calculation code / csum_partial() (tested on x86-64, arm64 and arm). Signed-off-by: Paolo Pisati --- net/core/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core

Re: msm8996: qcom-qmp: apq8096-db820c fails to boot, reset back to fastboot and locks up

2019-06-13 Thread Paolo Pisati
On Wed, Jun 12, 2019 at 06:20:48PM +0200, Niklas Cassel wrote: > > Can you still reproduce the reboot? --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -447,12 +447,12 @@ }; pcie@608000 { -

Re: msm8996: qcom-qmp: apq8096-db820c fails to boot, reset back to fastboot and locks up

2019-06-12 Thread Paolo Pisati
On Wed, Jun 12, 2019 at 03:17:35PM +0200, Niklas Cassel wrote: > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c > > b/drivers/phy/qualcomm/phy-qcom-qmp.c > > index cd91b4179b10..22352e3b0ec5 100644 > > --- a/drivers/phy/qualcomm/phy-qcom-qmp.c > > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c > >

msm8996: qcom-qmp: apq8096-db820c fails to boot, reset back to fastboot and locks up

2019-06-10 Thread Paolo Pisati
>From time to time, my apq8096-db820c fails to boot to userspace, reset back to fastboot and locks up: to easily reproduce the issue, i'm boot looping using a cron job with a 1 min reboot entry on the board while leaving a "while 1; do fastboot boot boot.img; done" on the host pc. The issue is pre

Re: [PATCH] [stable, netdev 4.4+] lan78xx: make sure RX_ADDRL & RX_ADDRH regs are always up to date

2018-11-09 Thread Paolo Pisati
On Thu, Nov 08, 2018 at 10:49:04AM -0500, Sasha Levin wrote: > > Can you confirm it actually works on 4.4? Yes, built and tested on 4.4.y: Tested-by: Paolo Pisati -- bye, p.

Re: 4.19-rcX: WARN_ON() arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions

2018-10-09 Thread Paolo Pisati
On Mon, Oct 08, 2018 at 05:03:27PM +0100, James Morse wrote: > But! DT's that have this reserved-but-not-memory are already out there, so we > should work around this in the kernel. Ack, thanks for the explanation. -- bye, p.

4.19-rcX: WARN_ON() arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions

2018-10-08 Thread Paolo Pisati
This on my dragonboard 410c: ... [0.170657] WARNING: CPU: 2 PID: 1 at arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions+0xd4/0x150 [0.170666] Modules linked in: [0.170680] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.0-rc7-dirty #3 [0.170687] Hardware name: Qualcom

[PATCH] ARM: tango: register pm ops only if running on tango hw

2018-08-22 Thread Paolo Pisati
In a multiplatform kernel, avoid invoking hardware specific pm ops, when running on a different SOC. Signed-off-by: Paolo Pisati --- arch/arm/mach-tango/pm.c| 5 + arch/arm/mach-tango/setup.c | 7 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-tango

Re: [PATCH v10 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-05 Thread Paolo Pisati
On Thu, Apr 05, 2018 at 10:12:05AM -0500, Alan Tull wrote: > On Tue, Apr 3, 2018 at 2:02 PM, Paolo Pisati wrote: > > Hi Paolo, > > Looks good, except that I have to fix up the calls to > fpga_mgr_register/unregister since my API changes didn't go in. I've >

[PATCH v10 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-04-03 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring Acked-by: Moritz Fischer Acked-by: Alan Tull --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v10 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-03 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 413

[PATCH v10 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support

2018-04-03 Thread Paolo Pisati
n SPI slave mode with varying bus speed. Changes since v9: * implemented machxo2_spi_state() Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ dr

Re: [PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-02 Thread Paolo Pisati
On Mon, Apr 02, 2018 at 10:39:04AM -0500, Alan Tull wrote: > On Mon, Apr 2, 2018 at 10:13 AM, Paolo Pisati wrote: > > Hi Paolo, > > Thanks for making the changes I asked for. Except... is there a > reason to not get state in machxo2_spi_state? I love your attention for th

[PATCH v9 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-04-02 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring Acked-by: Moritz Fischer Acked-by: Alan Tull --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-02 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 405

[PATCH v9 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support

2018-04-02 Thread Paolo Pisati
n SPI slave mode with varying bus speed. Changes since v8: * style fixes pointed out by Alan * rebase on the new fpga_mgr_register() API Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/la

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-29 Thread Paolo Pisati
On Wed, Mar 28, 2018 at 03:03:42PM -0500, Alan Tull wrote: > On Wed, Mar 28, 2018 at 11:26 AM, Alan Tull wrote: > > On Fri, Mar 23, 2018 at 7:27 AM, Paolo Pisati wrote: > > > > Hi Paolo, > > One more thing. The api for registering a FPGA manager is changing. > It

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-03-23 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring Acked-by: Moritz Fischer Acked-by: Alan Tull --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH 0/2 v8] Lattice MachXO2 Slave SPI FPGA Manager support

2018-03-23 Thread Paolo Pisati
n SPI slave mode with varying bus speed. Changes since v7: * misc style fixes, among which: * static const u8 cmd[] * #ifdef DEBUG ... #endif reorder * introduction of get_err_string() * direct returns to reduce line count * indentation Paolo Pisati (2): dt: bindings: fpga: add lattice ma

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-23 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 388

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-22 Thread Paolo Pisati
On Wed, Mar 21, 2018 at 11:04:52AM -0700, Joe Perches wrote: > > static const u8 cmd[] > here and everywhere else as all the tx_buf assignments > of cmd are to const void * Ok > Instead of multiple declarations of dump_status_reg > it's frequently nicer to use a style like > > static void deb

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-21 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 405

[PATCH 0/2 v7] Lattice MachXO2 Slave SPI FPGA Manager support

2018-03-21 Thread Paolo Pisati
n SPI slave mode with varying bus speed. Changes since v6: * added the SPDX boilerplate * switched to pr_debug() and renamed MACHXO2_DEBUG to DEBUG Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bin

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-03-21 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring Acked-by: Moritz Fischer Acked-by: Alan Tull --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-19 Thread Paolo Pisati
On Fri, Mar 16, 2018 at 09:26:54AM -0700, Moritz Fischer wrote: > > > > +static enum fpga_mgr_states machxo2_spi_state(struct fpga_manager *mgr) > > +{ > > + return FPGA_MGR_STATE_UNKNOWN; > > +} > > To understand this correctly: Further up you have a way to determine the > state you're in, but

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-16 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 410

[PATCH 0/2 v6] Lattice MachXO2 Slave SPI FPGA Manager support

2018-03-16 Thread Paolo Pisati
() at the end, but that, sometimes, resulted in the REFRESH command to fail with a CMD_ERR, depending on the SPI bus speed) Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-ma

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-03-16 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-06 Thread Paolo Pisati
On Wed, Dec 6, 2017 at 11:36 AM, Masahiro Yamada wrote: > Just one question to Paolo: > > If some change like firmware removal happens in the future, > patching for snapcraft is necessary? > (i.e. users are required to upgrade snapcraft from --edge ?) > > I guess the answer is yes, because

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-05 Thread Paolo Pisati
On Fri, Dec 1, 2017 at 12:15 AM, Jim Davis wrote: > > If I run /snap/bin/snapcraft --version now on that Ubuntu 16.04 VM I > am getting 2.36+git2.ae61453. Yep, the edge channel follows the bleeding edge: $ snap info snapcraft ... channels: stable:2.35(794) 53MB classic ca

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-05 Thread Paolo Pisati
On Fri, Dec 1, 2017 at 1:03 PM, Riku Voipio wrote: > > Since you are already patching snapcraft for this, why not embed the > whole support in snapcraft? Eg something like snapcraft --kernel > /path/to/kernel > > The key advantage you'll get is being able to support old kernel versions too. There

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-29 Thread Paolo Pisati
On Wed, Nov 29, 2017 at 8:33 AM, Masahiro Yamada wrote: > > Worked for me too, > after updating snapcraft. > > > Is it really impossible to check the snapcraft version? > What is the minimum version? 2.35 ? The minimum version is 2.35+ - what is about to become 2.36 anytime soon now. -- bye, p

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-29 Thread Paolo Pisati
8:35 PM, Jim Davis wrote: > On Tue, Nov 28, 2017 at 10:14 AM, Paolo Pisati > wrote: >> On Mon, Nov 27, 2017 at 7:33 PM, Jim Davis wrote: >>> >>> With this patch applied to the 4.14 kernel source, and running make >>> snap-pkg on a Ubuntu 16.04 VM with th

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-28 Thread Paolo Pisati
On Mon, Nov 27, 2017 at 7:33 PM, Jim Davis wrote: > > With this patch applied to the 4.14 kernel source, and running make > snap-pkg on a Ubuntu 16.04 VM with the latest 16.04 kernel config > file, I ran into > > Traceback (most recent call last): > File "/usr/lib/python3.5/shutil.py", line 538,

[PATCH v3] scripts/package: snap-pkg target

2017-11-27 Thread Paolo Pisati
The purpose of a kernel snap is to carry the Linux kernel during the creation of a system image, eg. Ubuntu Core, and its subsequent upgrades. For more information on snap packages: https://snapcraft.io/docs/ Signed-off-by: Paolo Pisati --- Changes since v2: - use a tarball to instead of

Re: [PATCH v2] scripts/package: snap-pkg target

2017-11-27 Thread Paolo Pisati
On Wed, Sep 20, 2017 at 11:28 AM, Masahiro Yamada wrote: >> @@ -0,0 +1,14 @@ >> +name: kernel >> +version: KERNELRELEASE >> +summary: Linux kernel >> +description: The upstream Linux kernel >> +grade: stable >> +confinement: strict >> +type: kernel >> + >> +parts: >> + kernel: >> +plugin: ker

[PATCH v2] scripts/package: snap-pkg target

2017-09-12 Thread Paolo Pisati
The purpose of a kernel snap is to carry the Linux kernel during the creation of a system image, eg. Ubuntu Core, and its subsequent upgrades. For more information on snap packages: https://snapcraft.io/docs/ Signed-off-by: Paolo Pisati --- Changes since v1: - slightly im

Re: [PATCH] scripts/package: snap-pkg target

2017-09-08 Thread Paolo Pisati
Apologise for the late reply. On Wed, Jul 19, 2017 at 2:02 AM, Jim Davis wrote: > > Once I fed the snap into ubuntu-image, after hunting down a plausible > model file, I did get an image file that booted under qemu. I guess > if you're in the know about snap (and I don't include myself in that >

Re: [PATCH] scripts/package: snap-pkg target

2017-07-10 Thread Paolo Pisati
On Mon, Jul 10, 2017 at 6:46 PM, Jim Davis wrote: >> >> For more information on snap packages: https://snapcraft.io/docs/ > > Is this something a user could do with the existing deb target, and > then running deb2snap? No, the kernel snap is a special case, it requires communication with the stor

[PATCH] scripts/package: snap-pkg target

2017-07-10 Thread Paolo Pisati
The purpose of a kernel snap is to carry the Linux kernel during the creation of a system image, eg. Ubuntu Core, and it's subsequent upgrades. For more information on snap packages: https://snapcraft.io/docs/ Signed-off-by: Paolo Pisati --- .gitignore | 5 +

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-07-06 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v5 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-07-06 Thread Paolo Pisati
) Changes from v4: * rebased on 3.12 Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ drivers/fpga/Kconfig |

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-07-06 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 298

[PATCH v4 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-26 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 298

[PATCH v4 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-26 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v4 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-26 Thread Paolo Pisati
BIT() macro and spi_message_init() / trans.delay_usecs Changes in v3; * loop unroll machxo2_write() and collate writes in a single spi_sync() Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindin

Re: [PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-16 Thread Paolo Pisati
On Thu, Jun 15, 2017 at 01:03:41PM -0700, Moritz Fischer wrote: > > +static int machxo2_write(struct fpga_manager *mgr, const char *buf, > > +size_t count) > > +{ > > + struct spi_device *spi = mgr->priv; > > + struct spi_message msg; > > + struct spi_trans

[PATCH v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-15 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-15 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 277

[PATCH v3 0/2] [RESEND] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-15 Thread Paolo Pisati
BIT() macro and spi_message_init() / trans.delay_usecs Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 +++ drivers/fpga/Kconfig

[PATCH v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-15 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v3 0/2] [RESEND] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-15 Thread Paolo Pisati
BIT() macro and spi_message_init() / trans.delay_usecs Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 +++ drivers/fpga/Kconfig

[PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-15 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 277

[PATCH v3 0/2] [PATCH v3 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-02 Thread Paolo Pisati
BIT() macro and spi_message_init() / trans.delay_usecs Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 +++ drivers/fpga/Kconfig

[PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-02 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 277

[PATCH v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-02 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v2 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-05-01 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-05-01 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 214

[PATCH v2 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-05-01 Thread Paolo Pisati
Hi all, this series adds support for the Lattice MachXO2 FPGA chip, programmed over Slave SPI. Tested on my raspberry pi3 + bugblat's pif2 fpga hat. Changes from v1: * fixed all the warnings pointed out by 'checkpatch --strict' and Alan Tull Paolo Pisati (2): dt: bind

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-04-23 Thread Paolo Pisati
Add support for the Lattice MachXO2 FPGA chip in Slave SPI configuration. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 199 + 3 files changed, 207 insertions

[PATCH 0/2] Lattice MachXO2 Passive SPI FPGA Manager support

2017-04-23 Thread Paolo Pisati
Hi all, this series adds support for the Lattice MachXO2 FPGA chip, programmed over Slave SPI. Tested on my raspberry pi3 + bugblat's pif2 fpga hat. Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 su

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-04-23 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree

Re: [PATCH v3 0/5] dts patches for qcom tsens support

2016-08-25 Thread Paolo Pisati
On Wed, Aug 24, 2016 at 10:21:17PM -0500, Andy Gross wrote: > > Yeah this appears to be the case. So I guess the response is 'don't > do that'. At least don't cat or od the file. You need to seek and > read. True, but the dev file is user readable and any user can trigger it (or any regression

Re: [PATCH v3 0/5] dts patches for qcom tsens support

2016-08-24 Thread Paolo Pisati
On Wed, Aug 17, 2016 at 02:33:40PM -0500, Andy Gross wrote: > On Wed, Aug 17, 2016 at 10:48:43AM +0530, Rajendra Nayak wrote: > > Hey Andy, > > > > This is a respin of v2 with some minor fixes pointed out by Rob. > > Please pull these in for 4.9 > > > > Thanks, > > Rajendra > > I pulled these in

[tip:x86/boot] x86/boot: Obsolete the MCA sys_desc_table

2015-07-21 Thread tip-bot for Paolo Pisati
Commit-ID: 949163015ce6fdb76a5e846a3582d3c40c23c001 Gitweb: http://git.kernel.org/tip/949163015ce6fdb76a5e846a3582d3c40c23c001 Author: Paolo Pisati AuthorDate: Mon, 20 Jul 2015 18:23:50 +0200 Committer: Ingo Molnar CommitDate: Tue, 21 Jul 2015 10:55:11 +0200 x86/boot: Obsolete the MCA

[PATCH] x86: hd0_info and hd1_info are obsolete and unused fields

2015-07-20 Thread Paolo Pisati
hd0_info and hd1_info are not used anymore, don't reference them in the code Signed-off-by: Paolo Pisati --- arch/x86/kernel/kexec-bzimage64.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/kernel/kexec-bzimage64.c b/arch/x86/kernel/kexec-bzimage64.c index 3666a84..c0

[PATCH v2] x86: MCA: obsolete sys_desc_table

2015-07-20 Thread Paolo Pisati
119 -9 setup_arch 14211375 -46 Signed-off-by: Paolo Pisati --- Changes since v1: -added a changelog -kept sys_desc_table around but marked obsolete Documentation/x86/zero-page.txt | 3 ++- arch/x86/boot/Makefile| 2 +- arch

[PATCH] x86: MCA: garbage collect sys_desc_table and the remaining of

2015-07-14 Thread Paolo Pisati
setup_arch 14211375 -46 Signed-off-by: Paolo Pisati --- Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot/compressed/eboot.c | 4 arch/x86/boot

[PATCH] x86: MCA: garbage collect sys_desc_table

2015-07-10 Thread Paolo Pisati
Signed-off-by: Paolo Pisati --- Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot/compressed/eboot.c | 4 arch/x86/boot/main.c | 3 --- arch/x86/boot/mca.c

[PATCH] x86: MCA removal: garbage collect sys_desc_table

2015-07-10 Thread Paolo Pisati
rnel/setup.c:unsigned int BIOS_revision; arch/x86/kernel/setup.c:BIOS_revision = boot_params.sys_desc_table.table[2]; Compile tested with i386_defconfig, x86_64_defconfig and allyesconfig. Paolo Pisati (1): x86: MCA: garbage collect sys_desc_table Documentation/x86/zero-page.txt

Resend: Re: [PATCH] x86: MCA: garbage collect sys_desc_table

2015-07-10 Thread Paolo Pisati
On Wed, Jul 08, 2015 at 07:14:36PM +0200, Paolo Pisati wrote: Adding Josh Triplett since he was interested in MCA removal for the kernel tinification project, and slightly change the subject line. > Is sys_desc_table still used anywhere? It seems not: > > arch/x86/boot/mca.c::

[PATCH] MCA: garbage collect sys_desc_table

2015-07-08 Thread Paolo Pisati
Signed-off-by: Paolo Pisati --- Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot/compressed/eboot.c | 4 arch/x86/boot/main.c | 3 --- arch/x86/boot/mca.c

[PATCH] MCA: garbage collect sys_desc_table

2015-07-08 Thread Paolo Pisati
sion = boot_params.sys_desc_table.table[2]; Compile tested with i386_defconfig, x86_64_defconfig and allyesconfig. Paolo Pisati (1): MCA: garbage collect sys_desc_table Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/

Re: [PATCH 0/3] CONFIG_DEBUG_SET_MODULE_RONX fixups

2015-03-24 Thread Paolo Pisati
On Wed, Feb 25, 2015 at 02:17:55PM -0800, Kees Cook wrote: > On Wed, Feb 25, 2015 at 2:14 PM, Laura Abbott wrote: > > Hi, > > > > CONFIG_DEBUG_SET_MODULE_RONX is currently non-functional on arm and arm64 > > because of changes in behavior of is_module_addr. This series fixes > > both arm and arm64

Re: [PATCH] clk: samsung: Fix Exynos 5420 pinctrl setup and clock disable failure due to domain being gated

2014-12-24 Thread Paolo Pisati
On Wed, Dec 10, 2014 at 09:35:31AM -0800, Kevin Hilman wrote: > > I confirm it fixes the boot hang in linux-next (next-20141210) on my > exynos5800-peach-pi and exynos5420-arndale-octa. Tested both > exynos_defconfig and multi_v7_defconfig. > > Tested-by: Kevin Hilman does audio work on your p

arm: JUMP_LABEL and DEBUG_SET_MODULE_RONX should be mutually exclusive?

2014-10-15 Thread Paolo Pisati
Hi, i keep hitting this with BRIDGE=m, JUMP_LABEL=y and DEBUG_SET_MODULE_RONX=y: [ 48.419401] Unable to handle kernel paging request at virtual address bf076f58 [ 48.426630] pgd = e4e54000 [ 48.429328] [bf076f58] *pgd=24d49811, *pte=249e94df, *ppte=249e965e [ 48.435603] Internal error: O

Re: 3.16rc3 multiplatform, Armada 370 and IOMMU: unbootable kernel

2014-07-08 Thread Paolo Pisati
On Tue, Jul 8, 2014 at 9:41 AM, Thomas Petazzoni wrote: > Dear Ezequiel Garcia, > > On Mon, 7 Jul 2014 20:37:58 -0300, Ezequiel Garcia wrote: > >> It seems bus_register_notifier() is been called for platform and pci devices >> with the *same* notifier block. Haven't looked close enough, but you >

[PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading

2014-03-06 Thread Paolo Pisati
Enable autoloading of leds-gpio module when a corresponing DT entry is present. Signed-off-by: Paolo Pisati --- drivers/leds/leds-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 78b0e27..653d501 100644 --- a/drivers/leds

[PATCH] dma: of-dma: check OF pointer property before dereferencing

2013-04-15 Thread Paolo Pisati
panic - not syncing: Attempted to kill init! exitcode=0x000b Paolo Pisati (1): dma: of-dma: check OF pointer property before dereferencing it drivers/dma/of-dma.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line

[PATCH] dma: of-dma: check OF pointer property before dereferencing it

2013-04-15 Thread Paolo Pisati
Signed-off-by: Paolo Pisati --- drivers/dma/of-dma.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index 69d04d2..9628298 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -91,6 +91,7 @@ int

[PATCH v2] cpufreq: check OF /cpus presence before dereferencing it

2013-03-28 Thread Paolo Pisati
4.642395] CPU0: stopping Acked-by: Viresh Kumar Signed-off-by: Paolo Pisati --- v2: Better variable naming drivers/cpufreq/cpufreq-cpu0.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c ind

[PATCH] cpufreq: check OF /cpus presence before dereferencing it

2013-03-27 Thread Paolo Pisati
4.642395] CPU0: stopping Signed-off-by: Paolo Pisati --- drivers/cpufreq/cpufreq-cpu0.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index 4e5b7fb..f3e8f51 100644 --- a/drivers/cpufreq/cpufreq-cp

Re: [PATCH] ARM: l2x0: don't set .set_debug in l310 case

2013-03-25 Thread Paolo Pisati
On Sun, Mar 24, 2013 at 04:14:57PM -0500, Rob Herring wrote: > On 03/24/2013 01:27 PM, Paolo Pisati wrote: > > From: Paolo Pisati > > > > commit 74ddcdb ("l2x0: Only set .set_debug on PL310 r3p0 and earlier") > > to actually work needs .set_debug to be not

  1   2   >