From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbbCKSmE (ORCPT ); Wed, 11 Mar 2015 14:42:04 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:38489 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838AbbCKSmB (ORCPT ); Wed, 11 Mar 2015 14:42:01 -0400 Date: Wed, 11 Mar 2015 18:41:54 +0000 From: Russell King - ARM Linux To: Stas Sergeev Cc: Thomas Petazzoni , Linux kernel , linux-arm-kernel@lists.infradead.org, Gregory =?iso-8859-1?Q?Cl=E9ment?= , Catalin Marinas Subject: Re: [PATCH] n_tty: use kmalloc() instead of vmalloc() to avoid crash on armada-xp Message-ID: <20150311184154.GF8656@n2100.arm.linux.org.uk> References: <54FF21BE.2040506@list.ru> <20150311175227.499612af@free-electrons.com> <55007ADD.6080505@list.ru> <20150311174618.GE8656@n2100.arm.linux.org.uk> <550081E2.5030807@list.ru> <20150311191118.1edb2ed8@free-electrons.com> <55008BBD.5010800@list.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55008BBD.5010800@list.ru> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2015 at 09:38:53PM +0300, Stas Sergeev wrote: > 11.03.2015 21:11, Thomas Petazzoni пишет: > > Dear Stas Sergeev, > > > > On Wed, 11 Mar 2015 20:56:50 +0300, Stas Sergeev wrote: > > > >> It doesn't look like it works as intended. > >> Got the crash below. > >> Please note the mappings beyond 0xe0000000, so I wonder if > >> the option worked as expected? > > Are you sure you're not confusing virtual addresses and physical > > addresses? > OK, so I changed Russel's printk to the following way: > > +printk("vmalloc: mapping page %p (0x%08lx000) at 0x%08lx 0x%08zx\n", > + page, page_to_pfn(page), addr, __pa(addr)); > > (added __pa(addr)) and now I hope I am seeing the physical > addresses at the last column: No, you don't want to do that... > [ 19.023836] vmalloc: mapping page ef7f1fa0 (0x000bfc7d000) at | `- physical address `-struct page address > 0xf04a3000 0x304a3000 `- virtual address __pa() doesn't work on addresses in the vmalloc region. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net.