linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: defconfig: enable various configs for HiKey
@ 2016-08-19 15:42 Guodong Xu
  2016-08-19 15:42 ` [PATCH 1/4] arm64: defconfig: Enable HiSilicon kirin drm, adv7533 " Guodong Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Guodong Xu @ 2016-08-19 15:42 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, arnd, horms+renesas, treding, olof,
	kuninori.morimoto.gx, alim.akhtar, srinivas.kandagatla, xuwei5,
	khilman, riku.voipio
  Cc: linux-arm-kernel, linux-kernel, Guodong Xu

Enable various configs for HiKey, including:
1. HiSilicon Kirin DRM
2. ADV7533
3. Powerkey
4. Bluetooth

Also, set CMA heap size to 128MB.

Guodong Xu (3):
  arm64: defconfig: Enable HiSilicon kirin drm, adv7533 for HiKey
  arm64: defconfig: enable CONFIG_INPUT_HISI_POWERKEY for HiKey
  arm64: defconfig: enable bluetooth supports as modules

Xinliang Liu (1):
  arm64: defconfig: Set cma heap size to 128MB

 arch/arm64/configs/defconfig | 12 ++++++++++++
 1 file changed, 12 insertions(+)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/4] arm64: defconfig: Enable HiSilicon kirin drm, adv7533 for HiKey
  2016-08-19 15:42 [PATCH 0/4] arm64: defconfig: enable various configs for HiKey Guodong Xu
@ 2016-08-19 15:42 ` Guodong Xu
  2016-08-19 15:42 ` [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB Guodong Xu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Guodong Xu @ 2016-08-19 15:42 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, arnd, horms+renesas, treding, olof,
	kuninori.morimoto.gx, alim.akhtar, srinivas.kandagatla, xuwei5,
	khilman, riku.voipio
  Cc: linux-arm-kernel, linux-kernel, Guodong Xu, Xinliang Liu

Enable HiSilicon kirin drm driver for HiKey: CONFIG_DRM_HISI_KIRIN
Enable adv7511/adv7533 for HiKey: CONFIG_DRM_I2C_ADV7511

Build these components as modules.

Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 76bfaa7..e27f086 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -276,6 +276,8 @@ CONFIG_DRM=m
 CONFIG_DRM_NOUVEAU=m
 CONFIG_DRM_TEGRA=m
 CONFIG_DRM_PANEL_SIMPLE=m
+CONFIG_DRM_I2C_ADV7511=m
+CONFIG_DRM_HISI_KIRIN=m
 CONFIG_FB=y
 CONFIG_FB_ARMCLCD=y
 CONFIG_BACKLIGHT_GENERIC=m
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB
  2016-08-19 15:42 [PATCH 0/4] arm64: defconfig: enable various configs for HiKey Guodong Xu
  2016-08-19 15:42 ` [PATCH 1/4] arm64: defconfig: Enable HiSilicon kirin drm, adv7533 " Guodong Xu
@ 2016-08-19 15:42 ` Guodong Xu
  2016-08-22  9:06   ` Thierry Reding
  2016-08-19 15:42 ` [PATCH 3/4] arm64: defconfig: enable CONFIG_INPUT_HISI_POWERKEY for HiKey Guodong Xu
  2016-08-19 15:42 ` [PATCH 4/4] arm64: defconfig: enable bluetooth supports as modules Guodong Xu
  3 siblings, 1 reply; 7+ messages in thread
From: Guodong Xu @ 2016-08-19 15:42 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, arnd, horms+renesas, treding, olof,
	kuninori.morimoto.gx, alim.akhtar, srinivas.kandagatla, xuwei5,
	khilman, riku.voipio
  Cc: linux-arm-kernel, linux-kernel, Xinliang Liu

From: Xinliang Liu <xinliang.liu@linaro.org>

For debian linux, cma heap is used to allocate graphic buffers.
The default size is 16 MB which is not enought.
So increase the size to 128 MB.

Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index e27f086..c94f2fa 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -130,6 +130,7 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
 CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_MBYTES=128
 CONFIG_MTD=y
 CONFIG_MTD_M25P80=y
 CONFIG_MTD_SPI_NOR=y
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/4] arm64: defconfig: enable CONFIG_INPUT_HISI_POWERKEY for HiKey
  2016-08-19 15:42 [PATCH 0/4] arm64: defconfig: enable various configs for HiKey Guodong Xu
  2016-08-19 15:42 ` [PATCH 1/4] arm64: defconfig: Enable HiSilicon kirin drm, adv7533 " Guodong Xu
  2016-08-19 15:42 ` [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB Guodong Xu
@ 2016-08-19 15:42 ` Guodong Xu
  2016-08-19 15:42 ` [PATCH 4/4] arm64: defconfig: enable bluetooth supports as modules Guodong Xu
  3 siblings, 0 replies; 7+ messages in thread
From: Guodong Xu @ 2016-08-19 15:42 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, arnd, horms+renesas, treding, olof,
	kuninori.morimoto.gx, alim.akhtar, srinivas.kandagatla, xuwei5,
	khilman, riku.voipio
  Cc: linux-arm-kernel, linux-kernel, Guodong Xu

Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index c94f2fa..11a79ba 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -187,6 +187,7 @@ CONFIG_INPUT_EVDEV=y
 CONFIG_KEYBOARD_GPIO=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_PM8941_PWRKEY=y
+CONFIG_INPUT_HISI_POWERKEY=y
 # CONFIG_SERIO_SERPORT is not set
 CONFIG_SERIO_AMBAKMI=y
 CONFIG_LEGACY_PTY_COUNT=16
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/4] arm64: defconfig: enable bluetooth supports as modules
  2016-08-19 15:42 [PATCH 0/4] arm64: defconfig: enable various configs for HiKey Guodong Xu
                   ` (2 preceding siblings ...)
  2016-08-19 15:42 ` [PATCH 3/4] arm64: defconfig: enable CONFIG_INPUT_HISI_POWERKEY for HiKey Guodong Xu
@ 2016-08-19 15:42 ` Guodong Xu
  3 siblings, 0 replies; 7+ messages in thread
From: Guodong Xu @ 2016-08-19 15:42 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, arnd, horms+renesas, treding, olof,
	kuninori.morimoto.gx, alim.akhtar, srinivas.kandagatla, xuwei5,
	khilman, riku.voipio
  Cc: linux-arm-kernel, linux-kernel, Guodong Xu

Enable the following items for bluetooth mouse and speaker which base
on HCIUART.

a) CONFIG_BT_HCIUART
b) CONFIG_BT_HCIUART_LL
c) CONFIG_BT_HIDP

Enable bluetooth LED support.

d) CONFIG_BT_LEDS

Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
---
 arch/arm64/configs/defconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 11a79ba..30b6220 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -120,6 +120,14 @@ CONFIG_VLAN_8021Q=m
 CONFIG_VLAN_8021Q_GVRP=y
 CONFIG_VLAN_8021Q_MVRP=y
 CONFIG_BPF_JIT=y
+CONFIG_BT=m
+CONFIG_BT_HIDP=m
+# CONFIG_BT_HS is not set
+# CONFIG_BT_LE is not set
+CONFIG_BT_LEDS=y
+# CONFIG_BT_DEBUGFS is not set
+CONFIG_BT_HCIUART=m
+CONFIG_BT_HCIUART_LL=y
 CONFIG_CFG80211=m
 CONFIG_MAC80211=m
 CONFIG_MAC80211_LEDS=y
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB
  2016-08-19 15:42 ` [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB Guodong Xu
@ 2016-08-22  9:06   ` Thierry Reding
  2016-08-24  2:23     ` Guodong Xu
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Reding @ 2016-08-22  9:06 UTC (permalink / raw)
  To: Guodong Xu
  Cc: catalin.marinas, will.deacon, arnd, horms+renesas, olof,
	kuninori.morimoto.gx, alim.akhtar, srinivas.kandagatla, xuwei5,
	khilman, riku.voipio, linux-arm-kernel, linux-kernel,
	Xinliang Liu

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

On Fri, Aug 19, 2016 at 11:42:06PM +0800, Guodong Xu wrote:
> From: Xinliang Liu <xinliang.liu@linaro.org>
> 
> For debian linux, cma heap is used to allocate graphic buffers.
> The default size is 16 MB which is not enought.
> So increase the size to 128 MB.
> 
> Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
> ---
>  arch/arm64/configs/defconfig | 1 +
>  1 file changed, 1 insertion(+)

This is a bad idea. You're increasing this heap for all users of the
default configuration (which on 64-bit ARM is everyone, really). Many of
the devices don't require the CMA except maybe for the occasional very
small buffer. Most implement some form of IOMMU support that removes the
need for large amounts of contiguous physical memory.

I think it's a better idea to have some bootloader append a cma=128 to
the kernel command-line if necessary.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB
  2016-08-22  9:06   ` Thierry Reding
@ 2016-08-24  2:23     ` Guodong Xu
  0 siblings, 0 replies; 7+ messages in thread
From: Guodong Xu @ 2016-08-24  2:23 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Catalin Marinas, Will Deacon, Arnd Bergmann, horms+renesas,
	Olof Johansson, Kuninori Morimoto, Alim Akhtar,
	Srinivas Kandagatla, Xu Wei, khilman, Riku Voipio,
	linux-arm-kernel, linux-kernel, Xinliang Liu

On 22 August 2016 at 17:06, Thierry Reding <treding@nvidia.com> wrote:
> On Fri, Aug 19, 2016 at 11:42:06PM +0800, Guodong Xu wrote:
>> From: Xinliang Liu <xinliang.liu@linaro.org>
>>
>> For debian linux, cma heap is used to allocate graphic buffers.
>> The default size is 16 MB which is not enought.
>> So increase the size to 128 MB.
>>
>> Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
>> ---
>>  arch/arm64/configs/defconfig | 1 +
>>  1 file changed, 1 insertion(+)
>
> This is a bad idea. You're increasing this heap for all users of the
> default configuration (which on 64-bit ARM is everyone, really). Many of
> the devices don't require the CMA except maybe for the occasional very
> small buffer. Most implement some form of IOMMU support that removes the
> need for large amounts of contiguous physical memory.
>
> I think it's a better idea to have some bootloader append a cma=128 to
> the kernel command-line if necessary.
>

I will remove this. Thanks.

-Guodong Xu

> Thierry

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-24  2:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19 15:42 [PATCH 0/4] arm64: defconfig: enable various configs for HiKey Guodong Xu
2016-08-19 15:42 ` [PATCH 1/4] arm64: defconfig: Enable HiSilicon kirin drm, adv7533 " Guodong Xu
2016-08-19 15:42 ` [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB Guodong Xu
2016-08-22  9:06   ` Thierry Reding
2016-08-24  2:23     ` Guodong Xu
2016-08-19 15:42 ` [PATCH 3/4] arm64: defconfig: enable CONFIG_INPUT_HISI_POWERKEY for HiKey Guodong Xu
2016-08-19 15:42 ` [PATCH 4/4] arm64: defconfig: enable bluetooth supports as modules Guodong Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).