Received: by 10.223.185.116 with SMTP id b49csp5029474wrg; Tue, 27 Feb 2018 06:45:57 -0800 (PST) X-Google-Smtp-Source: AH8x224in6J4P81eoGjlEJzeEdQaOoO4OFy3bW4a9NcuAcqfzGRDlt9q30kGB2NlYDtUhq61Y05O X-Received: by 2002:a17:902:4643:: with SMTP id o61-v6mr14842952pld.103.1519742757803; Tue, 27 Feb 2018 06:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519742757; cv=none; d=google.com; s=arc-20160816; b=XbajvHcgQ1/FihjovPoXxL74aoL6bcmreLrLOhyYjhrfmhPavzU/Cnk8op8b9KxZ7Q I2J7L8aTS0nL4CL8ieZaqY88YmAO/kCQGMLq/BYPi9qSZic3dvk3J0Rv6UFQew/ks6uF KOjUhT7JWpCct4Oj8AA1JenhIGxYf08WzaDJ5WH/rNkWHMuyCPa3JBUMSIH7EcAhRd64 et/Iyk6i9Pknvzpt/tvcuEloGOlNsYT9tfK0zd51NGEyuzCG2FfDrxBvU4jFpx1GtcTV IvLNtXLStj4Vm8PrYiO3Lp9+eIYtEfJP0oiG1hWfjX5nWmMWR0FT/gSbphff1j/vOh9d IbGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :arc-authentication-results; bh=LMxGChs6WEM93UH82JB28K9j9MlsTQG+iUwx46YyfLo=; b=vlzO//Z4KA8WInpH37CLiJHK3VrV7D9GqfghXC+rGeEGrlVl6mEmctH5nBfFHYUfxp ANwrARfINj5a/jNyOh5JE0DEN9bsWk3ViA1/3KPEulLZADn2qhvdZSfLgGmTlnGXG0km 9LA25DUIkIZ6Es+CwskCrS2coGwXbI5lzSLKrVGD2T/nxXXYIiab+X2+CrrRd74BiUkw eENUVkc1UMbka59Wo25xlnDu81rxr7CMNKLrgkTVSJQLF13cf031JHy8CYL6boYH2Zxy KzYKNS8ASUQgrIQBYEnrVq6yTa+nOHyUgKvvYlwfhjbX9pOv7t1zkRqJ5rzh9R/fu2XX uSbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si7070415pgj.673.2018.02.27.06.45.42; Tue, 27 Feb 2018 06:45:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753964AbeB0OoL (ORCPT + 99 others); Tue, 27 Feb 2018 09:44:11 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34734 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753421AbeB0OoK (ORCPT ); Tue, 27 Feb 2018 09:44:10 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2B2A7EAEA6; Tue, 27 Feb 2018 14:44:10 +0000 (UTC) Received: from jtoppins.rdu.csb (dhcp137-178.rdu.redhat.com [10.13.137.178]) by smtp.corp.redhat.com (Postfix) with ESMTP id A4366AFD69; Tue, 27 Feb 2018 14:44:09 +0000 (UTC) Reply-To: jtoppins@redhat.com Subject: Re: [PATCH] arm64/acpi: make ACPI boot preference configurable To: Bhupesh Sharma Cc: linux-arm-kernel , astone@redhat.com, Jonathan Masters , Catalin Marinas , Will Deacon , rafael.j.wysocki@intel.com, Ingo Molnar , Prarit Bhargava , James Morse , andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org References: <85047448dc1d2d3c725b6b78d5ef2a89fc81b83b.1519659254.git.jtoppins@redhat.com> From: Jonathan Toppins Organization: Red Hat Message-ID: <1b5a55bd-5bc7-ecd0-99f0-71dd05119743@redhat.com> Date: Tue, 27 Feb 2018 09:44:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 27 Feb 2018 14:44:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 27 Feb 2018 14:44:10 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jtoppins@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/27/2018 07:40 AM, Bhupesh Sharma wrote: > Hi, > > On Tue, Feb 27, 2018 at 11:35 AM, Jonathan Toppins wrote: >> This patch allows a user to configure ACPI to be preferred over >> device-tree. >> >> Currently for ACPI to be used a user either has to set acpi=on on the >> kernel command line or make sure any device tree passed to the kernel >> is empty. If the dtb passed to the kernel is non-empty then device-tree >> will be chosen as the boot method of choice even if it is not correct. > > Hmm. Not sure if I correctly understand what you mean here by the term > 'incorrect device tree'. Do you mean a corrupted device tree blob (but > normally we can catch those cases via the device tree header) or a > deliberate (or a broken) firmware attempt to pass an incorrect device > tree blob to the OS. I mean a device tree that doesn't list all devices in the SOC. So it is more incomplete than incorrect. It could also be incorrect in that it doesn't list proper timings, memory/pci/etc. > > If its the later, I think the onus should be on the firmware (u-boot > or UEFI or others.. ) to fix the problems. I know we carry a lot of > fixes in the kernel for x86 firmware quirks but then we have several > broken x86 machines on which kernel has been running since several > years now. > > IMO, if we have a known firmware quirk (to fix the broken DTB being > passed from the firmware), we can look at adding it in the early arm64 > kernel code (similar to the quirk handling we do in the x86 early > kernel code for broken firmware), rather than forcing ACPI as the boot > method. > >> To prevent this situation where a system is only intended to be booted >> via ACPI a user can set this kernel configuration so it ignores >> device-tree settings unless ACPI table checks fail. > > Or, if decide to depreciate DTB as the boot method for such boards, > can we look at setting 'acpi=force' in the bootagrs always to make > sure that ACPI (and no fallback on DTB) is forced as the boot method > for such arm64 machines. For arm64 DT is suppose to *not* be the preferred method, yet still DT is preferred if the firmware provides both tables to the kernel. So it seems reasonable to eventually have a default that effectively does acpi=force for arm64. This patch was taking the halfway approach to just have the kernel prefer acpi. I would prefer to just change to kernel bool values instead of compiling in kernel command line args, as command line args are usually left for the end user to play with. -Jon