From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA93AC47254 for ; Fri, 1 May 2020 09:59:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C06B621924 for ; Fri, 1 May 2020 09:59:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rLhZ+c6o"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="qyhREBc/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C06B621924 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=DF2Q5/VkX8XF9XFi7LdoOWik6TwV5cLGwwV+ehulsC8=; b=rLh Z+c6oJ3FUSRoEc557t9z/eUdyDSq3TPAEz7WGed1OV7j6XgZQ3zHr1O+XXZ8BorDz4zNB+j46sVxP CUMLME5qtFJ/Qa46BJpqHr8Aqfm3LT6k5AwCuX19nlxngAnqXisAkYG19w8IyTQG9Kw6F2WxUKd0V OJhTSX8tsZWxU0qbokwrXhbYs8fQ3StdEllFgo6H1Y+uj47anq0JkQkdlCiOm3knelUREixZpYwfd VEpXKPd2iXXfCh/rRQwVPJkjZ/660qnaO8yIZqUoheUICPaaU9P7iqa6PhsZHPysycPHARwtO6S/N G0Lehq1PUQ4ajyixqk3nZYDSGJnkiuQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUSRi-0000Qr-DV; Fri, 01 May 2020 09:59:02 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUSRf-0000Pg-Cs for linux-arm-kernel@lists.infradead.org; Fri, 01 May 2020 09:59:00 +0000 Received: from e123331-lin.home (amontpellier-657-1-18-247.w109-210.abo.wanadoo.fr [109.210.65.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 679D92166E; Fri, 1 May 2020 09:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588327137; bh=aFo1Y0DYbsYo3jYYrmHZ2Qv7b19V9eJuOxE+i6hPCD4=; h=From:To:Cc:Subject:Date:From; b=qyhREBc/MbW7sftq4eFaMnKGNk1n7RdIPIrgfRGJN32n9CERZiyG0O/G5O+vYa77C ZhMrvEpNRRiAX2YEoGJwb7SEY91LKL5UGGSAhdIPFM5FXBQbI2vmfntKr53w9mc8sk Fgc2BT57h/hCTcf9qHaYr5o4DguLh505gnsU2XTM= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC 0/2] ACPI/IORT: rework num_ids off-by-one quirk Date: Fri, 1 May 2020 11:58:41 +0200 Message-Id: <20200501095843.25401-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200501_025859_454880_6732B6BF X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lorenzo Pieralisi , Catalin Marinas , Pankaj Bansal , Sudeep Holla , Robin Murphy , linux-acpi@vger.kernel.org, Hanjun Guo , Will Deacon , Ard Biesheuvel MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace the ACPI OEM ID matching based IORT quirk for the ID region size ambiguity with runtime handling of this condition. This is based on the observation that we only care about this when it causes ambiguity regarding the output reference, which means that we will have more than one match for the input ID. In this case, we can just disregard the one at the end of a multi-ID region: if we hit it first, we record it tentatively but allow a subsequent match to supersede it. If we hit the correct match first, there is nothing we need to do. Cc: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Pankaj Bansal Cc: Will Deacon Cc: Sudeep Holla Cc: Catalin Marinas Cc: Robin Murphy Ard Biesheuvel (2): Revert "ACPI/IORT: Fix 'Number of IDs' handling in iort_id_map()" ACPI/IORT: work around num_ids ambiguity drivers/acpi/arm64/iort.c | 78 +++++--------------- 1 file changed, 19 insertions(+), 59 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel