Received: from out-19.mta0.migadu.com (out-19.mta0.migadu.com [91.218.175.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F5E33B407 for ; Fri, 9 Jun 2023 07:21:50 +0000 (UTC) Date: Fri, 9 Jun 2023 09:21:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686295307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IaopBfagvwS3R4qAUdnfrfhlAWkc1cyOQNQ3E55q+Y8=; b=TURntaX0ZxW2FHUB2YLXB0WyFUx2MYPHe2IyvUAPHeQJnlbtUIhMFWJAQpVw+zcDjF9g+9 OQQg4KscQVSmOlPW4SxRF4TOlh2xQK4aZkRVaopJ2Vu5ChvT7Ao4h7vN02hO/UYhfre47R TSnBELUpbNedElQ035uyzMZtG9npOjc= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Nadav Amit Cc: Nikos Nikoleris , kvm@vger.kernel.org, kvmarm@lists.linux.dev, Paolo Bonzini , alexandru.elisei@arm.com, ricarkol@google.com, shahuang@redhat.com Subject: Re: [kvm-unit-tests PATCH v6 12/32] arm64: Add support for discovering the UART through ACPI Message-ID: <20230609-2ef801d526b6f0256720cf24@orel> References: <20230530160924.82158-1-nikos.nikoleris@arm.com> <20230530160924.82158-13-nikos.nikoleris@arm.com> <7DA92888-3042-4036-A769-E9F941AF98A5@gmail.com> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Jun 08, 2023 at 10:24:11AM -0700, Nadav Amit wrote: > > > > On Jun 8, 2023, at 10:18 AM, Nadav Amit wrote: > > > > > > On May 30, 2023, at 9:09 AM, Nikos Nikoleris wrote: > > > >> > >> +static void uart0_init_acpi(void) > >> +{ > >> + struct spcr_descriptor *spcr = find_acpi_table_addr(SPCR_SIGNATURE); > >> + > >> + assert_msg(spcr, "Unable to find ACPI SPCR"); > >> + uart0_base = ioremap(spcr->serial_port.address, spcr->serial_port.bit_width); > >> +} > > > > Is it possible as a fallback, is SPCR is not available, to UART_EARLY_BASE as > > address and bit_width as bit-width? > > > > I would appreciate it, since it would help my setup. > > > > Ugh - typo, 8 as bit-width for the fallback (ioremap with these parameters to > make my request clear). > That sounds reasonable to me. Nikos, can you send a fixup! patch? I'll squash it in. Thanks, drew