Changeset 89848 in vbox
- Timestamp:
- Jun 23, 2021 8:59:21 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145305
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHda.cpp
r89844 r89848 2968 2968 */ 2969 2969 rc = g_aHdaRegMap[idxRegDsc].pfnRead(pDevIns, pThis, idxRegDsc, (uint32_t *)pv); 2970 Log3Func((" \tRead %s => %x (%Rrc)\n", g_aHdaRegMap[idxRegDsc].abbrev, *(uint32_t *)pv, VBOXSTRICTRC_VAL(rc)));2970 Log3Func((" Read %s => %x (%Rrc)\n", g_aHdaRegMap[idxRegDsc].abbrev, *(uint32_t *)pv, VBOXSTRICTRC_VAL(rc))); 2971 2971 STAM_COUNTER_INC(&pThis->aStatRegReads[idxRegDsc]); 2972 2972 } … … 2995 2995 2996 2996 rc = g_aHdaRegMap[idxRegDsc].pfnRead(pDevIns, pThis, idxRegDsc, &u32Tmp); 2997 Log4Func((" \tRead %s[%db] => %x (%Rrc)*\n", g_aHdaRegMap[idxRegDsc].abbrev, cbReg, u32Tmp, VBOXSTRICTRC_VAL(rc)));2997 Log4Func((" Read %s[%db] => %x (%Rrc)*\n", g_aHdaRegMap[idxRegDsc].abbrev, cbReg, u32Tmp, VBOXSTRICTRC_VAL(rc))); 2998 2998 STAM_COUNTER_INC(&pThis->aStatRegReads[idxRegDsc]); 2999 2999 #ifdef IN_RING3 … … 3019 3019 { 3020 3020 LogRel(("HDA: Invalid read access @0x%x (bytes=%u)\n", (uint32_t)off, cb)); 3021 Log3Func((" \tHole at %x is accessed for read\n", offRegLog));3021 Log3Func((" Hole at %x is accessed for read\n", offRegLog)); 3022 3022 STAM_COUNTER_INC(&pThis->StatRegUnknownReads); 3023 3023 rc = VINF_IOM_MMIO_UNUSED_FF; … … 3031 3031 #ifdef LOG_ENABLED 3032 3032 if (cbLog == 4) 3033 Log3Func((" \tReturning @%#05x -> %#010x %Rrc\n", offRegLog, *(uint32_t *)pv, VBOXSTRICTRC_VAL(rc)));3033 Log3Func((" Returning @%#05x -> %#010x %Rrc\n", offRegLog, *(uint32_t *)pv, VBOXSTRICTRC_VAL(rc))); 3034 3034 else if (cbLog == 2) 3035 Log3Func((" \tReturning @%#05x -> %#06x %Rrc\n", offRegLog, *(uint16_t *)pv, VBOXSTRICTRC_VAL(rc)));3035 Log3Func((" Returning @%#05x -> %#06x %Rrc\n", offRegLog, *(uint16_t *)pv, VBOXSTRICTRC_VAL(rc))); 3036 3036 else if (cbLog == 1) 3037 Log3Func((" \tReturning @%#05x -> %#04x %Rrc\n", offRegLog, *(uint8_t *)pv, VBOXSTRICTRC_VAL(rc)));3037 Log3Func((" Returning @%#05x -> %#04x %Rrc\n", offRegLog, *(uint8_t *)pv, VBOXSTRICTRC_VAL(rc))); 3038 3038 #endif 3039 3039 } … … 3164 3164 Log3Func(("@%#05x u%u=%#0*RX64 %s\n", (uint32_t)off, cb * 8, 2 + cb * 2, u64Value, g_aHdaRegMap[idxRegDsc].abbrev)); 3165 3165 rc = hdaWriteReg(pDevIns, pThis, idxRegDsc, u64Value, ""); 3166 Log3Func((" \t%#x -> %#x\n", u32LogOldValue, idxRegMem != UINT32_MAX ? pThis->au32Regs[idxRegMem] : UINT32_MAX));3166 Log3Func((" %#x -> %#x\n", u32LogOldValue, idxRegMem != UINT32_MAX ? pThis->au32Regs[idxRegMem] : UINT32_MAX)); 3167 3167 } 3168 3168 /* … … 3172 3172 && cb < g_aHdaRegMap[idxRegDsc].size) 3173 3173 { 3174 /** @todo r=bird: This is not correctly serialized! Also we're not gaining 3175 * any advantage by not entering the critsect here already, because 3176 * hdaWriteReg will enter it! */ 3174 3177 u64Value |= pThis->au32Regs[g_aHdaRegMap[idxRegDsc].mem_idx] 3175 3178 & g_afMasks[g_aHdaRegMap[idxRegDsc].size] 3176 3179 & ~g_afMasks[cb]; 3177 3180 Log4Func(("@%#05x u%u=%#0*RX64 cb=%#x cbReg=%x %s\n" 3178 " \tSupplying missing bits (%#x): %#llx -> %#llx ...\n",3181 "hdaMmioWrite: Supplying missing bits (%#x): %#llx -> %#llx ...\n", 3179 3182 (uint32_t)off, cb * 8, 2 + cb * 2, u64Value, cb, g_aHdaRegMap[idxRegDsc].size, g_aHdaRegMap[idxRegDsc].abbrev, 3180 3183 g_afMasks[g_aHdaRegMap[idxRegDsc].size] & ~g_afMasks[cb], u64Value & g_afMasks[cb], u64Value)); 3181 3184 rc = hdaWriteReg(pDevIns, pThis, idxRegDsc, u64Value, ""); 3182 Log4Func((" \t%#x -> %#x\n", u32LogOldValue, idxRegMem != UINT32_MAX ? pThis->au32Regs[idxRegMem] : UINT32_MAX));3185 Log4Func((" %#x -> %#x\n", u32LogOldValue, idxRegMem != UINT32_MAX ? pThis->au32Regs[idxRegMem] : UINT32_MAX)); 3183 3186 STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatRegSubWrite)); 3184 3187 } … … 3189 3192 { 3190 3193 #ifdef IN_RING3 3194 /** @todo r=bird: This is not correctly serialized! Also we're not gaining 3195 * much of an advantage by not entering the critsect here already, 3196 * becuase hdaWriteReg will eventually enter it, possibly multiple 3197 * times! The only would be unknown wrights, which should be rare 3198 * and not something we need to optimize for. */ 3191 3199 if (idxRegDsc == -1) 3192 3200 Log4Func(("@%#05x u32=%#010x cb=%d\n", (uint32_t)off, *(uint32_t const *)pv, cb)); … … 3214 3222 u64Value <<= cbBefore * 8; 3215 3223 u64Value |= pThis->au32Regs[idxRegMem] & g_afMasks[cbBefore]; 3216 Log4Func((" \tWithin register, supplied %u leading bits: %#llx -> %#llx ...\n",3224 Log4Func((" Within register, supplied %u leading bits: %#llx -> %#llx ...\n", 3217 3225 cbBefore * 8, ~(uint64_t)g_afMasks[cbBefore] & u64Value, u64Value)); 3218 3226 STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatRegMultiWrites)); … … 3239 3247 { 3240 3248 u64Value |= pThis->au32Regs[idxRegMem] & g_afMasks[cbReg] & ~g_afMasks[cb]; 3241 Log4Func((" \tSupplying missing bits (%#x): %#llx -> %#llx ...\n",3249 Log4Func((" Supplying missing bits (%#x): %#llx -> %#llx ...\n", 3242 3250 g_afMasks[cbReg] & ~g_afMasks[cb], u64Value & g_afMasks[cb], u64Value)); 3243 3251 } … … 3246 3254 # endif 3247 3255 rc = hdaWriteReg(pDevIns, pThis, idxRegDsc, u64Value & g_afMasks[cbReg], "*"); 3248 Log4Func((" \t%#x -> %#x\n", uLogOldVal, pThis->au32Regs[idxRegMem]));3256 Log4Func((" %#x -> %#x\n", uLogOldVal, pThis->au32Regs[idxRegMem])); 3249 3257 } 3250 3258 else -
trunk/src/VBox/Devices/Audio/DevHdaStream.cpp
r89847 r89848 2353 2353 pHandler->GCPhysLast = pHandler->GCPhysFirst + (regionSize - 1); 2354 2354 2355 LogFunc((" \tRegistering region '%s': 0x%x - 0x%x (region size: %zu)\n",2355 LogFunc((" Registering region '%s': %#RGp - %#RGp (region size: %#zx)\n", 2356 2356 szDesc, pHandler->GCPhysFirst, pHandler->GCPhysLast, regionSize)); 2357 LogFunc((" \tBDLE @ 0x%x - 0x%x (%RU32)\n",2357 LogFunc((" BDLE @ %#RGp - %#RGp (%#RX32)\n", 2358 2358 pHandler->BDLEAddr, pHandler->BDLEAddr + pHandler->BDLESize, pHandler->BDLESize)); 2359 2359
Note:
See TracChangeset
for help on using the changeset viewer.