Re: State of Linux graphics

2005-08-31 Thread Eric Anholt
is this a danger? -- Eric Anholt [EMAIL PROTECTED] http://people.freebsd.org/~anholt/ [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part

Re: [RFC] [PATCH] DRM TTM Memory Manager patch

2007-05-02 Thread Eric Anholt
. I'm just not sure yet on how feasible it is to bend GL into this model. -- Eric Anholt [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part

Re: [PATCH] PM / Domains: If an OF node is found but no device probed yet, defer.

2015-03-18 Thread Eric Anholt
Eric Anholt wrote: If we've declared a power domain in the OF, and the OF node is found but the requested domain hasn't been registered on it yet, then we probably have just tried to probe before the power domain driver has. Defer our device's probe until it shows up. Signed-off-by: Eric Anholt

[PATCH] PM / Domains: If an OF node is found but no device probed yet, defer.

2015-03-11 Thread Eric Anholt
If we've declared a power domain in the OF, and the OF node is found but the requested domain hasn't been registered on it yet, then we probably have just tried to probe before the power domain driver has. Defer our device's probe until it shows up. Signed-off-by: Eric Anholt e...@anholt.net

Re: [PATCH] PM / Domains: If an OF node is found but no device probed yet, defer.

2015-03-12 Thread Eric Anholt
Geert Uytterhoeven ge...@linux-m68k.org writes: On Wed, Mar 11, 2015 at 11:08 PM, Rafael J. Wysocki r...@rjwysocki.net wrote: More CCes. On Wednesday, March 11, 2015 08:27:28 AM Eric Anholt wrote: If we've declared a power domain in the OF, and the OF node is found but the requested

Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-07 Thread Eric Anholt
Noralf Trønnes nor...@tronnes.org writes: Den 05.05.2015 22:27, skrev Eric Anholt: From: Lubomir Rintel lkund...@v3.sk This mailbox driver provides a single mailbox channel to write 32-bit values to the VPU and get a 32-bit response. The Raspberry Pi firmware uses this mailbox channel

Re: [PATCH] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-04 Thread Eric Anholt
Noralf Trønnes nor...@tronnes.org writes: Den 04.05.2015 21:33, skrev Eric Anholt: There exists a tiny MMU, configurable only by the VC (running the closed firmware), which maps from the ARM's physical addresses to bus addresses. These bus addresses determine the caching behavior

[PATCH] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-04 Thread Eric Anholt
() and friends return addresses with 0x4 bits and avoid cache incoherency. This matches the behavior in the downstream 2708 kernel (see BUS_OFFSET in arch/arm/mach-bcm2708/include/mach/memory.h). Signed-off-by: Eric Anholt e...@anholt.net Cc: popcorn...@gmail.com --- arch/arm/boot/dts/bcm2835.dtsi

[PATCH 3/3 v2] ARM: bcm2835: Add the mailbox to the device tree

2015-05-05 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Stephen Warren swar...@wwwdotorg.org --- v2: Update for #mbox-cells 0 change in the driver. arch/arm/boot/dts/bcm2835.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts

Re: [PATCH] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-05 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 05/04/2015 01:33 PM, Eric Anholt wrote: There exists a tiny MMU, configurable only by the VC (running the closed firmware), which maps from the ARM's physical addresses to bus addresses. These bus addresses determine the caching behavior

[PATCH v2] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-05 Thread Eric Anholt
() and friends return addresses with 0x4 bits and avoid cache incoherency. This matches the behavior in the downstream 2708 kernel (see BUS_OFFSET in arch/arm/mach-bcm2708/include/mach/memory.h). Signed-off-by: Eric Anholt e...@anholt.net Tested-by: Noralf Trønnes nor...@tronnes.org Acked-by: Stephen

[PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-05 Thread Eric Anholt
) doesn't. The driver was originally submitted by Lubomir, based on the out-of-tree 2708 mailbox driver. Eric Anholt fixed it up for upstreaming, with the major functional change being that it now has no notion of multiple channels (since that is a firmware-dependent concept) and instead

[PATCH 1/3 v6] dt/bindings: Add binding for the BCM2835 mailbox driver

2015-05-05 Thread Eric Anholt
From: Lubomir Rintel lkund...@v3.sk This patch was split out of Lubomir's original mailbox patch by Eric Anholt, and the required properties documentation and examples have been filled out more completely and updated for the driver being changed to expose a single channel. Signed-off-by: Lubomir

Re: Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-08 Thread Eric Anholt
Alexander Stein alexander...@web.de writes: On Thursday 07 May 2015, 12:54:20 wrote Eric Anholt: Noralf Trønnes nor...@tronnes.org writes: Den 05.05.2015 22:27, skrev Eric Anholt: From: Lubomir Rintel lkund...@v3.sk This mailbox driver provides a single mailbox channel to write 32-bit

[PATCH 1/3 v2] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-05-13 Thread Eric Anholt
This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Improve commit message, point to mailbox.txt for how mboxes work. .../devicetree/bindings/arm/bcm/raspberrypi,firmware.txt

[PATCH 2/3 v2] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-13 Thread Eric Anholt
This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Drop power-domains stuff for now since we don't have the driver core support to make

[PATCH 3/3 v2] ARM: bcm2835: Add the firmware driver information to the RPi DT

2015-05-13 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Lee Jones l...@kernel.org (previous version with pm-domains) --- v2: Drop pm-domains stuff since I've dropped it from the firmware driver for now, until we get drivers/base fixed. arch/arm/boot/dts/bcm2835-rpi.dtsi | 7 +++ 1 file

RPi firmware driver v2

2015-05-13 Thread Eric Anholt
Here's a new version of the firmware driver. This series applies on top of for-rpi-next from Lee Jones's tree: git://git.kernel.org/pub/scm/linux/kernel/git/rpi/linux-rpi.git But it won't actually probe without merging in mailbox-for-next:

[PATCH] mailbox/bcm2835: Fix mailbox full detection.

2015-05-13 Thread Eric Anholt
and under a mutex. Suggested-by: Phil Elwell p...@raspberrypi.org Signed-off-by: Eric Anholt e...@anholt.net --- This is a port of a patch by Noralf from the downstream Raspberry Pi tree. Noralf said he didn't want attribution on this patch, even if it looks a lot like his. drivers/mailbox

Re: [PATCH 2/3 v2] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-18 Thread Eric Anholt
Noralf Trønnes nor...@tronnes.org writes: Den 13.05.2015 21:00, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net

[PATCH 1/3 v3] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-05-18 Thread Eric Anholt
This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. --- v2: Improve commit message, point to mailbox.txt for how mboxes work. v3: Use Lee's suggestion for mailbox phandle docs, fix spelling of raspberry.

[PATCH 2/3 v3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-18 Thread Eric Anholt
This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Drop power-domains stuff for now since we don't have the driver core support to make

Raspberry Pi DT clocks series

2015-05-18 Thread Eric Anholt
Here's a series to add a real clock provider on Raspberry Pi. Previously, we've been using a mix of fixed clocks from clk-bcm2835.c (though some of them failed to get used by their intended consumers), and fixed-clock nodes in the DT. This driver gives us the ability to enable/disable our clocks,

[PATCH 2/7] ARM: bcm2835: Add a Raspberry Pi-specific clock driver.

2015-05-18 Thread Eric Anholt
the firmware driver isn't supported yet, but it also avoids issues with disabling unused clocks due to them not yet being connected to their consumers in the DT. Signed-off-by: Eric Anholt e...@anholt.net --- drivers/clk/Makefile | 1 + drivers/clk/clk-raspberrypi.c | 241

[PATCH 7/7] ARM: bcm2835: Tie SPI clock to the core clock rate.

2015-05-18 Thread Eric Anholt
We were previously using a fixed clock declared in the 2835 DT, but it's actually the core clock, and it might not be the same if you had adjusted it using the firmware's config.txt. Signed-off-by: Eric Anholt e...@anholt.net --- This is the only patch in the series I haven't really tested

[PATCH 4/7] ARM: bcm2835: Drop never-used clock-frequency property of uart0.

2015-05-18 Thread Eric Anholt
This appears to have been copy-and-paste from another serial driver's DT. The driver has never used this value -- instead, the pl011 driver is getting the fixed 20201000.uart clock from clk-bcm2835.c. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835.dtsi | 1 - 1 file

[PATCH 5/7] ARM: bcm2835: Drop the fixed sys_pclk.

2015-05-18 Thread Eric Anholt
Nothing uses it, and I can't find any evidence that anything ever has. Signed-off-by: Eric Anholt e...@anholt.net --- drivers/clk/clk-bcm2835.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/clk/clk-bcm2835.c b/drivers/clk/clk-bcm2835.c index 6b950ca..dd295e4 100644

[PATCH 3/7] ARM: bcm2835: Add DT for the firmware clocks driver.

2015-05-18 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index ace33f6..ac5f84c 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch

[PATCH 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider

2015-05-18 Thread Eric Anholt
The hardware clocks are not controllable by the ARM, so we have to make requests to the firmware to do so from the VPU side. This will let us replace fixed clocks in our DT with actual clock control (and correct frequency information). Signed-off-by: Eric Anholt e...@anholt.net --- .../bindings

[PATCH 6/7] ARM: bcm2835: Use the RPi firmware clocks for uart.

2015-05-18 Thread Eric Anholt
This gets us a correct apb_pclk, which previously was accidentally using the 20201000.uart clock from clk-bcm2835.c, due to the fallback clk_get_sys() path. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 7 +++ arch/arm/boot/dts/bcm2835.dtsi | 2 +- 2

Re: [PATCH] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-13 Thread Eric Anholt
Lee Jones l...@kernel.org writes: On Tue, 05 May 2015, Eric Anholt wrote: Stephen Warren swar...@wwwdotorg.org writes: On 05/04/2015 01:33 PM, Eric Anholt wrote: There exists a tiny MMU, configurable only by the VC (running the closed firmware), which maps from the ARM's physical

Re: [PATCH 1/3 v2] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-05-14 Thread Eric Anholt
Lee Jones l...@kernel.org writes: On Wed, 13 May 2015, Eric Anholt wrote: This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Improve commit message, point

Re: [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider

2015-06-08 Thread Eric Anholt
Eric Anholt e...@anholt.net writes: The hardware clocks are not controllable by the ARM, so we have to make requests to the firmware to do so from the VPU side. This will let us replace fixed clocks in our DT with actual clock control (and correct frequency information). v2: Include the dt

[PATCH v3 5/7] ARM: bcm2835: Drop the fixed sys_pclk.

2015-06-08 Thread Eric Anholt
Nothing uses it, and I can't find any evidence that anything ever has. Signed-off-by: Eric Anholt e...@anholt.net --- drivers/clk/clk-bcm2835.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/clk/clk-bcm2835.c b/drivers/clk/clk-bcm2835.c index 6b950ca..dd295e4 100644

[PATCH v3 2/7] ARM: bcm2835: Add a Raspberry Pi-specific clock driver.

2015-06-08 Thread Eric Anholt
-off-by: Eric Anholt e...@anholt.net --- drivers/clk/Makefile | 1 + drivers/clk/clk-raspberrypi.c | 242 ++ 2 files changed, 243 insertions(+) create mode 100644 drivers/clk/clk-raspberrypi.c diff --git a/drivers/clk/Makefile b/drivers/clk

[PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider

2015-06-08 Thread Eric Anholt
of the next one. Make the clock indices match the firmware clock IDs. Rename the binding's compat string. Move the firmware phandle to be under a vendor-specific namespace. Signed-off-by: Eric Anholt e...@anholt.net --- .../clock/raspberrypi,bcm2835-firmware-clocks.txt | 25

[PATCH v3 6/7] ARM: bcm2835: Use the RPi firmware clocks for uart.

2015-06-08 Thread Eric Anholt
This gets us a correct apb_pclk, which previously was accidentally using the 20201000.uart clock from clk-bcm2835.c, due to the fallback clk_get_sys() path. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 7 +++ arch/arm/boot/dts/bcm2835.dtsi | 2 +- 2

[PATCH v3 3/7] ARM: bcm2835: Add DT for the firmware clocks driver.

2015-06-08 Thread Eric Anholt
v2: Rename our compat string to mention bcm2835, and make our firmware phandle be under a vendor-namespaced property. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi

[PATCH v3 4/7] ARM: bcm2835: Drop never-used clock-frequency property of uart0.

2015-06-08 Thread Eric Anholt
This appears to have been copy-and-paste from another serial driver's DT. The driver has never used this value -- instead, the pl011 driver is getting the fixed 20201000.uart clock from clk-bcm2835.c. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835.dtsi | 1 - 1 file

[PATCH v3 7/7] ARM: bcm2835: Tie SPI clock to the core clock rate.

2015-06-08 Thread Eric Anholt
We were previously using a fixed clock declared in the 2835 DT, but it's actually the core clock, and it might not be the same if you had adjusted it using the firmware's config.txt. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 1 file changed, 4

[PATCH v7 2/3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-06-04 Thread Eric Anholt
This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Drop power-domains stuff for now since we don't have the driver core support to make

[PATCH v7 1/3] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-06-04 Thread Eric Anholt
This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Eric Anholt e...@anholt.net --- v2: Improve commit message, point to mailbox.txt for how mboxes work. v3: Use Lee's

[PATCH v7 3/3] ARM: bcm2835: Add the firmware driver information to the RPi DT

2015-06-04 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Lee Jones l...@kernel.org (previous version with pm-domains) Acked-by: Stephen Warren swar...@wwwdotorg.org --- v2: Drop pm-domains stuff since I've dropped it from the firmware driver for now, until we get drivers/base fixed. v3: Rename

Re: [PATCH 2/3 v4] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Eric Anholt
Noralf Trønnes nor...@tronnes.org writes: Den 28.05.2015 20:33, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net

Re: [PATCH 2/3 v4] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 05/28/2015 12:33 PM, Eric Anholt wrote: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. This thread was rather hard to follow since

Re: [PATCH] mailbox/bcm2835: Fix mailbox full detection.

2015-05-28 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 05/13/2015 02:10 PM, Eric Anholt wrote: With the VC reader blocked and the ARM writing, MAIL0_STA reads empty permanently while MAIL1_STA goes from empty (0x4000) to non-empty (0x0001-0x0007) to full (0x8008). This bug ended up

[PATCH 2/7 v2] ARM: bcm2835: Add a Raspberry Pi-specific clock driver.

2015-05-28 Thread Eric Anholt
the firmware driver isn't supported yet, but it also avoids issues with disabling unused clocks due to them not yet being connected to their consumers in the DT. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Declare the mutex static (from review by Baruch Siach), merge description and copyright

[PATCH 2/3 v4] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Eric Anholt
This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Drop power-domains stuff for now since we don't have the driver core support to make

[PATCH v5 3/3] ARM: bcm2835: Add the firmware driver information to the RPi DT

2015-05-28 Thread Eric Anholt
v2: Drop pm-domains stuff since I've dropped it from the firmware driver for now, until we get drivers/base fixed. v3: Rename the compatible to raspberrypi,bcm2835-firmware Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Lee Jones l...@kernel.org (previous version with pm-domains) Acked

[PATCH v5 2/3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Eric Anholt
own RASPBERRYPI_FIRMWARE Kconfig. Signed-off-by: Eric Anholt e...@anholt.net --- drivers/firmware/Kconfig | 7 + drivers/firmware/Makefile | 1 + drivers/firmware/raspberrypi.c | 272 + include/soc/bcm2835

[PATCH v5 1/3] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-05-28 Thread Eric Anholt
This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. v2: Improve commit message, point to mailbox.txt for how mboxes work. v3: Use Lee's suggestion for mailbox phandle docs, fix spelling of raspberry. v4: Change the compatible

[PATCH] mmc: sdhci-bcm2835: Actually enable the clock

2015-05-28 Thread Eric Anholt
We're currently using a fixed frequency clock specified in the DT, so enabling is a no-op. However, the RPi firmware-based clocks driver can actually disable unused clocks, so when switching to use it we ended up losing our MMC clock once all devices were probed. Signed-off-by: Eric Anholt e

Re: [PATCH v6 2/3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-06-01 Thread Eric Anholt
Paul Bolle pebo...@tiscali.nl writes: On Fri, 2015-05-29 at 12:42 -0700, Eric Anholt wrote: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. v6: Drop the try_module_get/module_put

Re: [PATCH 5/7] ARM: bcm2835: Drop the fixed sys_pclk.

2015-05-29 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 05/18/2015 01:43 PM, Eric Anholt wrote: Nothing uses it, and I can't find any evidence that anything ever has. Does the clock actually exist though? If it does, it seems reasonable to keep it. Yes, it's kept in the form of the core clock

Re: [PATCH 2/7] ARM: bcm2835: Add a Raspberry Pi-specific clock driver.

2015-05-29 Thread Eric Anholt
Stephen Boyd sb...@codeaurora.org writes: On 05/28, Stephen Warren wrote: On 05/18/2015 01:43 PM, Eric Anholt wrote: Unfortunately, the clock manager's registers are not accessible by the ARM, so we have to request that the firmware modify our clocks for us. This driver only registers

[PATCH v6 2/3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-29 Thread Eric Anholt
own RASPBERRYPI_FIRMWARE Kconfig. v6: Drop the try_module_get/module_put stuff, since all clients will be referencing our symbols in order to call those functions, anyway. Fix the kerneldoc comments for the changes in v5. Signed-off-by: Eric Anholt e...@anholt.net --- drivers/firmware

[PATCH v6 1/3] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-05-29 Thread Eric Anholt
This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. v2: Improve commit message, point to mailbox.txt for how mboxes work. v3: Use Lee's suggestion for mailbox phandle docs, fix spelling of raspberry. v4: Change the compatible

[PATCH v6 3/3] ARM: bcm2835: Add the firmware driver information to the RPi DT

2015-05-29 Thread Eric Anholt
v2: Drop pm-domains stuff since I've dropped it from the firmware driver for now, until we get drivers/base fixed. v3: Rename the compatible to raspberrypi,bcm2835-firmware Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Lee Jones l...@kernel.org (previous version with pm-domains) Acked

Re: [PATCH 2/7] ARM: bcm2835: Add a Raspberry Pi-specific clock driver.

2015-05-29 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 05/18/2015 01:43 PM, Eric Anholt wrote: obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835.o +obj-$(CONFIG_ARCH_BCM2835) += clk-raspberrypi.o Shouldn't this replace the old legacy code in clk-bcm2835.c? I don't think we can, because

Re: [PATCH] mmc: sdhci-bcm2835: Actually enable the clock

2015-05-29 Thread Eric Anholt
Russell King - ARM Linux li...@arm.linux.org.uk writes: On Thu, May 28, 2015 at 05:03:12PM -0700, Eric Anholt wrote: We're currently using a fixed frequency clock specified in the DT, so enabling is a no-op. However, the RPi firmware-based clocks driver can actually disable unused clocks, so

[PATCH v2 1/2] mmc: sdhci-bcm2835: Clean up platform allocations if sdhci init fails.

2015-05-29 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- drivers/mmc/host/sdhci-bcm2835.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-bcm2835.c b/drivers/mmc/host/sdhci-bcm2835.c index 0ef0343..32f4046 100644 --- a/drivers/mmc/host/sdhci-bcm2835.c +++ b

[PATCH v2 2/2] mmc: sdhci-bcm2835: Actually enable the clock

2015-05-29 Thread Eric Anholt
We're currently using a fixed frequency clock specified in the DT, so enabling is a no-op. However, the RPi firmware-based clocks driver can actually disable unused clocks, so when switching to use it we ended up losing our MMC clock once all devices were probed. Signed-off-by: Eric Anholt e

Re: [PATCH 2/7] ARM: bcm2835: Add a Raspberry Pi-specific clock driver.

2015-05-29 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 05/18/2015 01:43 PM, Eric Anholt wrote: +init.flags = CLK_IS_ROOT; Is it possible to add clock parent information to the driver, so the clocks are all hooked together into the correct tree, rather than all looking like root clocks? One

Re: [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider

2015-07-07 Thread Eric Anholt
the firmware phandle to be under a vendor-specific namespace. Signed-off-by: Eric Anholt e...@anholt.net --- .../clock/raspberrypi,bcm2835-firmware-clocks.txt | 25 ++ include/dt-bindings/clk/raspberrypi.h | 23 2 files changed, 48

[PATCH 2/7] MAINTAINERS: Add myself for the new VC4 (RPi GPU) graphics driver.

2015-08-12 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8133cef..d0dc42c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3573,6 +3573,12 @@ S: Maintained F: drivers/gpu/drm/rockchip/ F

Raspberry Pi KMS-only driver

2015-08-12 Thread Eric Anholt
Here's the first patch series for graphics on the Raspberry Pi. It brings up fbcon on KMS, and the xf86-video-modesetting driver runs so you can do X with no further userspace drivers. Right now this series doesn't support changing video modes away from the firmware boot setup, because when I

[PATCH 4/7] drm/vc4: Use the fbdev_cma helpers

2015-08-12 Thread Eric Anholt
From: Derek Foreman der...@osg.samsung.com Keep the fbdev_cma pointer around so we can use it on hotplog and close to ensure the frame buffer console is in a useful state. Signed-off-by: Derek Foreman der...@osg.samsung.com Signed-off-by: Eric Anholt e...@anholt.net --- drivers/gpu/drm/vc4

[PATCH 5/7] drm/vc4: Allow vblank to be disabled

2015-08-12 Thread Eric Anholt
From: Derek Foreman der...@osg.samsung.com Signed-off-by: Derek Foreman der...@osg.samsung.com Signed-off-by: Eric Anholt e...@anholt.net --- drivers/gpu/drm/vc4/vc4_kms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c index

[PATCH 1/7] drm/vc4: Add devicetree bindings for VC4.

2015-08-12 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- .../devicetree/bindings/gpu/brcm,bcm-vc4.txt | 83 ++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/brcm,bcm-vc4.txt diff --git a/Documentation/devicetree/bindings/gpu/brcm,bcm

[PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree.

2015-08-12 Thread Eric Anholt
We need to use it for getting video modes over HDMI. Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi index 301c73f..8f3ba88 100644 --- a/arch

[PATCH 7/7] ARM: bcm2835: Add VC4 to the device tree.

2015-08-12 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- arch/arm/boot/dts/bcm2835.dtsi | 43 ++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi index 8f3ba88..dda67aa 100644 --- a/arch/arm/boot/dts

[PATCH 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-12 Thread Eric Anholt
. Signed-off-by: Eric Anholt e...@anholt.net --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/vc4/Kconfig | 14 + drivers/gpu/drm/vc4/Makefile | 18 ++ drivers/gpu/drm/vc4/vc4_bo.c | 54 drivers/gpu/drm/vc4/vc4_crtc.c

Re: [PATCH 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-17 Thread Eric Anholt
r#secure method=pgpmime mode=sign Stephen Warren swar...@wwwdotorg.org writes: On 08/12/2015 06:56 PM, Eric Anholt wrote: This is the start of a full VC4 driver. Right now this just supports configuring the display using a pre-existing video mode (because changing the pixel clock isn't

[PATCH v2 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree.

2015-08-18 Thread Eric Anholt
We need to use it for getting video modes over HDMI. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Mark it as disabled by default, and enable it in bcm2835-rpi. arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 arch/arm/boot/dts/bcm2835.dtsi | 10 ++ 2 files changed, 14 insertions

[PATCH v2 7/7] ARM: bcm2835: Add VC4 to the device tree.

2015-08-18 Thread Eric Anholt
VC4 is the GPU (display and 3D) present on the 2835. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Sort by register address, mark HDMI as disabled by default in the SoC file and enable it from -rpi. arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 arch/arm/boot/dts/bcm2835.dtsi | 44

[PATCH v2 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-18 Thread Eric Anholt
. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Drop FB_HELPER select thanks to Archit's patches. Do manual init ordering instead of using the .load hook. Structure registration more like tegra's, but still using the typical component code. Drop no-op hooks for atomic_begin

[PATCH v2 1/7] drm/vc4: Add devicetree bindings for VC4.

2015-08-18 Thread Eric Anholt
VC4 is the GPU (display and 3D) subsystem present on the 2835 and some other Broadcom SoCs. This binding follows the model of msm, imx, sti, and others, where there is a subsystem node for the whole GPU, with nodes for the individual HW components within it. Signed-off-by: Eric Anholt e

[PATCH v2 5/7] drm/vc4: Allow vblank to be disabled

2015-08-18 Thread Eric Anholt
From: Derek Foreman der...@osg.samsung.com Signed-off-by: Derek Foreman der...@osg.samsung.com Signed-off-by: Eric Anholt e...@anholt.net --- drivers/gpu/drm/vc4/vc4_kms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c index

Re: [PATCH 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-18 Thread Eric Anholt
Daniel Vetter dan...@ffwll.ch writes: On Thu, Aug 13, 2015 at 01:44:03PM -0700, Eric Anholt wrote: Daniel Vetter dan...@ffwll.ch writes: On Wed, Aug 12, 2015 at 05:56:16PM -0700, Eric Anholt wrote: This is the start of a full VC4 driver. Right now this just supports configuring

Raspberry Pi KMS-only driver V2

2015-08-18 Thread Eric Anholt
Here's a respin of the RPi KMS series, taking a bunch of review feedback into account. It's also rebased on danvet's drm-misc now, which cut some stub code. The new series can still be found at: https://github.com/anholt/linux/tree/vc4-kms-squash -- To unsubscribe from this list: send the line

[PATCH v2 4/7] drm/vc4: Use the fbdev_cma helpers

2015-08-18 Thread Eric Anholt
From: Derek Foreman der...@osg.samsung.com Keep the fbdev_cma pointer around so we can use it on hotplog and close to ensure the frame buffer console is in a useful state. Signed-off-by: Derek Foreman der...@osg.samsung.com Signed-off-by: Eric Anholt e...@anholt.net --- drivers/gpu/drm/vc4

[PATCH v2 2/7] MAINTAINERS: Add myself for the new VC4 (RPi GPU) graphics driver.

2015-08-18 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- v2: Mark it Supported, not Maintained. MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c9dd5f..5292087 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3592,6 +3592,12 @@ S: Maintained F

Re: [PATCH 1/7] drm/vc4: Add devicetree bindings for VC4.

2015-08-17 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 08/12/2015 06:56 PM, Eric Anholt wrote: Signed-off-by: Eric Anholt e...@anholt.net This one definitely needs a patch description, since someone might not know what a VC4 is, and git log won't show the text from the binding doc itself. I'd

Re: [PATCH 2/7] MAINTAINERS: Add myself for the new VC4 (RPi GPU) graphics driver.

2015-08-17 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 08/12/2015 06:56 PM, Eric Anholt wrote: diff --git a/MAINTAINERS b/MAINTAINERS +DRM DRIVERS FOR VC4 +M: Eric Anholt e...@anholt.net +T: git git://github.com/anholt/linux +S: Maintained +F: drivers/gpu/drm/vc4/* S: Supported Fixed

Re: [PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree.

2015-08-17 Thread Eric Anholt
Stephen Warren swar...@wwwdotorg.org writes: On 08/12/2015 06:56 PM, Eric Anholt wrote: We need to use it for getting video modes over HDMI. diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi +i2c2: i2c@7e805000 { +compatible = brcm

Re: [PATCH] irqchip: bcm2836: Use a CPU notifier enable IPIs.

2015-08-03 Thread Eric Anholt
Thomas Gleixner t...@linutronix.de writes: On Mon, 27 Jul 2015, Eric Anholt wrote: +/* Unmasks the IPI on the CPU wen it's first brought online. */ when +static int bcm2836_arm_irqchip_cpu_notify(struct notifier_block *nfb, + unsigned long action, void

[PATCH v4 4/4] irqchip: Add bcm2836 interrupt controller for Raspberry Pi 2.

2015-08-06 Thread Eric Anholt
This interrupt controller is the new root interrupt controller with the timer, PMU events, and IPIs, and the bcm2835's interrupt controller is chained off of it to handle the peripherals. I wrote the interrupt chip support, while Andrea Merello wrote the IPI code. Signed-off-by: Eric Anholt e

[PATCH v4 3/4] irqchip: Add documentation for the bcm2836 interrupt controller.

2015-08-06 Thread Eric Anholt
This is a new per-cpu root interrupt controller on the Raspberry Pi 2, which will chain to the bcm2835 interrupt controller for peripheral interrupts. Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Stephen Warren swar...@wwwdotorg.org --- .../interrupt-controller/brcm,bcm2836-l1-intc.txt

[PATCH v4 1/4] irqchip: bcm2835: Refactor handle_IRQ() calls out of MAKE_HWIRQ.

2015-08-06 Thread Eric Anholt
. Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Stephen Warren swar...@wwwdotorg.org --- drivers/irqchip/irq-bcm2835.c | 57 ++- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm2835.c

Raspberry Pi 2 interrupt controller support (v4)

2015-08-06 Thread Eric Anholt
https://github.com/anholt/linux/tree/bcm2836-irqchip -- 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/

[PATCH v4 2/4] irqchip: bcm2835: Add support for being used as a second level controller.

2015-08-06 Thread Eric Anholt
The BCM2836 (Raspberry Pi 2) uses two levels of interrupt handling with the CPU-local interrupts being the root, so we need to register ours as chained off of the CPU's local interrupt. Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Stephen Warren swar...@wwwdotorg.org --- v3: Use

Rasperry Pi clock support

2015-08-13 Thread Eric Anholt
I'm also avoiding requests to set rate/state when they're a no-op, as apparently no-op changes to pixel clock break the firmware-configured display setup. It *shouldn't* change anything, but I've confirmed that setting the CPU clock works fine, and after a couple of weeks of prodding pixel clock

[PATCH v5 3/3] ARM: bcm2835: Add DT for the firmware clocks driver.

2015-08-13 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Lee Jones l...@kernel.org --- v2: Rename our compat string to mention bcm2835, and make our firmware phandle be under a vendor-namespaced property. v3: Squashed in the patches to reference the other clocks, to avoid regressions now

[PATCH v5 1/3] clk: bcm2835: Add binding docs for the Raspberry Pi clock provider

2015-08-13 Thread Eric Anholt
The hardware clocks are not controllable by the ARM, so we have to make requests to the firmware to do so from the VPU side. This will let us replace fixed clocks in our DT with actual clock control (and correct frequency information). Signed-off-by: Eric Anholt e...@anholt.net Acked-by: Stephen

Re: [PATCH 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-13 Thread Eric Anholt
Russell King - ARM Linux li...@arm.linux.org.uk writes: On Thu, Aug 13, 2015 at 01:44:03PM -0700, Eric Anholt wrote: Struct mutex is here because this code is from the V3D series, with the in-kernel BO cache ripped out (it turns out that the CMA allocator is slow, and you can't just userspace

[PATCH v5 2/3] clk: Add a Raspberry Pi-specific clock driver.

2015-08-13 Thread Eric Anholt
the firmware driver isn't supported yet, but it also avoids issues with disabling unused clocks due to them not yet being connected to their consumers in the DT. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Declare the mutex static (from review by Baruch Siach), merge description and copyright

Re: [PATCH 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-13 Thread Eric Anholt
Daniel Vetter dan...@ffwll.ch writes: On Wed, Aug 12, 2015 at 05:56:16PM -0700, Eric Anholt wrote: This is the start of a full VC4 driver. Right now this just supports configuring the display using a pre-existing video mode (because changing the pixel clock isn't available yet, and doesn't

Re: [GIT PULL] RPi DT changes due for v4.3

2015-08-14 Thread Eric Anholt
Olof Johansson o...@lixom.net writes: Hi, On Tue, Aug 11, 2015 at 05:06:42PM +0100, Lee Jones wrote: ARM SoC Chaps, Please find a couple of simple RPi changes pertaining to Firmware. The following changes since commit bc0195aad0daa2ad5b0d76cce22b167bc3435590: Linux 4.2-rc2

Re: [PATCH v4 2/8] clk: Add a Raspberry Pi-specific clock driver.

2015-08-12 Thread Eric Anholt
Michael Turquette mturque...@linaro.org writes: Hi Eric, Quoting Eric Anholt (2015-07-20 12:33:01) +void __init rpi_firmware_init_clock_provider(struct device_node *node) +{ + /* We delay construction of our struct clks until get time, +* because we need to be able to return

[GIT PULL] RPi SOC changes for v4.3

2015-08-12 Thread Eric Anholt
request contains the Raspberry Pi firmware driver, for communicating with the VPU which has exclusive control of some of the peripherals. Eric Anholt (1): ARM: bcm2835: Add the Raspberry Pi firmware driver drivers/firmware

  1   2   3   4   5   6   7   8   9   10   >