From patchwork Fri Nov 11 18:25:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 623764 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp961203pvb; Fri, 11 Nov 2022 10:35:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf66ZxmH22JKQ9IX67butBoIkpUc99ZhnVrSxiSMzoy1k0D/XN04OFZ0Gf1rbfsv9sfrRwcG X-Received: by 2002:a0c:c784:0:b0:4bb:77fe:4bd4 with SMTP id k4-20020a0cc784000000b004bb77fe4bd4mr3075560qvj.59.1668191759030; Fri, 11 Nov 2022 10:35:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668191759; cv=none; d=google.com; s=arc-20160816; b=qcPmByGAT+qcR4K3h1Ps2tWcavDfPysgi9gkSVkd5SuCfcnwUk65xgmKtawltz6rwK uEzNO3f1LAXLV5xZD3zWDMO9XfRCIXmTzKuIhgoSxAZkXVnEEZKLfHbHhfXgc6kivMkJ vgmhwF0a/WrTcSPmsdQ5IBwCuwZbTfuMedr9VieIwmkx0ZpvTQazCjN9IZwn0lY4tYf7 +8AoT7ZvD7PouiY6Zke4PmBkGjYrcnwmQ5qZJZMiChkNrEdAyFpy0pUdhGI0WEeMmr2Z KL9uh+tCVCF2Au7/RiH3qA7VDiF9vt5KJKVaaGuAqYfO1bScwc6qr6+zpFf+koJFNmnn 2sFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=K9jGL/FUfAGFTfK5rC1/vlTivx143+0Q3Bji1lhCRr0=; b=wEVD0OAxjhmtA/i+l2r5a8poHj1oU+3Hy6Oeo6zgVgm16f9+uZ7zY6bDLkpSxZC+2q n8PqkV3rruI26hAVYUbgka/JNTgUBmNRhiqeFB/lYkJ4SD11OBdpBPTLV135npEAfoGT FSN1co408ruciYQ8LJ8o6Z0fSSFwMfPlqof1VovSe8nyIswH3Zcc8JUZpq/Jli9u1kUQ Wlqzjbc3pEGGYPH3bJgyCHQR380WFoqfyCRnOfNhDcucpgBynH+8jNJBqRSuMagMfsOo TiMQCpsRaicJIX4RMUHWjBsVgythUOseZJX3BectPL1Q487B0I+uGqMfEo34i5vejxwk kKrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jV89u6Vy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q6-20020a05620a0d8600b006cf28677379si1487181qkl.643.2022.11.11.10.35.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Nov 2022 10:35:59 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jV89u6Vy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otYsC-0007zE-4R; Fri, 11 Nov 2022 13:35:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otYrl-0007pC-De for qemu-devel@nongnu.org; Fri, 11 Nov 2022 13:35:06 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otYrg-0007OO-4K for qemu-devel@nongnu.org; Fri, 11 Nov 2022 13:34:59 -0500 Received: by mail-wm1-x32b.google.com with SMTP id m7-20020a05600c090700b003cf8a105d9eso3650979wmp.5 for ; Fri, 11 Nov 2022 10:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K9jGL/FUfAGFTfK5rC1/vlTivx143+0Q3Bji1lhCRr0=; b=jV89u6VyjjKDtLneJt5fS9UV2mCgXTocsWf31iKNM2xoZsDGxM5sw6zgwCVqVs6Y2M 7E/H/nRgJJ3fEa6DHcxszXDkHLn+h9maEi2NSyalttYU+6JS2xF2TJHgFeXfHx20z0RK PxcSozAJ+7GJaToOyiHNOOU1RPSJ76wOk9k3VWXyfLbIHLhFQiuai0uETtR6n1vZXCj6 aBThDJM9AzHJy3hNaSSci5zjiWyKBx27vmFnCaTzSrUR8QjZ8t3d0yzLB6CLFggVtqMe kYIP4nf5rZJAWKkP9G9lIEgbokKjhQi/M8vmLA8dvz/JRUdFNLdEABrn5gofil0kL9vm 8OUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K9jGL/FUfAGFTfK5rC1/vlTivx143+0Q3Bji1lhCRr0=; b=b8XfaXgUpawM1k8s0dWaxhc/GZa0xHDJYLsttHCEqzbCOWYkZ99oZ5QU69pggcuKW/ 5GFe3BI6zCrV93HLtSoP8Un37XRw7nyR6aRybLdJ/kmKfUdq1eEFwz4f1qf6sMl7lCTq tErIr0CmqfyVFK45iwRaBpGaZUBQoBylX9RGW8gKc4IuurhT//KCYylbVw3Lk62DYQLG CR8cd9Sdm/lNvJQtSNr9NYMCZdd9Uyu0slLSZpnNuVjX3vFCQboW7dQ6OYYRJDOgu1z9 ZzyqRJitLct+gipm3Dd48xXzCfF9lIEge8bUg3omKQ4xSSVqngFSzCFVGumz3Q2WGRZR zmdA== X-Gm-Message-State: ANoB5pmBqlE+P/oJlQNh43dw5uKH9IOZ9WIoT0ZN+U7w6zG8BvwtrE5Q 93NqckFKyMMWbbjl9MlXVBUx/Q== X-Received: by 2002:a05:600c:5022:b0:3cf:96da:3846 with SMTP id n34-20020a05600c502200b003cf96da3846mr2103417wmr.10.1668191694600; Fri, 11 Nov 2022 10:34:54 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id e1-20020adfe381000000b0023662d97130sm2523569wrm.20.2022.11.11.10.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 10:34:51 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 18D891FFC4; Fri, 11 Nov 2022 18:25:37 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: f4bug@amsat.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Gerd Hoffmann Subject: [PATCH v5 14/20] hw/audio: explicitly set .requester_type for intel-hda Date: Fri, 11 Nov 2022 18:25:29 +0000 Message-Id: <20221111182535.64844-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221111182535.64844-1-alex.bennee@linaro.org> References: <20221111182535.64844-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This is simulating a bus master writing data back into system memory. Mark it as such. Signed-off-by: Alex Bennée --- hw/audio/intel-hda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index f38117057b..95c28b315c 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -345,7 +345,7 @@ static void intel_hda_corb_run(IntelHDAState *d) static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t response) { - const MemTxAttrs attrs = { .memory = true }; + const MemTxAttrs attrs = { .requester_type = MTRT_PCI, .memory = true }; HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); IntelHDAState *d = container_of(bus, IntelHDAState, codecs); hwaddr addr;