2016-04-01 00:31:48

by Eric Anholt

[permalink] [raw]
Subject: [PATCH 1/4] ARM: bcm2835: Switch BCM2835 to sdhci-iproc.c for MMC

This approximately triples write performance for the SD card. My card
is too full of important data to collect very reliable numbers, but I
see 271.361% +/- 166.742% improvement (n=3 before, 6 after), for 'dd
if=/dev/zero of=/boot/asdf bs=1M count=3 oflag=dsync,direct'. Read
performance appears to be unaffected.

Signed-off-by: Eric Anholt <[email protected]>
---
arch/arm/configs/bcm2835_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig
index 1ef69fc..1617fd2 100644
--- a/arch/arm/configs/bcm2835_defconfig
+++ b/arch/arm/configs/bcm2835_defconfig
@@ -87,7 +87,7 @@ CONFIG_USB_DWC2=y
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
-CONFIG_MMC_SDHCI_BCM2835=y
+CONFIG_MMC_SDHCI_IPROC=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
CONFIG_LEDS_GPIO=y
--
2.7.0


2016-04-01 00:30:49

by Eric Anholt

[permalink] [raw]
Subject: [PATCH 3/4] ARM: bcm2835: Enable the VC4 graphics driver in the defconfig

Combined with the queued DT changes, we now get HDMI and 3D support.

Signed-off-by: Eric Anholt <[email protected]>
---
arch/arm/configs/bcm2835_defconfig | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig
index 1192a6f..896500f 100644
--- a/arch/arm/configs/bcm2835_defconfig
+++ b/arch/arm/configs/bcm2835_defconfig
@@ -64,7 +64,6 @@ CONFIG_INPUT_EVDEV=y
CONFIG_SERIAL_AMBA_PL011=y
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
CONFIG_TTY_PRINTK=y
-CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_BCM2835=y
CONFIG_SPI=y
@@ -74,10 +73,10 @@ CONFIG_GPIO_SYSFS=y
# CONFIG_HWMON is not set
CONFIG_WATCHDOG=y
CONFIG_BCM2835_WDT=y
-CONFIG_FB=y
+CONFIG_DRM=y
+CONFIG_DRM_VC4=y
CONFIG_FB_SIMPLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
-CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_SOC=y
--
2.7.0

2016-04-01 00:30:51

by Eric Anholt

[permalink] [raw]
Subject: [PATCH 4/4] ARM: bcm2835: Enable NFS root support.

This is also present in multi_v7_defconfig, and means that I can test
the pi1 with the 2835 defconfig in my normal environment.

Signed-off-by: Eric Anholt <[email protected]>
---
arch/arm/configs/bcm2835_defconfig | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig
index 896500f..79de828 100644
--- a/arch/arm/configs/bcm2835_defconfig
+++ b/arch/arm/configs/bcm2835_defconfig
@@ -43,6 +43,8 @@ CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
CONFIG_NETWORK_SECMARK=y
CONFIG_NETFILTER=y
CONFIG_CFG80211=y
@@ -122,6 +124,7 @@ CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
# CONFIG_MISC_FILESYSTEMS is not set
CONFIG_NFS_FS=y
+CONFIG_ROOT_NFS=y
CONFIG_NFSD=y
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ASCII=y
--
2.7.0

2016-04-01 00:30:47

by Eric Anholt

[permalink] [raw]
Subject: [PATCH 2/4] ARM: bcm2835: Enable CONFIG_PM.

The power domain driver we've enabled doesn't actually do anything
without it, and we need it to do its job for VC4 to initialize
successfully.

Signed-off-by: Eric Anholt <[email protected]>
---
arch/arm/configs/bcm2835_defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig
index 1617fd2..1192a6f 100644
--- a/arch/arm/configs/bcm2835_defconfig
+++ b/arch/arm/configs/bcm2835_defconfig
@@ -38,6 +38,7 @@ CONFIG_CRASH_DUMP=y
CONFIG_VFP=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
# CONFIG_SUSPEND is not set
+CONFIG_PM=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
--
2.7.0

2016-04-01 02:03:53

by Stephen Warren

[permalink] [raw]
Subject: Re: [PATCH 3/4] ARM: bcm2835: Enable the VC4 graphics driver in the defconfig

On 03/31/2016 06:30 PM, Eric Anholt wrote:
> Combined with the queued DT changes, we now get HDMI and 3D support.

> diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig

> CONFIG_FB_SIMPLE=y

Do we need to disable that too, or does hand-off from simplefb to the
accelerated driver work fine?

2016-04-01 02:05:47

by Stephen Warren

[permalink] [raw]
Subject: Re: [PATCH 2/4] ARM: bcm2835: Enable CONFIG_PM.

On 03/31/2016 06:30 PM, Eric Anholt wrote:
> The power domain driver we've enabled doesn't actually do anything
> without it, and we need it to do its job for VC4 to initialize
> successfully.

Patches 1, 2, and 3,
Acked-by: Stephen Warren <[email protected]>

2016-04-01 16:59:04

by Stephen Warren

[permalink] [raw]
Subject: Re: [PATCH 1/4] ARM: bcm2835: Switch BCM2835 to sdhci-iproc.c for MMC

On 03/31/2016 06:30 PM, Eric Anholt wrote:
> This approximately triples write performance for the SD card. My card
> is too full of important data to collect very reliable numbers, but I
> see 271.361% +/- 166.742% improvement (n=3 before, 6 after), for 'dd
> if=/dev/zero of=/boot/asdf bs=1M count=3 oflag=dsync,direct'. Read
> performance appears to be unaffected.

Acked-by: Stephen Warren <[email protected]>