From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754106AbdARLAA (ORCPT ); Wed, 18 Jan 2017 06:00:00 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:33971 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752727AbdARK75 (ORCPT ); Wed, 18 Jan 2017 05:59:57 -0500 Subject: Re: [PATCH v4] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range To: =?UTF-8?Q?Andreas_F=c3=a4rber?= References: <1484129414-23325-1-git-send-email-narmstrong@baylibre.com> <7fcb8d94-840a-de2c-f43b-9123ccc65514@baylibre.com> <04113569-e342-77ff-f79a-2c9c4dc4c602@suse.de> <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> Cc: Kevin Hilman , "devicetree@vger.kernel.org" , xypron.glpk@gmx.de, "linux-kernel@vger.kernel.org" , Carlo Caione , Olof Johansson , linux-amlogic@lists.infradead.org, "linux-arm-kernel@lists.infradead.org" From: Neil Armstrong Organization: Baylibre Message-ID: <0d34e6b4-17cc-cfa3-4d10-6a4dc2afbf98@baylibre.com> Date: Wed, 18 Jan 2017 11:58:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/18/2017 01:27 AM, Andreas Färber wrote: > Am 18.01.2017 um 01:00 schrieb Andreas Färber: >> Am 17.01.2017 um 09:21 schrieb Neil Armstrong: >>> The stress-ng package provides this "stress" command and is used to force the kernel to map more memory >>> zones, but I also got the issue while running a fully fledged Desktop Environment thanks to the >>> recently merged DRM driver. >>> You may not be able to trigger the issue since it seems Amlogic reduces this reserved size on GXL/GXM : >>> https://github.com/khadas/linux/commit/698df2c6cfbb0d1a9359743208e83517b31da6ce >>> But it should be confirmed. >> >> Confirming no issues on three runs on meson-gxm-rbox-pro: >> >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s & >> [1] 2528 >> boxer:~ # stress-ng: info: [2528] dispatching hogs: 4 vm >> stress-ng: info: [2528] cache allocate: default cache size: 256K >> stress-ng: info: [2528] successful run completed in 10.07s >> >> [1]+ Done stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> stress-ng: info: [2537] dispatching hogs: 4 vm >> stress-ng: info: [2537] cache allocate: default cache size: 256K >> stress-ng: info: [2537] successful run completed in 10.07s >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> stress-ng: info: [2546] dispatching hogs: 4 vm >> stress-ng: info: [2546] cache allocate: default cache size: 256K >> stress-ng: info: [2546] successful run completed in 10.07s >> boxer:~ # > > Similar results on meson-gxbb-vega-s95-telos (except 512K cache size), > with both mainline EFI and vendor U-Boot. > > I notice that I don't have CONFIG_DRM enabled - maybe related? Yes, It may add more pressure on the memory allocation. Neil > > Regards, > Andreas > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Armstrong Subject: Re: [PATCH v4] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range Date: Wed, 18 Jan 2017 11:58:08 +0100 Message-ID: <0d34e6b4-17cc-cfa3-4d10-6a4dc2afbf98@baylibre.com> References: <1484129414-23325-1-git-send-email-narmstrong@baylibre.com> <7fcb8d94-840a-de2c-f43b-9123ccc65514@baylibre.com> <04113569-e342-77ff-f79a-2c9c4dc4c602@suse.de> <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: In-Reply-To: <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: =?UTF-8?Q?Andreas_F=c3=a4rber?= Cc: "devicetree@vger.kernel.org" , Kevin Hilman , "linux-kernel@vger.kernel.org" , Olof Johansson , xypron.glpk@gmx.de, Carlo Caione , linux-amlogic@lists.infradead.org, "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org T24gMDEvMTgvMjAxNyAwMToyNyBBTSwgQW5kcmVhcyBGw6RyYmVyIHdyb3RlOgo+IEFtIDE4LjAx LjIwMTcgdW0gMDE6MDAgc2NocmllYiBBbmRyZWFzIEbDpHJiZXI6Cj4+IEFtIDE3LjAxLjIwMTcg dW0gMDk6MjEgc2NocmllYiBOZWlsIEFybXN0cm9uZzoKPj4+IFRoZSBzdHJlc3MtbmcgcGFja2Fn ZSBwcm92aWRlcyB0aGlzICJzdHJlc3MiIGNvbW1hbmQgYW5kIGlzIHVzZWQgdG8gZm9yY2UgdGhl IGtlcm5lbCB0byBtYXAgbW9yZSBtZW1vcnkKPj4+IHpvbmVzLCBidXQgSSBhbHNvIGdvdCB0aGUg aXNzdWUgd2hpbGUgcnVubmluZyBhIGZ1bGx5IGZsZWRnZWQgRGVza3RvcCBFbnZpcm9ubWVudCB0 aGFua3MgdG8gdGhlCj4+PiByZWNlbnRseSBtZXJnZWQgRFJNIGRyaXZlci4KPj4+IFlvdSBtYXkg bm90IGJlIGFibGUgdG8gdHJpZ2dlciB0aGUgaXNzdWUgc2luY2UgaXQgc2VlbXMgQW1sb2dpYyBy ZWR1Y2VzIHRoaXMgcmVzZXJ2ZWQgc2l6ZSBvbiBHWEwvR1hNIDoKPj4+IGh0dHBzOi8vZ2l0aHVi LmNvbS9raGFkYXMvbGludXgvY29tbWl0LzY5OGRmMmM2Y2ZiYjBkMWE5MzU5NzQzMjA4ZTgzNTE3 YjMxZGE2Y2UKPj4+IEJ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p bmcgaG9nczogNCB2bQo+PiBzdHJlc3Mtbmc6IGluZm86ICBbMjU0Nl0gY2FjaGUgYWxsb2NhdGU6 IGRlZmF1bHQgY2FjaGUgc2l6ZTogMjU2Swo+PiBzdHJlc3Mtbmc6IGluZm86ICBbMjU0Nl0gc3Vj Y2Vzc2Z1bCBydW4gY29tcGxldGVkIGluIDEwLjA3cwo+PiBib3hlcjp+ICMKPiAKPiBTaW1pbGFy IHJlc3VsdHMgb24gbWVzb24tZ3hiYi12ZWdhLXM5NS10ZWxvcyAoZXhjZXB0IDUxMksgY2FjaGUg c2l6ZSksCj4gd2l0aCBib3RoIG1haW5saW5lIEVGSSBhbmQgdmVuZG9yIFUtQm9vdC4KPiAKPiBJ IG5vdGljZSB0aGF0IEkgZG9uJ3QgaGF2ZSBDT05GSUdfRFJNIGVuYWJsZWQgLSBtYXliZSByZWxh dGVkPwoKWWVzLCBJdCBtYXkgYWRkIG1vcmUgcHJlc3N1cmUgb24gdGhlIG1lbW9yeSBhbGxvY2F0 aW9uLgoKTmVpbAoKPiAKPiBSZWdhcmRzLAo+IEFuZHJlYXMKPiAKCgpfX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsaW51eC1hcm0ta2VybmVsIG1haWxpbmcg bGlzdApsaW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmcKaHR0cDovL2xpc3RzLmlu ZnJhZGVhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9saW51eC1hcm0ta2VybmVsCg== From mboxrd@z Thu Jan 1 00:00:00 1970 From: narmstrong@baylibre.com (Neil Armstrong) Date: Wed, 18 Jan 2017 11:58:08 +0100 Subject: [PATCH v4] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range In-Reply-To: <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> References: <1484129414-23325-1-git-send-email-narmstrong@baylibre.com> <7fcb8d94-840a-de2c-f43b-9123ccc65514@baylibre.com> <04113569-e342-77ff-f79a-2c9c4dc4c602@suse.de> <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> Message-ID: <0d34e6b4-17cc-cfa3-4d10-6a4dc2afbf98@baylibre.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 01/18/2017 01:27 AM, Andreas F?rber wrote: > Am 18.01.2017 um 01:00 schrieb Andreas F?rber: >> Am 17.01.2017 um 09:21 schrieb Neil Armstrong: >>> The stress-ng package provides this "stress" command and is used to force the kernel to map more memory >>> zones, but I also got the issue while running a fully fledged Desktop Environment thanks to the >>> recently merged DRM driver. >>> You may not be able to trigger the issue since it seems Amlogic reduces this reserved size on GXL/GXM : >>> https://github.com/khadas/linux/commit/698df2c6cfbb0d1a9359743208e83517b31da6ce >>> But it should be confirmed. >> >> Confirming no issues on three runs on meson-gxm-rbox-pro: >> >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s & >> [1] 2528 >> boxer:~ # stress-ng: info: [2528] dispatching hogs: 4 vm >> stress-ng: info: [2528] cache allocate: default cache size: 256K >> stress-ng: info: [2528] successful run completed in 10.07s >> >> [1]+ Done stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> stress-ng: info: [2537] dispatching hogs: 4 vm >> stress-ng: info: [2537] cache allocate: default cache size: 256K >> stress-ng: info: [2537] successful run completed in 10.07s >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> stress-ng: info: [2546] dispatching hogs: 4 vm >> stress-ng: info: [2546] cache allocate: default cache size: 256K >> stress-ng: info: [2546] successful run completed in 10.07s >> boxer:~ # > > Similar results on meson-gxbb-vega-s95-telos (except 512K cache size), > with both mainline EFI and vendor U-Boot. > > I notice that I don't have CONFIG_DRM enabled - maybe related? Yes, It may add more pressure on the memory allocation. Neil > > Regards, > Andreas > From mboxrd@z Thu Jan 1 00:00:00 1970 From: narmstrong@baylibre.com (Neil Armstrong) Date: Wed, 18 Jan 2017 11:58:08 +0100 Subject: [PATCH v4] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range In-Reply-To: <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> References: <1484129414-23325-1-git-send-email-narmstrong@baylibre.com> <7fcb8d94-840a-de2c-f43b-9123ccc65514@baylibre.com> <04113569-e342-77ff-f79a-2c9c4dc4c602@suse.de> <6bba535f-42bc-3e4b-129b-adc39152cfeb@suse.de> Message-ID: <0d34e6b4-17cc-cfa3-4d10-6a4dc2afbf98@baylibre.com> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org On 01/18/2017 01:27 AM, Andreas F?rber wrote: > Am 18.01.2017 um 01:00 schrieb Andreas F?rber: >> Am 17.01.2017 um 09:21 schrieb Neil Armstrong: >>> The stress-ng package provides this "stress" command and is used to force the kernel to map more memory >>> zones, but I also got the issue while running a fully fledged Desktop Environment thanks to the >>> recently merged DRM driver. >>> You may not be able to trigger the issue since it seems Amlogic reduces this reserved size on GXL/GXM : >>> https://github.com/khadas/linux/commit/698df2c6cfbb0d1a9359743208e83517b31da6ce >>> But it should be confirmed. >> >> Confirming no issues on three runs on meson-gxm-rbox-pro: >> >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s & >> [1] 2528 >> boxer:~ # stress-ng: info: [2528] dispatching hogs: 4 vm >> stress-ng: info: [2528] cache allocate: default cache size: 256K >> stress-ng: info: [2528] successful run completed in 10.07s >> >> [1]+ Done stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> stress-ng: info: [2537] dispatching hogs: 4 vm >> stress-ng: info: [2537] cache allocate: default cache size: 256K >> stress-ng: info: [2537] successful run completed in 10.07s >> boxer:~ # stress-ng --vm 4 --vm-bytes 128M --timeout 10s >> stress-ng: info: [2546] dispatching hogs: 4 vm >> stress-ng: info: [2546] cache allocate: default cache size: 256K >> stress-ng: info: [2546] successful run completed in 10.07s >> boxer:~ # > > Similar results on meson-gxbb-vega-s95-telos (except 512K cache size), > with both mainline EFI and vendor U-Boot. > > I notice that I don't have CONFIG_DRM enabled - maybe related? Yes, It may add more pressure on the memory allocation. Neil > > Regards, > Andreas >