[PATCH] sh: sh7712 clock support

2007-12-31 Thread Andrew Murray
From: Andrew Murray [EMAIL PROTECTED] This patch provides specific clock support for the SH7712. (This is my first ever patch, so apologies if I've not followed the procedure correctly!) Signed-off-by: Andrew Murray [EMAIL PROTECTED] --- diff -uprN -x sh-2.6/Documentation/dontdiff sh-2.6/arch

RE: [PATCH] sh: sh7712 clock support

2007-12-31 Thread Andrew Murray
Hello, Yes you are correct. Here is an updated patch. Happy New Year. --- From: Andrew Murray [EMAIL PROTECTED] This patch provides specific clock support for the SH7712. (This is my first ever patch, so apologies if I've not followed the procedure correctly!) Signed-off-by: Andrew Murray

[PATCH] sh: sh7712 defconfig

2008-01-02 Thread Andrew Murray
From: Andrew Murray [EMAIL PROTECTED] This patch provides a correct value for CONFIG_SH_PCLK_FREQ for the SH7712 solution engine when used with the board's default factory settings. This results in the board running at its maximum CPU clock rate (200 MHz). The board I have is a Japanese

Re: [PATCH v6 1/5] x86, pci: add dummy pci device for early stage

2012-11-13 Thread Andrew Murray
...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v7 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-16 Thread Andrew Murray
with powerpc and microblaze). Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Reviewed-by: Rob Herring rob.herr...@calxeda.com Tested-by: Thomas Petazzoni thomas.petazz...@free

[PATCH v7 0/3] of/pci: Provide common support for PCI DT parsing

2013-04-16 Thread Andrew Murray
. Compared to the v6 sent by Andrew Murray, the following changes have been made in response to build errors/warnings: * Inclusion of linux/of_address.h in of_pci.c as suggested by Michal Simek to prevent compilation failures on Microblaze (and others) and his ack. * Use of externs

[PATCH v7 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-16 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Reviewed-by: Rob Herring rob.herr...@calxeda.com --- arch/mips/pci/pci.c | 50

[PATCH v7 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-16 Thread Andrew Murray
The pci_process_bridge_OF_ranges function, used to parse the ranges property of a PCI host device, is found in both Microblaze and PowerPC architectures. These implementations are nearly identical. This patch moves this common code to a common place. Signed-off-by: Andrew Murray andrew.mur

[PATCH v3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-08 Thread Andrew Murray
with powerpc and microblaze). The modifications to microblaze, mips and powerpc have not been tested. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- Compared to the v3 sent

[PATCH v5 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-10 Thread Andrew Murray
with powerpc and microblaze). Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/of/address.c | 63 + drivers/of/of_pci.c| 112

[PATCH v5 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-10 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- arch/mips/pci/pci.c | 50 -- 1 files changed, 16

[PATCH v5 0/3] of/pci: Provide common support for PCI DT parsing

2013-04-10 Thread Andrew Murray
(incorrectly labelled v3) sent by Andrew Murray, the following changes have been made: * Split the patch as suggested by Rob Herring Compared to the v3 sent by Andrew Murray, the following changes have been made: * Unify and move duplicate pci_process_bridge_OF_ranges functions to drivers

[PATCH v5 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-10 Thread Andrew Murray
The pci_process_bridge_OF_ranges function, used to parse the ranges property of a PCI host device, is found in both Microblaze and PowerPC architectures. These implementations are nearly identical. This patch moves this common code to a common place. Signed-off-by: Andrew Murray andrew.mur

Re: [PATCH v5 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-11 Thread Andrew Murray
On Wed, Apr 10, 2013 at 02:13:54PM +0100, Rob Herring wrote: Adding Ben H and Michal... On 04/10/2013 02:29 AM, Andrew Murray wrote: The pci_process_bridge_OF_ranges function, used to parse the ranges property of a PCI host device, is found in both Microblaze and PowerPC architectures

Re: [PATCH v5 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-11 Thread Andrew Murray
On Wed, Apr 10, 2013 at 07:26:02PM +0100, Rob Herring wrote: On 04/10/2013 02:29 AM, Andrew Murray wrote: This patch factors out common implementation patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's

[PATCH v6 0/3] of/pci: Provide common support for PCI DT parsing

2013-04-11 Thread Andrew Murray
Petazzoni's Armada 370 and Armada XP SoCs PCIe support by: Linus Walleij linus.wall...@linaro.org I've tested that this patchset builds and runs on ARM and that it builds on PowerPC. Compared to the v5 sent by Andrew Murray, the following changes have been made: * Use of CONFIG_64BIT instead

[PATCH v6 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-11 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Reviewed-by: Rob Herring rob.herr...@calxeda.com --- arch/mips/pci/pci.c | 50

[PATCH v6 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-11 Thread Andrew Murray
The pci_process_bridge_OF_ranges function, used to parse the ranges property of a PCI host device, is found in both Microblaze and PowerPC architectures. These implementations are nearly identical. This patch moves this common code to a common place. Signed-off-by: Andrew Murray andrew.mur

[PATCH v6 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-11 Thread Andrew Murray
with powerpc and microblaze). Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Reviewed-by: Rob Herring rob.herr...@calxeda.com Tested-by: Thomas Petazzoni thomas.petazz...@free

Re: [RFC 0/2] PCI: Introduce MSI chip infrastructure

2013-03-22 Thread Andrew Murray
-bridges could use phandles to reference independent MSI controllers as their providers of MSIs. I guess this functionality can be built on top of what you have proposed later as the need arises. Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [RFC 1/2] PCI: Introduce new MSI chip infrastructure

2013-03-22 Thread Andrew Murray
per requesting device. What about restore_msi_irqs? Does this fit in here too? Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [RFC PATCH RESEND v2] of/pci: Provide support for parsing PCI DT ranges property

2013-03-22 Thread Andrew Murray
On Thu, Mar 21, 2013 at 04:06:25PM +, Thomas Petazzoni wrote: Dear Andrew Murray, On Fri, 1 Mar 2013 12:23:36 +, Andrew Murray wrote: This patch factors out common implementations patterns to reduce overall kernel code and provide a means for host bridge drivers to directly

Re: [PATCH 1/6] of/pci: Provide support for parsing PCI DT ranges property

2013-03-25 Thread Andrew Murray
; + if (restype == IORESOURCE_IO) { [...] + if (restype == IORESOURCE_MEM) { [...] OK I'll update this patch and also include Thierry's suggestions. Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

[PATCH v3] of/pci: Provide support for parsing PCI DT ranges property

2013-03-26 Thread Andrew Murray
with powerpc and microblaze). The modifications to microblaze, mips and powerpc have not been tested. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- Compared to [PATCH v5 01/17

Re: [RFC PATCH RESEND v2] of/pci: Provide support for parsing PCI DT ranges property

2013-03-08 Thread Andrew Murray
On Fri, Mar 01, 2013 at 03:13:34PM +, Rob Herring wrote: On 03/01/2013 06:23 AM, Andrew Murray wrote: This patch factors out common implementations patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's

Re: [RFC PATCH RESEND v2] of/pci: Provide support for parsing PCI DT ranges property

2013-03-06 Thread Andrew Murray
On Fri, Mar 01, 2013 at 03:13:34PM +, Rob Herring wrote: On 03/01/2013 06:23 AM, Andrew Murray wrote: This patch factors out common implementations patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-29 Thread Andrew Murray
On Tue, Jan 22, 2013 at 07:29:01PM +, Jason Gunthorpe wrote: On Thu, Jan 17, 2013 at 04:22:18PM +, Andrew Murray wrote: In either of those cases, does it make sense to use the MSI support outside the scope of the PCI infrastructure? That is, would devices other than PCI devices

[RFC PATCH RESEND v2] of/pci: Provide support for parsing PCI DT ranges property

2013-03-01 Thread Andrew Murray
) Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- arch/microblaze/pci/pci-common.c | 100 +++-- arch/mips/pci/pci.c | 44 - arch/powerpc/kernel/pci-common.c | 93

Re: [PATCH] PCI: Document PCIE BUS MPS parameters

2013-01-23 Thread Andrew Murray
at the pcie_write_mrrs function. Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] PCI: Document PCIE BUS MPS parameters

2013-01-23 Thread Andrew Murray
On Wed, Jan 23, 2013 at 10:13:02AM +, Yijing Wang wrote: ??? 2013-01-23 17:21, Andrew Murray ??: On Wed, Jan 23, 2013 at 08:01:36AM +, Yijing Wang wrote: Document PCIE BUS MPS parameters pcie_bus_tune_off, pcie_bus_safe, pcie_bus_peer2peer, pcie_bus_perf into Documentation

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-16 Thread Andrew Murray
interrupt handlers. And so the RC / MSI controllers don't need to be aware of each other. Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH RFC] Provide MSI controller registration mechanism

2013-01-17 Thread Andrew Murray
. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- drivers/pci/msi.c | 113 +++ include/linux/msi.h | 16 +++- 2 files changed, 111 insertions(+), 18 deletions(-) diff --git a/drivers/pci

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-17 Thread Andrew Murray
, but it doesn't quite solve this problem - perhaps it can be a starting point? Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-17 Thread Andrew Murray
On Thu, Jan 17, 2013 at 04:05:02PM +, Thierry Reding wrote: On Thu, Jan 17, 2013 at 03:42:36PM +, Andrew Murray wrote: On Wed, Jan 16, 2013 at 06:31:01PM +, Thierry Reding wrote: Alright, putting the functions into pci_ops doesn't sound like a very good idea then. Or perhaps

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-18 Thread Andrew Murray
On Thu, Jan 17, 2013 at 08:30:10PM +, Thierry Reding wrote: On Thu, Jan 17, 2013 at 04:22:18PM +, Andrew Murray wrote: On Thu, Jan 17, 2013 at 04:05:02PM +, Thierry Reding wrote: On Thu, Jan 17, 2013 at 03:42:36PM +, Andrew Murray wrote: On Wed, Jan 16, 2013 at 06:31:01PM

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-18 Thread Andrew Murray
haven't implemented hw-scan). I have a patch for this if you want to fold it into your series? (I see you've made changes to bios32 for per-controller data). Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

[PATCH RFC 1/2] Implementation of pci_fixup_irqs for descendants of a specified bus

2013-01-18 Thread Andrew Murray
fixing up of device irqs when new buses are added. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- drivers/pci/setup-irq.c | 15 +++ include/linux/pci.h |3 +++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git

[PATCH RFC 2/2] Improve bios32 support for DT PCI host bridge controllers

2013-01-18 Thread Andrew Murray
and MRRS. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- arch/arm/include/asm/mach/pci.h |2 ++ arch/arm/kernel/bios32.c| 29 - 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/arch/arm

Re: [PATCH 1/4] of/pci: Provide support for parsing PCI DT ranges property

2013-02-14 Thread Andrew Murray
On Wed, Feb 13, 2013 at 10:53:11PM +, Grant Likely wrote: On Mon, 11 Feb 2013 09:22:17 +0100, Thierry Reding thierry.red...@avionic-design.de wrote: From: Andrew Murray andrew.mur...@arm.com DT bindings for PCI host bridges often use the ranges property to describe memory and IO

Re: [PATCH 1/4] of/pci: Provide support for parsing PCI DT ranges property

2013-02-18 Thread Andrew Murray
On Fri, Feb 15, 2013 at 01:16:17PM +, Linus Walleij wrote: n Thu, Feb 14, 2013 at 8:17 PM, Thierry Reding thierry.red...@avionic-design.de wrote: On Thu, Feb 14, 2013 at 04:53:41PM +, Andrew Murray wrote: Thierry, If you don't have much bandwidth I'd be quite happy to take

[RFC PATCH v2] of/pci: Provide support for parsing PCI DT ranges property

2013-02-21 Thread Andrew Murray
: - This follows on from suggestions made by Grant Likely (marc.info/?l=linux-kernelm=136079602806328) Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- arch/microblaze/pci/pci-common.c | 100 +++-- arch

Re: [PATCH 1/2] Boottime: A tool for automatic measurement of kernel/bootloader boot time

2012-11-15 Thread Andrew Murray
((weak)) boottime_arch_startup(void) +{ + return 0; +} + +int __attribute__((weak)) boottime_bootloader_idle(void) +{ + return 0; +} You may wish to use the __weak macro (include/linux/compiler*) instead of directly using GCC attributes here. Andrew Murray -- To unsubscribe from

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-14 Thread Andrew Murray
as a pair or be provided by the same chip. Perhaps the solution is to support MSI controller drivers and a means to associate them with PCI host controller drivers? Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-15 Thread Andrew Murray
parts of the fabric by different MSI controllers (assuming you relate MSI controllers to part of the fabric and that you'd want to). Perhaps there would be benefits for virtualisation as well? Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH v2 1/4] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-02-27 Thread Andrew Murray
whereas previously it would have been the CPU address for I/O (assuming the cpu_addr was previously 64K). I have no idea if I/O previously worked for mips, but this patch seems to change that behavior. It may be a similar story for microblaze and powerpc. Andrew Murray + if (port

Re: [PATCH v2 3/3] arm64: Add architecture support for PCI

2014-02-27 Thread Andrew Murray
/lists/linux-pci/msg29387.html) Andrew Murray + +void pcibios_fixup_bridge_ranges(struct list_head *resources) +{ +} + +#define IO_SPACE_PAGES ((IO_SPACE_LIMIT + 1) / PAGE_SIZE) +static DECLARE_BITMAP(pci_iospace, IO_SPACE_PAGES); + +unsigned long pci_ioremap_io(const struct resource *res

[PATCH v9 2/3] of/pci: mips: convert to common of_pci_range_parser

2013-05-07 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Gabor Juhos juh...@openwrt.org Reviewed-by: Rob Herring rob.herr...@calxeda.com Reviewed

[PATCH v9 3/3] of/pci: microblaze: convert to common of_pci_range_parser

2013-05-07 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- arch/microblaze/pci/pci-common.c | 106 ++ 1 files changed, 38

[PATCH v9 0/3] of/pci: Provide common support for PCI DT parsing

2013-05-07 Thread Andrew Murray
on PowerPC, x86_64, MIPS and Microblaze. Compared to the v8 sent by Andrew Murray, the following changes have been made (please note that the MIPS patch is unchanged from v8): * Remove the unification of pci_process_bridge_OF_ranges between PowerPC and Microblaze. Feedback from Bjorn and Benjamin

[PATCH v9 1/3] of/pci: Provide support for parsing PCI DT ranges property

2013-05-07 Thread Andrew Murray
with powerpc and microblaze). Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Reviewed-by: Rob Herring rob.herr...@calxeda.com Tested-by: Thomas Petazzoni thomas.petazz...@free

[PATCH v8 0/3] of/pci: Provide common support for PCI DT parsing

2013-04-22 Thread Andrew Murray
on PowerPC, x86_64 and MIPS. Compared to the v7 sent by Andrew Murray, the following changes have been made (please note that the first patch is unchanged from v7): * Rename of_pci_range_parser to of_pci_range_parser_init and of_pci_process_ranges to of_pci_range_parser_one as suggested by Grant

[PATCH v8 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-22 Thread Andrew Murray
The pci_process_bridge_OF_ranges function, used to parse the ranges property of a PCI host device, is found in both Microblaze and PowerPC architectures. These implementations are nearly identical. This patch moves this common code to a common place. Signed-off-by: Andrew Murray andrew.mur

[PATCH v8 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-22 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Gabor Juhos juh...@openwrt.org Reviewed-by: Rob Herring rob.herr...@calxeda.com Reviewed

[PATCH v8 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-22 Thread Andrew Murray
with powerpc and microblaze). Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Reviewed-by: Rob Herring rob.herr...@calxeda.com Tested-by: Thomas Petazzoni thomas.petazz...@free

[RFC PATCH 0/3] Unify definations of struct pci_controller

2013-04-25 Thread Andrew Murray
such as pcibios_alloc|free_controller and pcibios_setup_phb_resources type functions. Andrew Murray (3): powerpc: Move struct pci_controller to asm-generic microblaze: Use asm-generic version of pci_controller pci: Use common definations of INDIRECT_TYPE_* arch/microblaze/include/asm/pci-bridge.h | 70

[RFC PATCH 2/3] microblaze: Use asm-generic version of pci_controller

2013-04-25 Thread Andrew Murray
This patch removes struct pci_controller from Microblaze and instead uses struct pci_controller from asm-generic. Signed-off-by: Andrew Murray andrew.mur...@arm.com --- arch/microblaze/include/asm/pci-bridge.h | 75 ++ include/asm-generic/pci-bridge.h |2

[RFC PATCH 3/3] pci: Use common definations of INDIRECT_TYPE_*

2013-04-25 Thread Andrew Murray
This patch unifies similar definations of INDIRECT_TYPE_* between PowerPC and Microblaze. Signed-off-by: Andrew Murray andrew.mur...@arm.com --- arch/microblaze/include/asm/pci-bridge.h | 23 --- arch/powerpc/include/asm/pci-bridge.h| 23 --- arch

[RFC PATCH 1/3] powerpc: Move struct pci_controller to asm-generic

2013-04-25 Thread Andrew Murray
This patch moves struct pci_controller into asm-generic to allow for use by other architectures thus reducing code duplication in the kernel. Signed-off-by: Andrew Murray andrew.mur...@arm.com --- arch/powerpc/include/asm/pci-bridge.h | 87 +--- include/asm-generic

Re: [PATCH] arm64: Add architecture support for PCI

2014-02-03 Thread Andrew Murray
with 'if (!config_enabled(CONFIG_GENERIC_PCI_IOMAP))' or similar. + static inline u8 inb(unsigned long addr) { return readb(addr + PCI_IOBASE); Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH] arm64: Add architecture support for PCI

2014-02-04 Thread Andrew Murray
On 4 February 2014 12:29, Liviu Dudau liviu.du...@arm.com wrote: On Mon, Feb 03, 2014 at 10:34:40PM +, Andrew Murray wrote: On 3 February 2014 18:43, Liviu Dudau liviu.du...@arm.com wrote: diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 4cc813e..ce5bad2

Re: [RESEND: RFC PATCH 3/3] pcie: keystone: add pcie driver based on designware core driver

2014-03-25 Thread Andrew Murray
as host bridge drivers were always in the arch/ directories. In any case it may be worth testing this driver with PCIEPORTBUS enabled. Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [RESEND: RFC PATCH 3/3] pcie: keystone: add pcie driver based on designware core driver

2014-04-02 Thread Andrew Murray
? Is that because the IP makes these events available through platform IRQs in addition to the standard PCI means? Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 1/2] UBI: Implement UBI_METAONLY

2014-10-29 Thread Andrew Murray
(%UBI_READONLY, %UBI_READWRITE, or %UBI_EXCLUSIVE) + * @mode: open mode (%UBI_READONLY, %UBI_READWRITE, %UBI_EXCLUSIVE or %UBI_METAONLY) */ struct ubi_volume_desc { struct ubi_volume *vol; There is also a similar mention in gluebi.c: 'readers/writes/exclusive'. Thanks, Andrew Murray

Re: [PATCH v12 05/12] PCI: OF: Fix the conversion of IO ranges into IO resources.

2014-09-24 Thread Andrew Murray
didn't see it with a quick look. There was no reason - it probably should have been inside a #ifdef like the others. Andrew Murray -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 1/2] UBI: Implement UBI_METAONLY

2014-11-07 Thread Andrew Murray
On 29 October 2014 20:20, Richard Weinberger rich...@nod.at wrote: Am 29.10.2014 um 21:11 schrieb Andrew Murray: On 29 October 2014 14:52, Richard Weinberger rich...@nod.at wrote: diff --git a/include/linux/mtd/ubi.h b/include/linux/mtd/ubi.h index c3918a0..82b693f 100644 --- a/include/linux

Re: [PATCH v4 7/7] mtd: spi-nor: add read loop

2015-08-14 Thread Andrew Murray
) + goto read_err; + + BUG_ON(ret len); + *retlen += ret; Is *retlen initialized to 0 anywhere? Andrew Murray + buf += ret; + from += ret; + len -= ret; + } + ret = 0; +read_err

[PATCH 03/10] arm: perf: add additional validation to set_event_filter

2018-11-16 Thread Andrew Murray
The armv7pmu driver doesn't support host/guest mode exclusion so let's report this when set_event_filter is called with these exclusion flags set. Signed-off-by: Andrew Murray --- arch/arm/kernel/perf_event_v7.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/kernel/perf_event_v7

[PATCH 02/10] arm: perf/core: generalise event exclusion checking with perf macro

2018-11-16 Thread Andrew Murray
Replace checking of perf event exclusion flags with perf macro. Signed-off-by: Andrew Murray --- arch/arm/mach-imx/mmdc.c | 8 +--- arch/arm/mm/cache-l2x0-pmu.c | 7 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx

Re: [BISECTED] Regression: Solidrun Clearfog Base won't boot since "PCI: mvebu: Only remap I/O space if configured"

2018-09-25 Thread Andrew Murray
hing that registers with isa_register_driver - for example: drivers/input/touchscreen/htcpen.c drivers/net/ethernet/3com/3c509.c drivers/watchdog/ebc-c384_wdt.c None of these drivers do any kind of mapping before attempting to access these addresses. Thanks, Andrew Murray > This

[PATCH v3 11/12] x86: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2018-12-06 Thread Andrew Murray
/iommu and amd/uncore will now also indicate that they do not support exclude_{hv|idle} and intel/uncore that it does not support exclude_{guest|host}. Signed-off-by: Andrew Murray --- arch/x86/events/amd/iommu.c| 6 +- arch/x86/events/amd/uncore.c | 7 ++- arch/x86/events/intel

Re: [PATCH v1 1/1] arm64: Early boot time stamps

2018-11-20 Thread Andrew Murray
); > > > > This doesn't seem right. The counter has an architected minimum of 56 > > bits, and you can't assume that it is going to be more than that. > > Yeah, I saw 56 is used in arm_arch_timer.c, but I could not find where > this minimum is defined in aarch64 specs. I will change it to 56. See section G5.1.2 of the ARM ARM for details. Thanks, Andrew Murray > > I will send v2 soon. > > Thank you, > Pasha

Re: [REGRESSION] Commit 5745392e0c2b ("PCI: Apply the new generic I/O management on PCI IO hosts") breaks PCI for legacy virtio devices with kvmtool on arm64

2018-09-12 Thread Andrew Murray
case modifying the address if it doesn't fit within the MMIO_UPPER_LIMIT (or IO_SPACE_LIMIT previously) will only break something further down the code path if the address was wrong in the first place. This function should probably work in the same was as GENERIC_IOMAP (given it shares t

[PATCH] asm-generic: io: Fix ioport_map() for !CONFIG_GENERIC_IOMAP && CONFIG_INDIRECT_PIO

2018-09-13 Thread Andrew Murray
) Reported-by: Will Deacon Signed-off-by: Andrew Murray --- include/asm-generic/io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 66d1d45..d356f80 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h

Re: [PATCH] asm-generic: io: Fix ioport_map() for !CONFIG_GENERIC_IOMAP && CONFIG_INDIRECT_PIO

2018-09-17 Thread Andrew Murray
On Mon, Sep 17, 2018 at 03:42:32PM +0100, John Garry wrote: > - dead e-mail addresses (Zhichang, Gabriele) > > On 13/09/2018 13:48, Andrew Murray wrote: > > Hi Andrew, > > > The !CONFIG_GENERIC_IOMAP version of ioport_map uses MMIO_UPPER_LIMIT to > > prevent

[tip:locking/core] Documentation/lockstat: Fix trivial typo

2018-10-02 Thread tip-bot for Andrew Murray
Commit-ID: bccb484b9a8d1695df1094991df2bdcf83a4b921 Gitweb: https://git.kernel.org/tip/bccb484b9a8d1695df1094991df2bdcf83a4b921 Author: Andrew Murray AuthorDate: Mon, 1 Oct 2018 12:01:03 +0100 Committer: Ingo Molnar CommitDate: Tue, 2 Oct 2018 10:59:25 +0200 Documentation/lockstat