Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp743606pxb; Wed, 3 Feb 2021 17:15:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuJ/7FIwmM5CkenLP29PtNGXfDX7gnHUAfPnSDBPXjvlHpENNZnPszEaEx+jF82JWqUbSP X-Received: by 2002:a05:6402:4310:: with SMTP id m16mr5861353edc.207.1612401319248; Wed, 03 Feb 2021 17:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612401319; cv=none; d=google.com; s=arc-20160816; b=drtp4pRxBsbLz1WdLwwbqjCSR1owdJYb9Tx4vpL0xmtAuGazhSqa0ui9ot9+Zar1El dQiOXk5UW4UwVf0FUkSl69VuaNb9LayXI0auwf2qKIzPFWXPRgiLTQfM0vhZzyuMHBiA oEtfenFhzQvn1miuYYfJzNVq4Pal/cyVgdbMa7MHqXvqHSnO4q8ZqqUTovJtmot1svXz G1j1CUJDnfbmMiEvCLrImEpqn2FvWeowV94qFm1fbsGYAp+4vGDhZdxpS41jFUzLk87B 2r+v/1QJQi4Y+iomyfQ25fNGTb2kekVnzF+i8vRxpU22kj7bD89/AaKSZnG/kmRVFd9X Bnaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Mn/ebbC9LsmEJbQuuUcinkZOL/S9ftYROo8U9Oj+0Po=; b=aOx/1HZVq+DlmrnkTQ1Iaj4XcBHj4jZI5B2iSl7U7G8DdlBFMNgZiDvgtNEYlfkN4e LXOWPfP67YDR6GwvHAY/W8SvfSN/oiLJV2kAolHljAyO+rjkUBBWDMht8RjeTLC0Glg0 VYtzmCOM0l03eUVj3pU8kI3XTCazvMV7Ci6vaEaeO4fRcHlrO+SqEnoPO2bCgmQMLs5/ uZAkDWP9/4rIOTpkY/duD3fNROCkzzh2SJq3Bbp4f6Q7opMVH6LXnhsdq5771MzRuCLn IBmRkdjRwPXCOD8arCxSD2JqaJpYng4nE73ZzRNR6tWSmQ7UsP1Im/y+bkDTW6Yr765I k6eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tHb7ekMh; 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=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq26si2436388edb.317.2021.02.03.17.14.52; Wed, 03 Feb 2021 17:15:19 -0800 (PST) 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=@mediatek.com header.s=dk header.b=tHb7ekMh; 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=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233789AbhBDBME (ORCPT + 99 others); Wed, 3 Feb 2021 20:12:04 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:34579 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232184AbhBDBMD (ORCPT ); Wed, 3 Feb 2021 20:12:03 -0500 X-UUID: 5d784d263b7043e084225b404753ac45-20210204 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Mn/ebbC9LsmEJbQuuUcinkZOL/S9ftYROo8U9Oj+0Po=; b=tHb7ekMh+g+dP+Jk60pyz+yKaHk3fCc56qBeBQK9Da1JyPSbOzrjhqg3Ti7O/7tSdxnOEMgN5T1p6/JKGJikRsLYaEEc/Zw010MdHidryOcfdXdyroDscCemy3gPxzd0MKx2wrFinRxCtvbW1ZY8LNagR46skC519oC4OS2keUw=; X-UUID: 5d784d263b7043e084225b404753ac45-20210204 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1030138190; Thu, 04 Feb 2021 09:11:20 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 4 Feb 2021 09:11:10 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 4 Feb 2021 09:11:09 +0800 Message-ID: <1612401069.2524.14.camel@mhfsdcap03> Subject: Re: [PATCH][next] iommu/mediatek: Fix unsigned domid comparison with less than zero From: Yong Wu To: Colin King CC: Joerg Roedel , Will Deacon , "Matthias Brugger" , Anan sun , "Chao Hao" , Tomasz Figa , , , , , Date: Thu, 4 Feb 2021 09:11:09 +0800 In-Reply-To: <20210203135936.23016-1-colin.king@canonical.com> References: <20210203135936.23016-1-colin.king@canonical.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 9BDBFE8346E958A37D1A2EE99CA3980372E31BF52999FC51717954E6E3C6FFB92000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIxLTAyLTAzIGF0IDEzOjU5ICswMDAwLCBDb2xpbiBLaW5nIHdyb3RlOg0KPiBG cm9tOiBDb2xpbiBJYW4gS2luZyA8Y29saW4ua2luZ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