lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQWoTkH4YnS6PEKwVqAd1tB9+8d5gpnJ+qeySU2E30cegA@mail.gmail.com>
Date:	Mon, 17 Jun 2013 16:38:01 -0700
From:	Yinghai Lu <yinghai@...nel.org>
To:	Toshi Kani <toshi.kani@...com>
Cc:	"H. Peter Anvin" <hpa@...or.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...e.hu>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Tejun Heo <tj@...nel.org>, Thomas Renninger <trenn@...e.de>,
	Tang Chen <tangchen@...fujitsu.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	"Rafael J. Wysocki" <rjw@...k.pl>,
	ACPI Devel Maling List <linux-acpi@...r.kernel.org>
Subject: Re: [PATCH v5 04/22] x86, ACPI: Search buffer above 4G in second try
 for acpi override tables

On Mon, Jun 17, 2013 at 4:22 PM, Toshi Kani <toshi.kani@...com> wrote:
> On Fri, 2013-06-14 at 17:56 -0700, Yinghai Lu wrote:
>> Now we only search buffer for override acpi table under 4G.
>> In some case, like user use memmap to exclude all low ram,
>> we may not find range for it under 4G.
>>
>> Do second try to search above 4G.
>>
>> Signed-off-by: Yinghai Lu <yinghai@...nel.org>
>> Cc: "Rafael J. Wysocki" <rjw@...k.pl>
>> Cc: linux-acpi@...r.kernel.org
>> Tested-by: Thomas Renninger <trenn@...e.de>
>> Reviewed-by: Tang Chen <tangchen@...fujitsu.com>
>> Tested-by: Tang Chen <tangchen@...fujitsu.com>
>> ---
>>  drivers/acpi/osl.c | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
>> index 93e3194..42c48fc 100644
>> --- a/drivers/acpi/osl.c
>> +++ b/drivers/acpi/osl.c
>> @@ -627,6 +627,10 @@ void __init acpi_initrd_override(void *data, size_t size)
>>       /* under 4G at first, then above 4G */
>>       acpi_tables_addr = memblock_find_in_range(0, (1ULL<<32) - 1,
>>                                       all_tables_size, PAGE_SIZE);
>> +     if (!acpi_tables_addr)
>> +             acpi_tables_addr = memblock_find_in_range(0,
>> +                                     ~(phys_addr_t)0,
>> +                                     all_tables_size, PAGE_SIZE);
>
> Should this search start from 4G, instead of 0?

should be ok, as memblock searching is top-down.

Thanks

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ