Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp140425rdh; Mon, 30 Oct 2023 17:06:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/IWZRwYvYlLm7XUQi3KHUt43Xjbh2+TG+KZaAZ4b6808y+ctws5Uw6z1VfTzrS+DXWkYU X-Received: by 2002:a05:6a20:2307:b0:174:373b:4381 with SMTP id n7-20020a056a20230700b00174373b4381mr7197528pzc.49.1698710759624; Mon, 30 Oct 2023 17:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698710759; cv=none; d=google.com; s=arc-20160816; b=griISjnPBBRci85Ydt1XqXbdo+7lSBUr9tCwLJDgsWsl/vPagwYLPOfSh1p292WDP8 uQa6LJvUgvpJbAPsKE7weUtEZdv4cMMJixBHsMOr+VKOyk7vEEw/QnGCBZOqzqDDEetU uFJpojhrdQuoGQsh5frf+XuNWx9A/6aEEeDc++1OSIO6I8/NPw78gOTkgrJUfyjfptMC JCn28pI32xyezJZ1u3Bxber5EFLQP+fpoM48cRRihl++j8kGv9GszUWePY8/WBJBJUlo /3MlFiKGrL96NsiU1pkqepCVlh9aEzTBMMaO4toUqV509I863aGpa9YcuuYL6jvIc9kj XqqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=VhbBMCmRj1nNpNlm143E93iRGLt6PISYmrSgpHo8H30=; fh=XTNd3zOK+s8OtouUHUpfe7TiscLqakT2jsPHdrEaOSg=; b=tefcn7jaEev6E5qftjmV+vUw90jE7e1njrHZzOl1aDqoDtgjQG8etZ0l5NNm9cwoN/ KWCTk4BG2u8cksL5wqEy71F6u7zH8giUaaNbsx+U3B3ehwQ/BSsJc1yI6khJDCL1UXTp 8aVnJuxzguxNQr7zgXRKxBplts3aN9gzJH25eeyilnUB06ZmEAV8rxzt2ZNPg1RdX/p/ qScSCArp9qhkMsRCICdfBdRpplMAYyREdeEZxuCRCzf80pFzfQYZ2HA3lGOBmm9Lfe3z /dYW772KYyolaU0QEJPdqiwp4QsuUS1RFKjO7BR27MSkir5/NmoM0GxvrdkKYkxZHKSn uvhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="JrmZ/PQ0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s207-20020a632cd8000000b0055c7eb53d7fsi168863pgs.584.2023.10.30.17.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 17:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="JrmZ/PQ0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 68AF6807C74C; Mon, 30 Oct 2023 17:05:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234986AbjJaAE5 (ORCPT + 99 others); Mon, 30 Oct 2023 20:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234972AbjJaAEz (ORCPT ); Mon, 30 Oct 2023 20:04:55 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 006BBA6; Mon, 30 Oct 2023 17:04:52 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9d242846194so324404866b.1; Mon, 30 Oct 2023 17:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698710691; x=1699315491; darn=vger.kernel.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VhbBMCmRj1nNpNlm143E93iRGLt6PISYmrSgpHo8H30=; b=JrmZ/PQ0wXvVPtEe0KRr8pieZRAlXpQrd+OgJ/W4fCt9GtKKdJ/rJj5U4MZCKraD+A r/YwO7GBUYSlBLOO00P1eSPHhgB2XJ+i0Fd5D2nkPakGVhRdlsSN60P2BZrM00vETzZs /PhI0ZsL/qmM1uChYuSuLrgscSlSAZHVcFrIv+AxdxnOMiTknH+rTh/4tpvB+3WA5+wp HIoOSTu4OI+wptpWwN9jV7i2aADhxRofVGQD5X0ROgLyNU9oJZ9CS2jeLciMpsejRBf0 0vFxXAfb3lIFz0d7qFanbJW71dCVpIBpr8VhG7RGYzH5o/jAWgZKV5dMmXOJPTj3Rlqe K8gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698710691; x=1699315491; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VhbBMCmRj1nNpNlm143E93iRGLt6PISYmrSgpHo8H30=; b=cEB5YJpgQpounuKO90ltUkLSEcaFh2QBf0dxkNzmlXEMpyFhr2DSVg5cWtyy4r4Q8R r5Kd0+Wj6mQKXxVss/5eyeDjn5EyspRtep+CNbRyi2mFSpwE0SY0xh1kS/EY7CTj2/i1 Lcs8rBqwNRxyTqqBqff4okdgXZDjS08qHEyyw405Il0i50v/H5uzVeP+yaOvIQ5X3FiC RSrX0VM8h1xU+fhFfbdpcWRxnkGVXVYkyP62KC6v5TDjGlWLS1Of6HU60bvJTSiyeccu k612rBLK7yLVp1PVdBFeT8/zSiRpte+M8mHXJ1ejaifKLpPOTHRW9PAzs3c9Ohgb1x2G 6Tvw== X-Gm-Message-State: AOJu0YwhfMSBFe02fSgpJ1nQar1q6pcwWhP+36nstdBQ7G0ViZB1HdIS 4ONJM4q4tQPf9GhPxmXPU3V39/PFRTzvWD/H8LKTatzYE4I= X-Received: by 2002:a17:907:3f8b:b0:9bd:fa48:83c5 with SMTP id hr11-20020a1709073f8b00b009bdfa4883c5mr7735638ejc.70.1698710690771; Mon, 30 Oct 2023 17:04:50 -0700 (PDT) MIME-Version: 1.0 From: Mario Marietto Date: Tue, 31 Oct 2023 01:04:14 +0100 Message-ID: Subject: exynos-mixer 14450000.mixer: [drm:exynos_drm_register_dma] *ERROR* Device 14450000.mixer lacks support for IOMMU To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 17:05:04 -0700 (PDT) Hello, We are a team of linux enthusiasts who are trying to boot Xen on a Samsung XE303C12 Chromebook aka "snow" following the suggestions in the slide show presentation here: https://www.slideshare.net/xen_com_mgr/xpds16-porting-xen-on-arm-to-a-new-soc-julien-grall-arm This device uses an exynos5250 SOC dual core 1.7 GHz with 2 MB RAM, it is a Samsung armv7 chip with virtualization extensions. In particular, we have it working fairly well both on the bare metal with a recent 6.1.59 Linux LTS kernel and also with a recent 5.4.257 LTS kernel with KVM, the older LTS kernel version is used to test KVM because support for KVM on arm v7 was removed from Linux around kernel version 5.7. So we know we have the hypervisor mode enabled because we were able to use it with KVM. For Xen, we are using the latest Debian build of Xen 4.17 for the Debian armhf architecture: (XEN) Xen version 4.17.2-pre (Debian 4.17.1+2-gb773c48e36-1) (pkg-xen-devel@xxxxxxxxxxxxxxxxxxxxxxx) (arm-linux-gnueabihf-gcc (Debian 12.2.0-14) 12.2.0) debug=n Thu May 18 19:26:30 UTC 2023 The Linux kernel is a custom build that adds the Xen config kernel options (CONFIG_XEN_DOM0, etc) on top of a kernel that works well on the same Chromebook model on the bare metal. I can provide the config options of the kernel that was used if that is helpful. Our method of booting is to have u-boot boot the Xen hypervisor and load the device tree after adding the dom0 to the otherwise unaltered device tree from the Linux kernel using u-boot fdt commands to add a /chosen node, as described on the Xen wiki and in the pages linked from there. We have also tried adding and loading an initrd.img using the device tree /chosen node but that made no difference in our tests. We actually have the Linux LTS kernel version 6.1.59 working as dom0 with Xen using the same version of u-boot that we used for KVM, but with a big problem. The problem we see is that when booting the 6.1.59 kernel version as dom0 with Xen, the screen is totally dark and the only way to access the system is remotely through ssh. Logs indicate most everything else is working, such as the wifi card so we can access it remotely via ssh and a USB optical mouse lights up when connected so USB is also working. Obviously, the disk is also working. The Chromebook is configured to boot from the device's SD card slot by turning on Chrome OS developer mode options to enable booting from the SD card slot. The mystery is that when booting the exact same 6.1.59 kernel on the bare metal instead of booting it as dom0 on Xen, it boots up with full access to the screen and we can interact with the system using the X.org windows system. But booting as dom0 with Xen, the screen is totally dark and the only access we have to the system is through the network via ssh. Also, when booting the 5.4.257 kernel with KVM in hypervisor mode, the screen works and we can interact with the system through the X.org windows system. Exploring the log file,we have seen the errors below : With Xen (or in bare metal): devuan-bunsen kernel: [drm] Exynos DRM: using 14400000.fimd device for DMA mapping operations devuan-bunsen kernel: exynos-drm exynos-drm: bound 14400000.fimd (ops 0xc0d96354) devuan-bunsen kernel: exynos-drm exynos-drm: bound 14450000.mixer (ops 0xc0d97554) devuan-bunsen kernel: exynos-drm exynos-drm: bound 145b0000.dp-controller (ops 0xc0d97278) devuan-bunsen kernel: exynos-drm exynos-drm: bound 14530000.hdmi (ops 0xc0d97bd0) ... devuan-bunsen kernel: Console: switching to colour frame buffer device 170x48 devuan-bunsen kernel: exynos-drm exynos-drm: [drm] fb0: exynosdrmfb frame buffer device devuan-bunsen kernel: [drm] Initialized exynos 1.1.0 20180330 for exynos-drm on minor 0 In this case,the kernel is able to use the exynos-drm kernel to start the fb0 device. But with Xen we get this error with exynos-drm: devuan-bunsen kernel: [drm] Exynos DRM: using 14400000.fimd device for DMA mapping operations devuan-bunsen kernel: exynos-drm exynos-drm: bound 14400000.fimd (ops 0xc0d96354) devuan-bunsen kernel: exynos-mixer 14450000.mixer: [drm:exynos_drm_register_dma] *ERROR* Device 14450000.mixer lacks support for IOMMU devuan-bunsen kernel: exynos-drm exynos-drm: failed to bind 14450000.mixer (ops 0xc0d97554): -22 devuan-bunsen kernel: exynos-drm exynos-drm: adev bind failed: -22 devuan-bunsen kernel: exynos-dp: probe of 145b0000.dp-controller failed with error -22 Any ideas why booting the same Linux kernel that results in a working X.org display on the bare metal instead as dom0 on Xen would cause the display to remain dark, but most other basic functions would work, such as network, disk, and USB ? thanks. -- Mario.