Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2041892pxy; Sat, 24 Apr 2021 03:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfjTMuhSpy7ZXhi6WpYYM+OoPxV4q3mGbp/1XWJRn7+1gZ+J/23LWviDYdGMjhYq/HdZBC X-Received: by 2002:aa7:d284:: with SMTP id w4mr9809653edq.40.1619260140651; Sat, 24 Apr 2021 03:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619260140; cv=none; d=google.com; s=arc-20160816; b=UObot40Ey5FbdhrJT/8TcN+i014bH3uGW3ki4HKSyoRFOgkP8FI26/DftEOvbALDVp fq2Ind+Z97oJktecg2mO90Z8VJo1TFJSqkUAVSbomDq2DeG/1tfAdALbc+GC52JC6L/0 KcAE1bMBTrTF1AOYRI8DuKI+VqtjlgZsVPt6f49LTt+TbfDhWSBQ/pmXuzV+rygGBeWt O9igZrAid3VHlftoN+j/iw4co8Hy/isce89TpPnjUE6aUIaS1xVnr9+fcQfgLMEM8yZi 1RYpLSESwp8wLec1chROMJRKcGzAMFxC3JrvNSKBPt3Dn6gSb2YNjd4t2aTay040Qjm2 wnNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SoDHrgRGkFpQlgxALyzox+K4epDPQbVPFi34jIumvso=; b=U5ioNaGXIHPKU+pROhfss6YEKFJx5F7JJULu7p211rhv84A+YvfweW6H+fhMueclDA uwpnkivi9QYxfn6yQFI+0ElaKnbHspDCQDQRAxOJGDotyq+Dh2ZPdWhAod39gLHhEFM6 1dApImkY3XubxTZHbYN7t++/dJWLvX21Sxo65t630L5szoJSF3W44O9S+3X7P9bcDimH i0vd8exE5Iz3TX8DJUN2l+3Yo59Jlri+iBKe8ptGY04tgqk2HCc6OwZkfnJixkLek2b6 E/ehkv+YtWvqDtIbMTanliaqosEQALKKNktUehmOQuf3sE6MBfFG7/39PMBg0jkxelp1 6t5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sA84dSUB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si7285789eds.556.2021.04.24.03.28.07; Sat, 24 Apr 2021 03:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sA84dSUB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234710AbhDXK0y (ORCPT + 99 others); Sat, 24 Apr 2021 06:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbhDXK0w (ORCPT ); Sat, 24 Apr 2021 06:26:52 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF67C061574; Sat, 24 Apr 2021 03:26:12 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id u14-20020a17090a1f0eb029014e38011b09so2595555pja.5; Sat, 24 Apr 2021 03:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SoDHrgRGkFpQlgxALyzox+K4epDPQbVPFi34jIumvso=; b=sA84dSUBnCTpO7vlrr2sLXTgKAG5meIpE73i78a/0LZq3frZR4urN8jCVQCBOouBRD /4QgKin25ftYV3lfyFITO97OcQEStddUP3tq9R16+aivNT7bOftqhlcorqBMdO5yr56y yLp1LNVv/D2OnCCCUBhJiquhjEXza0NRikIK+plvlJXiS8LbGQNqJ73DdU+UuJstzU01 Fi6lDl/BZ7pebytL6Dl5KdRWHLMSkzBSfWsrG6E1WTw/MwORDstsqmNZq4JBNEKABjLL wxZLrM5i/4ePNkNoWBzbRKRbZApgv3OrCe1XzlF8hhc4BwHCv++pObYZePu11laIH15a UKFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SoDHrgRGkFpQlgxALyzox+K4epDPQbVPFi34jIumvso=; b=Rt9JBZj3osMA+jgBPidRMHl3XB9y71dSNNP92RTNPIKQRVAyKAaNOyujrS7nW/bql8 lKV8hMc2agmeZJJu3/K70w3xFlSSwgXvMgvMqrNrH5vVqj081D2tHckMk9zsfKqAoHKm V68HShzgap+ys3C6vA4wblKi0h1ScqL+essIEcIOVQwiRIl9frxfO4h4Xvy5LsWyNPgi meIivAfcdhu1VKBxRW9GlgruwnqCrg5Dn74GFnV3Brw1LnzQ92azW2OE4bUvZfMp6k5n 5BX3fxJPgNIxVPVYszTfwSqNXZ62fxrGEyooAAaiJ4qnE1lmDRixKfCodu9+904AbiUz zu+g== X-Gm-Message-State: AOAM530UpGyW22+LRumu3TKH1RYifN4iexLVXy6O+8emjsc0QS1JTSLw Upu4QLcUAp+tNRZWnWklD/2MbShx9gH4oQRRYy8= X-Received: by 2002:a17:902:264:b029:eb:3d3a:a09c with SMTP id 91-20020a1709020264b02900eb3d3aa09cmr8148960plc.0.1619259971203; Sat, 24 Apr 2021 03:26:11 -0700 (PDT) MIME-Version: 1.0 References: <295686a0-240d-71d1-a6a0-f3752cf24477@gmail.com> In-Reply-To: <295686a0-240d-71d1-a6a0-f3752cf24477@gmail.com> From: Andy Shevchenko Date: Sat, 24 Apr 2021 13:25:54 +0300 Message-ID: Subject: Re: Support for AMDI0022 UART To: Maximilian Luz Cc: "open list:SERIAL DRIVERS" , Linux Kernel Mailing List , Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Wang Hongcheng , Ken Xue Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 10:58 PM Maximilian Luz wrote: > > Hi all, > > I received a report from a Surface Laptop 4 which has a UART that is > identified as AMDI0022 in ACPI [1] and that does not seem to be > supported by the kernel yet. > > From what I can tell via ACPI, this is similar to the AMDI0020 [2] UART > that's already supported by the kernel (well, both are devices with two > MMIO regions and an interrupt as far as I can tell...). So it's possible > that all that's needed is adding it to the respective device ID lists > [3, 4]. Unfortunately, I a) don't have a device to test this myself, b) > haven't found any more details on that online, and c) don't want to tell > others to test this without knowing a bit more about that (potentially > writing random stuff to some unknown MMIO region that I don't know > anything about doesn't sound as safe to me as I'd like). To me they look completely the same. Depending on the device which is connected to the UART, I would suggest just to add an ID and see if it makes it work. > Does anyone here have some pointers on what it'd take to support this, > or any contacts at AMD that could provide more insight? -- With Best Regards, Andy Shevchenko