Message ID | 20200602074843.1743493-31-vicamo.yang@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49bkjW64LYz9sSd; Tue, 2 Jun 2020 17:50:23 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1jg1gg-0006C1-2l; Tue, 02 Jun 2020 07:50:18 +0000 Received: from mail-pj1-f65.google.com ([209.85.216.65]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <vicamo@gmail.com>) id 1jg1gW-000633-SS for kernel-team@lists.ubuntu.com; Tue, 02 Jun 2020 07:50:09 +0000 Received: by mail-pj1-f65.google.com with SMTP id ga6so991593pjb.1 for <kernel-team@lists.ubuntu.com>; Tue, 02 Jun 2020 00:50:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Cf3HGZQ588M+bhzv/Xq8neEezkAxMqWcswrn1g3FnBQ=; b=YNJfh8dc01lOLjCd1DqsmAmZTKO3I3WVWf1rFLqbMNpdc8hm6VU20BLJjxEG0IztLv QpQpy4zEiBbM3ntxMGfExcjGa3G0HubefvBUo8XurHVdTYYIDNjM3zirIwoqVMZSnVY1 NF8xJz7W5a8CVjEWLyJHYKxRx/SsidgqobdjYt++Slna8d9sj5ivVsiNqkOGe2BrqoNk KUO6UoLmCzoo/5m4UunLW949fz0VWMDrX0+vGeuxFDKoL5qaMP+OmicKr+A3xmootwyl WFVSXnMbkJvn/zcCMSfsE0bAQ3vHccnTr3uSGYBcR4wXsV5IwzbFXHH7LSPFPdxG5xim IXQQ== X-Gm-Message-State: AOAM533EU1CGwMSmJeOh/XMUg5kHTqGLlKutKiJkwbsz8/oekp+nOWrv GJUwkfrsh6ijHE18Fk7N4wZlTVFTXLk= X-Google-Smtp-Source: ABdhPJwpCVYXNsSoT7XxwWo9yvs2s71DzE905y1ScurXboURdmPf50ptb5WXppTQkg2qyFG3D4lPSw== X-Received: by 2002:a17:90b:3745:: with SMTP id ne5mr4001992pjb.68.1591084206334; Tue, 02 Jun 2020 00:50:06 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id 3sm1466420pfe.85.2020.06.02.00.50.05 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 00:50:05 -0700 (PDT) From: You-Sheng Yang <vicamo.yang@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 30/42][SRU][U] iommu/exynos: Use first SYSMMU in controllers list for IOMMU core Date: Tue, 2 Jun 2020 15:48:31 +0800 Message-Id: <20200602074843.1743493-31-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200602074843.1743493-1-vicamo.yang@canonical.com> References: <20200602074843.1743493-1-vicamo.yang@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Fix can't find root device on VMD when secureboot enabled
|
expand
|
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 186ff5cc975c..09cdd163560a 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -1261,6 +1261,11 @@ static int exynos_iommu_add_device(struct device *dev) } iommu_group_put(group); + /* There is always at least one entry, see exynos_iommu_of_xlate() */ + data = list_first_entry(&owner->controllers, + struct sysmmu_drvdata, owner_node); + iommu_device_link(&data->iommu, dev); + return 0; } @@ -1286,6 +1291,11 @@ static void exynos_iommu_remove_device(struct device *dev) list_for_each_entry(data, &owner->controllers, owner_node) device_link_del(data->link); + + /* There is always at least one entry, see exynos_iommu_of_xlate() */ + data = list_first_entry(&owner->controllers, + struct sysmmu_drvdata, owner_node); + iommu_device_unlink(&data->iommu, dev); } static int exynos_iommu_of_xlate(struct device *dev,