Received: by 10.223.185.116 with SMTP id b49csp742783wrg; Wed, 14 Feb 2018 06:23:16 -0800 (PST) X-Google-Smtp-Source: AH8x227xT2Ma7uo4xytsy0VC9NrYVPUBk2KCdJYlv9aPPVZsu/k8hf7EzZZJMrQcoxPkna83KS75 X-Received: by 10.98.13.72 with SMTP id v69mr4969751pfi.36.1518618196634; Wed, 14 Feb 2018 06:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518618196; cv=none; d=google.com; s=arc-20160816; b=w+OjlLJBObjbWiPGJQIkzmhdhz9zP1daVa/llKuPi3upCA79S5ZcmAKncs40wmv7Mz OvO/hMb82+hwIBT0AijhkIT0Q4iJCa/M1zzqLtUivrxUtKBlBj0yBEs0udihV07cSbd2 ykFhUOTmMC+/C11Svzk/CpSXzfngii83efmYrVpb6i3Ygenm7GF/mHjnfevRpG7NwBuz FjkiGV+nzQPqSrGG7X7RROG/d0tyZbSf40J/Ggpcgwi9kNzWnvIekt4bnIb0tWcUQ0mZ ufeEE2w+bChSx6wcKOdx3JeNlX1+WE6WrsLhRuIIomSe/OtSz/MmILbeG/9t9ptBBzvf nwlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=FuyDoTDBX46csWUbG9MMfqlP4O30I9h5ujKw67eLSmM=; b=aonsxBQZIrJ0LIzeg3iahelbZNOgeAB5TNSpvgBkA+f1Zc7/WCBlInnSDY5wZs5kBf DmyteA/1ckln+GAxF2/cC1LF2iPUgF6F9E4TketAXuRhB9uAx12CD3H5e4Jj/8g/Te4d 24F3pfqVxAngFYMO2K53Xhcjdw7oOqYZR7PhMfxUs+FJRDvPDQCel+XeDMlPMZW852fB DzgePfQ61DFSehpyqnGPF6HDxoTyAI07yOWEZrgS93ximTFcgm10DuhVbuyrrfOz85/P zeFWxZIlSX1hK5nc/Q+akk62vP6zjGk+xoLAdWURk0hZeO5k4eaxCRNMA4DbestrpSak 1ISg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10si2854934pgn.116.2018.02.14.06.23.02; Wed, 14 Feb 2018 06:23:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030561AbeBNOSy (ORCPT + 99 others); Wed, 14 Feb 2018 09:18:54 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36114 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030288AbeBNOSw (ORCPT ); Wed, 14 Feb 2018 09:18:52 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E451840201A0; Wed, 14 Feb 2018 14:18:51 +0000 (UTC) Received: from localhost (ovpn-112-21.ams2.redhat.com [10.36.112.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76C382024CA4; Wed, 14 Feb 2018 14:18:51 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-kernel@vger.kernel.org Cc: bhe@redhat.com, slp@redhat.com, mst@redhat.com, somlo@cmu.edu, xiaolong.ye@intel.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH v14 0/9] fw_cfg: add DMA operations & etc/vmcoreinfo support Date: Wed, 14 Feb 2018 15:18:41 +0100 Message-Id: <20180214141850.4017-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 14 Feb 2018 14:18:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 14 Feb 2018 14:18:51 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'marcandre.lureau@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds DMA operations support to the qemu fw_cfg kernel module and populates "etc/vmcoreinfo" with vmcoreinfo location details (entry added since qemu 2.11 with -device vmcoreinfo). v14: - add "fw_cfg: add a public uapi header" - fix sparse warnings & don't introduce new warnings - add memory barriers to force IO ordering - split fw_cfg_read_blob() in fw_cfg_read_blob_io() and fw_cfg_read_blob_dma() - add error handling to fw_cfg_read_blob() callers - minor stylistic changes v13: - reorder patch series, introduce DMA write before DMA read - do some measurements of DMA read speed-ups v12: - fix virt_to_phys(NULL) panic with CONFIG_DEBUG_VIRTUAL=y - do not use DMA read, except for kmalloc() memory we allocated ourself (only fw_cfg_register_dir_entries() so far) v11: - add #include in last patch, fixing kbuild .config test Marc-André Lureau (9): crash: export paddr_vmcoreinfo_note() fw_cfg: add a public uapi header fw_cfg: fix sparse warnings in fw_cfg_sel_endianness() fw_cfg: fix sparse warnings with fw_cfg_file fw_cfg: fix sparse warning reading FW_CFG_ID fw_cfg: fix sparse warnings around FW_CFG_FILE_DIR read fw_cfg: add DMA register fw_cfg: write vmcoreinfo details RFC: fw_cfg: do DMA read operation MAINTAINERS | 1 + drivers/firmware/qemu_fw_cfg.c | 333 +++++++++++++++++++++++++++++++++-------- include/uapi/linux/fw_cfg.h | 102 +++++++++++++ kernel/crash_core.c | 1 + 4 files changed, 374 insertions(+), 63 deletions(-) create mode 100644 include/uapi/linux/fw_cfg.h -- 2.16.1.73.g5832b7e9f2